/*
 * Final UI reliability layer.
 * Kept separate from the base theme so the fixes stay last in the cascade.
 */
:root {
  --green: #0d7c50;
  --green-dark: #08643f;
  --muted: #596579;
  --cyan: #1e6498;
  --yellow: #8a5a14;
}

.clipboard-apk-status {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px 24px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.clipboard-apk-status-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.clipboard-apk-status-main p {
  margin: 5px 0 0;
  color: #64748b;
}

.clipboard-apk-pulse {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, .14);
}

.clipboard-apk-status.is-live .clipboard-apk-pulse {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .14);
}

.clipboard-apk-status.is-live #clipboard-apk-status-title { color: #166534; }
.clipboard-apk-status.is-idle #clipboard-apk-status-title { color: #9a3412; }

.clipboard-apk-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, auto));
  gap: 8px;
}

.clipboard-apk-metrics span {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}

.clipboard-apk-metrics small { color: #64748b; }
.clipboard-apk-metrics b { color: #0f172a; font-size: 15px; }

.clipboard-apk-devices {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clipboard-apk-devices > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.clipboard-apk-devices code,
.clipboard-apk-devices small { color: #64748b; }

@media (max-width: 860px) {
  .clipboard-apk-status { grid-template-columns: 1fr; }
  .clipboard-apk-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .clipboard-apk-metrics { grid-template-columns: 1fr; }
}

body {
  min-width: 0;
}

/* Chrome can keep the author-styled dialog box in layout after `close()`.
 * Make the closed state explicit so an empty detail shell never covers cards. */
#detail:not([open]) {
  display: none !important;
}

/* The login gate is fixed-positioned, so make the native dialog closed state
 * explicit as well. This prevents Chrome from painting a closed login box. */
dialog:not([open]) {
  display: none !important;
}

.token-field > span,
.search-field > span,
.select-field,
.blacklist-form label,
th {
  color: #596579;
}

.nav-label {
  color: #8391a7;
}

.page-footer {
  color: #667085;
}

.system-state small,
.sidebar-foot > p {
  color: #95a3b7;
}

.update-meta > small,
.card small {
  color: var(--muted);
}

.metric-button:hover {
  color: var(--text);
  background: var(--panel);
}

.metric-button:focus-visible,
.mini-action:focus-visible,
tbody tr[role="button"]:focus-visible,
.close:focus-visible {
  outline: 3px solid rgba(13, 124, 80, .24);
  outline-offset: 2px;
}

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

.pulse-item {
  grid-column: span 2;
}

.pulse-item:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.risk-critical {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.risk-high,
.quality-bad {
  color: #b4233c;
  background: #fff2f4;
  border-color: #f3c3cc;
}

.risk-medium {
  color: #7a5614;
  background: #fff9e8;
  border-color: #ead59f;
}

.risk-low {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #bfe2d1;
}

.scope-chip {
  color: #6941c6;
  background: #f4f0ff;
  border-color: #d9ccff;
}

.profile-quality,
.empty-state,
.address-list > div,
.property-chip,
.timeline details code {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.profile-quality {
  border: 1px solid var(--line);
}

.profile-quality p,
.empty-state,
.tree-row small,
.address-list small,
.asset-table small,
.transaction-list small {
  color: var(--muted);
}

.empty-state strong,
.property-chip b {
  color: var(--text);
}

.device-facts span {
  color: #3f4d61;
}

.data-warning {
  color: #7a5614;
  background: #fff9e8;
  border-color: #ead59f;
}

.secret-warning {
  color: #a33246;
}

.secret-revealed article code {
  color: #7f1d2d;
}

.wallet-addresses code,
.address-list code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-table-wrap {
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 820px) {
  #wallets-section .table-wrap {
    margin-inline: 0;
    overflow: visible;
    border-top: 0;
  }

  #wallets-section table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  #wallets-section thead {
    display: none;
  }

  #wallets-section tbody {
    display: grid;
    gap: 10px;
  }

  #wallets-section tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  }

  #wallets-section tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    overflow-wrap: anywhere;
  }

  #wallets-section tbody td::before,
  #accounts-section tbody td::before,
  #devices-section tbody td::before,
  #clipboard-section tbody td::before {
    color: #596579;
  }

  #wallets-section tbody td:nth-child(1),
  #wallets-section tbody td:nth-child(2),
  #wallets-section tbody td:nth-child(3),
  #wallets-section tbody td:nth-child(7) {
    grid-column: 1 / -1;
  }

  #wallets-section tbody td:nth-child(even) {
    border-right: 0;
  }

  #wallets-section .wallet-addresses > div,
  .wallet-addresses > div {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 0;
  }

  #overview,
  #accounts-section,
  #wallets-section,
  #devices-section,
  #audit-section,
  #clipboard-section,
  #risk-section,
  #policy-section {
    scroll-margin-top: 142px;
  }

  input,
  button,
  select,
  .nav-link {
    min-height: 44px;
  }

  .mini-action {
    min-height: 36px;
    padding: 8px 10px;
  }

  .toggle-switch {
    width: 52px;
    min-width: 52px;
    height: 30px;
    min-height: 30px;
  }

  .toggle-switch span {
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
  }

  .toggle-switch[aria-checked="true"] span {
    transform: translateX(22px);
  }

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

  .pulse-item,
  .pulse-item:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .pulse-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .audit-table-wrap {
    max-height: calc(100vh - 190px);
  }

  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 20px;
  }
}

/* 2026 admin workspace: action center, navigation utilities and fluid feedback. */
.workspace-tool,
.workspace-icon-button {
  min-height: 38px;
  color: #344054;
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.workspace-tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-inline: 12px 8px;
  white-space: nowrap;
}

.workspace-tool:hover,
.workspace-icon-button:hover,
.workspace-icon-button.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #bfe2d1;
}

.workspace-tool kbd,
.command-dialog kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  color: #667085;
  background: #f4f6f8;
  border: 1px solid #dfe4eb;
  border-bottom-color: #cbd2dc;
  border-radius: 6px;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: 0 1px 0 #fff inset, 0 1px 1px rgba(16, 24, 40, .04);
}

.workspace-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  padding: 0;
  font-size: 18px;
}

.workspace-icon-button.is-spinning {
  animation: workspace-spin .75s linear infinite;
}

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

.operations-center {
  margin: 14px 0 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 96% 0, rgba(22, 163, 106, .08), transparent 34%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.operations-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.operations-center-head h2 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.operations-center-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.operations-center-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.operation-item {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: #fbfcfd;
  border-color: #e4e8ee;
  border-radius: 11px;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.operation-item:hover {
  color: var(--text);
  background: #fff;
  border-color: #cbd5df;
  box-shadow: 0 7px 20px rgba(16, 24, 40, .07);
  transform: translateY(-2px);
}

.operation-indicator {
  width: 7px;
  height: 34px;
  background: #98a2b3;
  border-radius: 99px;
}

.tone-critical .operation-indicator { background: #d94b61; }
.tone-warning .operation-indicator { background: #d7912f; }
.tone-info .operation-indicator { background: #3d81b7; }

.operation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.operation-copy strong,
.operation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-copy strong {
  font-size: 12px;
}

.operation-copy small {
  color: var(--muted);
  font-size: 10px;
}

.operation-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.operation-arrow {
  color: #98a2b3;
  font-size: 16px;
}

.operations-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--panel-2);
  border-radius: 10px;
}

.panel-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-filters .select-field select {
  min-width: 124px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 2px 0;
  border-top: 1px solid #eef1f4;
}

.pagination-summary,
.pagination-page {
  color: var(--muted);
  font-size: 11px;
}

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

.pagination-actions button {
  min-height: 32px;
  padding-inline: 11px;
}

.pagination-actions button:disabled {
  color: #98a2b3;
  background: #f4f6f8;
  border-color: #e4e7ec;
  cursor: default;
}

.pagination-page {
  min-width: 54px;
  text-align: center;
  font-weight: 750;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 var(--line);
}

tbody tr {
  transition: background-color .15s ease;
}

tbody tr[role="button"]:hover {
  background: #f3fbf7;
}

.command-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
}

.command-dialog:not([open]) {
  display: none !important;
}

.command-dialog::backdrop {
  background: rgba(15, 23, 42, .44);
  backdrop-filter: blur(4px);
}

.command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.command-head h2 {
  margin-top: 2px;
  font-size: 20px;
}

.command-head .close {
  position: static;
  margin: -5px -5px 0 0;
  color: #667085;
  background: transparent;
  border-color: transparent;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 12px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
}

.command-search > span {
  color: #667085;
  font-size: 20px;
}

.command-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 14px;
}

.command-search input:focus {
  box-shadow: none;
}

.command-results {
  display: grid;
  gap: 4px;
  max-height: min(430px, 55vh);
  padding: 4px 12px 12px;
  overflow-y: auto;
}

.command-result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border-color: transparent;
  border-radius: 10px;
}

.command-result:hover,
.command-result.is-active {
  color: var(--text);
  background: var(--green-soft);
  border-color: #cce8db;
}

.command-result-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 8px;
}

.command-result > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.command-result strong {
  font-size: 13px;
}

.command-result small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result em {
  color: #7a8699;
  font-size: 10px;
  font-style: normal;
}

.command-empty {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}

.command-foot {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 10px 20px;
  color: #7a8699;
  background: #f8fafc;
  border-top: 1px solid #edf0f4;
  font-size: 10px;
}

.command-foot span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  width: min(380px, calc(100vw - 28px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 10px 10px 12px;
  color: #263246;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, .16);
  animation: toast-in .22s ease both;
  pointer-events: auto;
}

.toast.is-leaving {
  animation: toast-out .18s ease both;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.toast-error .toast-icon {
  background: var(--red);
}

.toast > span:nth-child(2) {
  font-size: 12px;
  font-weight: 650;
}

.toast button {
  min-height: 28px;
  padding: 0;
  color: #667085;
  background: transparent;
  border-color: transparent;
  font-size: 18px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}

.density-compact .workspace > main {
  padding-top: 18px;
}

.density-compact .section-block {
  margin-top: 26px;
}

.density-compact .panel {
  padding: 15px;
}

.density-compact .panel-head {
  margin-bottom: 12px;
}

.density-compact th,
.density-compact td {
  padding-block: 8px;
}

.density-compact .card {
  min-height: 92px;
  padding: 14px;
}

.density-compact .operation-item {
  min-height: 62px;
  padding-block: 9px;
}

@media (max-width: 1480px) {
  .operations-center-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .workspace-tool span {
    display: none;
  }

  .workspace-tool {
    padding-inline: 8px;
  }
}

@media (max-width: 1040px) {
  .operations-center-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-filters {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .workspace-tool,
  #refresh-current,
  #density-toggle {
    display: none;
  }

  .table-wrap thead th {
    position: static;
  }

  .table-pagination {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .operations-center {
    padding: 14px;
  }

  .operations-center-head {
    align-items: center;
  }

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

  .operation-item {
    min-height: 62px;
  }

  .panel-filters {
    display: grid;
    gap: 8px;
  }

  .panel-filters .search-field,
  .panel-filters .search-field input,
  .panel-filters .select-field,
  .panel-filters .select-field select {
    width: 100%;
  }

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

  .pagination-actions {
    justify-content: space-between;
  }

  .pagination-actions button {
    flex: 1;
  }

  .command-head {
    padding: 16px 16px 10px;
  }

  .command-search {
    margin-inline: 12px;
  }

  .command-result em,
  .command-foot {
    display: none;
  }

  .command-result {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* User profile: network association and login behavior intelligence. */
.account-table {
  min-width: 1320px;
}

.login-frequency {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.frequency-high {
  color: #b42318;
  background: #fff1f0;
  border-color: #fecdca;
}

.frequency-regular {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.frequency-low {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.frequency-none {
  color: #596579;
  background: #f5f7f9;
  border-color: #dfe4ea;
}

.behavior-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.behavior-overview > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  background: #f7f9fb;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
}

.behavior-overview > div > span,
.behavior-overview > div > small {
  color: #697587;
  font-size: 11px;
}

.behavior-overview > div > strong {
  color: #172033;
  font-size: 23px;
  line-height: 1.1;
}

.login-history-list,
.network-association-list,
.location-history-list {
  display: grid;
  gap: 8px;
}

.login-history-row {
  display: grid;
  grid-template-columns: 30px minmax(190px, .9fr) minmax(190px, 1fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #f7f9fb;
  border: 1px solid #e1e6ec;
  border-radius: 9px;
}

.login-history-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.login-history-row small,
.network-association-card small,
.location-history-row small {
  color: #697587;
}

.login-sequence {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #067647;
  background: #dcfae6;
  border-radius: 8px;
  font-weight: 850;
}

.network-association-card {
  padding: 13px 14px;
  background: #f7f9fb;
  border: 1px solid #e1e6ec;
  border-left: 3px solid #51e2a1;
  border-radius: 9px;
}

.network-association-card.has-relations {
  border-left-color: #f79009;
}

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

.network-card-head > div {
  display: grid;
  gap: 4px;
}

.network-card-head code {
  width: fit-content;
  color: #175cd3;
  background: #eff8ff;
}

.network-card-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.network-card-facts span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  color: #475467;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.network-card-facts b {
  color: #7a8698;
  font-size: 10px;
  text-transform: uppercase;
}

.same-ip-accounts {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #d8dee6;
}

.same-ip-accounts > span {
  color: #7a8698;
  font-size: 11px;
  font-weight: 800;
}

.same-ip-accounts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.same-ip-accounts button {
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 8px 10px;
  text-align: left;
  color: #172033;
  background: #fff;
  border: 1px solid #dfe4ea;
}

.same-ip-accounts button:hover {
  border-color: #51e2a1;
  box-shadow: 0 3px 12px rgba(25, 135, 84, .1);
}

.location-history-row {
  display: grid;
  grid-template-columns: 18px minmax(180px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fb;
  border: 1px solid #e1e6ec;
  border-radius: 9px;
}

.location-history-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.location-node {
  width: 10px;
  height: 10px;
  background: #98a2b3;
  border: 3px solid #eaecf0;
  border-radius: 50%;
  box-sizing: content-box;
}

.location-node.is-current {
  background: #12b76a;
  border-color: #d1fadf;
}

@media (max-width: 1100px) {
  .behavior-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-history-row,
  .location-history-row {
    grid-template-columns: 30px 1fr 1fr;
  }

  .login-history-row > div:nth-of-type(3),
  .login-history-row > .status-chip,
  .location-history-row > div:last-child {
    grid-column: 2 / -1;
  }

  .network-card-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .behavior-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-history-row,
  .location-history-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .login-history-row > div,
  .login-history-row > div:nth-of-type(3),
  .login-history-row > .status-chip,
  .location-history-row > div,
  .location-history-row > div:last-child {
    grid-column: 2;
  }

  .network-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .network-card-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Continued admin polish: compact monitoring, secure credential editing and richer filters. */
.credential-toggle {
  display: none;
  font-size: 12px;
  font-weight: 850;
}

.live-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding-inline: 11px;
  color: #b7c7d4;
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .12);
  border-radius: 99px;
  font-size: 10px;
}

.live-panel-toggle:hover {
  color: #e4fff3;
  background: rgba(66, 211, 146, .12);
  border-color: rgba(66, 211, 146, .28);
}

.live-panel-toggle i {
  color: #42d392;
  font-size: 12px;
  font-style: normal;
}

.live-wallet-panel.is-collapsed .wallet-activity-feed,
.live-wallet-panel.is-collapsed .primary-asset-summary,
.live-wallet-panel.is-collapsed .live-wallet-foot {
  display: none;
}

.live-wallet-panel.is-collapsed {
  min-height: 0;
}

html,
body,
.live-wallet-panel,
.wallet-activity-feed {
  overflow-anchor: none;
}

.live-wallet-panel.is-collapsed .live-wallet-stats {
  border-bottom: 0;
}

.pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.pagination-size select {
  min-width: 62px;
  min-height: 32px;
  padding: 0 24px 0 8px;
  color: #344054;
  background-color: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 7px;
  font-size: 11px;
}

.audit-filter-bar {
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(124px, 1fr));
}

.compact-select-field {
  flex: 0 0 auto;
}

.compact-select-field select {
  min-width: 112px;
  min-height: 34px;
}

.maintenance-retention-field {
  min-width: 122px;
}

.maintenance-buttons .maintenance-retention-field span {
  font-size: 11px;
  line-height: 1;
}

.danger-outline {
  border-color: rgba(220, 38, 38, 0.32) !important;
  color: #b91c1c !important;
}

.danger-outline:hover {
  border-color: rgba(220, 38, 38, 0.56) !important;
  background: rgba(254, 226, 226, 0.74) !important;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: #fff;
  background: #173d32;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.section-heading > button,
.section-heading .section-actions button {
  flex: 0 0 auto;
  min-width: 88px;
  white-space: nowrap;
}

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

  .audit-filter-bar .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body.is-connected:not(.credentials-open) .topbar-actions .token-field {
    display: none;
  }

  body.is-connected .topbar-actions {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  body.is-connected .topbar-actions .role-badge {
    grid-row: 1;
    grid-column: 1;
  }

  body.is-connected .topbar-actions #credential-toggle {
    display: inline-grid;
    grid-row: 1;
    grid-column: 2;
    width: 48px;
    min-width: 48px;
    padding: 0;
    font-size: 10px;
  }

  body.is-connected .topbar-actions #operator-auth {
    grid-row: 1;
    grid-column: 3;
  }

  body.is-connected .topbar-actions #connect {
    grid-row: 1;
    grid-column: 4;
  }

  body.is-connected.credentials-open .topbar-actions .token-field {
    display: flex;
    grid-row: 1;
    grid-column: 1 / -1;
  }

  body.is-connected.credentials-open .topbar-actions .role-badge {
    grid-row: 2;
    grid-column: 1;
  }

  body.is-connected.credentials-open .topbar-actions #credential-toggle {
    grid-row: 2;
    grid-column: 2;
  }

  body.is-connected.credentials-open .topbar-actions #operator-auth {
    grid-row: 2;
    grid-column: 3;
  }

  body.is-connected.credentials-open .topbar-actions #connect {
    grid-row: 2;
    grid-column: 4;
  }

  .live-wallet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .live-panel-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pagination-actions {
    flex-wrap: wrap;
  }

  .pagination-size {
    width: 100%;
    justify-content: flex-end;
  }

  .audit-filter-bar {
    grid-template-columns: 1fr;
  }

  .audit-filter-bar .search-field {
    grid-column: auto;
  }

  .system-subpanel .subsection-head {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-select-field,
  .compact-select-field select {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .kv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .role-badge {
    position: absolute;
    top: 19px;
    right: 18px;
    order: initial;
  }
}

/* Modular feature control center. */
.side-nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

.module-center {
  scroll-margin-top: 92px;
}

.module-center-heading {
  align-items: flex-end;
  gap: 16px;
}

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

.secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  color: #176e50;
  background: #fff;
  border: 1px solid #cfe3d9;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.secondary-button:hover {
  color: #fff;
  background: #16865d;
  border-color: #16865d;
  filter: none;
}

.secondary-button.danger-subtle {
  color: #8e3b48;
  border-color: #efd1d6;
}

.secondary-button.danger-subtle:hover {
  color: #fff;
  background: #a84052;
  border-color: #a84052;
}

.module-center-panel {
  padding: 0;
}

.module-center-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 5% 0, rgba(66, 211, 146, .09), transparent 30%),
    #fbfdfc;
  border-bottom: 1px solid var(--line);
}

.module-center-summary > div {
  display: grid;
  gap: 3px;
}

.module-center-summary strong {
  color: var(--text);
  font-size: 18px;
}

.module-center-summary > div > span {
  color: var(--muted);
  font-size: 11px;
}

.status-chip.status-off {
  color: #8e3b48;
  background: #fff3f5;
  border-color: #efd1d6;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.module-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 190px;
  padding: 18px;
  background: #fff;
  transition: background .18s ease, opacity .18s ease;
}

.module-card.is-enabled::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #28b77b;
  content: "";
}

.module-card.is-disabled {
  background: #fafbfc;
}

.module-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0b7049;
  background: #eaf8f1;
  border: 1px solid #cae9da;
  border-radius: 9px;
  font: 850 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.module-card.is-disabled .module-icon {
  color: #7b8492;
  background: #f0f2f5;
  border-color: #e0e4e9;
}

.module-category {
  color: #667085;
  font-size: 10px;
  font-weight: 750;
}

.module-toggle {
  margin-left: auto;
}

.module-card-copy {
  min-width: 0;
}

.module-card-copy strong {
  color: var(--text);
  font-size: 14px;
}

.module-card-copy p {
  min-height: 34px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.module-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #176e50;
  font-size: 10px;
  font-weight: 800;
}

.module-state i {
  width: 7px;
  height: 7px;
  background: #28b77b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(40, 183, 123, .11);
}

.module-card.is-disabled .module-state {
  color: #7b8492;
}

.module-card.is-disabled .module-state i {
  background: #aeb5c0;
  box-shadow: none;
}

.module-card-foot small {
  color: #8a94a3;
  font-size: 9px;
  text-align: right;
}

.module-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 170px;
  padding: 28px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.module-empty strong {
  color: var(--text);
}

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

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

@media (max-width: 620px) {
  .module-center-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .module-bulk-actions,
  .module-bulk-actions button {
    width: 100%;
  }

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

  .module-card {
    min-height: 164px;
  }

  .module-center-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Navigation offsets and compact admin views must remain last in the cascade. */
#overview,
.live-wallet-panel,
.section-block {
  scroll-margin-top: 92px;
}

.operator-table {
  min-width: 920px;
}

@media (max-width: 1040px) {
  #operators-section .table-wrap {
    margin-inline: 0;
    overflow: visible;
    border-top: 0;
  }

  #operators-section .operator-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  #operators-section .operator-table thead {
    display: none;
  }

  #operators-section .operator-table tbody {
    display: grid;
    gap: 10px;
  }

  #operators-section .operator-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  }

  #operators-section .operator-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 11px 12px;
    overflow-wrap: anywhere;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
  }

  #operators-section .operator-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #748197;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .04em;
  }

  #operators-section .operator-table tbody td:first-child,
  #operators-section .operator-table tbody td:last-child,
  #operators-section .operator-table tbody td[colspan] {
    grid-column: 1 / -1;
  }

  #operators-section .operator-table tbody td:nth-child(even) {
    border-right: 0;
  }

  #operators-section .operator-table tbody td[colspan]::before {
    display: none;
  }

  .operator-inline-select {
    width: 100%;
  }

  .operator-row-actions {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  #overview,
  .live-wallet-panel,
  .section-block {
    scroll-margin-top: 210px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }

  .topbar-actions .token-field {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar-actions .token-field input {
    width: 100%;
    min-width: 0;
    padding-left: 82px;
  }

  .topbar-actions .role-badge {
    position: static;
    grid-row: 2;
    grid-column: 1;
    order: initial;
    justify-self: start;
  }

  .topbar-actions #operator-auth {
    grid-row: 2;
    grid-column: 2;
  }

  .topbar-actions #connect {
    grid-row: 2;
    grid-column: 3;
  }

  .topbar-actions #operator-auth,
  .topbar-actions #connect {
    min-width: 76px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  #operators-section .operator-table tbody tr {
    grid-template-columns: 1fr;
  }

  #operators-section .operator-table tbody td {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

/* Page-based workspace: one management area at a time instead of one long dashboard. */
[data-page-view]:not(.is-current-page) {
  display: none !important;
}

main > .privacy-panel,
main > .risk-panel {
  margin-bottom: 24px;
}

main > .privacy-panel.is-current-page,
main > .risk-panel.is-current-page {
  animation: admin-page-enter .18s ease both;
}

.section-block.is-current-page,
.insight-grid.is-current-page,
.live-wallet-panel.is-current-page,
.page-heading.is-current-page,
.cards.is-current-page,
.dashboard-shortcuts.is-current-page,
.operations-center.is-current-page {
  animation: admin-page-enter .18s ease both;
}

@keyframes admin-page-enter {
  from {
    opacity: .25;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The live-update badge is an explicit persistent on/off control. */
button.live-auto-update {
  cursor: pointer;
  font: inherit;
}

button.live-auto-update:hover,
button.live-auto-update:focus-visible {
  color: #e4fff2;
  background: rgba(81, 226, 161, .18);
  border-color: rgba(81, 226, 161, .42);
  outline: none;
}

button.live-auto-update[aria-checked="false"] {
  color: #aebbc2;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .12);
}

button.live-auto-update[aria-checked="false"] i {
  color: #aebbc2;
  animation: none;
}

/* Expanded asset catalog: keep 21 balances readable without creating a
   horizontal scroller or shifting the wallet list during live updates. */
.primary-asset-summary {
  grid-template-columns: repeat(11, minmax(72px, 1fr));
  align-items: stretch;
}

.primary-asset-total {
  min-height: 43px;
  align-content: center;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.primary-asset-total.is-stable:not(.has-balance) {
  background: rgba(66, 172, 211, .045);
  border-color: rgba(91, 192, 226, .1);
}

.primary-asset-total.is-stable b {
  color: #8fbfca;
}

.primary-asset-total.has-balance {
  transform: translateY(-1px);
}

@media (max-width: 1400px) {
  .primary-asset-summary {
    grid-template-columns: repeat(7, minmax(72px, 1fr));
  }
}

@media (max-width: 1100px) {
  .primary-asset-summary {
    grid-template-columns: repeat(5, minmax(70px, 1fr));
  }
}

@media (max-width: 760px) {
  .primary-asset-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .primary-asset-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 14px;
  }
}

@media (max-width: 380px) {
  .primary-asset-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wallet-asset-chip.is-primary {
  background: rgba(81, 226, 161, .095);
  border-color: rgba(81, 226, 161, .24);
  box-shadow: inset 0 0 0 1px rgba(81, 226, 161, .035);
}

/* One-glance operations overview. */
#summary.cards {
  margin-bottom: 14px;
}

.overview-dashboard {
  display: grid;
  gap: 12px;
}

.overview-health-banner {
  --overview-tone: #16a36a;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(430px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 15px 18px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--overview-tone) 9%, #fff) 0%, #fff 58%);
  border: 1px solid color-mix(in srgb, var(--overview-tone) 26%, var(--line));
  border-radius: 14px;
  box-shadow: 0 9px 26px rgba(20, 31, 48, .055);
}

.overview-health-banner.is-attention {
  --overview-tone: #d7912f;
}

.overview-health-banner.is-critical {
  --overview-tone: #d94b61;
}

.overview-health-message {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.overview-health-icon {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--overview-tone) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--overview-tone) 32%, #fff);
  border-radius: 11px;
}

.overview-health-icon::before,
.overview-health-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.overview-health-icon::before {
  inset: 10px;
  background: var(--overview-tone);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--overview-tone) 13%, transparent);
}

.overview-health-icon::after {
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #fff;
}

.overview-health-message > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.overview-health-message span,
.overview-card-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.overview-health-message strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-health-message small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-health-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #e9edf2;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
}

.overview-health-facts > div {
  min-width: 0;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .96);
}

.overview-health-facts > div + div {
  border-left: 1px solid #e6eaf0;
}

.overview-health-facts span,
.overview-health-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-health-facts span {
  color: var(--muted);
  font-size: 9px;
}

.overview-health-facts strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -.035em;
}

.overview-health-facts .is-alert strong {
  color: #d94b61;
}

.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.overview-kpi {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(20, 31, 48, .045);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.overview-kpi::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--metric-color) 14%, transparent), transparent 69%);
  pointer-events: none;
}

.overview-kpi.metric-button {
  cursor: pointer;
}

.overview-kpi.metric-button:hover,
.overview-kpi.metric-button:focus-visible {
  color: var(--text);
  background: #fff;
  border-color: color-mix(in srgb, var(--metric-color) 45%, var(--line));
  box-shadow: 0 10px 25px rgba(20, 31, 48, .085);
  outline: none;
  transform: translateY(-2px);
}

.overview-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.overview-kpi-mark {
  padding: 3px 6px;
  color: var(--metric-color);
  font-size: 9px;
  font-weight: 800;
  background: color-mix(in srgb, var(--metric-color) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--metric-color) 18%, #fff);
  border-radius: 5px;
}

.overview-kpi-top i {
  color: #a0a8b4;
  font-size: 12px;
  font-style: normal;
}

.overview-kpi-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.overview-kpi > strong {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.05em;
}

.overview-kpi.is-currency > strong {
  overflow: hidden;
  font-size: clamp(17px, 1.35vw, 23px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-kpi > small {
  align-self: end;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-kpi.is-alert > strong {
  color: #d94b61;
}

.overview-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
}

.overview-readiness-card,
.overview-trend-card {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(20, 31, 48, .045);
}

.overview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.overview-card-head > div {
  display: grid;
  gap: 1px;
}

.overview-card-head strong {
  font-size: 13px;
}

.overview-card-head small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

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

.overview-readiness-row {
  display: grid;
  grid-template-columns: 116px minmax(80px, 1fr) 35px;
  align-items: center;
  gap: 10px;
}

.overview-readiness-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: 6px;
}

.overview-readiness-row span,
.overview-readiness-row strong,
.overview-readiness-row b {
  font-size: 9px;
}

.overview-readiness-row span {
  color: var(--muted);
}

.overview-readiness-row strong {
  color: var(--text);
  white-space: nowrap;
}

.overview-readiness-row b {
  color: var(--text);
  text-align: right;
}

.overview-progress {
  height: 6px;
  overflow: hidden;
  background: #edf0f4;
  border-radius: 99px;
}

.overview-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22b378, #4bd19b);
  border-radius: inherit;
}

.overview-trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e7ebf0;
  border: 1px solid #e7ebf0;
  border-radius: 9px;
}

.overview-trend-item {
  min-width: 0;
  padding: 9px 10px;
  background: #fbfcfd;
}

.overview-trend-item > span,
.overview-trend-item > strong,
.overview-trend-item > small {
  display: block;
}

.overview-trend-item > span {
  color: var(--muted);
  font-size: 9px;
}

.overview-trend-item > strong {
  margin: 2px 0 3px;
  font-size: 18px;
  letter-spacing: -.035em;
}

.overview-trend-item > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-trend-item > small i {
  margin-right: 3px;
  font-style: normal;
}

.overview-trend-item.is-positive > small {
  color: #0d8b5a;
}

.overview-trend-item.is-negative > small {
  color: #c64055;
}

#overview-realtime-state.is-live {
  color: #0d8b5a;
}

#overview-realtime-state.is-paused {
  color: #a66b17;
}

#overview-health-asset-value {
  font-size: clamp(13px, 1.25vw, 18px);
}

/* SaaS-style information architecture and compact module navigation. */
.side-nav {
  display: block;
  padding-top: 13px;
}

.nav-group + .nav-group {
  margin-top: 7px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 31px;
  padding: 5px 10px;
  color: #7f8da3;
  font: 800 10px/1.2 inherit;
  letter-spacing: .08em;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  cursor: pointer;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: #c8d2df;
  background: rgba(255, 255, 255, .045);
  outline: none;
}

.nav-group-toggle i {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  transition: transform .18s ease;
}

.nav-group.is-collapsed .nav-group-toggle i {
  transform: rotate(-90deg);
}

.nav-group-items {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.nav-group.is-collapsed .nav-group-items {
  display: none;
}

.nav-group .nav-link {
  min-height: 38px;
  padding-block: 6px;
  font-size: 12px;
}

.nav-group .nav-icon {
  width: 23px;
  height: 23px;
  font-size: 8px;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(20, 31, 48, .04);
}

.dashboard-shortcuts h2 {
  margin-top: 2px;
  font-size: 15px;
}

.dashboard-shortcut-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-shortcut-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  background: #fafbfd;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-shortcut-list button:hover,
.dashboard-shortcut-list button:focus-visible {
  color: var(--text);
  background: #fff;
  border-color: rgba(22, 163, 106, .36);
  box-shadow: 0 7px 18px rgba(20, 31, 48, .07);
  outline: none;
}

.dashboard-shortcut-list button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #0d8b5a;
  font: 800 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #eaf8f1;
  border: 1px solid #ceecdd;
  border-radius: 8px;
}

.dashboard-shortcut-list strong,
.dashboard-shortcut-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shortcut-list strong {
  font-size: 11px;
}

.dashboard-shortcut-list small {
  color: var(--muted);
  font-size: 9px;
}

.asset-monitor-page .live-wallet-panel {
  margin: 0;
}

.policy-page .insight-grid {
  margin-bottom: 0;
}

.privacy-page .privacy-panel,
.app-settings-panel {
  min-height: 0;
}

.app-settings-panel {
  max-width: 820px;
  padding: 22px;
}

.app-version-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.app-version-form label:has(textarea),
.app-version-form #save-app-display-version {
  grid-column: 1 / -1;
}

.app-version-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.app-version-form .app-version-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #fff;
}

.app-version-form .app-version-check input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 760px) {
  .app-version-form {
    grid-template-columns: 1fr;
  }

  .app-version-form label:has(textarea),
  .app-version-form #save-app-display-version {
    grid-column: auto;
  }
}

.blacklist-page .risk-admin-tools {
  margin-top: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.operator-create-disclosure {
  margin-bottom: 14px;
  background: #fafbfd;
  border: 1px solid #e5e9ef;
  border-radius: 11px;
}

.operator-create-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.operator-create-disclosure summary::-webkit-details-marker {
  display: none;
}

.operator-create-disclosure summary span {
  font-size: 11px;
  font-weight: 800;
}

.operator-create-disclosure summary small {
  color: var(--muted);
  font-size: 9px;
}

.operator-create-disclosure[open] summary {
  border-bottom: 1px solid #e5e9ef;
}

.operator-create-disclosure .operator-create-form {
  margin: 0;
  padding: 13px;
  background: #fff;
  border: 0;
  border-radius: 0 0 11px 11px;
}

@media (max-width: 1120px) {
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .dashboard-shortcuts > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .dashboard-shortcut-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .overview-health-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

@media (max-width: 880px) {
  .overview-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-health-facts > div:nth-child(3) {
    border-top: 1px solid #e6eaf0;
    border-left: 0;
  }

  .overview-health-facts > div:nth-child(4) {
    border-top: 1px solid #e6eaf0;
  }
}

@media (max-width: 620px) {
  .overview-health-banner {
    padding: 14px;
  }

  .overview-health-message strong,
  .overview-health-message small {
    white-space: normal;
  }

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

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

  .overview-readiness-row {
    grid-template-columns: 1fr 35px;
  }

  .overview-readiness-row > div:first-child {
    grid-column: 1 / -1;
  }

  .dashboard-shortcuts {
    padding: 12px;
  }

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

@media (prefers-reduced-motion: reduce) {
  main > .privacy-panel.is-current-page,
  main > .risk-panel.is-current-page,
  .section-block.is-current-page,
  .insight-grid.is-current-page,
  .live-wallet-panel.is-current-page,
  .page-heading.is-current-page,
  .cards.is-current-page,
  .dashboard-shortcuts.is-current-page,
  .operations-center.is-current-page {
    animation: none;
  }
}
.table-row-title {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.table-row-title:hover,
.table-row-title:focus-visible {
  color: var(--accent, #178f72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Behavior records: scoped wallet-import and cold-wallet key actions. */
.behavior-switch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.behavior-switch-grid.behavior-scope-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.behavior-switch-card {
  min-height: 108px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.behavior-switch-card.is-enabled {
  background: linear-gradient(135deg, #f1fcf7, #f8fffb);
  border-color: #9cdec0;
  box-shadow: inset 4px 0 #0d8a5d, 0 8px 24px rgba(15, 138, 93, .06);
}

.behavior-switch-card .privacy-control-copy {
  display: grid;
  gap: 4px;
}

.behavior-switch-card .privacy-control-copy small {
  max-width: 520px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.behavior-panel {
  overflow: hidden;
}

.behavior-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 14px;
}

.behavior-summary > div {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
}

.behavior-summary span,
.behavior-summary small {
  color: var(--muted);
  font-size: 10px;
}

.behavior-summary strong {
  color: var(--text);
  font-size: 21px;
  letter-spacing: -.03em;
}

.behavior-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.behavior-category-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #f2f5f7;
  border-radius: 9px;
}

.behavior-category-tabs button {
  min-height: 34px;
  padding: 7px 13px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  font-size: 11px;
}

.behavior-category-tabs button.is-active {
  color: #087a52;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

.behavior-filter-bar {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) minmax(150px, .35fr);
  margin-bottom: 0;
}

.behavior-table {
  min-width: 1420px;
}

.behavior-table td {
  vertical-align: top;
}

.behavior-table small,
.behavior-table code {
  display: block;
  margin-top: 3px;
}

.behavior-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: #216d98;
  background: #eef7fc;
  border: 1px solid #d7eaf5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.behavior-kind.is-interaction {
  color: #087a52;
  background: #eefaf4;
  border-color: #caebdb;
}

.behavior-description {
  max-width: 300px;
  margin: 0;
  color: #233044;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
}

.behavior-property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 360px;
}

.behavior-property-list span {
  padding: 3px 6px;
  color: #536174;
  background: #f4f6f8;
  border-radius: 5px;
  font-size: 9px;
  overflow-wrap: anywhere;
}

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

@media (max-width: 980px) {
  .behavior-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .behavior-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .behavior-filter-bar .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .behavior-switch-grid,
  .behavior-summary {
    grid-template-columns: 1fr;
  }
  .behavior-category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .behavior-filter-bar {
    grid-template-columns: 1fr;
  }
  .behavior-filter-bar .search-field {
    grid-column: auto;
  }
}

/* 资产监控：在深色实时面板中加入紧凑、可响应的筛选与导出工具栏。 */
.asset-monitor-tools {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, .55fr)) auto;
  align-items: end;
  gap: 10px;
  margin: 12px 24px 0;
  padding: 12px;
  background: rgba(5, 18, 27, .42);
  border: 1px solid rgba(148, 200, 192, .13);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.chain-sync-diagnostics {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 24px 0;
  padding: 10px 12px;
  color: #b8ccc9;
  background: rgba(5, 18, 27, .38);
  border: 1px solid rgba(148, 200, 192, .12);
  border-radius: 10px;
}

.chain-sync-diagnostics-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chain-sync-diagnostics-copy > i {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  background: #71878a;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(113, 135, 138, .12);
}

.chain-sync-diagnostics-copy > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chain-sync-diagnostics-copy strong {
  color: #eefcf7;
  font-size: 11px;
}

.chain-sync-diagnostics-copy small {
  overflow: hidden;
  color: #829da0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-sync-diagnostics.is-healthy .chain-sync-diagnostics-copy > i {
  background: #45d596;
  box-shadow: 0 0 0 4px rgba(69, 213, 150, .12);
}

.chain-sync-diagnostics.is-running .chain-sync-diagnostics-copy > i {
  background: #4cc9f0;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, .12);
  animation: live-pulse 1.4s infinite;
}

.chain-sync-diagnostics.is-warning .chain-sync-diagnostics-copy > i,
.chain-sync-diagnostics.is-stale .chain-sync-diagnostics-copy > i {
  background: #f2b84b;
  box-shadow: 0 0 0 4px rgba(242, 184, 75, .13);
}

.chain-sync-retry {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  color: #f5d58e;
  background: rgba(242, 184, 75, .08);
  border: 1px solid rgba(242, 184, 75, .28);
  border-radius: 8px;
  font-size: 10px;
}

.chain-sync-retry:hover {
  color: #fff3ce;
  background: rgba(242, 184, 75, .16);
}

.chain-sync-failure-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  max-height: 170px;
  margin: 8px 24px 0;
  padding: 8px;
  overflow: auto;
  background: rgba(36, 23, 13, .28);
  border: 1px solid rgba(242, 184, 75, .15);
  border-radius: 9px;
}

.chain-sync-failure-list[hidden] {
  display: none;
}

.chain-sync-failure-list > div {
  display: grid;
  grid-template-columns: minmax(90px, .5fr) minmax(120px, .8fr) minmax(220px, 2fr);
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  color: #b8c8c6;
  background: rgba(255, 255, 255, .035);
  border-radius: 7px;
  font-size: 9px;
}

.chain-sync-failure-list strong {
  color: #f5d58e;
}

.chain-sync-failure-list span,
.chain-sync-failure-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-wallet-panel.is-collapsed .chain-sync-diagnostics,
.live-wallet-panel.is-collapsed .chain-sync-failure-list {
  display: none;
}

.asset-monitor-tools label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #88a5aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.asset-monitor-tools input,
.asset-monitor-tools select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  color: #eefcf7;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(176, 220, 213, .16);
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 11px;
  letter-spacing: normal;
}

.asset-monitor-tools input::placeholder {
  color: #708990;
}

.asset-monitor-tools input:focus,
.asset-monitor-tools select:focus {
  border-color: rgba(74, 222, 163, .58);
  box-shadow: 0 0 0 3px rgba(74, 222, 163, .1);
}

.asset-monitor-tools select option {
  color: #18242e;
  background: #fff;
}

.asset-tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
  white-space: nowrap;
}

.asset-tool-actions > span {
  color: #91a9ad;
  font-size: 10px;
}

.asset-tool-actions .secondary,
.asset-load-more {
  min-height: 34px;
  padding: 7px 10px;
  color: #c9e5de;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(176, 220, 213, .14);
  border-radius: 8px;
  font-size: 10px;
}

.asset-tool-actions .secondary:hover,
.asset-load-more:hover {
  color: #fff;
  background: rgba(62, 207, 150, .14);
  border-color: rgba(62, 207, 150, .34);
}

.asset-load-more {
  position: relative;
  z-index: 2;
  display: block;
  margin: 10px auto 12px;
}

.asset-load-more[hidden] {
  display: none;
}

.live-wallet-panel.is-collapsed .asset-monitor-tools,
.live-wallet-panel.is-collapsed .asset-load-more {
  display: none;
}

@media (max-width: 1320px) {
  .asset-monitor-tools {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(110px, .55fr));
  }
  .asset-tool-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .chain-sync-diagnostics {
    align-items: flex-start;
    margin-inline: 14px;
  }
  .chain-sync-diagnostics-copy small {
    white-space: normal;
  }
  .chain-sync-failure-list {
    margin-inline: 14px;
  }
  .chain-sync-failure-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .asset-monitor-tools {
    grid-template-columns: 1fr 1fr;
    margin-inline: 14px;
  }
  .asset-search-field,
  .asset-tool-actions {
    grid-column: 1 / -1;
  }
  .asset-tool-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .asset-monitor-tools {
    grid-template-columns: 1fr;
  }
  .asset-search-field,
  .asset-tool-actions {
    grid-column: auto;
  }
}

/* Web3 资产驾驶舱：实时行情、多链事件、异常检测与专业钱包资产卡片。 */
.asset-monitor-page .live-wallet-panel {
  background:
    radial-gradient(circle at 84% -8%, rgba(25, 177, 170, .18), transparent 34%),
    radial-gradient(circle at 4% 18%, rgba(41, 197, 127, .11), transparent 30%),
    linear-gradient(138deg, #082824 0%, #0d2631 46%, #102238 100%);
  border-color: rgba(81, 226, 161, .22);
  box-shadow: 0 22px 60px rgba(5, 26, 39, .2);
}

.asset-cockpit-kpis,
.asset-intelligence-grid,
.asset-depth-panel,
.asset-export-center {
  position: relative;
  z-index: 2;
}

.live-wallet-stats.asset-cockpit-kpis {
  grid-template-columns: 1.35fr 1fr repeat(4, minmax(0, .82fr));
  gap: 8px;
  margin: 0 24px;
  padding: 8px;
  overflow: visible;
  background: rgba(3, 16, 24, .34);
  border-color: rgba(177, 229, 217, .12);
  border-radius: 13px;
}

.live-wallet-stats.asset-cockpit-kpis > .asset-kpi {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 12px 13px;
  border: 1px solid rgba(173, 225, 214, .1);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}

.live-wallet-stats.asset-cockpit-kpis > .asset-kpi.is-primary {
  border-color: rgba(84, 225, 166, .26);
  background: linear-gradient(145deg, rgba(53, 211, 151, .13), rgba(22, 81, 80, .08));
}

.live-wallet-stats.asset-cockpit-kpis > .asset-kpi.is-risk.has-alert {
  border-color: rgba(242, 184, 75, .24);
  background: linear-gradient(145deg, rgba(242, 184, 75, .07), rgba(255, 255, 255, .018));
}

.live-wallet-stats.asset-cockpit-kpis .asset-kpi > span {
  color: #87a7a8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
}

.live-wallet-stats.asset-cockpit-kpis .asset-kpi > strong {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f4fffb;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-wallet-stats.asset-cockpit-kpis .asset-kpi.is-primary > strong {
  color: #68e7ae;
  font-size: 21px;
}

.live-wallet-stats.asset-cockpit-kpis .asset-kpi > small {
  overflow: hidden;
  color: #66878d;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-wallet-stats.asset-cockpit-kpis .sync-progress-stat strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11px;
}

.live-wallet-stats.asset-cockpit-kpis .sync-progress-stat b {
  color: #ebf8f5;
  font-size: 16px;
}

.asset-health-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 24px 0;
  overflow: hidden;
  border: 1px solid rgba(164, 220, 212, .11);
  border-radius: 11px;
  background: rgba(164, 220, 212, .08);
}

.asset-health-strip > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-width: 0;
  min-height: 61px;
  padding: 10px 12px;
  background: rgba(4, 17, 26, .72);
}

.asset-health-strip span,
.asset-health-strip small {
  overflow: hidden;
  color: #6e8d91;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-health-strip strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #e9f7f3;
  font-size: 16px;
}

.asset-health-strip strong.is-up { color: #5fe1a7; }
.asset-health-strip strong.is-down { color: #ff8798; }
.asset-health-strip small { color: #547278; }

.asset-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.2fr) repeat(2, minmax(260px, .9fr));
  gap: 10px;
  margin: 12px 24px 0;
}

.asset-intelligence-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(164, 220, 212, .12);
  border-radius: 12px;
  background: rgba(4, 17, 26, .46);
  backdrop-filter: blur(10px);
}

.asset-intelligence-panel > header,
.asset-depth-panel > summary,
.asset-export-center > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-intelligence-panel > header {
  min-height: 47px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(164, 220, 212, .09);
}

.asset-intelligence-panel > header > span,
.asset-depth-panel > summary > span:first-child,
.asset-export-center > summary > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asset-intelligence-panel > header small {
  color: #4fd59f;
  font: 750 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}

.asset-intelligence-panel > header strong {
  color: #eefaf7;
  font-size: 11px;
}

.asset-intelligence-panel > header em {
  flex: none;
  color: #77969b;
  font-size: 8px;
  font-style: normal;
}

.asset-intelligence-panel > header em.is-live {
  color: #66dda9;
}

.asset-intelligence-panel > header > .asset-panel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.asset-intelligence-panel > header > .asset-panel-controls select {
  max-width: 86px;
  min-height: 25px;
  padding: 3px 20px 3px 7px;
  color: #9ab7b7;
  border: 1px solid rgba(166, 217, 207, .12);
  border-radius: 7px;
  background: #132b34;
  font-size: 8px;
}

.asset-allocation-content {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 211px;
  padding: 11px;
}

.asset-allocation-ring {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(48, 211, 155, .09);
}

.asset-allocation-ring::after {
  position: absolute;
  inset: 13px;
  background: #0b222b;
  border: 1px solid rgba(166, 217, 207, .1);
  border-radius: 50%;
  content: "";
}

.asset-allocation-ring > span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: center;
}

.asset-allocation-ring strong {
  color: #f1fffa;
  font-size: 22px;
}

.asset-allocation-ring small {
  color: #739499;
  font-size: 8px;
}

.asset-chain-grid,
.asset-chain-event-list,
.asset-anomaly-list {
  overflow: auto;
  scrollbar-color: rgba(94, 151, 149, .38) transparent;
  scrollbar-width: thin;
}

.asset-chain-grid {
  display: grid;
  gap: 6px;
  max-height: 184px;
}

.asset-chain-status {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 2px 8px;
  padding: 7px 8px;
  border: 1px solid rgba(166, 217, 207, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .028);
}

.asset-chain-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.asset-chain-status i {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  background: #788f94;
  border-radius: 50%;
}

.asset-chain-status.is-healthy i { background: #51dfa4; box-shadow: 0 0 7px rgba(81, 223, 164, .65); }
.asset-chain-status.is-syncing i { background: #4cc9f0; }
.asset-chain-status.is-warning i { background: #f0b64d; }
.asset-chain-status strong,
.asset-chain-status b {
  overflow: hidden;
  color: #d9ebe8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-chain-status b { color: #6fe3af; text-align: right; }
.asset-chain-status small {
  grid-column: 1 / -1;
  color: #69878c;
  font-size: 7px;
}

.asset-chain-event-list,
.asset-anomaly-list {
  max-height: 211px;
}

.asset-chain-event,
.asset-anomaly {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  color: inherit;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(164, 220, 212, .075);
  border-radius: 0;
  background: transparent;
}

.asset-chain-event:hover,
.asset-anomaly:hover {
  background: rgba(75, 218, 161, .055);
}

.asset-chain-event > i,
.asset-anomaly > i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #55daa4;
  border: 1px solid rgba(81, 226, 161, .15);
  border-radius: 7px;
  background: rgba(81, 226, 161, .07);
  font-size: 10px;
  font-style: normal;
}

.asset-chain-event > span,
.asset-anomaly > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.asset-chain-event strong,
.asset-anomaly strong,
.asset-chain-event small,
.asset-anomaly small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-chain-event strong,
.asset-anomaly strong { color: #dceae8; font-size: 9px; }
.asset-chain-event small,
.asset-anomaly small,
.asset-chain-event time,
.asset-anomaly time { color: #68868c; font-size: 7px; }
.asset-anomaly.is-critical > i,
.asset-anomaly.is-high > i { color: #ff9aa8; border-color: rgba(255, 111, 128, .18); background: rgba(255, 111, 128, .08); }
.asset-anomaly.is-medium > i { color: #f2c368; border-color: rgba(242, 184, 75, .2); background: rgba(242, 184, 75, .08); }

.asset-panel-empty {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 12px;
  color: #6d898d;
  font-size: 8px;
  text-align: center;
}

.asset-panel-empty.is-healthy { color: #68cda4; }

.asset-depth-panel,
.asset-export-center {
  margin: 10px 24px 0;
  overflow: hidden;
  border: 1px solid rgba(164, 220, 212, .12);
  border-radius: 11px;
  background: rgba(4, 17, 26, .38);
}

.asset-depth-panel > summary,
.asset-export-center > summary {
  min-height: 46px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
}

.asset-depth-panel > summary::-webkit-details-marker,
.asset-export-center > summary::-webkit-details-marker { display: none; }
.asset-depth-panel > summary strong,
.asset-export-center > summary strong { color: #dcebe8; font-size: 10px; }
.asset-depth-panel > summary small,
.asset-export-center > summary small { color: #6f8d91; font-size: 8px; }
.asset-depth-panel > summary i,
.asset-export-center > summary i {
  color: #68dbaa;
  font-size: 12px;
  font-style: normal;
  transition: transform .18s ease;
}
.asset-depth-panel[open] > summary i,
.asset-export-center[open] > summary i { transform: rotate(180deg); }

.asset-depth-panel .primary-asset-summary {
  margin: 0;
  padding: 0 12px 12px;
}

.asset-token-market-panel > summary > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-token-market-panel > summary .asset-token-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.asset-token-market-panel > summary label {
  color: #769398;
  font-size: 8px;
}

.asset-token-market-panel > summary select {
  min-height: 28px;
  padding: 4px 24px 4px 8px;
  color: #cfe9e2;
  border: 1px solid rgba(166, 217, 207, .14);
  border-radius: 7px;
  background: #142d35;
  font-size: 9px;
}

#asset-match-summary {
  padding-left: 8px;
  border-left: 1px solid rgba(164, 220, 212, .12);
  color: #6ebd9d;
}

#asset-refresh-now:disabled {
  cursor: wait;
  opacity: .64;
}

.asset-token-market-table-wrap {
  max-height: 278px;
  overflow: auto;
  border-top: 1px solid rgba(164, 220, 212, .08);
  scrollbar-color: rgba(94, 151, 149, .38) transparent;
  scrollbar-width: thin;
}

.asset-token-market-table {
  width: 100%;
  border-collapse: collapse;
  color: #cbdeda;
  font-size: 9px;
}

.asset-token-market-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 8px 10px;
  color: #718f94;
  text-align: left;
  background: #102932;
  border-bottom: 1px solid rgba(164, 220, 212, .1);
  font-size: 8px;
}

.asset-token-market-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(164, 220, 212, .065);
  white-space: nowrap;
}

.asset-token-market-table td:first-child {
  display: grid;
  gap: 2px;
  min-width: 105px;
}

.asset-token-market-table td strong { color: #e9f7f3; font-size: 10px; }
.asset-token-market-table td small { color: #658086; font-size: 7px; }
.asset-token-market-table em { font-style: normal; }
.asset-token-market-table .is-up { color: #5fe1a7; }
.asset-token-market-table .is-down { color: #ff8798; }
.asset-chain-badge {
  padding: 3px 6px;
  color: #8bd9bd;
  border: 1px solid rgba(81, 226, 161, .12);
  border-radius: 999px;
  background: rgba(81, 226, 161, .06);
  font-size: 8px;
}

.asset-export-center { margin-top: 8px; }
.asset-export-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 0 12px 12px;
}
.asset-export-actions button {
  min-height: 33px;
  padding: 6px 8px;
  color: #bfe1d7;
  border: 1px solid rgba(166, 217, 207, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  font-size: 9px;
}
.asset-export-actions button:hover {
  color: #effdf8;
  border-color: rgba(81, 226, 161, .34);
  background: rgba(81, 226, 161, .1);
}

.asset-monitor-page .wallet-activity-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 720px;
  margin: 10px 14px 0;
  padding: 10px;
}

.asset-monitor-page .wallet-activity-feed > .live-empty-state {
  grid-column: 1 / -1;
}

.asset-monitor-page .wallet-asset-row.asset-wallet-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  min-width: 0;
  min-height: 260px;
  padding: 14px;
  border: 1px solid rgba(164, 220, 212, .11);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.asset-monitor-page .wallet-asset-row.asset-wallet-card:hover {
  border-color: rgba(81, 226, 161, .28);
  background: linear-gradient(145deg, rgba(61, 213, 155, .09), rgba(255, 255, 255, .024));
  transform: translateY(-1px);
}

.asset-monitor-page .wallet-asset-row.asset-wallet-card.has-risk {
  border-color: rgba(242, 184, 75, .2);
}

.asset-wallet-card .wallet-asset-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 27px;
  height: 27px;
}

.asset-wallet-card-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-left: 39px;
}

.asset-wallet-card-head .activity-wallet {
  min-width: 0;
}

.asset-wallet-card-head .activity-wallet strong,
.asset-wallet-card-head .activity-wallet small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-wallet-card-head .table-row-title {
  max-width: 100%;
  overflow: hidden;
  color: #f0faf7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-wallet-card-head .activity-wallet small { margin-top: 3px; color: #6d8b90; font-size: 8px; }
.asset-wallet-card-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.asset-wallet-card-status em {
  padding: 3px 6px;
  color: #86aaa9;
  border: 1px solid rgba(164, 220, 212, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 7px;
  font-style: normal;
}
.asset-wallet-card-status em.is-healthy { color: #67dba9; }
.asset-wallet-card-status em.is-risk { color: #f1c56e; border-color: rgba(242, 184, 75, .16); }

.asset-wallet-card-value {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 8px;
  text-align: left;
  border-bottom: 1px solid rgba(164, 220, 212, .08);
}
.asset-wallet-card-value > span { display: grid; gap: 3px; min-width: 0; }
.asset-wallet-card-value small { color: #6d898e; font-size: 8px; }
.asset-wallet-card-value strong { color: #60e0a7; font-size: 19px; }
.asset-wallet-card-value > em { color: #77969a; font-size: 10px; font-style: normal; }
.asset-wallet-card-value > em.is-up { color: #5fe1a7; }
.asset-wallet-card-value > em.is-down { color: #ff8798; }

.asset-wallet-address {
  grid-column: 1 / -1;
  width: 100%;
  margin: -2px 0 0;
  padding: 6px 8px;
  color: #77999c;
  border: 1px solid rgba(164, 220, 212, .075);
  border-radius: 7px;
  background: rgba(2, 15, 23, .22);
}
.asset-wallet-address.is-empty { color: #627c81; font-size: 8px; }

.asset-wallet-card-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.asset-wallet-card-metrics > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
}
.asset-wallet-card-metrics small { color: #69878c; font-size: 7px; }
.asset-wallet-card-metrics strong { color: #cfe1de; font-size: 9px; }

.asset-wallet-card .wallet-token-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}
.asset-wallet-card .wallet-asset-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 5px;
  min-width: 0;
  padding: 7px;
}
.asset-wallet-card .wallet-asset-chip > span { display: grid; min-width: 0; }
.asset-wallet-card .wallet-asset-chip > span em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-wallet-card .wallet-asset-chip > span small { grid-column: auto; margin: 1px 0 0; }
.asset-wallet-card .wallet-asset-chip > b { text-align: right; }
.asset-wallet-card .wallet-asset-chip > small { grid-column: 1 / -1; margin: 0; }

.asset-wallet-card-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #617e84;
  font-size: 7px;
  text-align: left;
}
.asset-wallet-card-foot small { color: #617e84; font-size: 7px; }

.live-wallet-panel.is-collapsed .asset-intelligence-grid,
.live-wallet-panel.is-collapsed .asset-health-strip,
.live-wallet-panel.is-collapsed .asset-depth-panel,
.live-wallet-panel.is-collapsed .asset-export-center {
  display: none;
}

@media (max-width: 1420px) {
  .live-wallet-stats.asset-cockpit-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .asset-intelligence-grid {
    grid-template-columns: 1.15fr 1fr;
  }
  .asset-intelligence-panel:last-child {
    grid-column: 1 / -1;
  }
  .asset-anomaly-list { max-height: 156px; }
}

@media (max-width: 1080px) {
  .asset-intelligence-grid,
  .asset-monitor-page .wallet-activity-feed {
    grid-template-columns: 1fr;
  }
  .asset-intelligence-panel:last-child { grid-column: auto; }
  .asset-chain-event-list,
  .asset-anomaly-list { max-height: 190px; }
  .asset-export-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .live-wallet-stats.asset-cockpit-kpis,
  .asset-intelligence-grid,
  .asset-depth-panel,
  .asset-export-center,
  .asset-health-strip {
    margin-inline: 14px;
  }
  .live-wallet-stats.asset-cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-wallet-stats.asset-cockpit-kpis > .asset-kpi {
    min-height: 78px;
  }
  .asset-allocation-content {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .asset-allocation-ring {
    width: 86px;
    height: 86px;
  }
  .asset-token-market-panel > summary > span:last-child label { display: none; }
  .asset-export-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-monitor-page .wallet-asset-row.asset-wallet-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }
  .asset-wallet-card .wallet-token-list {
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-wallet-card-value { grid-column: 1 / -1; grid-row: auto; }
  .asset-wallet-card-foot { display: flex; }
}

@media (max-width: 500px) {
  .live-wallet-stats.asset-cockpit-kpis { grid-template-columns: 1fr; }
  .asset-allocation-content { grid-template-columns: 1fr; justify-items: center; }
  .asset-chain-grid { width: 100%; }
  .asset-export-actions { grid-template-columns: 1fr; }
  .asset-health-strip { grid-template-columns: 1fr; }
  .asset-token-market-panel > summary { align-items: flex-start; }
  .asset-token-market-panel > summary .asset-token-controls { max-width: 180px; }
  .asset-wallet-card-head { flex-direction: column; }
  .asset-wallet-card-status { justify-content: flex-start; }
  .asset-wallet-card .wallet-token-list { grid-template-columns: 1fr; }
  .asset-chain-event,
  .asset-anomaly { grid-template-columns: 23px minmax(0, 1fr); }
  .asset-chain-event time,
  .asset-anomaly time { display: none; }
}

.system-insights {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fbfa, #f5f8fb);
  border: 1px solid #e3e9ec;
  border-radius: 12px;
}

.system-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-insights-head > div {
  display: grid;
  gap: 3px;
}

.system-insights-head strong {
  color: #172333;
  font-size: 12px;
}

.system-insights-head small {
  color: #73808f;
  font-size: 10px;
}

.system-insights-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.system-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #e4e9ec;
  border-radius: 9px;
}

.system-insight > i {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #14835a;
  background: #eaf8f1;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.system-insight > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.system-insight strong {
  color: #273446;
  font-size: 10px;
}

.system-insight small {
  color: #748091;
  font-size: 9px;
  line-height: 1.55;
}

.system-insight.is-warning > i {
  color: #9b6409;
  background: #fff5dc;
}

.system-insight.is-critical > i {
  color: #b32a35;
  background: #feeaec;
}

.system-insight.is-info > i {
  color: #216d98;
  background: #eaf5fb;
}

@media (max-width: 760px) {
  .system-insights-list {
    grid-template-columns: 1fr;
  }
  .system-insights-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Authenticated SSE runtime monitor. The feed is intentionally bounded by the
   client so high-volume audit traffic never creates an unbounded DOM tree. */
.realtime-monitor {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(57, 201, 143, .10), transparent 36%),
    linear-gradient(135deg, #f7fbfa, #f7f9fc);
  border: 1px solid #dfe9e6;
  border-radius: 12px;
}

.realtime-monitor-head,
.realtime-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.realtime-monitor-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.realtime-monitor-head strong,
.realtime-events-head strong {
  color: #172333;
  font-size: 12px;
}

.realtime-monitor-head small,
.realtime-events-head span {
  color: #72808f;
  font-size: 9px;
}

.realtime-status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.realtime-status-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e2e9eb;
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.realtime-status-grid > div:hover {
  border-color: #c9ddd7;
  box-shadow: 0 6px 18px rgba(25, 47, 61, .06);
  transform: translateY(-1px);
}

.realtime-status-grid span {
  overflow: hidden;
  color: #738091;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-status-grid strong {
  overflow: hidden;
  color: #172333;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-status-grid small {
  overflow: hidden;
  color: #7d8997;
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-status-grid > .is-warning {
  background: #fffbf0;
  border-color: #f2dba8;
}

.realtime-status-grid > .is-critical {
  background: #fff7f7;
  border-color: #efc8cc;
}

.realtime-events-head {
  padding-top: 2px;
}

.realtime-events {
  max-height: 214px;
  overflow: auto;
  background: rgba(255, 255, 255, .70);
  border: 1px solid #e3e9ec;
  border-radius: 9px;
  scrollbar-gutter: stable;
}

.realtime-event {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 11px;
  border-bottom: 1px solid #edf1f2;
}

.realtime-event:last-child {
  border-bottom: 0;
}

.realtime-event > i {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #237455;
  background: #eaf8f1;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.realtime-event > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.realtime-event strong,
.realtime-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-event strong {
  color: #293747;
  font-size: 9px;
}

.realtime-event small,
.realtime-event time {
  color: #788593;
  font-size: 8px;
}

.realtime-event time {
  white-space: nowrap;
}

.realtime-event.is-warning > i {
  color: #94600d;
  background: #fff3d6;
}

.realtime-event.is-critical > i {
  color: #af2c38;
  background: #fdebed;
}

.realtime-event.is-info > i {
  color: #286d94;
  background: #eaf5fb;
}

.realtime-event-empty {
  padding: 18px;
  color: #7b8794;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1440px) {
  .realtime-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .realtime-monitor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .realtime-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .realtime-event {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .realtime-event time {
    display: none;
  }
}

@media (max-width: 480px) {
  .realtime-status-grid {
    grid-template-columns: 1fr;
  }
}

/* 资产详情：同设备钱包、剪贴板与扫一扫关联视图 */
.wallet-asset-row.is-interactive {
  cursor: pointer;
}

.wallet-asset-row.is-interactive .wallet-asset-title button {
  cursor: pointer;
}

.wallet-association-panel {
  display: grid;
  gap: 16px;
  margin: 22px 0 26px;
  padding: 18px;
  border: 1px solid #cfe5dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5fcf9 0%, #f7fbfd 58%, #f4f8fc 100%);
}

.wallet-association-heading,
.wallet-association-section-head,
.associated-clipboard-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-association-heading {
  align-items: flex-start;
}

.wallet-association-heading h3,
.wallet-association-section h4 {
  margin: 0;
}

.wallet-association-heading p:last-child {
  margin: 5px 0 0;
  color: #6c7c87;
  font-size: 12px;
}

.wallet-association-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wallet-association-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce9e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
}

.wallet-association-summary span,
.wallet-association-summary small,
.wallet-associated-device span,
.associated-wallet-card small,
.associated-clipboard-card small,
.associated-scan-card small {
  color: #73808d;
  font-size: 11px;
}

.wallet-association-summary strong {
  color: #126d50;
  font-size: 20px;
}

.wallet-association-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-association-section {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e0e8eb;
  border-radius: 13px;
  background: rgba(255, 255, 255, .84);
}

.wallet-association-section-head code {
  max-width: 58%;
  overflow: hidden;
  color: #55707a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-associated-device {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.wallet-associated-device > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f5f8fa;
}

.wallet-associated-device strong {
  overflow: hidden;
  color: #283946;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-association-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wallet-association-details {
  border-top: 1px dashed #d9e3e6;
  padding-top: 10px;
}

.wallet-association-details summary {
  color: #356b5c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.wallet-network-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.wallet-network-list > div {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(160px, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f8fa;
  color: #536470;
  font-size: 11px;
}

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

.associated-wallet-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  color: #273945;
  text-align: left;
  border: 1px solid #dce5e8;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.associated-wallet-card:hover,
.associated-wallet-card:focus-visible {
  border-color: #78caaa;
  box-shadow: 0 8px 24px rgba(26, 109, 79, .10);
  outline: none;
}

.associated-wallet-card.is-current {
  border-color: #55bd92;
  background: #f0fbf6;
}

.associated-wallet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.associated-wallet-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.associated-wallet-title em {
  flex: none;
  color: #208360;
  font-size: 10px;
  font-style: normal;
}

.associated-wallet-card > span:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.associated-wallet-card i {
  padding: 3px 6px;
  color: #366d5e;
  border-radius: 999px;
  background: #e9f6f1;
  font-size: 10px;
  font-style: normal;
}

.associated-wallet-card b {
  color: #167554;
  font-size: 12px;
}

.associated-wallet-card time {
  color: #88939b;
  font-size: 10px;
}

.associated-clipboard-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-gutter: stable;
}

.associated-clipboard-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e1e8ea;
  border-radius: 10px;
  background: #f9fbfc;
}

.associated-clipboard-card pre {
  max-height: 150px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  color: #253942;
  border-radius: 8px;
  background: #eef3f5;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.associated-clipboard-card pre.is-error {
  color: #a8444d;
  background: #fff1f2;
}

.associated-clipboard-card > code,
.associated-scan-card code {
  overflow: hidden;
  color: #8a969f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.associated-scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-gutter: stable;
}

.associated-scan-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e8eb;
  border-radius: 11px;
  background: #f9fbfc;
}

.associated-scan-card .scan-image-preview {
  min-height: 118px;
}

.associated-scan-card > div:last-child {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.associated-scan-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #43545f;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.association-restricted {
  color: #96691e;
  font-size: 10px;
  font-weight: 700;
}

.association-access-box,
.association-empty {
  padding: 14px;
  color: #6c7881;
  border: 1px dashed #d8e1e4;
  border-radius: 10px;
  background: #f8fafb;
}

.association-access-box p,
.association-empty p,
.association-limit-note {
  margin: 5px 0 0;
  color: #7b8790;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .wallet-association-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .associated-scan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wallet-association-panel {
    padding: 12px;
  }
  .wallet-association-heading {
    flex-direction: column;
  }
  .wallet-association-summary,
  .wallet-associated-device,
  .associated-wallet-grid {
    grid-template-columns: 1fr;
  }
  .wallet-network-list > div,
  .associated-scan-card {
    grid-template-columns: 1fr;
  }
  .associated-scan-card .scan-image-preview {
    min-height: 180px;
  }
}

/* Enterprise operations cockpit: compact, real-time and decision focused. */
.cockpit-heading {
  align-items: end;
  min-height: 105px;
  padding-top: 18px;
  padding-bottom: 16px;
}

.cockpit-heading h1 {
  margin-top: 4px;
  font-size: clamp(29px, 2.25vw, 40px);
  letter-spacing: -.055em;
}

.cockpit-heading .muted {
  margin-top: 7px;
  font-size: 12px;
}

.cockpit-heading .update-meta {
  min-width: 210px;
  padding: 11px 14px;
  border: 1px solid rgba(217, 225, 230, .92);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 9px 28px rgba(20, 31, 48, .055);
  backdrop-filter: blur(12px);
}

#summary.cards {
  margin-bottom: 12px;
}

.overview-dashboard {
  gap: 10px;
}

.overview-health-banner {
  min-height: 70px;
  padding: 11px 15px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(20, 31, 48, .05);
}

.overview-health-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.overview-health-icon::before {
  inset: 9px;
}

.overview-health-message strong {
  font-size: 15px;
}

.overview-health-facts > div {
  padding: 7px 10px;
}

.overview-health-facts strong {
  font-size: 16px;
}

.overview-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.overview-kpi {
  min-height: 94px;
  padding: 11px 13px;
  border-radius: 11px;
}

.overview-kpi-label {
  margin-top: 6px;
}

.overview-kpi > strong {
  font-size: 23px;
}

.overview-kpi > small {
  margin-top: 5px;
}

.overview-traffic-card {
  display: grid;
  min-width: 0;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(239, 247, 255, .72), rgba(255, 255, 255, 0) 42%),
    #fff;
  box-shadow: 0 8px 24px rgba(20, 31, 48, .05);
}

.overview-traffic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.overview-traffic-head > div:first-child,
.overview-traffic-period {
  display: grid;
  gap: 2px;
}

.overview-traffic-head > div:first-child > span {
  color: #3479a5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.overview-traffic-head strong {
  color: var(--text);
  font-size: 14px;
}

.overview-traffic-head small,
.overview-traffic-period span {
  color: var(--muted);
  font-size: 9px;
}

.overview-traffic-period {
  min-width: 116px;
  text-align: right;
}

.overview-traffic-period strong {
  color: #245a7f;
  font-size: 17px;
  letter-spacing: -.03em;
}

.overview-traffic-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e2e9ed;
  border-radius: 10px;
  background: #e2e9ed;
}

.overview-traffic-metrics > div {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 12px 9px 15px;
  background: rgba(255, 255, 255, .98);
}

.overview-traffic-metrics > div::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 3px;
  border-radius: 99px;
  background: var(--traffic-tone, #6d7e8b);
}

.overview-traffic-metrics .is-ingress { --traffic-tone: #3d81b7; }
.overview-traffic-metrics .is-egress { --traffic-tone: #16a36a; }
.overview-traffic-metrics .is-total { --traffic-tone: #4159b2; }
.overview-traffic-metrics .is-lifetime { --traffic-tone: #8b5cf6; }

.overview-traffic-metrics span,
.overview-traffic-metrics small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-traffic-metrics strong {
  overflow: hidden;
  color: #263b48;
  font-size: 18px;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-traffic-daily-head,
.overview-traffic-day {
  display: grid;
  grid-template-columns: minmax(100px, 1.1fr) repeat(3, minmax(86px, .8fr));
  gap: 10px;
}

.overview-traffic-daily-head {
  margin-top: 11px;
  padding: 0 10px 5px;
  color: #87939c;
  font-size: 8px;
  text-align: right;
}

.overview-traffic-daily-head span:first-child {
  text-align: left;
}

.overview-traffic-daily {
  max-height: 245px;
  overflow: auto;
  border: 1px solid #e5ebee;
  border-radius: 10px;
  background: rgba(249, 251, 252, .94);
  scrollbar-gutter: stable;
}

.overview-traffic-day {
  position: relative;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px 11px;
  color: #53636e;
  font-size: 9px;
  text-align: right;
}

.overview-traffic-day + .overview-traffic-day {
  border-top: 1px solid #e8edef;
}

.overview-traffic-day > span:first-child {
  display: grid;
  gap: 1px;
  text-align: left;
}

.overview-traffic-day > span:first-child b,
.overview-traffic-day > span:last-of-type strong {
  color: #2f424e;
  font-size: 10px;
}

.overview-traffic-day > span:first-child small {
  color: #8a969e;
  font-size: 7px;
}

.overview-traffic-bar {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  display: flex;
  height: 3px;
  overflow: hidden;
  background: #e9eef1;
  border-radius: 99px;
}

.overview-traffic-bar b,
.overview-traffic-bar em {
  display: block;
  height: 100%;
  min-width: 0;
}

.overview-traffic-bar b {
  background: #5f9fca;
}

.overview-traffic-bar em {
  background: #44bc8e;
}

.overview-traffic-empty {
  display: grid;
  min-height: 110px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
}

.overview-traffic-empty strong {
  color: #43545f;
  font-size: 11px;
}

.overview-traffic-empty small {
  color: var(--muted);
  font-size: 9px;
}

.overview-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
  gap: 10px;
}

.overview-trend-visual-card,
.overview-live-card {
  min-width: 0;
  min-height: 290px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 31, 48, .05);
}

.overview-trend-visual-card {
  background:
    linear-gradient(145deg, rgba(245, 252, 249, .7), rgba(255, 255, 255, 0) 44%),
    #fff;
}

.overview-live-card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0, rgba(31, 181, 125, .08), transparent 38%),
    #fff;
}

.overview-cockpit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overview-cockpit-card-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.overview-cockpit-card-head span:not(.status-chip) {
  color: #17815e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.overview-cockpit-card-head strong {
  color: var(--text);
  font-size: 14px;
}

.overview-cockpit-card-head small {
  color: var(--muted);
  font-size: 9px;
}

.overview-period-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  background: #f4f7f8;
}

.overview-period-switch button {
  min-height: 25px;
  padding: 4px 8px;
  color: #73808b;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  font-size: 9px;
}

.overview-period-switch button:hover,
.overview-period-switch button:focus-visible,
.overview-period-switch button.is-active {
  color: #107451;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 31, 48, .08);
  outline: none;
}

.overview-period-switch button.is-active {
  font-weight: 800;
}

.overview-series-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 11px;
}

.overview-series-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #74818b;
  font-size: 9px;
}

.overview-series-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--series-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--series-color) 12%, transparent);
}

.overview-series-legend b {
  color: #31424e;
  font-size: 10px;
}

.overview-chart-stage {
  min-height: 194px;
  margin-top: 2px;
}

.overview-series-chart {
  display: block;
  width: 100%;
  height: 194px;
  overflow: visible;
}

.overview-chart-gridline {
  stroke: #e8edef;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.overview-chart-axis-label {
  fill: #8a959d;
  font: 8px ui-sans-serif, system-ui, sans-serif;
}

.overview-chart-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .9;
}

.overview-chart-point {
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.overview-chart-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

.overview-chart-empty > span {
  width: 42px;
  height: 24px;
  border-bottom: 2px solid #8bd6b7;
  background: linear-gradient(135deg, transparent 48%, #d9f2e7 49% 55%, transparent 56%);
}

.overview-chart-empty strong {
  color: #42535f;
  font-size: 11px;
}

.overview-chart-empty small {
  font-size: 9px;
}

.overview-live-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.overview-live-status-grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e3eaeb;
  border-radius: 9px;
  background: rgba(248, 251, 250, .92);
}

.overview-live-status-grid > div.is-warning {
  border-color: #efd7ae;
  background: #fffaf1;
}

.overview-live-status-grid span,
.overview-live-status-grid small {
  overflow: hidden;
  color: #7c8891;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-live-status-grid strong {
  overflow: hidden;
  color: #253943;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-live-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 2px 5px;
}

.overview-live-event-head strong {
  color: #43525d;
  font-size: 10px;
}

.overview-live-event-head span {
  color: #849099;
  font-size: 8px;
}

.overview-live-events {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 160px;
  overflow: auto;
  border: 1px solid #e6ebed;
  border-radius: 9px;
  background: rgba(249, 251, 251, .94);
  scrollbar-gutter: stable;
}

.overview-live-events .realtime-event {
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 7px 8px;
}

.overview-live-events .realtime-event > i {
  width: 19px;
  height: 19px;
  font-size: 8px;
}

.overview-live-events .realtime-event strong {
  font-size: 8px;
}

.overview-live-events .realtime-event small,
.overview-live-events .realtime-event time {
  font-size: 7px;
}

.overview-live-empty {
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: 14px;
  color: #87939b;
  font-size: 9px;
  text-align: center;
}

.overview-depth-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 31, 48, .035);
}

.overview-depth-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  padding: 9px 13px;
  cursor: pointer;
  list-style: none;
}

.overview-depth-panel > summary::-webkit-details-marker {
  display: none;
}

.overview-depth-panel > summary > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.overview-depth-panel > summary i {
  color: #208460;
  font-size: 13px;
  font-style: normal;
  transition: transform .18s ease;
}

.overview-depth-panel[open] > summary i {
  transform: rotate(45deg);
}

.overview-depth-panel > summary strong {
  color: #33434e;
  font-size: 11px;
}

.overview-depth-panel > summary small,
.overview-depth-panel > summary b {
  color: #7c8992;
  font-size: 9px;
  font-weight: 500;
}

.overview-depth-panel > summary b {
  flex: 0 0 auto;
}

.overview-depth-panel .overview-detail-grid {
  padding: 0 10px 10px;
}

.operations-center {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.operations-center > summary.operations-center-head {
  min-height: 60px;
  margin: 0;
  padding: 11px 15px;
  cursor: pointer;
  list-style: none;
}

.operations-center > summary::-webkit-details-marker {
  display: none;
}

.operations-center > summary > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operations-center > summary > span:last-child > i {
  color: #78858f;
  font-size: 13px;
  font-style: normal;
  transition: transform .18s ease;
}

.operations-center[open] > summary > span:last-child > i {
  transform: rotate(180deg);
}

.operations-center .operations-center-list {
  padding: 0 14px 14px;
}

.dashboard-shortcuts {
  min-height: 64px;
  margin-bottom: 12px;
  padding: 9px 13px;
}

.dashboard-shortcuts h2 {
  font-size: 13px;
}

.dashboard-shortcut-list button {
  min-height: 46px;
  padding: 6px 9px;
}

.nav-group:has(.nav-link.active) > .nav-group-toggle {
  color: #9fb0c3;
}

.nav-group:has(.nav-link.active) > .nav-group-toggle::after {
  content: "当前";
  margin-left: auto;
  margin-right: 5px;
  padding: 2px 5px;
  color: #63d6a7;
  border: 1px solid rgba(81, 226, 161, .18);
  border-radius: 999px;
  background: rgba(81, 226, 161, .07);
  font-size: 7px;
  letter-spacing: 0;
}

.nav-group:has(.nav-link.active) > .nav-group-toggle i {
  color: #79c9aa;
}

.nav-group .nav-group-items {
  position: relative;
  margin-left: 5px;
  padding-left: 5px;
  border-left: 1px solid rgba(148, 163, 184, .09);
}

.nav-group .nav-link.active {
  box-shadow: inset 2px 0 0 rgba(81, 226, 161, .72);
}

@media (max-width: 1380px) {
  .overview-cockpit-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr);
  }
  .overview-health-banner {
    grid-template-columns: minmax(260px, 1fr) minmax(380px, 1.1fr);
  }
}

@media (max-width: 1120px) {
  .overview-cockpit-grid,
  .overview-health-banner {
    grid-template-columns: 1fr;
  }
  .overview-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-trend-visual-card,
  .overview-live-card {
    min-height: 0;
  }
  .overview-live-events {
    max-height: 190px;
  }
}

@media (max-width: 760px) {
  .cockpit-heading {
    align-items: stretch;
    padding-top: 12px;
  }
  .cockpit-heading .update-meta {
    min-width: 0;
  }
  .overview-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-health-facts,
  .overview-live-status-grid {
    grid-template-columns: 1fr;
  }
  .overview-health-facts > div + div {
    border-top: 1px solid #e6eaf0;
    border-left: 0;
  }
  .overview-traffic-head {
    display: grid;
  }
  .overview-traffic-period {
    min-width: 0;
    text-align: left;
  }
  .overview-traffic-daily {
    overflow-x: auto;
  }
  .overview-traffic-daily-head,
  .overview-traffic-day {
    min-width: 470px;
  }
  .overview-live-status-grid > div {
    grid-template-columns: 90px minmax(80px, .65fr) minmax(0, 1fr);
    align-items: center;
  }
  .overview-cockpit-card-head {
    flex-direction: column;
  }
  .overview-depth-panel > summary > span {
    display: grid;
    grid-template-columns: auto 1fr;
  }
  .overview-depth-panel > summary small {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .overview-kpi-grid {
    grid-template-columns: 1fr;
  }
  .overview-traffic-metrics {
    grid-template-columns: 1fr;
  }
  .overview-kpi {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    min-height: 78px;
  }
  .overview-kpi-top {
    grid-row: 1 / 3;
    align-self: start;
    margin-right: 4px;
  }
  .overview-kpi-top i {
    display: none;
  }
  .overview-kpi-label,
  .overview-kpi > strong,
  .overview-kpi > small {
    grid-column: 2;
    margin-top: 0;
  }
  .overview-kpi > small {
    white-space: normal;
  }
  .overview-series-legend {
    gap: 7px 10px;
  }
  .overview-live-status-grid > div {
    grid-template-columns: 1fr;
  }
  .overview-live-events .realtime-event {
    grid-template-columns: 19px minmax(0, 1fr);
  }
  .overview-live-events .realtime-event time {
    display: none;
  }
  .overview-depth-panel > summary b,
  .operations-center-head p:not(.eyebrow) {
    display: none;
  }
}

/* APP management center --------------------------------------------------- */
.app-center-version {
  align-self: center;
  padding: 10px 14px;
  border: 1px solid var(--line, #d9e2ec);
  border-radius: 12px;
  background: var(--panel, #fff);
  color: var(--muted, #667085);
  white-space: nowrap;
}

.app-center-version strong { color: var(--ink, #17212b); }

.app-center-panel { overflow: hidden; }

.app-center-tabs {
  display: flex;
  gap: 8px;
  margin: -4px -4px 24px;
  padding: 4px 4px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line, #e4e7ec);
}

.app-center-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #667085);
  font-weight: 700;
}

.app-center-tab.active {
  border-color: rgba(47, 111, 237, .22);
  background: rgba(47, 111, 237, .09);
  color: var(--accent, #2f6fed);
}

.app-center-pane { display: none; }
.app-center-pane.active { display: block; }

.app-center-form > label,
.app-center-form .app-center-grid > label,
.app-center-form .app-center-json-grid > label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--ink, #17212b);
  font-weight: 650;
}

.app-center-form input:not([type="checkbox"]),
.app-center-form textarea {
  width: 100%;
}

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

.app-center-check {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  min-height: 42px;
}

.app-center-check input { width: 18px; height: 18px; }

.apk-build-card {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 14px;
  background: var(--surface-muted, #f8fafc);
}

.apk-build-head,
.apk-build-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.apk-build-head { justify-content: space-between; }
.apk-build-head > div { display: grid; gap: 4px; }
.apk-build-head small { color: var(--muted, #667085); }

.apk-build-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8eef7;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.apk-build-badge[data-status="queued"],
.apk-build-badge[data-status="building"] { background: #fff3d8; color: #9a6700; }
.apk-build-badge[data-status="succeeded"] { background: #dcfae6; color: #067647; }
.apk-build-badge[data-status="failed"] { background: #fee4e2; color: #b42318; }

.apk-build-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.apk-build-details > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
}

.apk-build-details dt { color: var(--muted, #667085); font-size: 12px; }
.apk-build-details dd { margin: 5px 0 0; color: var(--ink, #17212b); font-weight: 700; }
.apk-build-hash-row { grid-column: 1 / -1; }
.apk-build-hash-row dd { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.apk-build-error { margin: 0; color: #b42318; overflow-wrap: anywhere; }
.apk-build-actions .button-link { text-decoration: none; }

@media (max-width: 720px) {
  .apk-build-details { grid-template-columns: 1fr; }
  .apk-build-hash-row { grid-column: auto; }
}

.code-input {
  min-height: 148px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  tab-size: 2;
}

.app-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.app-feature-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(60px, auto) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  background: var(--surface-muted, #f8fafc);
}

.app-feature-name {
  color: var(--text, #101828);
  font-size: 15px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-feature-state { font-size: 12px; color: var(--muted, #667085); white-space: nowrap; }
.app-feature-enabled { width: 20px; height: 20px; }

.scan-upload-status {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.scan-upload-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scan-upload-attention {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scan-upload-attention article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 10px;
  background: var(--surface-muted, #f8fafc);
}

.scan-upload-attention article > span,
.scan-upload-attention article > code,
.scan-upload-attention article > small {
  overflow: hidden;
  color: var(--muted, #667085);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-upload-attention article > code,
.scan-upload-attention article > small {
  grid-column: 1 / -1;
}

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

.app-api-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  background: var(--surface-muted, #f8fafc);
}

.app-api-summary span { color: var(--muted, #667085); font-size: 12px; }
.app-api-summary strong { overflow-wrap: anywhere; }

.app-permission-panel { margin-top: 26px; }
.app-permission-panel > h3 { margin-bottom: 14px; }
#app-permission-list { display: grid; gap: 14px; }

.app-permission-card {
  padding: 16px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 14px;
}

.app-permission-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.app-permission-card header div { display: grid; gap: 3px; }
.app-permission-card small { color: var(--muted, #667085); }

.app-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.app-permission-grid label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.app-permission-grid input { width: 17px; height: 17px; }

@media (max-width: 1000px) {
  .app-center-grid,
  .app-center-json-grid,
  .app-feature-list { grid-template-columns: 1fr; }
  .app-api-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-upload-attention { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .app-api-summary,
  .app-permission-grid { grid-template-columns: 1fr; }
  .app-feature-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .app-feature-state { display: none; }
}
.app-version-apk-sync {
  margin: -0.2rem 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #b8e2cf;
  border-radius: 12px;
  background: #effaf5;
  color: #087a50;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

#app-version-current[readonly] {
  background: #f3f7f5;
  color: #1b5e47;
  cursor: default;
}

/* AUTH GATE 20260828: the administration workspace is rendered only after authentication. */
body.auth-locked {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 184, 124, .18), transparent 32rem),
    radial-gradient(circle at 90% 90%, rgba(46, 109, 246, .14), transparent 34rem),
    linear-gradient(145deg, #071525 0%, #0b2031 50%, #0a1726 100%);
}

body.auth-locked::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body.auth-locked .app-shell,
body.auth-locked .sidebar-overlay,
body.auth-locked #toast-region,
body.auth-locked #back-to-top {
  display: none !important;
}

.auth-gate-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  color: #12243b;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 34px 100px rgba(0, 10, 24, .45), 0 1px 0 rgba(255,255,255,.8) inset;
}

.auth-gate-dialog::backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 184, 124, .16), transparent 34rem),
    radial-gradient(circle at 85% 84%, rgba(46, 109, 246, .14), transparent 36rem),
    rgba(5, 16, 29, .92);
  backdrop-filter: blur(8px);
}

.auth-gate-dialog form {
  display: grid;
  gap: 15px;
  padding: 34px 34px 32px;
}

.auth-gate-brand {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 17px;
  color: #062c21;
  background: linear-gradient(145deg, #45e2a6, #21bf86);
  box-shadow: 0 13px 30px rgba(23, 178, 120, .27);
}

.auth-gate-brand span {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.auth-gate-dialog .eyebrow {
  margin: 1px 0 -8px;
  color: #14845f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.auth-gate-dialog h1 {
  margin: 0;
  color: #0d2038;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.auth-gate-dialog .auth-gate-subtitle {
  margin: -6px 0 3px;
  color: #6a788b;
  font-size: 14px;
}

.auth-gate-dialog label {
  display: grid;
  gap: 7px;
}

.auth-gate-dialog label > span {
  color: #40526a;
  font-size: 13px;
  font-weight: 750;
}

.auth-gate-dialog input,
.auth-gate-dialog select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cbd7e4;
  border-radius: 12px;
  outline: none;
  color: #102239;
  background: #f8fbfd;
  box-shadow: 0 1px 2px rgba(10, 36, 61, .03) inset;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-gate-dialog input:focus,
.auth-gate-dialog select:focus {
  border-color: #20b982;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 185, 130, .13);
}

.auth-gate-dialog button[type="submit"] {
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #16aa76, #087a59);
  box-shadow: 0 13px 27px rgba(13, 139, 96, .24);
}

.auth-gate-dialog button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.auth-gate-dialog button[type="submit"]:disabled {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 560px) {
  .auth-gate-dialog {
    width: min(430px, calc(100vw - 22px));
    max-height: calc(100dvh - 22px);
    border-radius: 20px;
  }
  .auth-gate-dialog form {
    gap: 13px;
    padding: 25px 21px 23px;
  }
  .auth-gate-brand {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
  .auth-gate-dialog input,
  .auth-gate-dialog select,
  .auth-gate-dialog button[type="submit"] {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (max-height: 620px) {
  .auth-gate-dialog form {
    gap: 10px;
    padding-block: 19px;
  }
  .auth-gate-brand {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .auth-gate-dialog .auth-gate-subtitle { display: none; }
}

.auth-gate-error {
  margin: -3px 0 0;
  padding: 10px 12px;
  border: 1px solid #f3c6c6;
  border-radius: 10px;
  color: #a32727;
  background: #fff4f4;
  font-size: 13px;
  line-height: 1.45;
}
.auth-gate-error:empty { display: none; }

/* APP real-time operations center */
.operations-dashboard {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #dbe6ee;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbfd 0%, #fff 58%, #f2f8f8 100%);
  box-shadow: 0 14px 36px rgb(15 23 42 / 7%);
}
.operations-dashboard-head,
.operations-dashboard-head > div,
.operations-chart-panel header,
.behavior-paths-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.operations-dashboard-head h2 { margin: 3px 0 6px; }
.operations-dashboard-head p:last-child { margin: 0; color: #64748b; }
.operations-range { display: flex; gap: 6px; }
.operations-range button {
  padding: 8px 13px;
  border: 1px solid #d7e2e9;
  border-radius: 999px;
  color: #475569;
  background: #fff;
}
.operations-range button.is-active { color: #fff; border-color: #0f766e; background: #0f766e; }
.operations-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.operations-kpis article,
.realtime-user-stats article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgb(255 255 255 / 88%);
}
.operations-kpis article.is-live { border-color: #99d7c9; background: #eefbf7; }
.operations-kpis span,
.realtime-user-stats span { display: block; color: #64748b; font-size: 12px; }
.operations-kpis strong,
.realtime-user-stats strong { display: block; margin: 6px 0 4px; color: #0f172a; font-size: clamp(20px, 2vw, 29px); }
.operations-kpis small,
.realtime-user-stats small { color: #94a3b8; }
.operations-visual-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 14px; margin-top: 14px; }
.operations-chart-panel { min-width: 0; padding: 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.operations-chart-panel header small { display: block; color: #0f766e; font-size: 10px; letter-spacing: .12em; }
.operations-chart-panel header span { color: #94a3b8; font-size: 12px; }
.operations-trend-chart { display: flex; align-items: flex-end; gap: 8px; min-height: 210px; margin-top: 16px; overflow-x: auto; }
.operations-trend-column { flex: 1 0 34px; min-width: 34px; text-align: center; }
.operations-trend-column > div { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 170px; border-bottom: 1px solid #e2e8f0; }
.operations-trend-column i { display: block; width: 28%; min-height: 3px; border-radius: 4px 4px 0 0; background: #14b8a6; }
.operations-trend-column i.is-launch { background: #3b82f6; }
.operations-trend-column i.is-view { background: #f59e0b; }
.operations-trend-column span { display: block; margin-top: 7px; color: #94a3b8; font-size: 10px; }
.operations-os-chart { display: grid; gap: 13px; margin-top: 18px; }
.operations-os-chart > div { display: grid; grid-template-columns: 90px minmax(80px, 1fr) 95px; align-items: center; gap: 9px; font-size: 12px; }
.operations-os-chart i { height: 7px; overflow: hidden; border-radius: 999px; background: #e8eef2; }
.operations-os-chart b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.realtime-user-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.realtime-users-filter { grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, .4fr)); }
.online-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #64748b; font-weight: 700; }
.online-state i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px rgb(148 163 184 / 12%); }
.online-state.is-online { color: #087f5b; }
.online-state.is-online i { background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / 15%); }
.user-identity { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0f766e, #2dd4bf); font-weight: 800; }
.user-identity code,
.realtime-users-table td > code,
.realtime-users-table td > small { display: block; margin-top: 4px; }
.behavior-paths { margin: 14px 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.behavior-paths-head span { color: #94a3b8; font-size: 12px; }
.behavior-path-list { display: grid; gap: 8px; margin-top: 10px; }
.behavior-path-list article { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(240px, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; }
.behavior-path-list article p { margin: 0; color: #334155; overflow-wrap: anywhere; }
.behavior-path-list article small,
.behavior-path-list article > span { display: block; color: #94a3b8; font-size: 11px; }
.input-with-unit { display: flex; align-items: center; gap: 8px; }
.input-with-unit input { flex: 1; }
.input-with-unit em { color: #64748b; font-style: normal; }

@media (max-width: 1300px) {
  .operations-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .operations-dashboard-head,
  .operations-visual-grid { display: grid; grid-template-columns: 1fr; }
  .operations-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realtime-users-filter { grid-template-columns: 1fr 1fr; }
  .behavior-path-list article { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 620px) {
  .operations-dashboard { padding: 15px; }
  .operations-kpis,
  .realtime-user-stats,
  .realtime-users-filter { grid-template-columns: 1fr; }
  .operations-range { overflow-x: auto; }
}

@media (min-width: 1800px) {
  .operations-kpis { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .operations-dashboard { padding: 28px; }
}

