:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-soft: #0a1018;
  --panel: #0f1620;
  --panel-2: #121b27;
  --panel-3: #16212f;
  --line: rgba(148, 183, 220, 0.11);
  --line-strong: rgba(148, 183, 220, 0.2);
  --text: #edf3fb;
  --muted: #8a9bb0;
  --muted-2: #78899f;
  --green: #3ad7a2;
  --green-soft: rgba(58, 215, 162, 0.12);
  --green-line: rgba(58, 215, 162, 0.28);
  --red: #ff7584;
  --red-soft: rgba(255, 117, 132, 0.12);
  --red-line: rgba(255, 117, 132, 0.3);
  --amber: #ffc965;
  --amber-soft: rgba(255, 201, 101, 0.12);
  --amber-line: rgba(255, 201, 101, 0.3);
  --blue: #71abff;
  --blue-soft: rgba(113, 171, 255, 0.12);
  --blue-line: rgba(113, 171, 255, 0.3);
  --violet: #b49bff;
  --sidebar: 248px;
  --radius: 18px;
  --mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(1200px 700px at 88% -12%, rgba(58, 215, 162, 0.09), transparent 58%),
    radial-gradient(1000px 650px at 2% 105%, rgba(113, 171, 255, 0.06), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(58, 215, 162, 0.28);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

h1, h2, h3, p, dl, dd, dt {
  margin: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 155, 176, 0.22);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 155, 176, 0.36);
}

:focus-visible {
  outline: 2px solid rgba(58, 215, 162, 0.75);
  outline-offset: 2px;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(280px 220px at 24% 0%, rgba(58, 215, 162, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(11, 17, 25, 0.98), rgba(7, 11, 16, 0.98));
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(58, 215, 162, 0.5), transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  color: #052018;
  background: linear-gradient(145deg, #7df2c9 0%, #3ad7a2 46%, #20ad81 100%);
  box-shadow: 0 10px 26px rgba(58, 215, 162, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 18px;
  font-weight: 800;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 45px;
  padding: 0 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 0.88;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(58, 215, 162, 0.145), rgba(58, 215, 162, 0.025));
  box-shadow: inset 2px 0 0 var(--green);
}

.nav-link.active svg {
  color: var(--green);
  opacity: 1;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.local-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.sidebar-foot small {
  color: var(--muted-2);
  font-size: 10.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 215, 162, 0.08), 0 0 12px rgba(58, 215, 162, 0.55);
}

/* ---------- Shell ---------- */

.app-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 30px 34px 20px;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.94) 55%, rgba(7, 11, 16, 0.7) 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-copy {
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topbar h1 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.page-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

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

.mobile-brand {
  display: none;
}

.content {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 14px 34px 40px;
  flex: 1;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.app-footer span:first-child {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

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

.btn-primary {
  color: #041710;
  background: linear-gradient(135deg, #6df0c5, #38d7a1 58%, #23ba89);
  box-shadow: 0 10px 26px rgba(58, 215, 162, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #83f5d0, #47e3ae 58%, #2ac996);
  box-shadow: 0 12px 30px rgba(58, 215, 162, 0.22);
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-soft {
  color: var(--blue);
  border-color: rgba(113, 171, 255, 0.2);
  background: rgba(113, 171, 255, 0.08);
}

.btn-soft:hover {
  color: #a9ccff;
  border-color: rgba(113, 171, 255, 0.32);
  background: rgba(113, 171, 255, 0.13);
}

.btn-danger-ghost {
  color: rgba(255, 117, 132, 0.86);
  border-color: rgba(255, 117, 132, 0.16);
  background: transparent;
}

.btn-danger-ghost:hover {
  color: #ffd2d7;
  border-color: var(--red-line);
  background: var(--red-soft);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.btn.disabled {
  opacity: 0.36;
  pointer-events: none;
}

.text-link {
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.text-link:hover {
  color: #8bf5d2;
}

/* ---------- Flash + notice ---------- */

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 12.5px;
  animation: slide-down 220ms ease;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.flash-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
}

.flash-icon svg {
  width: 15px;
  height: 15px;
}

.flash-text {
  flex: 1;
  padding-top: 1px;
  color: #dbe6f3;
}

.flash-close {
  width: 24px;
  height: 24px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
}

.flash-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.flash-success {
  border-color: rgba(58, 215, 162, 0.22);
  background: linear-gradient(90deg, rgba(58, 215, 162, 0.09), var(--panel) 45%);
}

.flash-success .flash-icon {
  color: var(--green);
  background: var(--green-soft);
}

.flash-error {
  border-color: rgba(255, 117, 132, 0.25);
  background: linear-gradient(90deg, rgba(255, 117, 132, 0.09), var(--panel) 45%);
}

.flash-error .flash-icon {
  color: var(--red);
  background: var(--red-soft);
}

.flash-warning {
  border-color: rgba(255, 201, 101, 0.22);
  background: linear-gradient(90deg, rgba(255, 201, 101, 0.075), var(--panel) 45%);
}

.flash-warning .flash-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.flash-info .flash-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.notice-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
}

.notice-icon svg {
  width: 18px;
  height: 18px;
}

.notice strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.notice p {
  color: var(--muted);
  font-size: 12px;
}

.notice code {
  color: #cfe0f3;
  font-family: var(--mono);
  font-size: 11px;
}

.notice-warning {
  border-color: var(--amber-line);
  background: linear-gradient(90deg, rgba(255, 201, 101, 0.07), var(--panel) 45%);
}

.notice-warning .notice-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.notice-error {
  border-color: var(--red-line);
  background: linear-gradient(90deg, rgba(255, 117, 132, 0.075), var(--panel) 40%);
}

.notice-error .notice-icon {
  color: var(--red);
  background: var(--red-soft);
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.compact-notice {
  margin-bottom: 16px;
  padding: 12px 13px;
}

.form-errors {
  margin: 18px 24px 0;
}

/* ---------- Toolbar and filters ---------- */

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

.toolbar-wrap {
  align-items: flex-start;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 22, 32, 0.72);
}

.filter-form-wide {
  flex: 1;
}

.filter-label {
  padding-left: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.filter-check:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-check input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"] {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0a1119;
  color: var(--text);
  padding: 0 12px;
  font-size: 12.5px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

select {
  appearance: none;
  min-width: 140px;
  padding-right: 30px;
  cursor: pointer;
}

select:hover,
input:hover {
  border-color: var(--line-strong);
}

select:focus,
input:focus {
  outline: none;
  border-color: rgba(58, 215, 162, 0.48);
  box-shadow: 0 0 0 3px rgba(58, 215, 162, 0.08);
  background: #0c141d;
}

.filter-form select {
  height: 34px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 230px;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 34px;
  padding-left: 33px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.toolbar-sep {
  opacity: 0.45;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 215, 162, 0.07);
}

/* ---------- Stats ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px 19px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20, 30, 43, 0.85), rgba(12, 18, 27, 0.93));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 215, 162, 0.075), transparent 67%);
  pointer-events: none;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.stat-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.stat-icon.tone-green {
  color: var(--green);
  background: var(--green-soft);
}

.stat-icon.tone-red {
  color: var(--red);
  background: var(--red-soft);
}

.stat-icon.tone-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.stat-icon.tone-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.stat-value {
  margin: 14px 0 7px;
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--text);
}

.stat-value-sub {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.stat-foot {
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-foot span {
  color: var(--muted);
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.neutral {
  color: var(--text) !important;
}

.muted {
  color: var(--muted-2) !important;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Panels and tables ---------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(17, 25, 36, 0.94), rgba(11, 17, 25, 0.96));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  padding: 18px 20px 2px;
  border-bottom: 0;
}

.panel-head h2 {
  font-size: 15px;
  letter-spacing: -0.018em;
  font-weight: 650;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

thead th {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(148, 183, 220, 0.065);
  vertical-align: middle;
}

tbody tr {
  transition: background 130ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

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

.numeric {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.strong,
.strong {
  font-weight: 650;
}

.orders-table {
  min-width: 850px;
}

.positions-table,
.holdings-table {
  min-width: 1000px;
}

.logs-table {
  min-width: 900px;
}

.symbol-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.symbol-cell.tight {
  min-width: 150px;
}

.symbol-cell strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.symbol-cell small,
.broker-inline small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.exchange-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 37px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 230px;
}

.broker-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #b6c5d7;
  font-size: 9.5px;
  white-space: nowrap;
}

.broker-chip.small {
  font-size: 9px;
  padding: 2px 6px;
}

.broker-chip.demo {
  border-color: rgba(255, 201, 101, 0.2);
}

.chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(58, 215, 162, 0.55);
}

.broker-chip.demo .chip-dot {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 201, 101, 0.5);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.35;
  white-space: normal;
}

.broker-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.broker-inline.compact {
  min-width: 100px;
  gap: 6px;
  font-size: 11.5px;
}

.broker-inline strong {
  display: block;
  font-size: 11.5px;
  font-weight: 550;
}

.broker-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(113, 171, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(113, 171, 255, 0.17), rgba(113, 171, 255, 0.045));
  color: #a8cbff;
  font-size: 12px;
  font-weight: 700;
}

.broker-avatar.demo {
  border-color: rgba(255, 201, 101, 0.22);
  background: linear-gradient(145deg, rgba(255, 201, 101, 0.18), rgba(255, 201, 101, 0.04));
  color: #ffda94;
}

.broker-avatar.large {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  font-size: 16px;
}

.broker-avatar.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}

.broker-avatar.tiny {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  font-size: 8.5px;
}

/* ---------- Badges and status ---------- */

.badge-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge[title] {
  cursor: help;
}

.badge.tone-green {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.badge.tone-red {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}

.badge.tone-amber {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.tone-blue {
  border-color: var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.tone-gray {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.status-pill.tone-green {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.tone-green .status-dot {
  background: var(--green);
  box-shadow: 0 0 7px rgba(58, 215, 162, 0.65);
}

.status-pill.tone-red {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.tone-red .status-dot {
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 117, 132, 0.6);
}

.status-pill.tone-amber {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.tone-amber .status-dot {
  background: var(--amber);
}

.status-pill.tone-gray,
.status-pill.tone-blue {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.status-pill.tone-gray .status-dot,
.status-pill.tone-blue .status-dot {
  background: var(--muted-2);
}

.side {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.side.buy {
  color: var(--green);
  background: var(--green-soft);
}

.side.sell {
  color: var(--red);
  background: var(--red-soft);
}

.plain-badge {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.order-id {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.event-code {
  color: #a9c4e3;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

/* ---------- Empty states ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 24px;
}

.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.empty-icon svg {
  width: 23px;
  height: 23px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 440px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -24px;
  padding: 0 20px 36px;
}

.message-empty {
  padding: 30px 20px;
}

/* ---------- Onboarding ---------- */

.onboarding {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 20px;
  min-height: 570px;
  padding: 42px 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(600px 440px at 90% 10%, rgba(58, 215, 162, 0.12), transparent 65%),
    linear-gradient(145deg, rgba(17, 26, 38, 0.97), rgba(9, 14, 21, 0.98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.onboarding::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -110px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.onboarding-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 630px;
}

.onboarding-copy h2 {
  margin-top: 12px;
  max-width: 540px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.onboarding-copy > p {
  max-width: 500px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.onboarding-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.step > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  padding-top: 2px;
}

.step p {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.step strong {
  display: block;
  margin-bottom: 2px;
  color: #cfdbeb;
  font-size: 11px;
  font-weight: 600;
}

.onboarding-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 215, 162, 0.16), transparent 65%);
  filter: blur(10px);
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(25, 37, 52, 0.95), rgba(12, 19, 28, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.visual-card-main {
  width: min(100%, 340px);
  padding: 20px;
  transform: rotate(-2deg);
}

.visual-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.visual-value {
  margin-top: 15px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.visual-value span {
  color: var(--muted-2);
  font-size: 17px;
}

.visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 105px;
  margin-top: 21px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.visual-chart span {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(58, 215, 162, 0.75), rgba(58, 215, 162, 0.08));
}

.visual-chart span:nth-child(3n) {
  background: linear-gradient(180deg, rgba(113, 171, 255, 0.6), rgba(113, 171, 255, 0.06));
}

.visual-card-float {
  right: 0;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  transform: rotate(3deg);
}

.visual-card-float small {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.visual-card-float strong {
  font-size: 11px;
  font-weight: 600;
}

.visual-card-pill {
  left: 0;
  top: 40px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  transform: rotate(2deg);
}

.visual-card-pill small {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-card-pill strong {
  font-family: var(--mono);
  font-size: 18px;
}

.visual-card-pill span {
  color: var(--muted-2);
  font-size: 9px;
}

/* ---------- Dashboard layout ---------- */

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.dashboard-side {
  display: grid;
  gap: 16px;
}

.positions-panel .table-wrap table {
  min-width: 830px;
}

.broker-mini-list {
  padding: 10px 20px 16px;
}

.broker-mini {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.broker-mini:first-child {
  padding-top: 4px;
}

.broker-mini:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.broker-mini-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.broker-mini-copy {
  min-width: 0;
  flex: 1;
}

.broker-mini-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.broker-mini-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9px;
}

.broker-mini-head .status-pill {
  height: 21px;
  padding: 0 7px;
  font-size: 8.5px;
}

.broker-mini-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
  padding-left: 43px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.broker-mini-foot strong {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.activity-list {
  padding: 10px 20px 17px;
}

.activity-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.activity-marker {
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.activity-marker.tone-green { background: var(--green); box-shadow: 0 0 7px rgba(58, 215, 162, 0.55); }
.activity-marker.tone-blue { background: var(--blue); box-shadow: 0 0 7px rgba(113, 171, 255, 0.45); }
.activity-marker.tone-amber { background: var(--amber); box-shadow: 0 0 7px rgba(255, 201, 101, 0.45); }
.activity-marker.tone-red { background: var(--red); box-shadow: 0 0 7px rgba(255, 117, 132, 0.45); }

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.activity-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b9c8da;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.activity-title span {
  flex: none;
  color: var(--muted-2);
  font-size: 8.5px;
}

.activity-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.4;
}

.muted-note {
  padding: 8px 0;
  color: var(--muted-2);
  font-size: 11px;
}

/* ---------- Brokers page ---------- */

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
}

.summary-strip > div {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 14px 18px;
  background: linear-gradient(160deg, rgba(18, 27, 39, 0.98), rgba(11, 17, 25, 0.98));
}

.summary-strip span {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.broker-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(340px 200px at 100% 0%, rgba(113, 171, 255, 0.055), transparent 65%),
    linear-gradient(160deg, rgba(18, 27, 39, 0.95), rgba(10, 16, 24, 0.97));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

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

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

.broker-title h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.broker-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 17px 0 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.broker-metrics > div {
  padding-left: 1px;
}

.broker-metrics span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.broker-metrics strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.broker-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.broker-facts dt {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.broker-facts dd {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.broker-facts code {
  color: #b9cbe0;
  font-family: var(--mono);
  font-size: 9.5px;
}

.inline-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 14px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 117, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 117, 132, 0.055);
}

.inline-error svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--red);
}

.inline-error p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #d7a9af;
  font-size: 9.5px;
  line-height: 1.45;
}

.broker-note {
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.broker-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.broker-actions form {
  display: flex;
}

.push-right {
  margin-left: auto;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 16px;
}

.integration-panel {
  display: flex;
  gap: 14px;
  padding: 20px;
}

.integration-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--green);
}

.integration-icon svg {
  width: 19px;
  height: 19px;
}

.integration-panel h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.integration-panel p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080e15;
}

.code-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aec7e4;
  font-family: var(--mono);
  font-size: 10px;
}

.copy-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.fine-print {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

/* ---------- Broker form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.form {
  padding: 20px 24px 24px;
}

.field {
  margin-bottom: 19px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 7px;
  color: #bccbdb;
  font-size: 11.5px;
  font-weight: 600;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
}

.field input,
.field select {
  width: 100%;
  height: 43px;
  font-size: 13px;
}

.field small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-action {
  position: relative;
}

.input-with-action input {
  padding-right: 42px;
}

.reveal-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  transform: translateY(-50%);
}

.reveal-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.reveal-btn svg {
  width: 16px;
  height: 16px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 91px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.mode-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.028);
}

.mode-card:has(input:checked) {
  border-color: rgba(58, 215, 162, 0.4);
  background: linear-gradient(145deg, rgba(58, 215, 162, 0.085), rgba(58, 215, 162, 0.015));
  box-shadow: inset 0 0 0 1px rgba(58, 215, 162, 0.06);
}

.mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-check {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
}

.mode-card input:checked + .mode-check {
  border: 4.5px solid var(--green);
  background: #082219;
  box-shadow: 0 0 0 3px rgba(58, 215, 162, 0.09);
}

.mode-copy {
  flex: 1;
}

.mode-copy strong {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}

.mode-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.45;
}

.mode-card > .badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 7.5px;
  height: 17px;
}

.live-fields {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.live-fields[hidden] {
  display: none;
}

.callback-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.12);
}

.callback-inline > div {
  min-width: 0;
  flex: 1;
}

.callback-inline span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.callback-inline code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b7cde6;
  font-family: var(--mono);
  font-size: 9.5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-aside {
  display: grid;
  gap: 12px;
}

.guide-card {
  padding: 21px;
}

.guide-card h2 {
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.guide-card > p {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  margin-top: 7px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 10.5px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-size: 10px;
}

.step-list.vertical {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 15px;
  padding-top: 15px;
}

.step-list.vertical li {
  display: flex;
  gap: 9px;
  list-style: none;
}

.step-list.vertical > li > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  padding-top: 2px;
}

.step-list.vertical p {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

.guide-card.subtle {
  display: flex;
  gap: 11px;
  background: rgba(255, 255, 255, 0.012);
}

.mini-lock {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.mini-lock svg {
  width: 16px;
  height: 16px;
}

.guide-card.subtle h3 {
  font-size: 12px;
  font-weight: 600;
}

.guide-card.subtle p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.guide-card.subtle code {
  color: #b7cbe2;
  font-family: var(--mono);
  font-size: 9px;
}

/* ---------- Logs ---------- */

.logs-toolbar .filter-form {
  max-width: 100%;
}

.log-time {
  display: block;
  color: var(--muted);
}

.log-message {
  max-width: 640px;
  color: #c5d2e1;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-word;
}

.log-details {
  margin-top: 5px;
}

.log-details summary {
  display: inline-block;
  color: var(--muted-2);
  font-size: 9px;
  cursor: pointer;
  list-style: none;
}

.log-details summary::-webkit-details-marker {
  display: none;
}

.log-details summary::before {
  content: "▸ ";
}

.log-details[open] summary::before {
  content: "▾ ";
}

.log-details pre {
  max-width: 640px;
  margin: 7px 0 0;
  padding: 9px 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #080e15;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

/* ---------- Error ---------- */

.error-state {
  max-width: 620px;
  margin: 40px auto;
  padding: 54px 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(400px 240px at 50% 0%, rgba(255, 117, 132, 0.07), transparent 70%),
    var(--panel);
  text-align: center;
}

.error-code {
  color: var(--red);
  font-family: var(--mono);
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.error-state h2 {
  margin-top: 16px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.error-state p {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .form-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .broker-title h2 {
    max-width: 190px;
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 222px;
  }

  .topbar,
  .content {
    padding-left: 26px;
    padding-right: 26px;
  }

  .stat-value {
    font-size: 22px;
  }

  .onboarding {
    padding: 34px;
  }

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

  .form-aside {
    grid-template-columns: 1fr 1fr;
  }

  .form-aside .guide-card.subtle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 68px;
    flex-direction: row;
    align-items: center;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(9, 14, 21, 0.96);
    backdrop-filter: blur(20px);
  }

  .sidebar::after,
  .brand,
  .sidebar-foot {
    display: none;
  }

  .nav {
    flex-direction: row;
    width: 100%;
    gap: 2px;
    margin: 0;
  }

  .nav-link {
    flex: 1;
    height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: 0.01em;
  }

  .nav-link svg {
    width: 19px;
    height: 19px;
  }

  .nav-link.active {
    box-shadow: inset 0 2px 0 var(--green);
    background: rgba(58, 215, 162, 0.075);
  }

  .app-shell {
    margin-left: 0;
    padding-bottom: 72px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
  }

  .mobile-brand .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 11px;
  }

  .topbar {
    padding-top: 20px;
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .onboarding {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .onboarding-visual {
    display: none;
  }

  .onboarding-copy {
    max-width: none;
  }

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

  .app-footer {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 18px 14px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .topbar-actions form {
    flex: 1;
  }

  .topbar-actions form .btn {
    width: 100%;
  }

  .content {
    padding: 12px 18px 28px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .stat-card {
    padding: 14px 15px;
  }

  .stat-value {
    font-size: 20px;
  }

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

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

  .filter-form {
    width: 100%;
  }

  .filter-form .select-wrap {
    flex: 1;
  }

  .filter-form select {
    width: 100%;
  }

  .search-wrap {
    flex: 1 1 100%;
  }

  .toolbar-meta {
    padding-left: 2px;
  }

  .onboarding {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .onboarding-copy h2 {
    font-size: 30px;
  }

  .step-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .summary-strip > div {
    flex-basis: 45%;
  }

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

  .broker-card {
    padding: 16px;
  }

  .broker-title h2 {
    max-width: 180px;
  }

  .form-aside {
    grid-template-columns: 1fr;
  }

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

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

  .panel-head,
  .form {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .panel-head.compact {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form-errors {
    margin-left: 17px;
    margin-right: 17px;
  }

  .logs-table {
    min-width: 820px;
  }

  .app-footer {
    display: none;
  }

  .error-state {
    margin: 18px auto;
    padding: 40px 20px;
  }

  .error-code {
    font-size: 52px;
  }
}

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

  .topbar h1 {
    font-size: 22px;
  }

  .page-sub {
    font-size: 11.5px;
  }

  .summary-strip > div {
    flex-basis: 100%;
  }

  .broker-metrics {
    gap: 2px;
  }

  .broker-actions .push-right {
    margin-left: 0;
  }

  .empty-actions {
    flex-direction: column;
    align-items: stretch;
    padding-left: 20px;
    padding-right: 20px;
  }

  .pagination {
    gap: 8px;
  }
}

@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;
  }
}

.flash.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.copy-btn.copied {
  color: var(--green);
  border-color: var(--green-line);
  background: var(--green-soft);
}

.reveal-btn.is-active {
  color: var(--green);
}

.tone-green { color: var(--green); }
.tone-red { color: var(--red); }
.tone-amber { color: var(--amber); }
.tone-blue { color: var(--blue); }
.tone-gray { color: var(--muted); }

.label-note {
  margin-left: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.broker-callback-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 14px;
  padding: 8px 9px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.broker-callback-row > div {
  min-width: 0;
  flex: 1;
}

.broker-callback-row span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.broker-callback-row code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aec7e4;
  font-family: var(--mono);
  font-size: 9px;
}

.broker-mini-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fine-print code {
  color: #a9c1dc;
  font-family: var(--mono);
  font-size: 9px;
}

/* ---------- Profiles & funds ---------- */

.broker-profile-name {
  max-width: 240px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-mini-foot {
  gap: 12px;
}

.broker-mini-foot span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.profile-list {
  display: grid;
  gap: 16px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(58, 215, 162, 0.045), transparent 70%),
    linear-gradient(160deg, rgba(18, 27, 39, 0.96), rgba(10, 16, 24, 0.97));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 23px 18px;
  border-bottom: 1px solid var(--line);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.profile-avatar {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(58, 215, 162, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(58, 215, 162, 0.2), rgba(58, 215, 162, 0.04));
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-avatar.demo {
  border-color: rgba(255, 201, 101, 0.22);
  background: linear-gradient(145deg, rgba(255, 201, 101, 0.17), rgba(255, 201, 101, 0.035));
  color: var(--amber);
}

.profile-identity h2 {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.profile-identity p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.profile-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.profile-body {
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 18px;
}

.profile-detail-grid span,
.profile-tags > div > span {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-detail-grid strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #cbd8e8;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tags {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr;
  gap: 14px 20px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.chip-outline {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.profile-missing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 23px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.profile-missing span:last-child {
  color: var(--muted);
  font-size: 9.5px;
}

.funds-section {
  padding: 19px 23px 23px;
}

.funds-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.funds-section-head h3 {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.funds-section-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

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

.fund-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

.fund-card.is-disabled {
  opacity: 0.62;
}

.fund-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}

.fund-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fund-name > span:first-child {
  font-size: 12px;
  font-weight: 650;
}

.fund-net {
  text-align: right;
}

.fund-net span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fund-net strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.fund-column {
  min-width: 0;
  padding: 13px 15px 14px;
}

.fund-column + .fund-column {
  border-left: 1px solid var(--line);
}

.fund-column h4 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fund-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.fund-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fund-list dt {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-list dd {
  flex: none;
  color: #cbd8e6;
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

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

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

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

@media (max-width: 760px) {
  .profile-card-head {
    flex-direction: column;
    padding: 18px 17px 15px;
  }

  .profile-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .profile-body {
    padding: 16px 17px;
  }

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

  .profile-tags {
    grid-template-columns: 1fr;
  }

  .funds-section {
    padding: 16px 17px 18px;
  }

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

  .fund-column + .fund-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-missing {
    flex-direction: column;
    align-items: flex-start;
    margin: 15px 17px;
  }

  .broker-mini-foot {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
}

@media (max-width: 520px) {
  .profile-identity h2 {
    font-size: 17px;
  }

  .profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 17px;
  }

  .fund-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fund-net {
    text-align: left;
  }
}

.funds-section .profile-missing {
  margin: 0;
}

.time-ago {
  font-variant-numeric: tabular-nums;
}

.fact-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
}

.mode-card.is-inactive {
  opacity: 0.48;
  cursor: not-allowed;
}

.mode-card.is-inactive:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.mode-card.is-inactive .mode-check {
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.form-layout.single-column {
  grid-template-columns: minmax(0, 860px);
}

/* ---------- Selection, order actions, modals ---------- */

[hidden] {
  display: none !important;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.select-col {
  width: 42px;
  padding-right: 4px !important;
  text-align: center;
}

.select-col input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
  vertical-align: middle;
}

.select-col input[type="checkbox"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.order-row {
  cursor: pointer;
}

.order-row:focus-visible {
  outline: 2px solid rgba(58, 215, 162, 0.65);
  outline-offset: -2px;
}

.order-row.is-selected td,
.position-row.is-selected td {
  background: rgba(58, 215, 162, 0.045);
}

.btn-danger {
  color: #2a060a;
  background: linear-gradient(135deg, #ff9aa4, #ff6f7d 58%, #e65061);
  box-shadow: 0 8px 22px rgba(255, 111, 125, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ffadb5, #ff8490 58%, #ef5c6c);
}

.context-menu {
  position: fixed;
  z-index: 90;
  min-width: 176px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(14, 21, 31, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c7d4e4;
  font-size: 12px;
  text-align: left;
}

.context-menu-item svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.context-menu-item:hover,
.context-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.context-menu-item:hover svg {
  color: var(--green);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 11, 0.76);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background:
    radial-gradient(340px 200px at 100% 0%, rgba(58, 215, 162, 0.055), transparent 70%),
    linear-gradient(165deg, #111a26, #0b121b);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal-wide {
  width: min(100%, 760px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.modal-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.modal-actions form {
  display: flex;
}

.modal-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
}

.depth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.depth-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.depth-panel h3 {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.depth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  gap: 8px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.depth-row:first-of-type {
  border-top: 0;
}

.depth-row span:not(:first-child) {
  text-align: right;
}

.depth-row .depth-buy {
  color: var(--green);
}

.depth-row .depth-sell {
  color: var(--red);
}

.depth-empty {
  padding: 12px;
  color: var(--muted-2);
  font-size: 11px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}

.order-info-item {
  min-width: 0;
  padding: 11px 13px;
  background: #0d151f;
}

.order-info-item span {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-info-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #d3dfed;
  font-size: 11.5px;
  font-weight: 600;
}

.cancel-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cancel-table {
  width: 100%;
  min-width: 620px;
  font-size: 11.5px;
}

.cancel-table th {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.022);
}

.cancel-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

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

.cancel-table td:first-child {
  color: #d4e0ee;
  font-size: 10.5px;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(14, 21, 31, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #d5e1ee;
  font-size: 11.5px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .panel-head-actions {
    justify-content: flex-start;
  }

  .modal {
    padding: 12px;
    align-items: end;
  }

  .modal-card,
  .modal-wide {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 12px 12px;
  }

  .modal-head,
  .modal-body,
  .modal-actions {
    padding-left: 17px;
    padding-right: 17px;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
  }

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

  .app-toast {
    bottom: 82px;
    max-width: calc(100vw - 28px);
    text-align: center;
  }
}

/* ---------- Order tabs and GTT ---------- */

.subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 15px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(15, 22, 32, 0.75);
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.subnav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.subnav-link.active {
  color: var(--text);
  background: rgba(58, 215, 162, 0.11);
  box-shadow: inset 0 0 0 1px rgba(58, 215, 162, 0.2);
}

.subnav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.subnav-link.active .subnav-count {
  background: rgba(58, 215, 162, 0.14);
  color: var(--green);
}

.gtt-table {
  min-width: 900px;
}

.gtt-trigger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gtt-trigger {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #d2dfed;
  font-family: var(--mono);
  font-size: 9.5px;
}

.gtt-orders {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 210px;
}

.gtt-order-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #c5d3e2;
}

.gtt-order-line > span:nth-child(2) {
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.gtt-order-line small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.gtt-order-line .badge {
  height: 17px;
  font-size: 7.5px;
}

.gtt-order-line .gtt-reject-reason {
  flex-basis: 100%;
  color: var(--red);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .subnav {
    width: 100%;
  }

  .subnav-link {
    flex: 1;
    justify-content: center;
  }
}


.symbol-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.symbol-meta {
  margin-right: 2px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.symbol-tags .side {
  height: 18px;
  padding: 0 6px;
  font-size: 8px;
}

.symbol-tags .chip-outline {
  height: 18px;
  padding: 0 6px;
  font-size: 8px;
  color: var(--muted);
}

.context-menu-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gtt-row {
  cursor: pointer;
}

.gtt-row:focus-visible {
  outline: 2px solid rgba(58, 215, 162, 0.65);
  outline-offset: -2px;
}

.gtt-row.is-selected td {
  background: rgba(58, 215, 162, 0.045);
}

.gtt-info-orders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gtt-info-orders h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.gtt-type-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.gtt-change {
  font-family: var(--mono);
  font-size: 8.5px;
}

.gtt-change.positive {
  color: var(--green);
}

.gtt-change.negative {
  color: var(--red);
}

.gtt-modify-leg + .gtt-modify-leg {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gtt-modify-leg h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gtt-modify-leg .field-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .gtt-modify-leg .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Place order ticket ---------- */

#place-order-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.po-body {
  display: grid;
  gap: 16px;
}

.po-section {
  display: grid;
  gap: 7px;
}

.po-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.po-label {
  color: #bccbdb;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.po-hint {
  color: var(--muted-2);
  font-size: 9px;
}

.po-broker-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.po-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  text-align: left;
}

.po-chip:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.po-chip.active {
  border-color: rgba(58, 215, 162, 0.4);
  background: rgba(58, 215, 162, 0.075);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(58, 215, 162, 0.06);
}

.po-chip-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.po-chip-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-chip-copy small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.po-segment {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.14);
}

.po-segment-btn {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.po-segment-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.po-segment-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.po-segment-btn.active.buy {
  color: var(--green);
  background: var(--green-soft);
}

.po-segment-btn.active.sell {
  color: var(--red);
  background: var(--red-soft);
}

.side-toggle .po-segment-btn.active {
  background: rgba(255, 255, 255, 0.075);
}

.po-search {
  position: relative;
  display: flex;
  align-items: center;
}

.po-search > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.po-search > input {
  width: 100%;
  height: 43px;
  padding-left: 36px;
  padding-right: 105px;
}

.po-search-status {
  position: absolute;
  right: 10px;
  color: var(--muted-2);
  font-size: 8.5px;
  pointer-events: none;
}

.po-symbol-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 8;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0c141d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.po-symbol-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.po-symbol-result:hover,
.po-symbol-result:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.po-symbol-result strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.po-symbol-result small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-symbol-result > span:last-child {
  flex: none;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.po-search-empty {
  padding: 10px;
  color: var(--muted-2);
  font-size: 10px;
}

.po-selected-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(58, 215, 162, 0.24);
  border-radius: 9px;
  background: rgba(58, 215, 162, 0.06);
  color: #cce4d9;
  font-size: 10.5px;
}

.po-selected-symbol code {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.po-selected-symbol small {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8.5px;
}

.po-order-ltp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.po-order-ltp strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
}

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

.po-grid .field {
  margin: 0;
}

.po-grid .field label {
  font-size: 10px;
}

.po-grid .field input,
.po-grid .field select {
  height: 39px;
  font-size: 12px;
}

.po-grid .field input[disabled],
.po-grid .field select[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.po-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.5;
}

.po-message.is-error {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: #ffc1c8;
}

.po-message.is-success {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: #baf5de;
}

.po-message.is-warning {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: #ffe1a6;
}

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

  .po-mode-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .po-segment {
    width: 100%;
  }

  .po-segment-btn {
    flex: 1;
  }

  .po-search > input {
    padding-right: 80px;
  }
}

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

.po-gtt-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.012);
}

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

.po-gtt-instrument {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 3px;
}

.po-gtt-instrument strong {
  font-size: 13px;
  font-weight: 650;
}

.po-gtt-instrument span {
  color: var(--muted-2);
  font-size: 9px;
}

.po-gtt-instrument b {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.po-gtt-trigger-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.po-gtt-help {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.po-gtt-single,
.po-gtt-oco {
  display: grid;
  gap: 10px;
}

.po-leg {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.po-leg-stop {
  border-color: rgba(255, 117, 132, 0.18);
}

.po-leg-target {
  border-color: rgba(58, 215, 162, 0.18);
}

.po-leg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.po-leg-head > span {
  color: #cbd8e8;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.po-leg-head small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.po-leg-head small b {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
}

.po-trigger-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
  margin-bottom: 9px;
}

.po-leg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr 1fr;
  gap: 8px;
}

.po-leg .field {
  margin: 0;
}

.po-leg .field label {
  font-size: 9px;
}

.po-leg .field input,
.po-leg .field select {
  height: 36px;
  font-size: 11px;
}

.po-oco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.po-disclaimer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .po-oco-grid {
    grid-template-columns: 1fr;
  }

  .po-leg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .po-gtt-trigger-type {
    align-items: flex-start;
    flex-direction: column;
  }

  .po-gtt-trigger-type .po-segment {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .po-trigger-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Broker active toggle ---------- */

.broker-card-head-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  flex: none;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0 3px 3px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
}

.toggle-track {
  position: relative;
  width: 30px;
  height: 17px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: transform 160ms ease, background 160ms ease;
}

.toggle-control.is-on .toggle-track {
  border-color: rgba(58, 215, 162, 0.38);
  background: rgba(58, 215, 162, 0.16);
}

.toggle-control.is-on .toggle-knob {
  background: var(--green);
  transform: translateX(13px);
  box-shadow: 0 0 8px rgba(58, 215, 162, 0.5);
}

.toggle-label {
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toggle-control.is-on .toggle-label {
  color: var(--green);
}

.broker-card.is-inactive {
  border-style: dashed;
  background:
    linear-gradient(160deg, rgba(15, 22, 32, 0.9), rgba(10, 15, 23, 0.94));
}

.broker-inactive-note {
  margin: 15px 0 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.live-status.tone-green {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.live-status.tone-amber {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

.live-status.tone-red {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}

.live-status.tone-gray {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.live-status.tone-green .live-status-dot {
  box-shadow: 0 0 8px rgba(58, 215, 162, 0.7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes tick-up {
  0% { background: rgba(58, 215, 162, 0.28); color: var(--green); }
  100% { background: transparent; }
}

@keyframes tick-down {
  0% { background: rgba(255, 117, 132, 0.28); color: var(--red); }
  100% { background: transparent; }
}

.tick-up {
  animation: tick-up 550ms ease;
}

.tick-down {
  animation: tick-down 550ms ease;
}


/* ---------- Auth & settings ---------- */

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 0;
}

.auth-shell {
  width: min(430px, calc(100% - 32px));
}

.auth-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: inherit;
  text-decoration: none;
}

.auth-brand-copy strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.auth-brand-copy small {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.auth-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.auth-submit {
  width: 100%;
  height: 38px;
  justify-content: center;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 11px;
}

.auth-links a {
  color: var(--muted);
}

.auth-links a:hover {
  color: var(--text);
}

.auth-foot {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-stack {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.settings-form {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.settings-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}

.settings-note {
  margin: 0 0 10px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.sidebar-user form {
  margin: 0;
}

.sidebar-logout {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sidebar-logout:hover {
  color: var(--text);
}
