:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #06152d;
  --muted: #607092;
  --line: #d9e3f0;
  --line-soft: #e9eef6;
  --blue: #1f66ff;
  --blue-dark: #1557df;
  --blue-soft: #eef5ff;
  --green: #099268;
  --green-soft: #e9f8f1;
  --red: #d92d20;
  --red-soft: #fff0ef;
  --orange: #dc6803;
  --orange-soft: #fff5e8;
  --shadow: 0 18px 45px rgba(28, 45, 74, 0.08);
  --bybiteye-column-width: 440px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 102, 255, 0.2);
  outline-offset: 1px;
}

[hidden] {
  display: none !important;
}

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

.orders-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.orders-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dce6f2;
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: orders-spin 0.8s linear infinite;
}

.orders-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: rgba(243, 246, 250, 0.2);
  padding: 0;
  cursor: wait;
}

.orders-busy-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(21, 94, 239, 0.13);
  box-shadow: 0 1px 4px rgba(21, 94, 239, 0.16);
}

.orders-busy-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #155eef 0%, #4d88ff 58%, #8bb2ff 100%);
  animation: orders-busy-progress 1.05s ease-in-out infinite;
}

@keyframes orders-busy-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(360%); }
}

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

.orders-shell {
  width: min(1780px, 100%);
  margin: 0 auto;
  padding: 22px 30px 34px;
}

:is(.orders-header, .orders-workspace) {
  width: min(100%, 1552px);
  max-width: 1552px;
}

.orders-header {
  display: flex;
  width: 100%;
  max-width: 1552px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.orders-brand {
  flex: 1 1 500px;
  min-width: 0;
}

.orders-brand-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  color: #586780;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.orders-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.orders-logo {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(24, 33, 47, 0.15);
}

.orders-exchange-nav {
  display: flex;
  align-items: center;
  flex: 0 0 42px;
  width: min(500px, 100%);
  min-width: 450px;
  max-width: 500px;
  height: 42px;
  gap: 8px;
}

.orders-exchange-tabs {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.orders-exchange-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.orders-exchange-tab:hover,
.orders-exchange-tab:focus-visible {
  background: #f6f8fb;
  outline: none;
}

.orders-exchange-tab.is-active {
  border-color: #cfd9e6;
  background: #f5f8fc;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.orders-exchange-tab:active {
  transform: translateY(1px);
}

.orders-exchange-tab-coming-soon {
  pointer-events: none;
  cursor: default;
  opacity: 0.72;
}

.orders-p2p-tab {
  gap: 7px;
  color: #17233a;
  cursor: default;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  white-space: nowrap;
}

.orders-order-tab {
  flex: 0 0 96px;
  min-width: 96px;
  min-height: 42px;
  border-radius: 8px;
}

.orders-nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.orders-p2p-tab:active {
  transform: none;
}

.orders-exchange-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.orders-exchange-logo-bybit {
  width: 48px;
  max-height: 17px;
}

.orders-exchange-logo-htx {
  width: 48px;
  max-height: 19px;
}

.orders-exchange-logo-rapira {
  width: 54px;
  max-height: 18px;
}

.orders-exchange-logo-bitpapa {
  width: 68px;
  max-height: 18px;
}

.orders-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  border: 1px solid #8eb6f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff 0%, #edf5ff 100%);
  color: #102a56;
  padding: 3px 10px 3px 4px;
  white-space: nowrap;
}

.orders-page-chip > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.orders-brand h1 {
  margin: 22px 0 2px;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.1;
}

.orders-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.orders-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.orders-live {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  padding: 8px 12px;
}

.orders-live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #98a2b3;
  box-shadow: 0 0 0 5px rgba(152, 162, 179, 0.12);
}

.orders-live[data-state="online"] .orders-live-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(9, 146, 104, 0.12);
}

.orders-live[data-state="error"] .orders-live-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(217, 45, 32, 0.12);
}

.orders-live > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.orders-live strong {
  font-size: 13px;
}

.orders-live small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-account,
.orders-session-chip {
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
}

.orders-account {
  min-width: 190px;
  padding: 0 8px 0 12px;
}

.orders-account-profile {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  color: #17233a;
  text-decoration: none;
}

.orders-account-profile strong,
.orders-account-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-account-profile strong {
  font-size: 13px;
}

.orders-account-profile small {
  color: var(--muted);
  font-size: 11px;
}

.orders-account-settings {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #8491a5;
}

.orders-account-settings:hover {
  background: #f5f8fc;
  color: var(--blue);
}

.orders-account-settings svg {
  width: 18px;
  height: 18px;
}

.orders-notifications {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  flex: 0 0 54px;
  width: 54px;
  height: 68px;
  overflow: hidden;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.orders-notifications::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  height: 1px;
  background: #edf1f6;
}

.orders-notifications[data-state="active"] {
  border-color: #b7e5d4;
}

.orders-bell-icon,
.orders-telegram-icon {
  display: grid;
  place-items: center;
}

.orders-bell-icon {
  color: #087e61;
}

.orders-telegram-icon {
  color: #229ed9;
}

.orders-notifications svg {
  width: 19px;
  height: 19px;
}

.orders-session-chip {
  display: grid;
  min-width: 106px;
  padding: 7px 10px;
  text-align: center;
}

.orders-session-chip strong {
  overflow: hidden;
  max-width: 120px;
  color: #17233a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-session-chip > span {
  height: 1px;
  margin: 5px 0;
  background: #edf1f6;
}

.orders-logout {
  border: 0;
  background: transparent;
  color: #344054;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
}

.orders-logout:hover {
  color: var(--blue);
}

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

.summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 12px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 15px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.summary-card > span {
  color: #43516a;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

.summary-card strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #12223c;
  font-size: 30px;
  line-height: 1;
}

.summary-card small {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
}

.summary-card-primary {
  border-color: #cbdcf9;
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
}

.summary-card-primary strong {
  color: var(--blue);
}

.summary-card-action strong {
  color: var(--green);
}

.summary-card-warning strong {
  color: var(--orange);
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.orders-workspace {
  display: grid;
  width: 100%;
  max-width: 1552px;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 12px;
  min-height: 700px;
  height: auto;
}

.orders-queue {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 1092px;
  min-height: 1092px;
  min-width: 0;
  align-self: start;
  overflow: hidden;
}

.orders-queue:has(.queue-tab[data-scope="completed"].is-active) {
  grid-template-rows: auto auto auto auto auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.queue-header,
.chat-header,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.queue-header {
  min-height: 62px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.queue-updated-at {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  background: #fff;
  color: #667085;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.queue-refresh-icon {
  flex: 0 0 auto;
  color: #2e405c;
  width: 15px;
  height: 15px;
}

.queue-header h2,
.detail-header h2,
.chat-header h3,
.detail-section h3 {
  margin: 0;
}

.queue-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.queue-title-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #101828;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.queue-header p,
.chat-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  color: #52627a;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.icon-button:hover {
  border-color: #aebdce;
  color: var(--blue);
}

.icon-button.is-loading {
  animation: orders-spin 0.8s linear infinite;
}

.queue-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 10px 14px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f5f7fa;
  padding: 3px;
}

.queue-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65738b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.queue-tab.is-active {
  background: #ffffff;
  color: #15243d;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.queue-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 7px;
  padding: 0 14px 11px;
  border-bottom: 1px solid var(--line-soft);
}

.queue-search input,
.queue-status select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  color: #17233a;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
}

.queue-status {
  position: relative;
  display: block;
}

.queue-status select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
}

.queue-status-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #8b95a5;
  border-bottom: 2px solid #8b95a5;
  pointer-events: none;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.queue-status.is-open .queue-status-arrow {
  transform: translateY(-70%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .queue-status-arrow {
    transition: none;
  }
}

.queue-search input::placeholder {
  color: #98a2b3;
}

.orders-list {
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 12px 10px 14px 14px;
  scrollbar-color: #9aa0a8 transparent;
  scrollbar-width: thin;
}

.orders-list::-webkit-scrollbar {
  width: 6px;
}

.orders-list::-webkit-scrollbar-track {
  background: transparent;
}

.orders-list::-webkit-scrollbar-thumb {
  min-height: 36px;
  border-radius: 999px;
  background: #9aa0a8;
}

.orders-queue:has(.queue-tab[data-scope="completed"].is-active) .orders-list {
  height: auto;
  max-height: none;
  overflow-y: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.orders-list.is-active-scroll {
  height: var(--active-orders-list-height);
  max-height: var(--active-orders-list-height);
  min-height: 0;
  overflow-y: auto;
}

.order-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  gap: 9px;
  border: 1px solid #dfe6ef;
  border-radius: 15px;
  background: #ffffff;
  color: inherit;
  padding: 38px 16px 14px;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.04);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.order-row + .order-row {
  margin-top: 12px;
}

.order-row:hover {
  border-color: #c8d4e3;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 33, 47, 0.08);
}

.order-row.is-selected {
  border-color: #9fbcf7;
  background: #f2f7ff;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.05);
}

.order-row-user-line,
.order-row-tag-line,
.order-row-amount-line,
.order-row-detected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.order-row-user-line {
  display: flex;
  min-height: 19px;
}

.order-row-side {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 21px;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
}

.order-row-side.buy {
  background: #d9ead3;
  color: #067647;
}

.order-row-side.sell {
  background: #e6b8af;
  color: #842c24;
}

.side-badge.buy {
  background: #d9ead3;
  color: #067647;
}

.side-badge.sell {
  background: #e6b8af;
  color: #842c24;
}

.order-row-created {
  color: #66758d;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.order-row-tag-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.order-row-tags {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  overflow: hidden;
}

.order-row-status {
  display: block;
  min-width: 0;
  min-height: 21px;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f5f8;
  color: #52627a;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-status.new {
  background: rgba(47, 107, 255, 0.1);
  color: #3f5f9f;
}

.order-row-status.action {
  background: #d9ead3;
  color: #067647;
}

.order-row-status.completed {
  background: #d9ead3;
  color: #067647;
}

.order-row-status.warning {
  background: #fff4e8;
  color: #c45f08;
}

.order-row-status.paid {
  background: #eaecf0;
  color: #475467;
}

.order-row-status.cancel-request {
  background: #fce5cd;
  color: #b54708;
}

.order-row-status.danger {
  background: #feeceb;
  color: #d92d20;
}

.order-row-status.muted-danger {
  background: #e6b8af;
  color: #842c24;
}

.order-row-token {
  display: block;
  flex: 0 0 auto;
  min-height: 21px;
  border-radius: 6px;
  background: #d0e0e3;
  color: #52627a;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  white-space: nowrap;
}

.order-row-number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: block;
  max-width: 245px;
  overflow: hidden;
  margin: 0;
  border: 0;
  padding: 7px 28px 7px 14px;
  border-radius: 8px 0 22px 0;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
  color: #66758d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.74);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-number::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 18px;
  border-radius: 0 0 0 18px;
  background: rgba(255, 255, 255, 0.68);
  opacity: 0.72;
}

.order-row-number.is-new {
  color: #155eef;
  font-weight: 600;
}

.order-row-user {
  overflow: hidden;
  color: #07111f;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-meta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 24px;
  line-height: 1;
}

.order-row-amount-line {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e6ebf2;
  color: #101827;
  font-size: 13px;
  line-height: 1.1;
}

.order-row-amount-line strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.order-row-amount-line > span {
  color: #98a2b3;
}

.order-row-detected {
  justify-content: flex-start;
  color: #66758d;
  font-size: 12px;
  line-height: 15px;
}

.order-row-detected em {
  flex: 0 0 auto;
  font-style: normal;
}

.order-row-detected time {
  overflow: hidden;
  color: #52627a;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-timer {
  color: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.order-row-timer-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  color: #66758d;
}

.order-row-timer-wrap.is-urgent {
  color: var(--red);
}

.order-row-timer-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1.4px solid currentColor;
  border-radius: 999px;
}

.order-row-timer-icon::before,
.order-row-timer-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 1px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 100%;
}

.order-row-timer-icon::before {
  height: 3.5px;
}

.order-row-timer-icon::after {
  height: 3px;
  transform: rotate(120deg);
}

.unread-indicator {
  position: relative;
  display: block;
  width: 32px;
  height: 24px;
  flex: 0 0 32px;
  align-self: center;
}

.unread-envelope {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 28px;
  height: 19px;
  overflow: hidden;
  border-radius: 6px;
  background: #b9d5fb;
  box-shadow: 0 1px 3px rgba(46, 111, 206, 0.16);
  transform: translateY(-50%);
}

.unread-envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #579af4;
  clip-path: polygon(0 0, 100% 0, 50% 76%);
}

.unread-count {
  position: absolute;
  top: -1px;
  right: 0;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #579af4;
  color: #ffffff;
  padding: 0 3px;
  box-shadow: 0 1px 4px rgba(46, 111, 206, 0.22);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* Bybit mobile order-card layout. */
.orders-list {
  padding: 0 0 14px;
}

.order-row {
  content-visibility: auto;
  contain-intrinsic-block-size: 168px;
  display: block;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e8e9eb;
  border-radius: 0;
  background: #ffffff;
  padding: 17px 14px 15px;
  box-shadow: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.order-row + .order-row {
  margin-top: 0;
}

.order-row:hover {
  border-color: #e8e9eb;
  background: #fbfcfd;
  box-shadow: none;
}

.order-row.is-selected {
  border-color: #e8e9eb;
  background: #f6f7f8;
  box-shadow: none;
}

.order-row-heading,
.order-row-direction,
.order-row-status-wrap,
.order-row-footer,
.order-row-field,
.order-row-id-value {
  display: flex;
  align-items: center;
  min-width: 0;
}

.order-row-heading,
.order-row-footer,
.order-row-field {
  justify-content: space-between;
}

.order-row-heading {
  gap: 10px;
  line-height: 20px;
}

.order-row-heading.has-cancel-review-timer {
  flex-wrap: wrap;
  gap: 6px;
}

.order-row-heading.has-cancel-review-timer .order-row-status-wrap {
  flex: 1 1 165px;
  justify-content: flex-end;
}

.order-row-heading.has-cancel-review-timer .order-row-status {
  font-size: 12px;
  white-space: nowrap;
}

.order-row-direction {
  flex: 1 1 auto;
  gap: 5px;
}

.order-row .order-row-side,
.order-row .order-row-token {
  display: inline;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.order-row .order-row-side.buy {
  color: #04b86e;
}

.order-row .order-row-side.sell {
  color: #ed3f5b;
}

.order-row .order-row-token {
  color: #16181c;
}

.order-row-status-wrap {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.order-row .order-row-status {
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: #04b86e;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.order-row .order-row-status.completed,
.order-row .order-row-status.action {
  background: transparent;
  color: #04b86e;
}

.order-row .order-row-status.muted-danger,
.order-row .order-row-status.paid {
  background: transparent;
  color: #81858c;
}

.order-row .order-row-status.danger {
  background: transparent;
  color: #ed3f5b;
}

.order-row .order-row-status.warning,
.order-row .order-row-status.cancel-request {
  background: transparent;
  color: #d97904;
}

.order-row .order-row-status.new {
  background: transparent;
  color: #d97904;
}

.order-row .order-row-status.coin-transfer {
  background: transparent;
  color: #d97904;
}

.order-row .order-row-amount-line,
.order-row-fields {
  display: grid;
  width: 100%;
  justify-content: stretch;
  gap: 6px;
  margin-top: 12px;
  border: 0;
  padding: 0;
  color: #16181c;
  font-size: 13px;
  line-height: 18px;
}

.order-row-field {
  gap: 12px;
}

.order-row-field-label {
  flex: 0 0 auto;
  color: #81858c;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.order-row-field-value {
  min-width: 0;
  overflow: hidden;
  color: #16181c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-field-amount .order-row-field-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.order-row-id-value {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 7px;
}

.order-row .order-row-number {
  position: static;
  z-index: auto;
  display: block;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #16181c;
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: clip;
}

.order-row .order-row-number::after {
  display: none;
}

.order-row .order-row-number.is-new {
  color: #16181c;
  font-weight: 400;
}

.order-row-copy-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.order-row-copy-icon::before,
.order-row-copy-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
  background: #ffffff;
}

.order-row-copy-icon::before {
  top: 0;
  right: 0;
}

.order-row-copy-icon::after {
  bottom: 0;
  left: 0;
}

.order-row-footer {
  gap: 8px;
  margin-top: 11px;
}

.order-row .order-row-user-line {
  position: relative;
  display: inline-flex;
  max-width: 54%;
  min-height: 25px;
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: 6px;
  border: 1px solid #d9dade;
  border-radius: 999px;
  background: #ffffff;
  padding: 2px 10px;
}

.order-row-chat-icon {
  position: relative;
  width: 13px;
  height: 11px;
  flex: 0 0 13px;
  border: 1.2px solid #4b4e53;
  border-radius: 3px;
}

.order-row-chat-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -3px;
  width: 4px;
  height: 4px;
  border-bottom: 1.2px solid #4b4e53;
  border-left: 1.2px solid #4b4e53;
  background: #ffffff;
  transform: skewY(-35deg);
}

.order-row-chat-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  width: 5px;
  border-top: 1.2px dotted #4b4e53;
}

.order-row .order-row-user {
  min-width: 0;
  color: #303238;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.order-row .order-row-detected {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #81858c;
  font-size: 11px;
  line-height: 15px;
}

.order-row .order-row-detected time {
  color: #81858c;
  font-size: 11px;
  line-height: 15px;
}

.order-row .order-row-timer-wrap {
  flex: 0 0 auto;
  color: #81858c;
  font-size: 11px;
}

.order-row .unread-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.order-row .unread-count {
  position: static;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 1.5px solid #ffffff;
  background: #ed3f5b;
  padding: 0 2px;
  box-shadow: none;
  font-size: 9px;
}

.order-row-timer.is-urgent,
.detail-status-block strong.is-urgent,
.detail-order-card #detailTimer.is-urgent {
  color: var(--red);
}

.empty-list,
.list-error {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.empty-list strong,
.list-error strong {
  color: #344054;
  font-size: 14px;
}

.empty-list p,
.list-error p {
  max-width: 280px;
  margin: 0;
  font-size: 12px;
}

.list-error strong {
  color: var(--red);
}

.load-older {
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  color: #66758d;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}

.load-older:hover {
  background: #f8fbff;
  color: #475467;
}

.load-older.is-loading,
.load-older.is-loading:hover,
.load-older.is-loading:disabled {
  cursor: wait;
  opacity: 1;
  color: #66758d;
  background: #f8fafc;
}

.orders-pagination {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid #e7edf5;
  background: #f8fbff;
}

.orders-pagination[hidden] {
  display: none;
}

.orders-page-controls {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
}

.orders-page-controls button {
  display: grid;
  width: auto;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: #f5f7fa;
  color: #121214;
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.orders-page-controls button:first-child,
.orders-page-controls button:last-child {
  font-size: 16px;
}

.orders-page-controls button:hover,
.orders-page-controls button:focus-visible {
  border-color: #b9ceff;
  background: #eef6ff;
  color: #155eef;
}

.orders-page-controls button.active {
  background: #155eef;
  color: #fff;
  font-weight: 600;
}

.orders-page-controls button:active:not(:disabled) {
  transform: scale(0.96);
}

.orders-page-controls button:disabled {
  background: #f5f7fa;
  color: #adb1b8;
  cursor: not-allowed;
}

.orders-page-ellipsis {
  display: grid;
  width: 16px;
  height: 32px;
  place-items: center;
  color: #81858c;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 32px;
}

.order-detail {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.order-detail.is-empty {
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 734px;
  min-height: 734px;
  gap: 0 !important;
  place-items: center;
  align-self: start;
  overflow: hidden;
}

#orderDetailPanel.is-empty :is(.bybiteye-content-row, .bybiteye-main-row) {
  display: contents !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.order-detail:has(.order-content:not([hidden])) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.order-empty {
  position: absolute;
  inset: 0;
  display: flex;
  width: auto;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px;
  text-align: center;
}

.order-detail.is-empty > .order-empty {
  height: 100%;
}

/*
 * BybitEye temporarily changes layout state while an order is mounted.  Keep
 * the empty placeholder independent from the grid item sizing that remains
 * after the order is closed with Escape.
 */
#orderDetailPanel > #orderEmpty:not([hidden]) {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.order-empty-illustration {
  display: block;
  width: 160px;
  height: 120px;
  flex: 0 0 auto;
}

.order-empty .order-empty-subtitle {
  margin: 8px 0 0;
  color: #81858c;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.order-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: auto;
  min-height: 100%;
}

.detail-header {
  min-height: 77px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 18px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.side-badge {
  display: grid;
  min-width: 72px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-title h2 {
  font-size: 18px;
}

.order-id {
  overflow: hidden;
  display: block;
  max-width: 300px;
  margin: 3px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-id:hover {
  color: var(--blue);
}

.detail-status-block {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.detail-status-block strong {
  color: #344054;
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 7px;
  background: #f2f4f7;
  color: #475467;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.action {
  background: #d9ead3;
  color: #067647;
}

.status-badge.completed {
  background: #d9ead3;
  color: #067647;
}

.status-badge.warning {
  background: var(--orange-soft);
  color: #b54708;
}

.status-badge.paid {
  background: #eaecf0;
  color: #475467;
}

.status-badge.cancel-request {
  background: #fce5cd;
  color: #b54708;
}

.status-badge.danger {
  background: var(--red-soft);
  color: #b42318;
}

.status-badge.muted-danger {
  background: #e6b8af;
  color: #842c24;
}

.detail-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(270px, 300px) minmax(360px, 400px) var(--bybiteye-column-width);
  gap: 10px;
  align-items: start;
  min-height: 0;
  overflow: visible;
}

.detail-layout > * {
  min-width: 0;
  max-width: 100%;
}

.trade-details {
  display: flex;
  height: 750px !important;
  min-height: 750px !important;
  max-height: 750px !important;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbfcfe;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.trade-details > .trade-amount-card,
.trade-details > .detail-section:not(.order-notice),
.trade-details > .order-actions {
  flex: 0 0 auto;
}

.trade-amount-card,
.detail-section {
  border: 1px solid #e1e8f1;
  border-radius: 9px;
  background: #ffffff;
  padding: 13px;
}

.trade-amount-card {
  position: relative;
  overflow: hidden;
  padding: 17px 14px 15px;
}

.trade-order-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  line-height: 20px;
}

.detail-order-direction,
.detail-order-status-wrap,
.detail-order-field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.detail-order-direction {
  flex: 0 0 auto;
  gap: 5px;
  white-space: nowrap;
}

.detail-order-side,
.detail-order-token {
  display: inline;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #16181c;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.detail-order-side.buy {
  color: #04b86e;
}

.detail-order-side.sell {
  color: #ed3f5b;
}

.detail-order-status-wrap {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
}

.detail-order-status {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #04b86e;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  max-width: 155px;
  line-height: 16px;
  text-align: right;
  white-space: normal;
}

.trade-amount-card.has-cancel-review-timer .trade-order-summary {
  flex-wrap: wrap;
  gap: 6px;
}

.trade-amount-card.has-cancel-review-timer .detail-order-status-wrap {
  flex: 1 1 165px;
  justify-content: flex-end;
  gap: 5px;
}

.trade-amount-card.has-cancel-review-timer .detail-order-status {
  max-width: none;
  font-size: 12px;
  white-space: nowrap;
}

.detail-order-status.completed,
.detail-order-status.action {
  color: #04b86e;
}

.detail-order-status.paid {
  color: #81858c;
}

.detail-order-status.danger {
  color: #ed3f5b;
}

.detail-order-status.muted-danger {
  color: #81858c;
}

.detail-order-status.warning,
.detail-order-status.cancel-request,
.detail-order-status.new {
  color: #d97904;
}

.detail-order-status.coin-transfer {
  color: #d97904;
}

.detail-order-fields {
  display: grid;
  width: 100%;
  gap: 6px;
  margin-top: 12px;
  color: #16181c;
  font-size: 13px;
  line-height: 18px;
}

.detail-order-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-order-field > span:first-child {
  flex: 0 0 auto;
  color: #81858c;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.detail-order-field .trade-value {
  overflow: hidden;
  color: #16181c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.detail-order-field-amount .trade-value,
.detail-order-field-amount b {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.trade-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.trade-value > b {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-value-copy {
  flex: 0 0 18px;
}

.trade-order-detected {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: #81858c;
  font-size: 11px;
  line-height: 15px;
}

.trade-order-detected time {
  color: #81858c;
  font-size: 11px;
  line-height: 15px;
}

.detail-order-date-label {
  color: #81858c;
  font-size: 12px;
  line-height: 18px;
}

.detail-order-date-value {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.detail-order-date-value .order-row-timer-wrap {
  flex: 0 0 auto;
  white-space: nowrap;
}

.detail-order-id-value {
  overflow: hidden;
  justify-content: flex-end;
  max-width: 100%;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-field:hover {
  background: #f2f4f7;
  color: #667085;
}

.detail-section {
  margin-top: 9px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-section h3 {
  color: #344054;
  font-size: 12px;
}

.detail-section-title span {
  color: var(--muted);
  font-size: 10px;
}

.payment-methods {
  display: grid;
  gap: 7px;
}

.payment-card {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

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

.payment-card-head strong {
  overflow: hidden;
  color: #17233a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card-head span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-fields {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.payment-field {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.2fr) 24px;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.payment-field > span {
  color: var(--muted);
  font-size: 10px;
}

.payment-field > b {
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-field {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #16181c;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.copy-field:active {
  transform: scale(0.86);
}

.copy-field.is-copied {
  background: #edf4fc;
  color: #4f6b8a;
  animation: copy-button-pulse 760ms ease-out both;
}

.copy-field .order-row-copy-icon {
  pointer-events: none;
}

@keyframes copy-button-pulse {
  0% { transform: scale(0.88); box-shadow: 0 0 0 0 rgba(79, 107, 138, 0.28); }
  45% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(79, 107, 138, 0.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 107, 138, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .copy-field,
  .copy-field.is-copied {
    animation: none;
    transition: none;
  }
}

.payment-qr {
  display: block;
  width: min(150px, 100%);
  margin: 10px auto 0;
  border: 1px solid #e4e9f0;
  border-radius: 7px;
  background: #ffffff;
  padding: 5px;
}

.order-notice {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-color: #d9e1ea;
  background: #f3f5f7;
  scrollbar-color: #9aa0a8 transparent;
  scrollbar-width: thin;
}

.order-notice p {
  margin: 5px 0 0;
  color: #475467;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.order-notice::-webkit-scrollbar {
  width: 6px;
}

.order-notice::-webkit-scrollbar-track {
  background: transparent;
}

.order-notice::-webkit-scrollbar-thumb {
  min-height: 36px;
  border-radius: 999px;
  background: #9aa0a8;
}

.order-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.order-action-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 9px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.order-action-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-action-icon {
  --order-action-mask: none;
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: #ffffff;
  -webkit-mask-image: var(--order-action-mask);
  mask-image: var(--order-action-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.order-action-paid-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.order-action-icon-accept-cancel {
  --order-action-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAToSURBVHhe7ZtpyKZTGMd/ZB0hJkyJkBDNDGXJ8oFQZM1OM00GKZGZMiZ8ImX5YPtAWZKQLUuWbFlmxEhjJnsh+1Kyhg9k61/Xqaur+3nfeznPc5/n8f7q1Ntzlvtc//e+r3Pd51w39MuVwLL44/+Fc4F/rZwaKyedpc74VM6KjSaRzYA7KoxP5Xpgo9hpUjgB+DAYrMfgovDbW8ARsfM4cxjwXDDyW+AY1+Z04KfQ5jHgINdmrNgGOAd4teI2vx/YNnYAdgaeqGj/IrAQ2DJ2KI1dgMXAw8CPFYasAo6KnSo4CVhb0f874D5gAbBT7DQqNgS2BuYCR9vzew/wHvBXxaRVngeOjwNNw7r2WKysGE/lD/MVdwJLgCOB3YGtgA3iYG25AXgBeNn+e+8AnwO/VEwolneBq4G94qAt2M9Wh+hAq8rPwKfA28BrNnfZcEUctA5rKi4wqHxhz6+iur2BdeJgGVgf2B+4FHga+LpiHoOK7sLGpNtPt7ZUfd9UlaG3AMttadsD2Dh2HgGbAPPMZ0iUW4GngNeBD+xu/cds0IrSmCTAl8CmsXIMmGOPRGcBpOR6sXIM2NzFFp0E0PM9juHp7BkBZgSYEaAXARTT6z0gN+eZZ69LLwIoHP3I+ilOyMVVNqaCsx1j5QB6EUDxu/qkcnFs0IJkfCp19wp6EUDo9s8lgjdeUd3JscEU9CaAyCFCF+NFrwKILiJ0NV70LoBoI0IO40URAogmIuQyXhQjgKgjQk7jRVECiKlEyG28KE4AEUW4ALhsCMaLIgUQUYRU/s5ovChWAKGtbb+LrF3eOlvmTShaAN32+o8nAf60l52cFCtAjO19qVod2lKkANHb67Y/Y0giFCdANN47vOgYc4hQlABTGZ/ILUIxAtQxPpFThM4CvGSdvwJmxcqaNDE+kUsEHeKmc0ydWDfmSessFduczbcxPpFDhB1seVX/u2JlHW6zzlqvd42V09DF+ERXEXSqnPrqpLoxPnfn2Fg5AJ3r5zA+EUVostF6puunvxtziBvg2lg5gEUZjU9EEXxu0VQoeSL1mR8r66CUth9sAGWA1EEZGikhKofxiSTCg3boOR3KZEn5A59ZbkErHnAqHhArByDhDo4/ZuDQBukvx7l53xwrm6A9+DRQq6WkJ1a4ee8bK5sgp6Z8nzTYPrFBgShhKs33lVjZhhPdgKuHlP+TC6XqfOzmK0eeBWVapUGviZUF4T3/Q7GyC0pM/M0NroTI0lCMkOanpEqFwlk5xV1ApVVwMSRiwvXhsUEuvMoql8cGI0bJWzeFOSlmGCqXhAvKP7SKtDqiuOSNMJfc+4oDUcj7u7uwdnWVjjqKhMktLI3XG643ViVtjhRlafqAQ0Uhc+7tbc9plrXqr/msZar3hk530jtDKncD28WGHdDruHZ1/DX00cXZsWFfbA/cGyb4PXB+bNgQOTn5HL8Eq9zeMGFqZOhVVUnVfrIKR7U50RS9/LwZxtKHFPoEp2i0f6gPItN2lIr2Bq6r+Sqrz22U+e0Nl8PVaVLr19o+2NPy9L0hn1hANQhFmN+EPo8Du8WG44Q+iJTD8kY9Gjy34gh5c99GGxk6NZoI5LDkuLyBv9oXpLq1FUf4uhttvZ845MCqvghLRV+kHBg7TRpyZPqv+0hSkdyFseGkI8f2DPCIHWL0wn8ot5IGj2GeHgAAAABJRU5ErkJggg==");
  background-color: #d97904;
  filter: drop-shadow(0 0 0.8px rgba(217, 121, 4, 0.35));
}

.order-action-icon-request-cancel {
  --order-action-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAASzSURBVHhe7ZtrqBZVFIafwiwViwwvIEpEVBRqohVqf8LSwm5UmEYilSKIooIi6i9FJPtR2Y8iLSItKrrSBW94S0yRVLyDiJZpUVgpFZmkxgt7w2Yx5/vO3L+ZzgMbDt++zFrvmVl7z95roFwWA3Psj/8XpgCXXHnSVtadWYHzvjxnG9WRq4E3I5z35SXgKtupLjwGHDEO6zGYbX7bC9xvO1eZe4F1xsmfgIeCNuOB302bz4C7gzaVojcwGdgWcZu/D/S1HYAbgS8i2m8EJgA9bIdW4ybgWeBj4LcIR7YDY2ynCJ4A9kT0/wV4D3gauMF2KoorgV7AAOBB9/y+AxwE/o0wWmU98KgdqAmXu8fi64jxVP5xseItYCbwAHAr0BPobAdLysvABmCz++/tB74HzkYYZMsB4HlgsB00AXe52cEG0KhyBjgO7AO+cbbLh0V20PawO+ICbZUT7vnVqm4ocJkdLAOuAIYB84HVwKkIO9oqugtj428/3dpS9ZBTVY6+Bsx1U9ttQBfbuQC6AQNdzJAoy4GvgB3AYXe3XnQ+aEaJjRfgB6C7rawAfdwjkVoAKdnJVlaAa4K1RSoB9HxXcXl6XYcAHQJ0CNAhQJ0F0DTXiFoLMAT4GVjSYNVZWwHk/K/ONpWxtoGjlgJY5z9psE9QOwGs8x+51+a2qJUAcZ0XhQmgzY5X7Y8ZksR5UYgA2tj0O0Fv2MoMSOq8KESAR4ALgYFZipDGeVGIAGI0cC4wdIVtkIC0zovCBBCjMhQhC+dFoQKILETIynlRuAAijQhZOi9KEUBYEbRZ2YysnRelCSDuiyFCHs6LUgUQEuHvJiLk5bwoXQBhRXg9qMvTedESAggrgo65dNyVp/MitQCbXOeTQFdbGRMrgj+xyct5oUNcf46pE+vYfOk6S8W23rnjYEXI03lxPXDeXedtW9keNIers9b6N9vKhChbxIuQp/NCj5kXWifVsQlzdx62lSnQC9TKnJ0XzwT26+/Y3BMM8IKtrABKnvD2D7KV7UEpbT5SKwOkSiiTxecPfOdyCxLxQaDicFvZwugx83an2q1Svp4fKNFUUhJbArvvtJVxUKBSvo8f7A7boAVRwpS3d6utTMLjwYDfNjiJaQWUqnM0sFeBPBOUaeUHXWorW4gw8n9oK9OgxMQ/g8GVENlqKGnL26ekSi2FM0VncP4CKokWFzlhE6617M6FUGWVhbZBwSh56xVjk3KUc2WeuaDiQ6KVVkq0LtlpbJlqG+XFROCv4MLK3VU6ahEJk9e6NN7Qcb2xKmmzUJSlGS44VLRkbk9GeFLGuazV8JprXaZ6aUw3uzsqq4B+tmEK9DquXZ3wGvroYpJtWBb9gXeNgaeBabZhTBTkFHPCKVhFZ5DNcoRKQafFSqoOjdVyVJsTcRkJ7DJj6UMKbaq0NNo/1AeRfjtKRXuAL7r83WbocxttoYeOK+AuSPNaWwa3uzz90JFjDZKahFaYP5o+nwO32IZVQh9EKmCFTn1qIrfWEYrmYRttZDwVtKk0ClgKXKGDf7gvSHVrax0R1i1z833tUACL+iLMF32RMsJ2qhsKZPqvhytJreRm2IZ1R4FtjUt21CFGKfwHahFeTv2CcgQAAAAASUVORK5CYII=");
  background-color: #667085;
  filter: drop-shadow(0 0 0.8px rgba(71, 84, 103, 0.95));
}

.order-action-button > span {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  white-space: nowrap;
}

.order-action-button strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-action-button.order-action-paid {
  border-color: #50b982;
  background: #079455;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(7, 148, 85, 0.18);
}

.order-action-button.order-action-paid:hover {
  border-color: #3eaa70;
  background: #067647;
}

.order-action-button.order-action-release {
  border-color: #50b982;
  background: #079455;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(7, 148, 85, 0.18);
}

.order-action-button.order-action-release:hover {
  border-color: #3eaa70;
  background: #067647;
}

.order-action-button.order-action-accept-cancel {
  border-color: #d97904;
  background: #d97904;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(217, 121, 4, 0.18);
}

.order-action-button.order-action-accept-cancel:hover {
  border-color: #bd6800;
  background: #bd6800;
}

.order-action-button.order-action-accept-cancel .order-action-icon-accept-cancel,
.order-action-button.order-action-accept-cancel strong {
  color: #ffffff;
}

.order-action-button.order-action-accept-cancel .order-action-icon-accept-cancel {
  background-color: #ffffff;
}

.order-action-button.order-action-cancel {
  border-color: #fe9c2f;
  background: #fe9c2f;
  color: #ffffff;
  box-shadow: none !important;
  transform: none;
}

.order-action-button.order-action-cancel:hover {
  border-color: #ef8d1e;
  background: #ef8d1e;
  box-shadow: none !important;
  transform: none;
}

.order-action-button.order-action-cancel:active,
.order-action-button.order-action-cancel:focus-visible {
  box-shadow: none !important;
  transform: none;
}

.order-action-button.order-action-cancel strong {
  color: #ffffff;
}

.order-action-button.order-action-request-cancel {
  min-height: 34px;
  gap: 6px;
  border-color: #d5deea;
  border-radius: 8px;
  background: #ffffff;
  color: #475467;
  padding: 5px 8px;
  box-shadow: none;
}

.order-action-button.order-action-request-cancel:hover {
  border-color: #b7c3d1;
  background: #f8fafc;
}

.order-action-button.order-action-request-cancel .order-action-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.order-action-button.order-action-request-cancel strong {
  color: inherit;
  font-size: 11px;
  font-weight: 600;
}

.button-primary,
.button-release,
.button-secondary,
.button-link,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.order-action-button.order-action-paid,
.order-action-button.order-action-release,
.order-action-button.order-action-cancel,
.button-link.order-action-button {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 9px;
  padding: 7px 9px;
  text-align: left;
}

.order-action-open-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  overflow: visible;
  color: #7c8796;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.button-primary,
.send-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.button-primary:hover,
.send-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button-release {
  border-color: #079455;
  background: #079455;
  color: #ffffff;
}

.button-release:hover {
  border-color: #067647;
  background: #067647;
}

.button-secondary,
.button-link {
  border-color: #d5deea;
  background: #ffffff;
  color: #475467;
}

.button-secondary:hover,
.button-link:hover {
  border-color: #b7c3d1;
  background: #f8fafc;
}

button:disabled,
.send-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.action-warning {
  margin: 0;
  border: 1px solid #f3d2a1;
  border-radius: 8px;
  background: #fff8eb;
  color: #934c0c;
  padding: 9px;
  font-size: 10px;
  line-height: 1.4;
}

.order-chat {
  position: relative;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
  isolation: isolate;
  align-self: start;
  width: min(100%, 400px);
  height: 750px !important;
  min-height: 750px !important;
  max-height: 750px !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

/* The browser extension injects its chat-compatible styles after page load.
   Keep the dashboard frame identical before and after that injection. */
#fiat-otc-order__im.order-chat.im-container-messages {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 1px solid var(--line-soft) !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#fiat-otc-order__im.order-chat > .chat-completion-notice {
  position: absolute !important;
  z-index: 30 !important;
  inset: 0 !important;
  display: grid !important;
  width: auto !important;
  height: auto !important;
  place-items: center !important;
  border-radius: inherit !important;
  background: rgba(26, 32, 44, 0.42) !important;
  padding: 14px !important;
  transform: none !important;
}

#fiat-otc-order__im.order-chat > .chat-completion-notice[hidden] {
  display: none !important;
}

.chat-completion-card {
  position: relative;
  display: flex;
  width: min(100%, 360px);
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  padding: 42px 28px 28px;
  color: #111827;
  text-align: center;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.2);
  animation: chat-completion-pop 220ms ease-out both;
}

.chat-completion-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: block;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b95a5;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.chat-completion-close::before,
.chat-completion-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.chat-completion-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chat-completion-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.chat-completion-close:hover,
.chat-completion-close:focus-visible {
  background: #f1f3f6;
  color: #4b5565;
}

.chat-completion-check {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  background: #315e8e;
  clip-path: polygon(50% 0%, 62% 9%, 77% 7%, 85% 21%, 100% 27%, 100% 43%, 93% 50%, 100% 63%, 93% 77%, 79% 85%, 73% 100%, 57% 100%, 50% 93%, 37% 100%, 23% 93%, 15% 79%, 0% 73%, 0% 57%, 7% 50%, 0% 37%, 7% 23%, 21% 15%, 27% 0%, 43% 0%);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  animation: chat-completion-check 320ms 100ms ease-out both;
}

.chat-completion-amount {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chat-completion-copy {
  margin-top: 26px;
  color: #8a93a3;
  font-size: 13px;
  line-height: 1.55;
}

.chat-completion-copy p {
  margin: 0;
}

.chat-completion-copy strong {
  color: #202938;
  font-weight: 700;
}

@keyframes chat-completion-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chat-completion-check {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-completion-card,
  .chat-completion-check {
    animation: none;
  }
}

.bybiteye-column {
  display: flex !important;
  width: var(--bybiteye-column-width);
  flex-direction: column !important;
  align-items: stretch !important;
  align-self: start;
  min-width: var(--bybiteye-column-width);
  max-width: var(--bybiteye-column-width);
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  border: 1px solid #d5dde8;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.bybiteye-column.is-extension-installed {
  width: var(--bybiteye-column-width);
  min-width: var(--bybiteye-column-width);
  max-width: var(--bybiteye-column-width);
  height: auto;
  min-height: 790px;
  max-height: none;
  overflow: visible;
}

.bybiteye-column.is-extension-installed:not(.is-ready) {
  overflow: hidden;
}

.bybiteye-placeholder {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475467;
  padding: 12px;
}

.bybiteye-column.is-extension-installed .bybiteye-placeholder,
.bybiteye-column.is-connected .bybiteye-placeholder {
  display: none;
}

.bybiteye-loading {
  display: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #667085;
  font-size: 12px;
}

.bybiteye-column.is-loading .bybiteye-loading {
  display: flex;
}

.bybiteye-loading-header {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px;
  border-bottom: 1px solid #d7dee8;
  background: #ffffff;
}

.bybiteye-loading-brand {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #101828;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.bybiteye-loading-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bybiteye-loading-brand img {
  display: block;
  width: 18px;
  height: 18px;
}

.bybiteye-loading-tradecode {
  display: flex;
  flex: 0 1 94px;
  min-width: 0;
  max-width: 94px;
  align-items: center;
  border-radius: 5px;
}

.bybiteye-loading-tradecode img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 15px;
}

.bybiteye-loading-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.bybiteye-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #c4ceda;
  border-top-color: #667f9f;
  border-radius: 50%;
  animation: bybiteye-loading-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .bybiteye-loading-spinner {
    animation: none;
  }
}

.bybiteye-column:not(.is-ready) > :is(#OldBybitInfoBox, #NewBybitInfoBox),
.bybiteye-column:not(.is-ready) > .bybiteye-scam-slot {
  display: none !important;
}

.bybiteye-logo {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bybiteye-placeholder strong {
  display: block;
  color: #101828;
  font-size: 13px;
}

.bybiteye-placeholder p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.bybiteye-column > #OldBybitInfoBox,
.bybiteye-column > #NewBybitInfoBox {
  display: block !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 0 !important;
  order: 1 !important;
  font-family: var(--font-bybiteye) !important;
}

.bybiteye-scam-slot {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin-top: 4px !important;
  order: 2 !important;
  font-family: var(--font-scamnet) !important;
}

.bybiteye-scam-slot[hidden],
.bybiteye-scam-slot:empty {
  display: none !important;
}

.bybiteye-scam-slot > :is(#oldOrder, #newOrder, .templates-wrapper) {
  position: static !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-top: 0 !important;
  overflow: visible !important;
}

.bybiteye-scam-slot > :is(#oldOrder, #newOrder, .templates-wrapper) > * {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 6px 0 0 !important;
}

.bybiteye-scam-slot > :is(#oldOrder, #newOrder, .templates-wrapper) > :first-child {
  margin-top: 0 !important;
}

.bybiteye-scam-slot > :is(#oldOrder, #newOrder, .templates-wrapper) {
  gap: 6px !important;
}

.bybiteye-scam-slot .bbe-templates-box {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.bybiteye-scam-slot .requisites-box {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.bybiteye-scam-slot .tc-container {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.bybiteye-scam-slot .tc-header {
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 2px !important;
}

.bybiteye-scam-slot .logo_title {
  min-height: 32px !important;
  border-radius: 10px !important;
  padding: 2px 7px !important;
}

.bybiteye-scam-slot .logo_title img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 2px !important;
}

.bybiteye-scam-slot .logo_title-p {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transform: scale(1, 0.72) !important;
  transform-origin: left center !important;
}

.bybiteye-scam-slot .tc-body {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: 58px !important;
  max-height: none !important;
  box-sizing: border-box !important;
  gap: 5px !important;
  padding: 10px 12px !important;
  overflow: visible !important;
}

.bybiteye-scam-slot :is(.reqs-phone, .reqs-comment, .tc-body p) {
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
}

.bybiteye-scam-slot .form-tc {
  width: 100% !important;
  flex-wrap: wrap !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .profile-container_ext {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) p {
  margin: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_ext {
  display: flex !important;
  min-height: 36px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 4px !important;
  gap: 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 5px 8px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_logo {
  min-height: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_logo img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 4px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_logo p {
  margin: 0 !important;
  font-family: var(--font-bybiteye) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_ext > a {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  border-radius: 5px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .header_ext > a img {
  display: block !important;
  width: 94px !important;
  height: 15px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .trade-code {
  font-size: 11px !important;
  white-space: nowrap;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo {
  border-radius: 8px 8px 0 0 !important;
  padding: 7px 8px 5px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-bio {
  gap: 8px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-nickname {
  font-size: 14px !important;
  letter-spacing: -0.25px !important;
  white-space: nowrap;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-contacts {
  gap: 4px !important;
  font-size: 11px !important;
  letter-spacing: -0.25px !important;
  white-space: nowrap;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-contacts span {
  margin-left: 2px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-teamNote {
  margin: 5px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterInfo-isBlack {
  margin-top: 2px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.bbe-black, .tg-black) {
  min-width: 0 !important;
  min-height: 28px !important;
  border-radius: 0 0 8px 8px !important;
  padding: 4px 7px !important;
  font-size: 11px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedbackTable, .counterparty-stats, .orders-stats, .orders-table-container, .reviews) {
  border-radius: 8px !important;
  margin-top: 4px !important;
  padding: 7px 8px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .feedbackTable:has(.feedback-empty),
.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .reviews:has(.feedback-empty) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-title, .reviews-title, .orders-table-header, .counterparty-info-title-block) {
  margin: 0 !important;
  font-size: 13px !important;
  letter-spacing: -0.25px !important;
  line-height: 1.2 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .feedback-empty {
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterparty-stats-header {
  margin-bottom: 4px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterparty-stats-percents,
.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-header-info {
  gap: 7px !important;
  border-radius: 7px !important;
  padding: 3px 6px !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterparty-stats {
  position: relative !important;
  overflow: visible !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.stats-bill, .stats-numbers_orders, .counterparty-stats-reg_date, .counterparty-stats-reg_date-with-gap) {
  overflow: visible !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-tooltip-container {
  position: static !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-tooltip {
  left: 7px !important;
  right: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  z-index: 50 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-tooltip p {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .percents-rating {
  height: 16px !important;
  gap: 2px !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterparty-stats-orders {
  gap: 4px !important;
  margin-bottom: 4px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.stats-bill, .stats-numbers_orders, .counterparty-stats-reg_date, .counterparty-stats-reg_date-with-gap) {
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 7px !important;
  padding: 5px 7px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .counterparty-stats-reg_date-with-gap {
  gap: 8px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .days_from_reg {
  margin-right: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.stats-bill-header, .stats-orders-header) {
  margin-bottom: 2px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.stats-bill-header-title, .stats-orders-header-title) {
  font-size: 12px !important;
  letter-spacing: -0.25px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .data-header {
  font-size: 10px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-data {
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .orders-stats-header {
  margin-bottom: 4px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .orders-stats-data {
  gap: 4px !important;
  align-items: stretch !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-data-item {
  min-width: 0 !important;
  border-radius: 7px !important;
  padding: 5px 6px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .stats-data-item-header {
  margin-bottom: 2px !important;
  font-size: 11px !important;
  letter-spacing: -0.25px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .orders-table {
  margin-top: 4px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-head {
  height: 22px !important;
  border-radius: 6px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-scroll-container {
  max-height: 100px !important;
  mask-image: none !important;
  scrollbar-width: thin;
  scrollbar-color: #c7cdd6 transparent;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-scroll-container::-webkit-scrollbar {
  display: block;
  width: 3px;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-scroll-container::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7cdd6;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-scroll-container > .orders-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin-top: 0 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-row {
  height: 22px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-item {
  padding: 1px 3px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .space-row {
  height: 2px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.table-head-item:first-child, .table-item:first-child) {
  padding-left: 5px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) .table-head-item:last-child {
  padding-right: 3px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-list, .reviews-container) {
  max-height: 72px !important;
  margin-top: 3px !important;
  mask-image: none !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-item, .review-item) {
  border-radius: 7px !important;
  margin-bottom: 4px !important;
  padding: 6px 7px !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-item-text, .review-comment) {
  margin-top: 3px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-list, .reviews-container) {
  scrollbar-width: none;
}

.bybiteye-column :is(#OldBybitInfoBox, #NewBybitInfoBox) :is(.feedback-list, .reviews-container)::-webkit-scrollbar {
  display: none;
}

/* Compact dashboard layout. The extension keeps ownership of every data node;
   these rules only reorganize its existing profile blocks. */
.bybiteye-column .bbe-dashboard-compact {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-direction: column !important;
  gap: 6px !important;
  color: #101828 !important;
}

.bybiteye-column .bbe-dashboard-compact > * {
  min-width: 0 !important;
}

.bybiteye-column .bbe-dashboard-compact :is(
  .feedbackTable,
  .counterparty-stats,
  .orders-stats,
  .orders-table-container,
  .reviews
) {
  margin-top: 0 !important;
  border: 1px solid #e1e8f2 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.bybiteye-column .bbe-dashboard-compact .header_ext {
  min-height: 36px !important;
  margin: 0 0 4px !important;
  border-color: #cbd5e1 !important;
  padding: 5px 8px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo {
  border: 1px solid #e1e8f2 !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #ffffff !important;
  padding: 7px 9px 6px !important;
  box-shadow: none !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo-bio {
  gap: 10px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo-nickname {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo-contacts {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  justify-content: flex-end !important;
  color: #8a96a8 !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo-teamNote {
  margin-top: 4px !important;
  color: #344054 !important;
}

.bybiteye-column .bbe-dashboard-compact .counterInfo-isBlack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  border: 1px solid #e1e8f2 !important;
  border-top-color: #eef2f7 !important;
  border-radius: 0 0 10px 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.bybiteye-column .bbe-dashboard-compact :is(.bbe-black, .tg-black) {
  width: 100% !important;
  min-height: 31px !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
}

.bybiteye-column .bbe-dashboard-compact .tg-black {
  border-left: 1px solid #eef2f7 !important;
}

.bybiteye-column .bbe-dashboard-compact :is(.bbe-black, .tg-black) img {
  display: block !important;
  max-width: 118px !important;
  height: 26px !important;
  object-fit: contain !important;
}

.bybiteye-column .bbe-dashboard-compact .feedbackTable {
  position: relative !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  padding: 7px 9px !important;
}

.bybiteye-column .bbe-dashboard-compact .feedbackTable:has(.feedback-empty) {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

.bybiteye-column .bbe-dashboard-compact .feedbackTable:has(.feedback-empty) .feedback-empty {
  overflow: hidden !important;
  color: #98a2b3 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats {
  border-radius: 10px !important;
  padding: 8px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats-header {
  min-height: 24px !important;
  margin-bottom: 5px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats-orders {
  gap: 5px !important;
  margin-bottom: 5px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats-orders:last-child {
  margin-bottom: 0 !important;
}

.bybiteye-column .bbe-dashboard-compact :is(
  .stats-bill,
  .stats-numbers_orders,
  .counterparty-stats-reg_date,
  .counterparty-stats-reg_date-with-gap
) {
  min-height: 58px !important;
  border-radius: 8px !important;
  background: #f5f7fb !important;
  padding: 6px 8px !important;
}

.bybiteye-column .bbe-dashboard-compact :is(
  .stats-bill.warning,
  .stats-numbers_orders.warning,
  .counterparty-stats-reg_date.warning,
  .counterparty-stats-reg_date-with-gap.warning
) {
  background: #f7d6d8 !important;
}

.bybiteye-column .bbe-dashboard-compact :is(.stats-bill-header, .stats-orders-header) {
  min-height: 17px !important;
  margin-bottom: 3px !important;
}

.bybiteye-column .bbe-dashboard-compact :is(.stats-bill-header-title, .stats-orders-header-title) {
  color: #101828 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bybiteye-column .bbe-dashboard-compact .data-header {
  color: #98a2b3 !important;
  font-size: 9px !important;
}

.bybiteye-column .bbe-dashboard-compact .stats-data {
  color: #101828 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats-percents {
  min-height: 23px !important;
  background: #f5f7fb !important;
  padding: 3px 7px !important;
}

.bybiteye-column .bbe-dashboard-compact .counterparty-stats-percents.warning {
  background: #f7d6d8 !important;
}

.bybiteye-column .bbe-dashboard-compact .orders-stats {
  border-radius: 10px !important;
  padding: 8px !important;
}

.bybiteye-column .bbe-dashboard-compact .orders-stats-header {
  min-height: 22px !important;
  margin-bottom: 5px !important;
}

.bybiteye-column .bbe-dashboard-compact .stats-header-info {
  border-radius: 999px !important;
  background: #f5f7fb !important;
  padding: 2px 7px !important;
}

.bybiteye-column .bbe-dashboard-compact .orders-stats-data {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.bybiteye-column .bbe-dashboard-compact .stats-data-item {
  min-height: 48px !important;
  border-radius: 8px !important;
  background: #f5f7fb !important;
  padding: 6px 7px !important;
}

.bybiteye-column .bbe-dashboard-compact .stats-data-item-header {
  color: #344054 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-general-table,
.bybiteye-column .bbe-dashboard-compact .bbe-team-table {
  border-radius: 10px !important;
  padding: 8px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tabs {
  display: grid !important;
  gap: 6px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-heading {
  color: #101828;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tablist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f5f7fb;
  padding: 3px;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tab:hover {
  color: #344054;
  background: #ffffff;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tab.is-active {
  border-color: #cfe0ff;
  background: #ffffff;
  color: #155eef;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-tab:focus-visible {
  outline: 2px solid rgba(43, 108, 246, 0.28);
  outline-offset: 1px;
}

.bybiteye-column .bbe-dashboard-compact .bbe-history-count {
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.bybiteye-column .bbe-dashboard-compact :is(.bbe-general-table, .bbe-team-table) > .orders-table-header {
  display: none !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-general-table > .orders-table {
  margin-top: 7px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-team-table > .orders-table {
  margin-top: 0 !important;
}

.bybiteye-column .bbe-dashboard-compact.bbe-history-show-general .bbe-team-table {
  display: none !important;
}

.bybiteye-column .bbe-dashboard-compact.bbe-history-show-team .bbe-general-table {
  border-radius: 10px 10px 0 0 !important;
  padding-bottom: 7px !important;
}

.bybiteye-column .bbe-dashboard-compact.bbe-history-show-team .bbe-general-table > :not(.bbe-history-tabs) {
  display: none !important;
}

.bybiteye-column .bbe-dashboard-compact.bbe-history-show-team .bbe-team-table {
  display: block !important;
  margin-top: -7px !important;
  border-top-color: transparent !important;
  border-radius: 0 0 10px 10px !important;
  padding-top: 2px !important;
}

.bybiteye-column .bbe-dashboard-compact :is(.bbe-general-table, .bbe-team-table) .table-scroll-container {
  max-height: 96px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section {
  position: relative !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding: 8px 9px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section.has-reviews {
  min-height: 158px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section.has-reviews :is(.feedback-list, .reviews-container) {
  max-height: 180px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7cdd6 transparent;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section.has-reviews :is(.feedback-list, .reviews-container)::-webkit-scrollbar {
  display: block;
  width: 4px;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section.has-reviews :is(.feedback-list, .reviews-container)::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7cdd6;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section .reviews-title {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section:has(.feedback-empty) {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 10px !important;
}

.bybiteye-column .bbe-dashboard-compact .bbe-reviews-section:has(.feedback-empty) .feedback-empty {
  margin: 0 !important;
  overflow: hidden !important;
  color: #98a2b3 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.bybiteye-scam-slot {
  margin-top: 6px !important;
  border: 1px solid #e1e8f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 7px !important;
}

.bybiteye-scam-slot .tc-container {
  gap: 4px !important;
}

.bybiteye-scam-slot .tc-header {
  min-height: 32px !important;
}

.bybiteye-scam-slot .logo_title {
  min-height: 30px !important;
  background: #ffffff !important;
  padding: 2px 5px !important;
}

.bybiteye-scam-slot .tc-body {
  min-height: 48px !important;
  border: 1px solid #e7edf5 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  padding: 8px 10px !important;
}

@media (prefers-reduced-motion: reduce) {
  .bybiteye-column .bbe-dashboard-compact .bbe-history-tab {
    transition: none;
  }
}

.chat-header {
  grid-row: 1 !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 60px;
  align-items: flex-start;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 14px;
}

.chat-header h3 {
  font-size: 15px;
}

.chat-counterparty {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.chat-counterparty-line {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.chat-counterparty-line h3 {
  flex: 0 1 auto;
  overflow: hidden;
  min-width: 0;
  color: #121b2d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-counterparty-profile-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 2px;
}

.chat-counterparty-profile-link:not([aria-disabled="true"]) {
  cursor: pointer;
}

.chat-counterparty-profile-link:not([aria-disabled="true"]):hover,
.chat-counterparty-profile-link:not([aria-disabled="true"]):focus-visible {
  color: #667085;
  text-decoration: underline;
}

.chat-counterparty-profile-link[aria-disabled="true"] {
  pointer-events: none;
}

.chat-counterparty-stats {
  overflow: hidden;
  flex: 0 1 auto;
  color: #52617b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-presence {
  display: inline-flex;
  width: auto;
  min-width: 9px;
  min-height: 9px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #7a8496;
  overflow: hidden;
}

.chat-presence i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(122, 132, 150, 0.12);
}

.chat-presence.is-online {
  color: var(--green);
}

.chat-presence.is-online i {
  box-shadow: 0 0 0 2px rgba(9, 146, 104, 0.12);
}

.chat-presence.is-offline {
  color: #8c96a7;
}

.chat-presence.is-unknown {
  color: #9b7419;
}

.chat-presence-text {
  display: none;
}

.chat-presence.is-offline .chat-presence-text {
  display: inline;
  overflow: hidden;
  max-width: 118px;
  color: #8c96a7;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header .chat-kyc-line {
  overflow: hidden;
  margin-top: 3px;
  color: #8c96a7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header .chat-kyc-line strong {
  color: #53617a;
  font-size: 12px;
  font-weight: 500;
}

.load-older {
  grid-row: 2 !important;
  justify-self: center;
  margin: 6px 0;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #55708f;
  padding: 5px 11px;
  box-shadow: 0 1px 3px rgba(31, 55, 88, 0.06);
  font-size: 11px;
  line-height: 1.2;
}

.chat-messages {
  position: relative !important;
  z-index: 1;
  grid-row: 3 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  inset: auto !important;
  min-height: 0;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px;
  scroll-padding-bottom: 15px;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-color: #9aa0a8 transparent;
  scrollbar-width: thin;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 102, 255, 0.035), transparent 28%),
    #f8fafc;
  padding: 15px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  min-height: 36px;
  border-radius: 999px;
  background: #9aa0a8;
}

.chat-empty,
.chat-error {
  display: grid;
  min-height: 100%;
  place-content: center;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.chat-error {
  color: var(--red);
}

.chat-message {
  align-self: flex-start;
  width: fit-content;
  max-width: min(82%, 620px);
}

.chat-message.is-self {
  align-self: flex-end;
}

.chat-message.has-image-attachment {
  max-width: min(82%, 260px);
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px 3px;
  color: #7b879a;
  font-size: 11px;
  line-height: 1.25;
}

.chat-message.is-self .chat-message-meta {
  justify-content: flex-end;
}

.chat-message-body {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.chat-message.is-self .chat-message-body {
  justify-content: flex-end;
}

.chat-read-receipt {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 8px;
  margin: 0 0 7px 1px;
  overflow: visible;
  color: #91949a;
}

.chat-read-receipt.is-read {
  color: #55a9df;
}

.chat-read-receipt path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chat-delivery-state {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0 0 5px 1px;
}

.chat-delivery-state.is-sending {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  align-self: flex-end;
  gap: 4px;
  margin: 4px 4px 0 0;
  color: #8b96a7;
  font-size: 10px;
  line-height: 1.2;
}

.chat-delivery-state.is-sending i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: chat-delivery-pulse 1.1s ease-in-out infinite;
}

.chat-delivery-state.is-failed {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e05252;
  color: #fff;
  padding: 0;
  font: 700 10px/1 sans-serif;
  cursor: pointer;
}

@keyframes chat-delivery-pulse {
  50% { opacity: 0.35; }
}

.chat-bubble {
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 4px 12px 12px 12px;
  background: #ffffff;
  color: #24324a;
  padding: 10px 13px;
  box-shadow: 0 2px 7px rgba(35, 50, 74, 0.05);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message.is-self .chat-bubble {
  border-color: #c6dafb;
  border-radius: 12px 4px 12px 12px;
  background: #eef5ff;
}

.chat-message.is-system {
  align-self: stretch;
  width: 100%;
  max-width: none;
}

.chat-system-time {
  display: block;
  margin: 0 0 8px;
  color: #adb1b8;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.chat-message.is-system .chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 9px;
  background: #f3f5f7;
  color: #81858c;
  padding: 12px 17px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
}

.chat-system-icon {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: #81858c;
}

.chat-system-content {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message.is-system.is-warning .chat-bubble {
  background: #fde8e9;
}

.chat-message.is-system.is-warning .chat-system-icon {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #ef454a;
}

.chat-system-link {
  color: #ff9c2e;
  font-weight: 500;
  text-decoration: none;
}

.chat-system-link:hover {
  text-decoration: underline;
}

.chat-attachment {
  display: grid;
  gap: 7px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.chat-attachment.is-image {
  inline-size: min(184px, 58vw);
  block-size: 224px;
  max-inline-size: 100%;
  max-block-size: 224px;
  flex: 0 0 auto;
  contain: layout paint;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f5;
  place-items: center;
}

.chat-attachment img,
.chat-attachment video {
  display: block;
  max-width: min(320px, 100%);
  max-height: 280px;
  border-radius: 7px;
  background: #edf1f5;
  object-fit: contain;
}

.chat-attachment.is-image img {
  width: 100% !important;
  height: 224px !important;
  max-width: 100% !important;
  max-height: 224px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.chat-attachment.is-video {
  width: min(220px, 62vw);
}

.chat-attachment.is-video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.file-tile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 210px;
}

.file-tile-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eef1f4;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.file-tile span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.file-tile strong {
  font-size: 11px;
}

.file-tile small {
  color: var(--muted);
  font-size: 9px;
}

.chat-composer {
  position: relative !important;
  z-index: 4 !important;
  grid-row: 4 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: calc(100% - 24px) !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  align-items: end;
  align-self: end;
  gap: 6px;
  height: 49px;
  min-height: 49px;
  max-height: 182px;
  margin: 10px 12px;
  justify-self: start;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f4f5f7;
  padding: 0 8px 0 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.chat-composer:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(31, 102, 255, 0.1);
}

.chat-composer-actions {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  align-self: end;
  height: 47px;
}

.attach-button {
  display: grid;
  width: 36px;
  min-height: 47px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #858991;
  cursor: pointer;
}

.attach-button:hover {
  color: #333840;
}

.attach-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.attach-button input {
  display: none;
}

.message-field {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: flex-end;
  min-width: 0;
}

.message-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 47px;
  max-height: 180px;
  resize: none;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17233a;
  padding: 13px 0 11px;
  outline: none;
  font-size: 14px;
  line-height: 1.55;
}

.message-field textarea::placeholder {
  color: #b0b4bc;
  font-weight: 600;
  opacity: 1;
}

.send-button {
  width: 36px;
  min-height: 47px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f3339;
  padding: 0;
}

.send-button:hover {
  border: 0;
  background: transparent;
  color: #11151a;
}

.send-button:disabled {
  cursor: default;
  opacity: 1;
}

.send-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-button.is-sending svg {
  opacity: 0.45;
}

.chat-upload-state {
  grid-row: 5 !important;
  min-height: 0;
  margin: 0;
  background: #ffffff;
  color: var(--muted);
  padding: 0 14px 9px;
  font-size: 10px;
}

.chat-upload-state:empty {
  display: none;
}

body.attachment-viewer-open {
  overflow: hidden;
}

.attachment-viewer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 15, 24, 0.78);
  padding: 24px;
}

.attachment-viewer[hidden] {
  display: none !important;
}

.attachment-viewer-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1040px, calc(100vw - 48px));
  height: min(880px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #111827;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.attachment-viewer-header {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
  padding: 9px 10px 9px 18px;
}

.attachment-viewer-header > strong {
  min-width: 0;
  overflow: hidden;
  color: #17233a;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-viewer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.attachment-viewer-download,
.attachment-viewer-close {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  padding: 0 12px;
  font: 500 13px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
}

.attachment-viewer-close {
  width: 38px;
  padding: 0;
}

.attachment-viewer-download:hover,
.attachment-viewer-download:focus-visible,
.attachment-viewer-close:hover,
.attachment-viewer-close:focus-visible {
  border-color: #aeb9c8;
  background: #f5f7fa;
  outline: none;
}

.attachment-viewer-download svg,
.attachment-viewer-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attachment-viewer-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 44%),
    #111827;
  padding: 18px;
}

.attachment-viewer-content img,
.attachment-viewer-content video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.attachment-viewer-content[data-type="pic"],
.attachment-viewer-content[data-type="video"] {
  overflow: hidden;
}

.attachment-viewer-content[data-type="pic"] img,
.attachment-viewer-content[data-type="video"] video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.attachment-viewer-content iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
}

.attachment-viewer-unavailable {
  max-width: 420px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.orders-toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 22px;
  z-index: 760;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 28px));
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f2f4f7;
  color: #344054;
  padding: 11px 14px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.16);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .attachment-viewer {
    padding: 8px;
  }

  .attachment-viewer-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .attachment-viewer-header {
    min-height: 52px;
    padding-left: 12px;
  }

  .attachment-viewer-download span {
    display: none;
  }

  .attachment-viewer-download {
    width: 38px;
    padding: 0;
  }

  .attachment-viewer-content {
    padding: 8px;
  }

  .orders-toast {
    right: 8px;
    bottom: 64px;
    left: 8px;
    max-width: none;
    transform: none;
  }
}

/* Built-in version of the Bybit P2P Chat Plus quick-reply panel. */
.quick-replies-panel,
.quick-replies-controls,
.quick-replies-settings-backdrop,
.quick-replies-settings-backdrop * {
  box-sizing: border-box;
  font-family: var(--font-ui);
}

.quick-replies-panel {
  position: fixed;
  right: 14px;
  bottom: 70px;
  z-index: 700;
  display: flex;
  width: min(420px, calc(100vw - 28px));
  min-width: min(280px, calc(100vw - 28px));
  height: min(1000px, calc(100vh - 86px));
  height: min(1000px, calc(100dvh - 86px));
  min-height: 0;
  max-height: min(1000px, calc(100vh - 86px));
  max-height: min(1000px, calc(100dvh - 86px));
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 20px rgba(12, 17, 29, 0.14);
  scrollbar-color: #c8cdd5 transparent;
  scrollbar-width: thin;
}

.quick-replies-panel[hidden],
.quick-replies-controls[hidden],
.quick-replies-settings-backdrop[hidden] {
  display: none !important;
}

.quick-replies-panel::-webkit-scrollbar,
.quick-replies-settings-list::-webkit-scrollbar {
  width: 6px;
}

.quick-replies-panel::-webkit-scrollbar-track,
.quick-replies-settings-list::-webkit-scrollbar-track {
  background: transparent;
}

.quick-replies-panel::-webkit-scrollbar-thumb,
.quick-replies-settings-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8cdd5;
}

.quick-replies-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.quick-reply-button,
.quick-replies-control,
.quick-replies-settings button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.quick-reply-button {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 9px 11px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f1f2f4;
  color: #292d35;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.quick-reply-button:hover,
.quick-reply-button:focus-visible {
  background: #fff0d6;
  color: #9b5b00;
  outline: 0;
}

.quick-replies-controls {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 701;
  display: flex;
  width: auto;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(12, 17, 29, 0.18);
  backdrop-filter: blur(10px);
}

.quick-replies-control {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: #363a43;
  font-size: 16px;
  line-height: 1;
}

.quick-replies-toggle {
  display: inline-flex;
  width: auto;
  min-width: 152px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .quick-replies-panel {
    right: 8px;
    bottom: 62px;
    width: calc(100vw - 16px);
    min-width: 0;
    height: min(1000px, calc(100vh - 78px));
    height: min(1000px, calc(100dvh - 78px));
    max-height: min(1000px, calc(100vh - 78px));
    max-height: min(1000px, calc(100dvh - 78px));
  }

  .quick-replies-controls {
    right: 8px;
    bottom: 8px;
  }
}

.quick-replies-control:hover,
.quick-replies-control:focus-visible,
.quick-replies-control.is-active {
  background: #f7a600;
  color: #111111;
  outline: 0;
}

.quick-replies-settings-backdrop {
  position: fixed;
  z-index: 720;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(17, 24, 39, 0.42);
  padding: 18px;
}

.quick-replies-settings {
  display: flex;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  flex-direction: column;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  color: #16171a;
  box-shadow: 0 22px 65px rgba(12, 17, 29, 0.24);
}

.quick-replies-settings h2 {
  margin: 0;
  color: #16171a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.quick-replies-settings-hint {
  margin: 6px 0 14px;
  color: #697386;
  font-size: 13px;
  line-height: 1.45;
}

.quick-replies-settings-list {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-color: #c8cdd5 transparent;
  scrollbar-width: thin;
}

.quick-replies-settings-row {
  position: relative;
  flex: 0 0 auto;
}

.quick-replies-settings-row textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid #d5dde8;
  border-radius: 9px;
  background: #f8fafc;
  color: #202630;
  padding: 10px 38px 10px 11px;
  outline: 0;
  font-size: 13px;
  line-height: 1.4;
}

.quick-replies-settings-row textarea:focus {
  border-color: #f7a600;
  box-shadow: 0 0 0 2px rgba(247, 166, 0, 0.14);
}

.quick-replies-settings-remove {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 7px;
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 26px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: #858b96;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.quick-replies-settings-remove:hover {
  background: #f3f4f6;
  color: #d14b4b;
}

.quick-replies-settings-add {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f1f2f4;
  color: #343840;
  padding: 0 12px;
  font-size: 13px;
}

.quick-replies-settings-add:hover {
  background: #fff0d6;
  color: #9b5b00;
}

.quick-replies-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid #eaecf0;
  padding-top: 14px;
}

.quick-replies-settings-actions button {
  min-height: 38px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #ffffff;
  color: #475467;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
}

.quick-replies-settings-actions button:hover {
  background: #f7f8fa;
}

.quick-replies-settings-actions button.is-primary {
  border-color: #f7a600;
  background: #f7a600;
  color: #111111;
}

.quick-replies-settings-actions button.is-primary:hover {
  border-color: #ffb72e;
  background: #ffb72e;
}

@media (max-width: 520px) {
  .quick-replies-settings-backdrop {
    padding: 8px;
  }

  .quick-replies-settings {
    max-height: calc(100vh - 16px);
    padding: 14px;
  }
}

.orders-toast.is-error {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #344054;
}

@media (max-width: 1280px) {
  .orders-workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .detail-layout {
    grid-template-columns: minmax(220px, 240px) minmax(390px, 400px) var(--bybiteye-column-width);
  }

  .orders-live {
    min-width: 186px;
  }
}

@media (max-width: 1180px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .trade-details {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
  }

  .order-chat {
    width: 100%;
    height: 750px !important;
    min-height: 750px !important;
    max-height: 750px !important;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
  }

  .bybiteye-column {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 120px;
  }

  .bybiteye-column.is-extension-installed {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 1050px) {
  .orders-shell {
    padding: 18px;
  }

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

  .orders-workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .orders-queue {
    height: 720px;
    min-height: 720px;
  }

  .order-detail {
    min-height: 720px;
  }

  .order-detail.is-empty {
    height: 720px;
    min-height: 720px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .trade-details {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
  }

  .order-chat {
    width: 100%;
    height: 750px !important;
    min-height: 750px !important;
    max-height: 750px !important;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
  }

  .bybiteye-column {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .orders-shell {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .orders-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    width: 100%;
  }

  .orders-live {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .orders-account {
    min-width: 0;
  }

  .orders-summary {
    gap: 7px;
  }

  .summary-card {
    min-height: 72px;
    padding: 10px;
  }

  .summary-card strong {
    font-size: 25px;
  }

  .summary-card > span {
    font-size: 11px;
  }

  .orders-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-queue {
    height: min(620px, 75vh);
    min-height: min(620px, 75vh);
  }

  .order-detail {
    min-height: 780px;
  }

  .order-detail.is-empty {
    height: 780px;
    min-height: 780px;
  }

  .detail-header {
    align-items: flex-start;
  }

  .detail-title {
    align-items: flex-start;
  }

  .detail-status-block {
    max-width: 130px;
  }

  .chat-message {
    max-width: 88%;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 500px) {
  .orders-brand-row {
    flex-wrap: wrap;
  }

  .orders-exchange-nav {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .orders-exchange-tab {
    padding-inline: 4px;
  }

  .orders-p2p-tab {
    font-size: 11px;
  }

  .orders-order-tab {
    flex-basis: 88px;
    min-width: 88px;
  }

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

  .orders-live {
    grid-column: 1 / -1;
  }

  .orders-account {
    grid-column: 1 / -1;
  }

  .orders-notifications,
  .orders-session-chip {
    width: 100%;
  }

  .orders-notifications {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .orders-notifications::after {
    top: 8px;
    right: 50%;
    bottom: 8px;
    left: auto;
    width: 1px;
    height: auto;
  }

  .orders-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-card {
    min-height: 62px;
  }

  .queue-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-title h2 {
    font-size: 15px;
  }

  .side-badge {
    min-width: 62px;
  }

  .payment-field {
    grid-template-columns: minmax(72px, 0.75fr) minmax(0, 1.25fr) 24px;
  }

}

/* Header controls are the same components used by the main bot dashboard. */
.orders-header-actions.headerRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 760px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.pulse {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.headerStatus.api-missing .pulse {
  animation: apiPulseWarning 1.15s ease-in-out infinite;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.headerStatus.api-error .pulse,
.headerStatus.api-guard .pulse {
  background: #f04438;
  box-shadow: 0 0 0 5px rgba(240, 68, 56, 0.12);
}

@keyframes apiPulseWarning {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.24); transform: scale(1.08); }
}

.headerStatus {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 220px;
  min-width: 220px;
  max-width: 260px;
  min-height: 68px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.headerStatus > .apiStatusCopy {
  display: grid;
  justify-content: start;
  flex: 1 1 auto;
  gap: 1px;
  min-width: 0;
}

.apiStatusPrimary,
.apiStatusSecondary {
  display: contents;
}

.headerStatus strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  order: 1;
}

.headerStatus p {
  overflow: hidden;
  margin: 0;
  max-width: 100%;
  color: #66758d;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headerStatus #ordersCredentialLine {
  display: none !important;
}

.headerStatus .cycleLine,
.headerStatus .apiLoadLine,
.headerStatus .connectionLine {
  color: #50627d;
  font-size: 11px;
}

.headerStatus .apiLoadLine { color: #07111f; font-weight: 400; order: 3; }
.headerStatus .cycleLine { flex: 1 1 auto; min-width: 0; font-size: 11px; font-weight: 600; order: 2; }
.headerStatus .connectionLine { flex: 0 0 auto; font-size: 11px; font-weight: 600; order: 4; }
.headerStatus .apiLoadLabel { display: inline; font-size: inherit; line-height: inherit; font-weight: 400; }
.headerStatus .connectionLine[data-state="online"] { color: #067647; }
.headerStatus .connectionLine[data-state="offline"],
.headerStatus .connectionLine[data-state="degraded"] { color: #b42318; }

.headerStatus .cycleLine.has-tooltip {
  position: relative;
  overflow: visible;
  max-width: max-content;
  cursor: help;
}

.headerStatus .cycleTooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: max-content;
  min-width: 260px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  color: #10213f;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
  transform: translateY(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.headerStatus .cycleLine.has-tooltip:hover .cycleTooltip,
.headerStatus .cycleLine.has-tooltip:focus-within .cycleTooltip,
.headerStatus .cycleLine.has-tooltip.tooltip-open .cycleTooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.api-reset-error-btn {
  flex: 0 0 auto;
  min-height: 0;
  padding: 4px 8px;
  border: 1px solid #f7b4ad;
  border-radius: 7px;
  background: #fff1f0;
  color: #d92d20;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
}

.api-reset-error-btn:hover:not(:disabled) { border-color: #f04438; background: #ffe3e0; }
.api-reset-error-btn:disabled { cursor: default; opacity: 0.65; }

.accountStatus {
  position: relative;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  flex: 0 1 190px;
  align-content: center;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  max-width: 230px;
  min-height: 68px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.accountStatus:has(.account-settings-popover:not([hidden])) {
  z-index: 620;
}

.accountUid {
  overflow: hidden;
  color: #66758d;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountSummary { display: grid; gap: 3px; min-width: 0; }
.accountMerchant { max-width: 100%; }
.merchant-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.merchant-line strong,
.merchant-link {
  overflow: hidden;
  color: #07111f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-link:hover { color: #07111f; text-decoration: underline; text-underline-offset: 3px; }
.auth-badge { display: block; width: 16px; height: 16px; flex: 0 0 auto; object-fit: contain; }
.filterMenu { position: relative; }
.account-settings-menu { justify-self: end; }

.account-settings-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66758d;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.account-settings-button svg { width: 17px; height: 17px; transform-origin: center; transition: transform 220ms ease; }
.account-settings-button:hover,
.account-settings-button:focus-visible,
.account-settings-button.active {
  transform: none;
  background: #f5fbfe;
  color: #137fb2;
  box-shadow: none;
  outline: none;
}
.account-settings-button:hover svg,
.account-settings-button:focus-visible svg,
.account-settings-button.active svg { transform: rotate(45deg); }

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(560px, calc(100vw - 64px));
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 18px 45px rgba(28, 45, 74, 0.14);
}

.account-settings-popover { display: grid; gap: 10px; width: min(320px, calc(100vw - 32px)); }
.account-credentials-section { display: grid; gap: 2px; }
.account-credentials-section strong { color: #101828; font-size: 13px; font-weight: 500; }
.account-credentials-section small { color: #667085; font-size: 11px; line-height: 1.35; }
.account-balance-credentials-section { margin-top: 4px; padding-top: 12px; border-top: 1px solid #e4e7ec; }
.ad-filter-field { display: grid; gap: 6px; color: #66758d; font-size: 12px; font-weight: 500; }
.ad-filter-field input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #18212f;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}
.ad-filter-field input:focus { border-color: #7da2ff; box-shadow: 0 0 0 3px rgba(31, 102, 255, 0.1); }
.filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #18212f;
  cursor: pointer;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}
.account-connect-button,
.account-unlink-button { width: 100%; min-height: 34px; font-size: 14px; font-weight: 400; }
.account-connect-button { border-color: #9dbcf7; background: #eaf1ff; color: #155eef; }
.account-unlink-button { border-color: #f7b5af; background: #fff0ef; color: #b42318; }
.account-settings-popover input:disabled,
.account-connect-button:disabled,
.account-unlink-button:disabled { border-color: #d8e0eb; background: #f3f6fa; color: #9aa8ba; cursor: default; }

.walletCompact {
  position: relative;
  z-index: 610;
  flex: 0 1 210px;
  width: 210px;
  min-width: 190px;
  max-width: 230px;
  height: 68px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 21, 45, 0.03);
}

.walletCompactToggle {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  background: transparent;
  color: #344054;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.walletCompactToggle:hover,
.walletCompactToggle:focus-visible,
.walletCompactToggle[aria-expanded="true"] {
  background: #f5f8ff;
}

.walletCompactIcon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #079455;
  background: transparent;
  box-shadow: none;
}

.walletCompactIcon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walletCompactCopy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

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

.walletCompactCopy strong {
  color: #07111f;
  font-size: 13px;
  line-height: 1.1;
}

.walletCompactCopy small {
  color: #66758d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.walletCompact[data-state="active"] .walletCompactCopy small { color: #087750; }
.walletCompact[data-state="warning"] .walletCompactCopy small { color: #a15c00; }
.walletCompact[data-state="error"] .walletCompactCopy small { color: #bd2f26; }
.walletCompact[data-state="warning"] .walletCompactIcon { color: #d97904; }
.walletCompact[data-state="error"] .walletCompactIcon { color: #d92d20; }

.walletCompactChevron {
  color: #98a2b3;
  transform: rotate(-90deg);
  transition: transform 150ms ease;
}

.walletCompactToggle[aria-expanded="true"] .walletCompactChevron {
  transform: rotate(0deg);
}

.walletPopover {
  display: block;
  width: min(410px, calc(100vw - 32px));
  padding: 0;
  border-color: #dfe6ef;
  border-radius: 13px;
  box-shadow: 0 22px 54px rgba(28, 45, 74, 0.16);
}

.walletPopoverHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
}

.walletPopoverTitle { min-width: 0; }
.walletPopoverHead h3 { margin: 0; color: var(--text); font-size: 15px; line-height: 1.2; }
.walletPopoverHead p,
.walletSelectionHead p,
.walletHint { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.3; }

.walletPopoverHeadActions { display: inline-flex; align-items: center; gap: 6px; }
.walletEditButton {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  padding: 0 9px;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.walletEditButton svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.walletEditButton:hover:not(:disabled),
.walletEditButton:focus-visible { border-color: #c9d4e3; background: #f3f5f7; color: #344054; outline: none; }
.walletEditButton:disabled { cursor: default; opacity: 0.5; }

.walletTotals {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 9px 13px 2px;
}

.walletTotalCard {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8faff;
}
.walletTotalCard span { color: #66758d; font-size: 11px; }
.walletTotalCard strong { overflow: hidden; color: #10213f; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.walletLiquidityForm {
  display: grid;
  gap: 6px;
  padding: 8px 13px 2px;
}

.walletLiquidityHead,
.walletProfitLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.walletLiquidityHead label {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.walletLiquidityHead button {
  min-height: 28px;
  border: 1px solid #b9ccf6;
  border-radius: 7px;
  padding: 0 9px;
  background: #eef4ff;
  color: #155eef;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.walletLiquidityHead button:hover:not(:disabled) {
  background: #e2ebff;
}

.walletLiquidityHead button:disabled {
  cursor: default;
  opacity: 0.5;
}

.walletLiquidityControl {
  position: relative;
}

.walletLiquidityControl input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 7px 55px 7px 10px;
  background: #ffffff;
  color: #10213f;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.walletLiquidityControl input:focus {
  border-color: #8eaff5;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1);
}

.walletLiquidityControl input:disabled {
  background: #f3f6fa;
  color: #98a2b3;
}

.walletLiquidityControl > span {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #66758d;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
}

.walletProfitLine {
  min-height: 38px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 7px 10px;
  background: #f8fafc;
}

.walletProfitLine span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.walletProfitLine strong {
  color: #344054;
  font-size: 15px;
}

.walletProfitLine[data-state="positive"] {
  border-color: #b7e4d1;
  background: #f0fbf6;
}

.walletProfitLine[data-state="positive"] strong {
  color: #087750;
}

.walletProfitLine[data-state="negative"] {
  border-color: #f2c6c2;
  background: #fff5f4;
}

.walletProfitLine[data-state="negative"] strong {
  color: #b42318;
}

.walletLiquidityHelp,
.walletLiquidityStatus {
  margin: 0;
  color: #66758d;
  font-size: 10px;
  line-height: 1.35;
}

.walletLiquidityStatus {
  color: #087750;
}

.walletLiquidityStatus[data-state="error"] {
  color: #b42318;
}

.walletLiquidityStatus:empty {
  display: none;
}

.walletSelectionForm { display: grid; gap: 8px; padding: 10px 13px 12px; }
.walletSelectionHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.walletSelectionHead > div { min-width: 0; }
.walletSelectionHead strong { color: var(--text); font-size: 13px; }
.walletSelectedCount { flex: 0 0 auto; border-radius: 999px; padding: 4px 7px; color: #66758d; background: #f3f6fa; font-size: 10px; line-height: 1.2; }
.walletAccountList { display: grid; max-height: 278px; gap: 4px; overflow: auto; overscroll-behavior: contain; }
.walletAccountOption {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}
.walletAccountOption:hover,
.walletAccountOption:has(input:checked) { border-color: #abc2f6; background: #f5f8ff; }
.walletAccountOption input { width: 15px; height: 15px; margin: 0; accent-color: #2f6df6; }
.walletAccountIdentity { display: grid; min-width: 0; gap: 1px; }
.walletAccountIdentity strong,
.walletAccountIdentity small,
.walletAccountAmount strong,
.walletAccountAmount small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.walletAccountIdentity strong,
.walletAccountAmount strong { color: #17243a; font-size: 12px; line-height: 1.2; }
.walletAccountIdentity small,
.walletAccountAmount small { color: #66758d; font-size: 10px; line-height: 1.2; }
.walletAccountAmount { display: grid; min-width: 82px; max-width: 140px; gap: 1px; text-align: right; }
.walletAccountOption[data-status]:not([data-status="ok"]) .walletAccountAmount small { color: #a15c00; }
.walletSelectionForm[data-editing="false"] .walletAccountOption { cursor: default; }
.walletSelectionForm[data-editing="false"] .walletAccountOption:hover { border-color: #abc2f6; background: #f5f8ff; }
.walletSelectionForm[data-editing="false"] .walletAccountOption input:disabled { opacity: 1; }
.walletEmptyState { padding: 12px; border: 1px dashed #cbd6e5; border-radius: 8px; color: #66758d; background: #fafcff; font-size: 11px; line-height: 1.45; text-align: center; }
.walletPopoverFooter { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 1px; }
.walletHint { flex: 1 1 auto; min-width: 0; margin: 0; }
.walletHint[data-state="error"] { color: var(--red); }
.walletSaveButton { min-height: 32px; flex: 0 0 auto; border: 0; border-radius: 7px; padding: 0 12px; background: #2f6df6; color: #ffffff; font-size: 11px; font-weight: 700; }
.walletSaveButton:hover:not(:disabled) { background: #255fe0; }
.walletSaveButton:disabled { cursor: default; opacity: 0.55; }

.telegramCompact {
  position: relative;
  z-index: 600;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 68px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 21, 45, 0.03);
}
.telegramCompactToggle {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  padding: 4px;
  background: transparent;
  color: #344054;
  box-shadow: none;
  cursor: pointer;
}
.telegramCompactToggle:hover,
.telegramCompactToggle:focus-visible,
.telegramCompactToggle[aria-expanded="true"] { background: #f5fbfe; color: #137fb2; }
.telegramCompactIcon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #229ed9;
}
.telegramBellIcon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #66758d; }
.telegramCompact[data-state="active"] .telegramBellIcon { color: #087750; }
.telegramCompact[data-state="warning"] .telegramBellIcon { color: #a15c00; }
.telegramCompact[data-state="error"] .telegramBellIcon { color: var(--red); }
.telegramCompact[data-state="active"] .telegramCompactIcon { box-shadow: 0 0 0 3px rgba(9, 166, 109, 0.12); }
.telegramCompact[data-state="warning"] .telegramCompactIcon { background: #f79009; }
.telegramCompact[data-state="error"] .telegramCompactIcon { background: var(--red); }

.telegramPopover {
  display: block;
  width: min(470px, calc(100vw - 32px));
  padding: 0;
  border-color: #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(28, 45, 74, 0.16);
}
.telegramPopoverHead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.telegramPopoverIdentity { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 12px; }
.telegramPopoverIdentity > div { min-width: 0; }
.telegramPopoverLogo { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; color: #fff; background: #2f6df6; box-shadow: 0 6px 14px rgba(47, 109, 246, 0.2); }
.telegramPopoverLogo svg { width: 18px; height: 18px; }
.telegramPopoverHead h3 { margin: 0; color: var(--text); font-size: 16px; line-height: 1.2; }
.telegramPopoverHead p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.telegramPopoverConnect {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  color: #155eef;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.telegramPopoverConnect:hover { background: #e4edff; }
.telegramPopoverConnect svg { width: 16px; height: 16px; }
.telegramPopoverConnect:disabled { opacity: .55; cursor: not-allowed; }
.telegramWorkHelperSection { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); background: #f8faff; }
.telegramWorkHelperInfo { display: flex; min-width: 0; align-items: center; gap: 10px; }
.telegramWorkHelperIcon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #155eef; background: #e8f0ff; }
.telegramWorkHelperIcon svg { width: 18px; height: 18px; }
.telegramWorkHelperInfo > div { min-width: 0; }
.telegramWorkHelperInfo strong { color: var(--text); font-size: 13px; line-height: 1.3; }
.telegramWorkHelperInfo p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.telegramWorkHelperInstall { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid #2f6df6; border-radius: 10px; padding: 0 13px; color: #fff; background: #2f6df6; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; }
.telegramWorkHelperInstall:hover { border-color: #155eef; color: #fff; background: #155eef; }
.telegramPopoverSection { display: grid; min-width: 0; gap: 12px; padding: 18px; }
.telegramSoundSection { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fbfcff; }
.telegramExclusionsSection { padding-top: 14px; }
.telegramPopoverSectionHead { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; }
.telegramPopoverSectionHead > div { min-width: 0; }
.telegramPopoverSectionHead p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.telegramPopoverLabel { color: var(--text); font-size: 13px; font-weight: 700; }
.telegramExcludedCount { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; color: #66758d; background: #f3f6fa; font-size: 11px; line-height: 1.2; }
.telegramDashboardVisibility { display: flex; min-width: 0; align-items: flex-start; gap: 10px; border: 1px solid #dfe6ef; border-radius: 11px; background: #f8faff; padding: 11px 12px; cursor: pointer; }
.telegramDashboardVisibility:hover { border-color: #b8cdf8; background: #f3f7ff; }
.telegramDashboardVisibility input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #2f6df6; cursor: pointer; }
.telegramDashboardVisibility input:disabled { cursor: wait; opacity: .65; }
.telegramDashboardVisibility > span { display: grid; min-width: 0; gap: 3px; }
.telegramDashboardVisibility strong { color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.3; }
.telegramDashboardVisibility small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.telegramAccounts,
.telegramExcludedNicks { display: flex; flex-wrap: wrap; gap: 8px; }
.telegramAccount,
.telegramNickChip { display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dfe6ef; border-radius: 999px; padding: 4px 6px 4px 11px; background: #f6f8fb; color: #26364d; font-size: 12px; line-height: 1.2; }
.telegramAccount { width: auto; min-height: 38px; padding-left: 5px; border-color: transparent; background: #eef4ff; }
.telegramAccount:hover,
.telegramNickChip:hover { border-color: #b8cdf8; background: #eef4ff; }
.telegramAccountAvatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; color: #fff; background: #2f6df6; font-size: 12px; font-weight: 700; }
.telegramAccountText { display: block; min-width: 0; }
.telegramAccountText strong,
.telegramNickChip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telegramAccountText strong { font-size: 12px; font-weight: 600; }
.telegramNickChip { min-height: 34px; }
.telegramAccount button,
.telegramNickChip button { display: grid; width: 26px; height: 26px; min-height: 26px; flex: 0 0 26px; place-items: center; border: 0; border-radius: 50%; padding: 0; color: #8795a9; background: transparent; cursor: pointer; }
.telegramAccount button svg,
.telegramNickChip button svg { width: 14px; height: 14px; }
.telegramAccount button:hover,
.telegramNickChip button:hover { color: var(--red); background: #fff; }
.telegramEmpty { margin: 0; color: var(--muted); font-size: 12px; }
.telegramLinkPanel { display: grid; min-width: 0; gap: 10px; border: 1px solid #bed1ff; border-radius: 11px; padding: 11px 12px; background: #f3f7ff; }
.telegramLinkPanel[hidden] { display: none; }
.telegramLinkPanel p { display: grid; gap: 3px; margin: 0; }
.telegramLinkPanel p strong { color: var(--text); font-size: 12px; line-height: 1.3; }
.telegramLinkPanel p span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.telegramLinkActions { display: flex; flex-wrap: wrap; gap: 8px; }
.telegramLinkActions :is(a, button) { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1px solid #2f6df6; border-radius: 9px; padding: 0 12px; font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; }
.telegramLinkOpen { color: #fff; background: #2f6df6; }
.telegramLinkOpen:hover { border-color: #155eef; background: #155eef; }
.telegramLinkOpen[aria-disabled="true"] { pointer-events: none; opacity: 0.55; }
.telegramLinkCopy { color: #155eef; background: #fff; }
.telegramLinkCopy:hover { background: #e9f0ff; }
.telegramExclusionForm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.telegramNickField { display: flex; min-width: 0; min-height: 42px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; color: #7a889e; }
.telegramNickField:focus-within { border-color: #8db0ff; box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1); }
.telegramNickField svg { width: 16px; height: 16px; flex: 0 0 16px; }
.telegramNickField input { width: 100%; min-width: 0; min-height: 0; height: 40px; border: 0; border-radius: 0; padding: 0; color: var(--text); background: transparent; font: inherit; font-size: 13px; outline: none; }
.telegramExclusionForm button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #2f6df6; border-radius: 11px; padding: 0 16px; color: #fff; background: #2f6df6; font-size: 12px; font-weight: 700; cursor: pointer; }
.telegramExclusionForm button:hover { border-color: #155eef; background: #155eef; }
.telegramExclusionForm button svg { width: 16px; height: 16px; }
.telegramHintWrap { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line-soft); padding: 14px 18px; color: var(--muted); background: #f6f8fb; }
.telegramHintWrap > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: #2f6df6; }
.telegramHint { min-width: 0; min-height: 0; margin: 0; font-size: 12px; line-height: 1.45; }
.telegramHint[data-state="error"] { color: var(--red); }

.session-chip {
  display: grid;
  grid-template-rows: 24px 1px 23px;
  align-content: center;
  gap: 0;
  min-width: 112px;
  flex: 0 1 112px;
  max-width: 128px;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  padding: 0;
  box-shadow: 0 1px 0 rgba(6, 21, 45, 0.03);
}
.session-login,
.session-logout { display: flex; align-items: center; justify-content: center; min-width: 0; line-height: 1; }
.session-login { overflow: hidden; color: #07111f; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.session-divider { height: 1px; margin: 0 10px; background: #edf1f6; }
.session-logout { width: 100%; min-height: 23px; border: 0; border-radius: 0; background: transparent; color: #52627a; padding: 0; font-size: 12px; font-weight: 400; box-shadow: none; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.session-logout:hover,
.session-logout:focus-visible { background: #f8fbff; color: #155eef; outline: none; }

@media (max-width: 760px) {
  .orders-header-actions.headerRight {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 0 0 auto;
    width: 100%;
    margin-left: 0;
  }
  .headerStatus,
  .accountStatus,
  .session-chip { width: 100%; min-width: 0; max-width: none; }
  .walletCompact { width: 100%; min-width: 0; max-width: none; }
  .walletPopover { right: auto; left: 0; width: min(410px, calc(100vw - 24px)); max-width: min(410px, calc(100vw - 24px)); }
  .telegramCompact { width: 44px; min-width: 44px; max-width: 44px; }
  .headerStatus p { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .headerStatus .cycleTooltip { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; min-width: 0; max-width: none; max-height: min(60dvh, 440px); overflow: auto; }
  .session-chip { grid-template-rows: 24px 1px 23px; min-height: 68px; }
}

@media (max-width: 480px) {
  .telegramWorkHelperSection { grid-template-columns: 1fr; }
  .telegramWorkHelperInstall { width: 100%; }
  .walletPopoverHead,
  .walletSelectionForm { padding-left: 12px; padding-right: 12px; }
  .walletTotals { padding-left: 12px; padding-right: 12px; }
  .walletAccountOption { grid-template-columns: 15px minmax(0, 1fr); }
  .walletAccountAmount { grid-column: 2; min-width: 0; max-width: none; text-align: left; }
  .walletPopoverFooter { align-items: stretch; flex-direction: column; }
  .walletSaveButton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Compact wallet metrics stay neutral; state is communicated inside the popover. */
.walletCompact {
  flex-basis: 220px;
  width: 220px;
  min-width: 210px;
  max-width: 240px;
}

.walletCompactToggle {
  grid-template-columns: 36px minmax(0, 1fr) 16px;
}

.walletCompact .walletCompactIcon,
.walletCompact[data-state="active"] .walletCompactIcon,
.walletCompact[data-state="warning"] .walletCompactIcon,
.walletCompact[data-state="error"] .walletCompactIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #155eef;
  background: #f0f4ff;
}

.walletCompactIcon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.walletCompactCopy {
  gap: 2px;
}

.walletCompactMetrics {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.walletCompactMetric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  color: #344054 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.walletCompactMetric > span {
  color: #475467;
  font-weight: 500;
}

.walletCompactMetric:first-child > span {
  font-weight: 600;
}

.walletCompactMetric > b {
  min-width: 0;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wallet popover — compact fintech redesign. */
.filter-popover.walletPopover {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(410px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 16px));
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 35, 61, 0.18), 0 4px 14px rgba(20, 35, 61, 0.06);
}

.filter-popover.walletPopover[hidden] {
  display: none;
}

.walletPopoverHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px 13px;
  border-bottom: 0;
}

.walletPopoverIdentity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.walletPopoverIcon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  color: #155eef;
  background: #f0f4ff;
}

.walletPopoverIcon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walletPopoverTitle {
  min-width: 0;
}

.walletPopoverHead h3 {
  margin: 0;
  color: #101c38;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.15;
}

.walletPopoverHead p,
.walletSelectionHead p,
.walletHint {
  margin: 3px 0 0;
  color: #6b7890;
  font-size: 11px;
  line-height: 1.35;
}

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

.walletEditButton {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  padding: 0;
  color: #52627a;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 28, 56, 0.04);
  cursor: pointer;
}

.walletEditButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walletEditButton:hover:not(:disabled),
.walletEditButton:focus-visible {
  border-color: #a9bde8;
  color: #155eef;
  background: #f7f9ff;
  outline: none;
}

.walletEditButton:disabled {
  cursor: default;
  opacity: 0.48;
}

.walletSummaryCard {
  margin: 2px 16px 0;
  overflow: hidden;
  border: 1px solid #17294d;
  border-radius: 12px;
  color: #ffffff;
  background: #101e3b;
  box-shadow: 0 10px 24px rgba(16, 30, 59, 0.15);
}

.walletTotals {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 17px 18px 15px;
}

.walletTotalCard {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.walletTotalCard + .walletTotalCard {
  padding-top: 12px;
  border-top: 1px solid rgba(203, 214, 234, 0.16);
}

.walletTotalCard span,
.walletOrdersTotal span,
.walletProfitLine span {
  color: #aebbd1;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}

.walletTotalCard strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walletSummaryMetrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid rgba(203, 214, 234, 0.17);
}

.walletOrdersTotals {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: center;
  padding: 12px 16px;
  border-right: 1px solid rgba(203, 214, 234, 0.17);
}

.walletOrdersTotal {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.walletOrdersTotal strong,
.walletProfitLine strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walletProfitLine {
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  justify-content: stretch;
  gap: 4px;
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  background: transparent;
}

.walletProfitLine[data-state="positive"],
.walletProfitLine[data-state="negative"] {
  border: 0;
  background: transparent;
}

.walletProfitLine[data-state="positive"] strong {
  color: #5fe0b1;
}

.walletProfitLine[data-state="negative"] strong {
  color: #ff9b91;
}

.walletSummaryCard .walletEmptyState {
  border-color: rgba(203, 214, 234, 0.24);
  color: #cbd6ea;
  background: rgba(255, 255, 255, 0.05);
}

.walletSummaryCard:has(.walletTotals .walletEmptyState) .walletSummaryMetrics {
  display: none;
}

.walletLiquidityForm {
  display: grid;
  gap: 7px;
  margin: 12px 16px 0;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 28, 56, 0.03);
}

.walletLiquidityHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.walletLiquidityHead label {
  color: #1f2e48;
  font-size: 12.5px;
  font-weight: 750;
}

.walletLiquidityRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.walletLiquidityControl {
  position: relative;
  min-width: 0;
}

.walletLiquidityControl input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #ccd6e4;
  border-radius: 9px;
  padding: 8px 58px 8px 11px;
  color: #101c38;
  background: #ffffff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  outline: none;
}

.walletLiquidityControl input:focus {
  border-color: #7d9ff2;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.11);
}

.walletLiquidityControl input:disabled {
  color: #98a2b3;
  background: #f5f7fa;
}

.walletLiquidityControl > span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #65738a;
  font-size: 10.5px;
  font-weight: 750;
  pointer-events: none;
  transform: translateY(-50%);
}

.walletLiquidityRow > button {
  min-height: 40px;
  border: 1px solid #155eef;
  border-radius: 9px;
  padding: 0 13px;
  color: #ffffff;
  background: #155eef;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.walletLiquidityRow > button:hover:not(:disabled) {
  border-color: #004eeb;
  background: #004eeb;
}

.walletLiquidityRow > button:disabled {
  cursor: default;
  opacity: 0.48;
}

.walletLiquidityHelp,
.walletLiquidityStatus {
  margin: 0;
  color: #6b7890;
  font-size: 10px;
  line-height: 1.35;
}

.walletLiquidityStatus {
  color: #087750;
}

.walletLiquidityStatus[data-state="error"] {
  color: #b42318;
}

.walletLiquidityStatus:empty {
  display: none;
}

.walletSelectionForm {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 16px 14px;
}

.walletSelectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.walletSelectionHead > div {
  min-width: 0;
}

.walletSelectionHead strong {
  color: #101c38;
  font-size: 14px;
  font-weight: 750;
}

.walletSelectedCount {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #637087;
  background: #f2f4f8;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.walletAccountList {
  display: grid;
  min-height: 0;
  max-height: 360px;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
  overscroll-behavior: contain;
  scrollbar-color: #aeb5bf transparent;
  scrollbar-width: thin;
}

.walletAccountList::-webkit-scrollbar {
  width: 6px;
}

.walletAccountList::-webkit-scrollbar-track {
  background: transparent;
}

.walletAccountList::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #aeb5bf;
}

.walletAccountOption {
  display: grid;
  grid-template-columns: 16px minmax(90px, 0.8fr) minmax(175px, 1.2fr);
  align-items: center;
  gap: 9px;
  min-height: 70px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  color: inherit;
  background: #ffffff;
  cursor: pointer;
}

.walletAccountOption:last-child {
  border-bottom: 0;
}

.walletAccountOption:hover {
  background: #f8faff;
}

.walletAccountOption:has(input:checked) {
  border-color: #e7ebf1;
  background: #ffffff;
}

.walletSelectionForm[data-editing="true"] .walletAccountOption:has(input:checked) {
  background: #f7f9ff;
}

.walletAccountOption input {
  display: grid;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  place-content: center;
  border: 1.5px solid #b9c3d1;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.walletAccountOption input::before {
  width: 8px;
  height: 4px;
  border-bottom: 1.8px solid #ffffff;
  border-left: 1.8px solid #ffffff;
  content: "";
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 110ms ease;
}

.walletAccountOption input:checked {
  border-color: #155eef;
  background: #155eef;
}

.walletAccountOption input:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.walletAccountOption input:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.16);
  outline-offset: 2px;
}

.walletAccountIdentity,
.walletAccountAmount {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.walletAccountIdentity strong,
.walletAccountAmount strong {
  color: #17243a;
  font-size: 13px;
  line-height: 1.2;
}

.walletAccountIdentity small,
.walletAccountAmount small {
  color: #6b7890;
  font-size: 10.5px;
  line-height: 1.2;
}

.walletAccountAmount {
  min-width: 175px;
  max-width: 220px;
  gap: 3px;
}

.walletAccountMetric {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.walletAccountMetric small {
  flex: 0 1 auto;
  font-size: 10.5px;
}

.walletAccountMetric strong {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.walletAccountSyncStatus {
  color: #6b7890;
}

.walletAccountOption[data-status]:not([data-status="ok"]) .walletAccountSyncStatus {
  color: #a15c00;
}

.walletSelectionForm[data-editing="false"] .walletAccountOption {
  grid-template-columns: minmax(90px, 0.8fr) minmax(175px, 1.2fr);
  cursor: default;
}

.walletSelectionForm[data-editing="false"] .walletAccountOption input {
  display: none;
}

.walletSelectionForm[data-editing="false"] .walletAccountOption:hover {
  border-color: #e7ebf1;
  background: #ffffff;
}

.walletSelectionForm[data-editing="false"] .walletAccountOption input:disabled {
  cursor: default;
  opacity: 1;
}

.walletEmptyState {
  padding: 12px;
  border: 1px dashed #cbd6e5;
  border-radius: 8px;
  color: #66758d;
  background: #fafcff;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.walletPopoverFooter {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf0f5;
  padding-top: 10px;
}

.walletHint {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.walletHint[data-state="error"] {
  color: var(--red);
}

.walletSaveButton {
  min-height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: #155eef;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.walletSaveButton:hover:not(:disabled) {
  background: #004eeb;
}

.walletSaveButton:disabled {
  cursor: default;
  opacity: 0.5;
}

@media (max-width: 760px) {
  .filter-popover.walletPopover {
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-width: none;
    max-height: min(92dvh, 820px);
    overflow-y: auto;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .walletPopoverHead {
    padding-inline: 13px;
  }

  .walletSummaryCard,
  .walletLiquidityForm {
    margin-inline: 13px;
  }

  .walletSelectionForm {
    padding-inline: 13px;
  }

  .walletAccountOption {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .walletAccountAmount {
    grid-column: 2;
    min-width: 0;
    max-width: none;
  }

  .walletSelectionForm[data-editing="false"] .walletAccountOption {
    grid-template-columns: minmax(0, 1fr);
  }

  .walletSelectionForm[data-editing="false"] .walletAccountAmount {
    grid-column: 1;
  }
}

@media (max-width: 340px) {
  .walletOrdersTotals,
  .walletProfitLine {
    padding-inline: 12px;
  }

  .walletOrdersTotal strong,
  .walletProfitLine strong {
    font-size: 12px;
    letter-spacing: -0.02em;
  }
}
