:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #080808;
  --panel: #121212;
  --panel-soft: #171717;
  --line: rgba(255, 255, 255, 0.09);
  --text-muted: #a3a3a3;
  --green: #34d399;
  --red: #f87171;
  --cyan: #22d3ee;
  --amber: #fbbf24;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden],
.hidden {
  display: none !important;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

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

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

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

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

.justify-end {
  justify-content: flex-end;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.mt-1 {
  margin-top: 4px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.space-y-2 > * + * {
  margin-top: 8px;
}

.space-y-6 > * + * {
  margin-top: 24px;
}

.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.bg-neutral-950 {
  background-color: #0a0a0a;
}

.text-neutral-100 {
  color: #f5f5f5;
}

.text-neutral-300 {
  color: #d4d4d4;
}

.text-neutral-500 {
  color: #737373;
}

.text-emerald-300 {
  color: #6ee7b7;
}

.text-red-300 {
  color: #fca5a5;
}

.text-xs {
  font-size: 12px;
  line-height: 16px;
}

.text-sm {
  font-size: 14px;
  line-height: 20px;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 34rem),
    linear-gradient(135deg, #080808 0%, #111111 52%, #070707 100%);
}

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

.app-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 28px;
  margin: 0 auto;
}

.topbar,
.panel-heading,
.section-heading,
.options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  margin-bottom: 28px;
}

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

.auto-wallet-connect-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.auto-wallet-connect-address {
  display: block;
  max-width: 118px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-wallet-connect-address.hidden {
  display: none;
}

.auto-web-fee-fill-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.auto-web-fee-fill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(8, 15, 34, 0.7);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.auto-web-fee-fill-button:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(14, 24, 52, 0.92);
  color: #f0f9ff;
}

.auto-web-fee-fill-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: #fafafa;
  font-size: 34px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.module-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.metric-card {
  min-height: 126px;
  padding: 18px;
}

.metric-card.compact {
  min-height: 104px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  color: #fafafa;
  font-size: 28px;
  font-weight: 800;
}

.balance-total-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-total-value strong {
  margin-bottom: 0;
}

.covered-call-indicator-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  cursor: default;
}

.covered-call-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fb923c;
  box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55);
  animation: covered-call-pulse 1.4s ease-in-out infinite;
}

.covered-call-indicator-wrap.secured-put .covered-call-indicator-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.covered-call-indicator-wrap.secured-put .covered-call-indicator-tooltip {
  border-color: rgba(148, 163, 184, 0.24);
}

.covered-call-indicator-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 8px;
  background: #111111;
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.covered-call-indicator-wrap:hover .covered-call-indicator-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes covered-call-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(251, 146, 60, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
  }
}

.current-operation-card strong {
  color: #fafafa;
  font-size: 20px;
}

.current-operation-card em {
  display: block;
  margin-top: 4px;
  color: #fafafa;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.panel {
  padding: 20px;
}

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

.panel h2,
.section-heading h2,
.options-header h2 {
  margin: 0;
  color: #fafafa;
  font-size: 20px;
  font-weight: 750;
}

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

.chart-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
}

.chart-frame-lg {
  height: 260px;
}

.chart-frame-md {
  height: 260px;
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-note,
.chart-empty-state p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.chart-empty-state h2 {
  margin: 0;
  color: #fafafa;
  font-size: 20px;
  font-weight: 800;
}

.chart-switcher {
  display: flex;
  width: fit-content;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
}

.chart-switcher-left {
  justify-content: flex-start;
}

.chart-switch {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-switch.active,
.chart-switch:hover {
  background: rgba(52, 211, 153, 0.12);
  color: #f5f5f5;
}

.status-pill,
.profit-badge,
.loss-badge,
.module-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.positive,
.profit-badge {
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.10);
  color: var(--green);
}

.status-pill.negative {
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.10);
  color: var(--red);
}

.loss-badge {
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.10);
  color: var(--red);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.module-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  transition: 180ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
}

.module-status {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.module-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d4d4d4;
}

.options-header {
  align-items: flex-start;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.options-header-copy {
  max-width: 760px;
}

.options-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
}

.investment-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.investment-panel h2 {
  margin: 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 800;
}

.investment-panel p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.investment-input {
  display: grid;
  min-width: 150px;
  gap: 5px;
}

.investment-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.investment-input span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.investment-input input {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.14);
  color: #fef3c7;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.investment-input input:focus {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.options-tabs a {
  min-width: 94px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.options-tabs a.active,
.options-tabs a:hover {
  background: rgba(52, 211, 153, 0.12);
  color: #f5f5f5;
}

.lending-heading {
  align-items: flex-start;
}

.wallet-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wallet-tab-button {
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5f5;
  text-align: left;
}

.wallet-tab-button span {
  font-size: 14px;
  font-weight: 800;
}

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

.wallet-tab-button small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.wallet-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d4;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.wallet-edit-button:hover {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: #f5f5f5;
}

.wallet-tab-button.active,
.wallet-tab-button:hover {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.10);
}

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

.lending-simulator-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.lending-simulator-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lending-simulator-banner strong {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.lending-simulator-banner small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.lending-simulator-banner.is-simulated {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}

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

.lending-simulator-field {
  display: grid;
  gap: 6px;
}

.lending-simulator-field span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lending-simulator-field textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.lending-simulator-field textarea:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10);
}

.lending-simulator-hint {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.lending-simulator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lending-simulator-actions .ghost-button,
.lending-simulator-actions .primary-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 32px;
}

.lending-position-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.lending-position-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lending-position-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lending-asset-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.lending-asset-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: #d1fae5;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.lending-position-asset strong {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.lending-position-asset small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.lending-position-value {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.lending-empty-list {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.lending-collateral-icons {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lending-investment-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lending-detected-events {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lending-detected-event {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lending-detected-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lending-detected-event-title {
  color: #fafafa;
  font-size: 14px;
  font-weight: 800;
}

.lending-detected-event-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.lending-detected-event-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lending-detected-event-stat {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.lending-detected-event-stat span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lending-detected-event-stat strong {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.lending-detected-event-controls {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 12px;
  align-items: end;
}

.lending-detected-event-select {
  display: grid;
  gap: 5px;
}

.lending-detected-event-select span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lending-detected-event-select select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.lending-detected-event-select select:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10);
}

.lending-detected-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lending-detected-event-actions .ghost-button,
.lending-detected-event-actions .primary-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 30px;
}

.lending-investment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lending-investment-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lending-investment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lending-investment-summary {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.lending-investment-summary-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}

.lending-investment-symbols {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.investment-symbol-group {
  display: grid;
  gap: 6px;
}

.investment-symbol-group small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.investment-symbol-separator {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 900;
}

.investment-symbol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 12px;
  font-weight: 800;
}

.lending-performance-bar {
  position: relative;
  width: auto;
  min-width: 140px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.08) 0%, rgba(248, 113, 113, 0.02) 50%, rgba(52, 211, 153, 0.02) 50%, rgba(52, 211, 153, 0.08) 100%);
  overflow: hidden;
  flex: 1 1 auto;
}

.performance-fill {
  position: absolute;
  top: 0;
  bottom: 0;
}

.lending-performance-bar.positive .performance-fill {
  left: 50%;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.28), rgba(52, 211, 153, 0.75));
}

.lending-performance-bar.negative .performance-fill {
  right: 50%;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.75), rgba(248, 113, 113, 0.28));
}

.performance-zero-line {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.performance-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  font-size: 10px;
  font-weight: 900;
  z-index: 1;
}

.lending-investment-summary-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.lending-investment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.10);
}

.lending-investment-body {
  margin-top: 14px;
}

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

.lending-investment-field {
  display: grid;
  gap: 5px;
}

.lending-investment-field span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lending-investment-field input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.lending-investment-field input:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10);
}

.lending-investment-field select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  color-scheme: dark;
}

.lending-investment-field select:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10);
}

.lending-investment-field select option,
.lending-detected-event-select select option {
  background: #0b0b0b;
  color: #fafafa;
}

.lending-investment-field select:disabled {
  background: rgba(255, 255, 255, 0.025);
  color: #f5f5f5;
  opacity: 1;
}

.lending-investment-readonly {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 700;
}

.lending-investment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.lending-amortization-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lending-amortization-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lending-amortization-header strong {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.lending-amortization-form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.lending-amortization-field {
  flex: 1 1 auto;
}

.lending-amortization-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.lending-amortization-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.lending-amortization-row strong {
  color: #fafafa;
  font-size: 12px;
  font-weight: 800;
}

.lending-amortization-row small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.lending-investment-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lending-investment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 11px;
  font-weight: 800;
}

.lending-investment-chip-positive {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.lending-investment-chip-negative {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.metric-card strong.metric-value-positive {
  color: var(--green) !important;
}

.metric-card strong.metric-value-negative {
  color: #f87171 !important;
}

.investment-action-button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 28px;
}

.lending-investment-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.lending-investment-card.is-collapsed .lending-investment-body {
  display: none;
}

.asset-price-strip {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
}

.asset-price-strip-title {
  margin-top: 10px;
  margin-left: 0;
  justify-content: flex-start;
}

.asset-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.asset-price span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.asset-price strong {
  color: #34d399;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.asset-price.price-error strong {
  color: #f87171;
}

.options-books-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.options-books {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.options-archived-strip {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.options-archived-strip > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.options-books-archived .options-book-tab {
  border-style: dashed;
}

.options-book-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 800;
}

.options-book-tab span {
  color: #f5f5f5;
}

.options-book-tab .options-book-asset {
  color: #8f8f8f;
}

.options-book-tab.active {
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.12);
  color: #d9fbff;
}

.options-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.options-section-tabs .ghost-button.active {
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.12);
  color: #d9fbff;
}

.options-section-tabs .ghost-button[data-options-link-target="graficas"]:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
}

.options-compact-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 32px;
}

.current-operation-panel {
  display: grid;
  gap: 16px;
}

.current-operation-workspace {
  display: grid;
  gap: 14px;
}

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

.current-operation-summary-card {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.current-operation-summary-card span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-operation-summary-card strong {
  color: #fafafa;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.current-operation-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(255, 255, 255, 0.025));
}

.current-operation-field {
  display: grid;
  gap: 6px;
}

.current-operation-field span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-operation-field input,
.current-operation-field select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.current-operation-field input:focus,
.current-operation-field select:focus {
  border-color: rgba(34, 211, 238, 0.30);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}

.current-operation-readonly {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.current-operation-empty,
.history-panel-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.current-operation-empty strong,
.history-panel-empty strong {
  color: #fafafa;
  font-size: 14px;
  font-weight: 800;
}

.current-operation-empty span,
.history-panel-empty span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.history-pagination span {
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 800;
}

.panel-subcopy {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 760px;
}

.ghost-button,
.primary-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f5f5;
  font-weight: 700;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
}

.danger-action {
  border-color: rgba(248, 113, 113, 0.26);
  color: #fecaca;
}

.warning-action {
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.primary-button {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.16);
}

.panel-actions .ghost-button,
.panel-actions .primary-button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 28px;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.table-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.column-picker {
  position: relative;
  z-index: 5;
}

.column-picker summary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 800;
  line-height: 34px;
  cursor: pointer;
  list-style: none;
}

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

.column-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 260px;
  max-height: 340px;
  overflow-y: auto;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.metric-card strong.text-emerald-300 {
  color: #34d399 !important;
}

.metric-card strong.text-red-300 {
  color: #f87171 !important;
}

.auth-body {
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.1), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.08), transparent 26rem),
    linear-gradient(135deg, #080808 0%, #111111 52%, #070707 100%);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
}

.auth-panel {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.86);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.auth-brand {
  margin-bottom: 24px;
}

.auth-copy {
  margin-bottom: 18px;
}

.auth-title {
  font-size: 30px;
}

.auth-description {
  margin-top: 8px;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.55;
}

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

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 46px;
}

.auth-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #a3a3a3;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 4px;
  width: 34px;
}

.auth-password-toggle:hover,
.auth-password-toggle.active {
  color: var(--green);
}

.auth-password-toggle svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.auth-field small {
  color: var(--text-muted);
  font-size: 12px;
}

.auth-submit {
  justify-content: center;
}

.auth-switch {
  margin-top: 16px;
  color: #a3a3a3;
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
}

.auth-flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-flash {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 700;
}

.auth-flash.success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.auth-flash.error {
  margin-bottom: 14px;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.column-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #d4d4d4;
  font-size: 12px;
  font-weight: 750;
}

.column-picker-option input {
  accent-color: #34d399;
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

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

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot.manual {
  background: rgba(34, 211, 238, 0.65);
}

.legend-dot.locked {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.legend-dot.success {
  background: var(--green);
}

.options-table {
  width: 100%;
  min-width: 1480px;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.options-table th {
  padding: 0 8px 6px;
  color: #8b8b8b;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.2;
}

.options-table td {
  height: 42px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #e5e5e5;
  font-size: 12px;
  font-weight: 650;
  outline: none;
  white-space: nowrap;
  vertical-align: middle;
}

.options-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.options-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.options-table [data-column-hidden],
.options-table [data-field][data-column-hidden] {
  display: none;
}

.options-table td[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.55);
}

.table-select {
  width: 100%;
  min-width: 116px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #111111;
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 800;
}

.table-select.state-select {
  min-width: 118px;
}

.locked-select {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.16);
  background: #050505;
  color: #ffffff;
  opacity: 1;
}

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

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

.success-cell {
  background: rgba(52, 211, 153, 0.88) !important;
  color: #03120c !important;
}

.danger-cell {
  background: rgba(248, 113, 113, 0.88) !important;
  color: #1b0505 !important;
}

.muted-cell {
  background: rgba(115, 115, 115, 0.34) !important;
  color: #e5e5e5 !important;
}

.manual-cell {
  border-color: rgba(34, 211, 238, 0.22) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #f5f5f5 !important;
  line-height: 42px;
}

.manual-cell:empty::before {
  content: attr(data-placeholder);
  color: #737373;
  font-weight: 700;
  line-height: 42px;
}

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

.options-table tr[data-row-bucket="history"] td {
  background: rgba(255, 255, 255, 0.028);
}

.options-table tr[data-row-bucket="current"] td {
  background: rgba(34, 211, 238, 0.05);
}

.locked-cell {
  background: #030303 !important;
  color: #ffffff !important;
}

.linked-cell {
  border-color: rgba(251, 191, 36, 0.34) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fef3c7 !important;
}

.blocked-delete-row td {
  border-top-color: rgba(248, 113, 113, 0.7);
  border-bottom-color: rgba(248, 113, 113, 0.7);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
}

.options-carryover-modal[hidden] {
  display: none;
}

.options-carryover-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.options-carryover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.options-carryover-dialog {
  position: relative;
  width: min(92vw, 520px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    #090909;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.options-carryover-header h3 {
  margin-top: 4px;
  color: #fafafa;
  font-size: 20px;
  font-weight: 850;
}

.options-carryover-copy {
  margin-top: 10px;
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.5;
}

.options-carryover-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.options-carryover-total span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.options-carryover-total strong {
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 900;
}

.options-carryover-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.options-carryover-choice input {
  margin-top: 2px;
  accent-color: #34d399;
}

.options-carryover-choice strong {
  color: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.options-carryover-choice small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.options-carryover-input {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.options-carryover-input span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.options-carryover-input input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.options-carryover-input input:focus {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.10);
}

.options-carryover-input input:disabled {
  opacity: 0.55;
}

.options-carryover-helper {
  min-height: 18px;
  margin-top: 10px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
}

.options-carryover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.movement-cell {
  min-width: 102px;
  font-weight: 900;
}

.movement-pending-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.movement-primary {
  color: #fb923c;
}

.movement-secondary {
  color: #fdba74;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.movement-remove-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.movement-remove-button:hover {
  color: #fb923c;
}

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

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

.movement-pending {
  color: #fb923c !important;
}

.activity-list,
.summary-stack {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.activity-row,
.summary-stack div {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.activity-row span,
.summary-stack span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.activity-row strong,
.summary-stack strong {
  display: block;
  margin-top: 4px;
  color: #f5f5f5;
  font-size: 14px;
}

.activity-row em {
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-content {
    grid-column: 1;
  }

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

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

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

@media (max-width: 720px) {
  .main-content,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .options-header,
  .panel-heading,
  .investment-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .investment-input {
    width: 100%;
    min-width: 0;
  }

  .investment-fields {
    width: 100%;
  }

  .topbar-actions,
  .options-books {
    width: 100%;
    overflow-x: auto;
  }

  .page-title {
    font-size: 28px;
  }

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

  .current-operation-summary-grid,
  .current-operation-editor {
    grid-template-columns: 1fr;
  }

  .lending-investment-header {
    flex-direction: column;
  }

  .lending-investment-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .lending-investment-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lending-investment-symbols,
  .lending-investment-summary-stats {
    flex-wrap: wrap;
  }

  .lending-investment-grid {
    grid-template-columns: 1fr;
  }

  .lending-detected-event-grid,
  .lending-detected-event-controls {
    grid-template-columns: 1fr;
  }

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

.lending-amortization-header,
.lending-amortization-form,
.lending-amortization-row {
  align-items: flex-start;
  flex-direction: column;
}
}

.auto-options-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auto-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auto-primary-tabs,
.auto-secondary-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.auto-primary-panel,
.auto-secondary-panel {
  display: none;
}

.auto-primary-panel.active,
.auto-secondary-panel.active {
  display: block;
}

.auto-chart-card {
  min-height: 560px;
}

.auto-chart-tabs {
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  justify-items: stretch;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auto-chart-tabs::-webkit-scrollbar {
  display: none;
}

.auto-chart-panel {
  display: none;
}

.auto-chart-panel.active {
  display: block;
}

.auto-chart-title {
  margin: 18px 0 10px;
  color: #e8efff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.auto-chart-explainer {
  max-width: 980px;
  margin: -2px 0 12px;
  color: #aab7d4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.auto-chart-frame {
  position: relative;
  width: 100%;
  height: 430px;
  padding: 18px;
  border: 1px solid rgba(77, 98, 138, 0.22);
  border-radius: 8px;
  background: rgba(3, 9, 22, 0.72);
  overflow: hidden;
}

.auto-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auto-chart-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aab7d4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auto-chart-period select {
  min-width: 136px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #e8efff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.auto-chart-total {
  color: #e8efff;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.auto-chart-total.is-positive {
  color: #86efac;
}

.auto-chart-total.is-negative {
  color: #fb7185;
}

.auto-chart-frame canvas {
  width: 100% !important;
  height: calc(100% - 44px) !important;
}

.auto-chart-empty {
  margin-top: 18px;
}

#auto-simulation-open,
.auto-options-page #auto-new-investment,
.auto-options-page #auto-archive-investment {
  display: none;
}

.auto-options-page .auto-primary-tabs-top,
.auto-options-page [data-auto-secondary-panel="configuracion"] > .grid:nth-of-type(2),
.auto-options-page [data-auto-secondary-panel="configuracion"] > article.panel-card {
  display: none !important;
}

.auto-options-page .auto-tab-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid:first-child > article:first-child,
.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid:first-child > article:nth-child(3),
.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid:nth-of-type(2) {
  display: none;
}

.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid:first-child {
  display: block;
}

.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid:first-child > article:nth-child(2) {
  max-width: 760px;
}

.auto-secondary-panel[data-auto-secondary-panel="configuracion"] > .grid {
  display: none !important;
}

.auto-account-settings {
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.auto-account-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.auto-account-card {
  display: grid;
  gap: 14px;
  border-color: rgba(91, 111, 178, 0.2);
  background:
    linear-gradient(145deg, rgba(10, 17, 36, 0.94), rgba(4, 8, 20, 0.92)),
    rgba(8, 13, 30, 0.92);
}

.auto-account-profile-card {
  align-self: start;
  grid-column: 1;
  grid-row: 1;
}

.auto-account-password-card {
  grid-column: 2;
  grid-row: 1;
}

.auto-account-strategy {
  grid-column: 1;
  grid-row: 2;
}

.auto-account-2fa {
  grid-column: 1 / -1;
  grid-row: 3;
}

.admin-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 720px) {
  .admin-settings-form {
    grid-template-columns: 1fr;
  }
}

.auto-account-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auto-account-card-head h3 {
  margin: 2px 0 0;
  color: #f7f8ff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.auto-account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auto-account-profile-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  align-items: end;
  gap: 12px;
}

.auto-account-profile-form .auto-account-email-field {
  grid-column: 1 / 3;
}

.auto-account-profile-form input[readonly] {
  color: #94a3b8;
  cursor: not-allowed;
}

.auto-account-profile-form .auto-account-actions {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: flex-end;
}

.auto-account-profile-form .auto-account-status {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .auto-account-grid {
    grid-template-columns: 1fr;
  }

  .auto-account-profile-form {
    grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1fr);
  }

  .auto-account-profile-form .auto-account-email-field {
    grid-column: 1 / -1;
  }

  .auto-account-profile-form .auto-account-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-end;
  }

  .auto-account-password-card,
  .auto-account-strategy {
    grid-column: auto;
    grid-row: auto;
  }

  .auto-account-2fa {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .auto-account-profile-form,
  .auto-account-form {
    grid-template-columns: 1fr;
  }

  .auto-2fa-setup {
    grid-template-columns: 1fr;
  }

  .auto-account-profile-form .auto-account-actions,
  .auto-account-actions,
  .auto-account-status {
    grid-column: 1 / -1;
  }
}

.auto-security-stack {
  display: grid;
  gap: 14px;
}

.auto-security-form {
  padding: 16px;
  border: 1px solid rgba(91, 111, 178, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 18, 0.24);
}

.auto-security-form-head {
  display: grid;
  gap: 2px;
}

.auto-security-form-head h4 {
  margin: 0;
  color: #f7f8ff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auto-account-form .field-stack input {
  min-height: 46px;
  border-color: rgba(91, 111, 178, 0.32);
  background: rgba(3, 8, 20, 0.72);
}

.auto-account-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-account-status {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  font-size: 12px;
  color: rgba(181, 192, 222, 0.88);
}

.auto-account-status[data-tone="success"] {
  color: #7ef0b2;
}

.auto-account-status[data-tone="error"] {
  color: #ff8080;
}

.auto-account-status[data-tone="loading"] {
  color: #8db4ff;
}

.auto-2fa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.auto-2fa-form {
  align-items: end;
}

.auto-2fa-setup {
  display: grid;
  grid-template-columns: 132px repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.auto-2fa-qr-image {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.auto-2fa-switch {
  margin: 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #cbd6f6;
  font-size: 13px;
}

.auto-2fa-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auto-2fa-switch span {
  width: 48px;
  height: 26px;
  position: relative;
  border: 1px solid rgba(125, 154, 255, 0.26);
  border-radius: 999px;
  background: rgba(7, 12, 28, 0.9);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auto-2fa-switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.18s ease, background 0.18s ease;
}

.auto-2fa-switch input:checked + span::before {
  transform: translateX(22px);
  background: #ffffff;
}

.auto-2fa-switch input:checked + span {
  border-color: rgba(34, 197, 94, 0.76);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(34, 197, 94, 0.72));
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.auto-2fa-switch em {
  font-style: normal;
}

#auto-watch-wallet-form,
#auto-wallet-list {
  display: none;
}

#auto-connect-wallet,
#rysk-connect-wallet {
  display: inline-flex;
}

.auto-wallet-chain-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid rgba(90, 112, 160, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(8, 15, 34, 0.92), rgba(14, 24, 52, 0.78)),
    rgba(4, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.auto-wallet-chain-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #aeb8d8;
  font-size: 12px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auto-wallet-chain-option:hover {
  color: #f5f8ff;
  background: rgba(255, 255, 255, 0.045);
}

.auto-wallet-chain-option.active {
  color: #f8fbff;
  border-color: rgba(78, 154, 255, 0.52);
  background: linear-gradient(135deg, rgba(22, 86, 196, 0.9), rgba(10, 37, 88, 0.92));
  box-shadow: 0 8px 18px rgba(22, 86, 196, 0.28);
}

.auto-wallet-chain-option img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.auto-wallet-chain-option span {
  white-space: nowrap;
}

#auto-connect-wallet,
#hs-connect-wallet,
#rysk-connect-wallet {
  width: auto;
  min-width: 96px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0;
  overflow: visible;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#auto-connect-wallet {
  min-width: 96px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
}

#auto-connect-wallet::before,
#hs-connect-wallet::before,
#rysk-connect-wallet::before {
  content: none;
  display: none;
}

#auto-connect-wallet img,
#hs-connect-wallet img,
#rysk-connect-wallet img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 96px;
  object-fit: contain;
  background: transparent;
}

#auto-connect-wallet .auto-wallet-button-icon,
#rysk-connect-wallet .auto-wallet-button-icon {
  height: 38px;
  max-width: 96px;
}

.auto-wallet-balance-summary {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.auto-wallet-balance-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(116, 139, 180, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.auto-wallet-balance-summary-row span {
  color: #dcd7ff;
  font-size: 13px;
  font-weight: 700;
}

.auto-wallet-balance-summary-row strong {
  color: #f4f6ff;
  font-size: 14px;
  font-weight: 800;
}

.auto-options-page .hs-wallet-choice small {
  color: #8d97ad;
  font-size: 12px;
  font-weight: 700;
}

.auto-options-page .hs-wallet-choice:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auto-wallet-summary-list {
  display: block;
  margin-top: 2px;
  color: #c8cae7;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.auto-wallet-summary-list span {
  display: block;
}

.auto-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(79, 109, 255, 0.28);
  border-radius: 8px;
  background: rgba(79, 109, 255, 0.1);
  color: #dfe4ff;
  font-size: 11px;
  font-weight: 800;
}

.auto-strategy-deposit-card {
  width: min(100%, 860px);
}

.auto-strategy-deposit-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.8fr);
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}

.auto-strategy-deposit-arrow {
  color: #8b5cf6;
  font-size: 34px;
  font-weight: 900;
}

.auto-strategy-deposit-form {
  display: grid;
  gap: 12px;
}

.auto-deposit-limit {
  color: #9fb0d7;
  font-size: 13px;
  font-weight: 700;
}

.auto-deposit-limit.is-error {
  color: #ff6b7d;
}

.auto-history-panel {
    display: none;
}

.auto-history-panel.active {
    display: block;
}

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

.auto-tab-button {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.86);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}

.auto-tab-button.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.14));
  border-color: rgba(56, 189, 248, 0.32);
  color: #f8fafc;
}

.panel-card {
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.96), rgba(13, 17, 25, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.panel-header-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.panel-eyebrow {
  color: rgba(123, 142, 170, 0.84);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.panel-title {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 0;
}

.panel-copy {
  color: rgba(214, 223, 237, 0.76);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.status-pill {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
}

.status-pill.green { background: rgba(34, 197, 94, 0.14); color: #bbf7d0; }
.status-pill.amber { background: rgba(245, 158, 11, 0.16); color: #fde68a; }
.status-pill.blue { background: rgba(56, 189, 248, 0.14); color: #bae6fd; }
.status-pill.neutral { background: rgba(148, 163, 184, 0.14); color: #dbeafe; }

.auto-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.auto-grid-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-stack span {
  color: rgba(226, 232, 240, 0.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-stack input,
.field-stack select,
.field-stack textarea,
.table-inline-input {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  padding: 12px 14px;
}

.field-stack select option {
  background: #0f172a;
  color: #fff;
}

.field-span-2 {
  grid-column: span 2;
}

.checkbox-stack {
  align-items: center;
  flex-direction: row;
}

.checkbox-stack input {
  width: 16px;
}

.primary-button {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: 0;
  border-radius: 14px;
  color: #04121d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
}

.empty-state {
  color: rgba(191, 203, 221, 0.78);
  line-height: 1.6;
  margin: 18px 0 0;
}

.empty-state.compact {
  margin-top: 10px;
}

.mini-card,
.event-card,
.mini-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.event-card.is-locked {
  opacity: 0.72;
}

.auto-wallet-list,
.auto-contract-list,
.auto-events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.auto-detect-status {
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  min-height: 24px;
  padding: 10px 12px;
}

.auto-detect-status.loading {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.auto-detect-status.neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #dbeafe;
}

.auto-detect-status.success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.auto-detect-status.error {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.auto-detect-result {
  margin-top: 14px;
}

.detect-result-card {
  margin-top: 0;
}

.detect-transfer-list {
  margin-top: 16px;
}

.detect-transfer-row {
  align-items: center;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.1fr 0.7fr 1.5fr;
  margin-top: 10px;
  padding: 12px 14px;
}

.mini-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.mini-card-title {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.mini-card-copy {
  color: rgba(191, 203, 221, 0.78);
  font-size: 13px;
  margin: 6px 0 0;
}

.mini-card-mono,
.table-mono {
  color: rgba(125, 211, 252, 0.88);
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.toggle-inline {
  align-items: center;
  color: rgba(226, 232, 240, 0.92);
  display: flex;
  gap: 8px;
}

.event-card-top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.event-card-title {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.event-card-copy {
  color: rgba(191, 203, 221, 0.78);
  font-size: 13px;
  margin: 6px 0 0;
}

.event-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.data-chip {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
}

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

.auto-state-summary-shell,
.auto-open-cycles-shell,
.auto-operation-card,
.auto-position-card {
  border-color: rgba(73, 96, 136, 0.22);
  background: linear-gradient(180deg, rgba(6, 14, 31, 0.98), rgba(4, 11, 24, 0.99));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.auto-operation-card,
.auto-position-card {
  position: relative;
  z-index: 2;
}

.auto-open-cycles-shell {
  position: relative;
  z-index: 6;
  overflow: visible;
}

.auto-primary-tabs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auto-primary-tabs-left,
.auto-primary-tabs-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-primary-tab-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auto-primary-tab-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dcd7ff;
  font-size: 12px;
}

.auto-primary-tab-wrap.active .auto-primary-tab-edit {
  border-color: rgba(79, 109, 255, 0.22);
  background: rgba(79, 109, 255, 0.08);
}

.auto-new-investment-button {
  min-height: 46px;
  padding: 0 18px;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.08);
  color: #e9d5ff;
  font-size: 14px;
}

.auto-archive-investment-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

.auto-quick-summary-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.auto-quick-summary-trigger:hover strong {
  color: #f6f7ff;
}

.auto-quick-summary-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 4px;
  width: 100%;
}

.auto-quick-summary-card {
  display: flex;
  align-items: flex-start;
  flex: 1 1 0;
  gap: 7px;
  min-height: 64px;
  padding: 8px 10px;
  border-right: 1px solid rgba(77, 98, 138, 0.22);
  min-width: 0;
}

.auto-quick-summary-card > div:not(.auto-quick-summary-icon) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.auto-quick-summary-card:last-child {
  border-right: 0;
}

.auto-quick-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.auto-quick-summary-icon.wallet,
.auto-quick-summary-icon.scale {
  background: linear-gradient(180deg, rgba(74, 52, 182, 0.42), rgba(56, 38, 140, 0.26));
}

.auto-quick-summary-icon.shield {
  background: linear-gradient(180deg, rgba(12, 104, 186, 0.42), rgba(11, 72, 147, 0.26));
}

.auto-quick-summary-icon.trend {
  background: linear-gradient(180deg, rgba(2, 113, 77, 0.42), rgba(2, 86, 59, 0.26));
}

.auto-quick-summary-icon::before,
.auto-quick-summary-icon::after {
  content: "";
  position: absolute;
}

.auto-quick-summary-icon.wallet::before {
  width: 17px;
  height: 12px;
  border: 2px solid #8b5cf6;
  border-radius: 4px;
  left: 8px;
  top: 11px;
}

.auto-quick-summary-icon.wallet::after {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #8b5cf6;
  right: 8px;
  top: 15px;
  box-shadow: -10px -6px 0 -1px #8b5cf6;
}

.auto-quick-summary-icon.shield::before {
  width: 16px;
  height: 18px;
  left: 9px;
  top: 8px;
  border: 2px solid #21b4ff;
  border-radius: 10px 10px 16px 16px;
  clip-path: polygon(50% 0%, 100% 18%, 100% 58%, 50% 100%, 0% 58%, 0% 18%);
}

.auto-quick-summary-icon.shield::after {
  width: 8px;
  height: 4px;
  left: 13px;
  top: 16px;
  border-left: 2px solid #21b4ff;
  border-bottom: 2px solid #21b4ff;
  transform: rotate(-45deg);
}

.auto-quick-summary-icon.trend::before {
  width: 13px;
  height: 13px;
  left: 11px;
  top: 11px;
  border-left: 2px solid #22f39a;
  border-top: 2px solid #22f39a;
  transform: rotate(45deg);
}

.auto-quick-summary-icon.trend::after {
  width: 11px;
  height: 11px;
  right: 8px;
  top: 8px;
  border-top: 2px solid #22f39a;
  border-right: 2px solid #22f39a;
}

.auto-quick-summary-icon.scale::before {
  width: 3px;
  height: 16px;
  left: 16px;
  top: 9px;
  background: #8b5cf6;
  border-radius: 999px;
}

.auto-quick-summary-icon.scale::after {
  width: 16px;
  height: 11px;
  left: 9px;
  top: 12px;
  border-top: 2px solid #8b5cf6;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  box-shadow:
    -10px 12px 0 -8px #8b5cf6,
    10px 12px 0 -8px #8b5cf6;
}

.auto-summary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auto-fees-value-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.auto-fees-value-row strong {
  margin-top: 0;
}

.auto-rebates-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.auto-rebates-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.auto-rebates-row small strong {
  font-size: 0.78rem;
}

.auto-rebates-row .auto-summary-action {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
}

.auto-quick-summary-card .auto-fees-info {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(200, 202, 231, 0.45);
  border-radius: 999px;
  color: #dfe4ff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: help;
}

.auto-summary-label-with-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.auto-summary-label-with-note .auto-fees-info {
  margin-top: -0.22em;
  transform: translateY(-0.08em);
  flex: 0 0 auto;
}

.auto-quick-summary-card span {
  display: block;
  color: #dbd8ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.auto-quick-summary-card strong {
  display: block;
  margin-top: 3px;
  color: #f4f6ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.auto-quick-summary-card strong em {
  color: #c8cae7;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.auto-quick-summary-card strong.is-positive {
  color: #22f39a;
}

.auto-quick-summary-card strong.is-negative {
  color: #ff6b7d;
}

.auto-current-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 1fr);
  gap: 14px;
}

.auto-current-card-head {
  margin-bottom: 0;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(77, 98, 138, 0.18);
}

.auto-current-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auto-cycle-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93a4c7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auto-cycle-selector select {
  min-width: 132px;
  height: 34px;
  border: 1px solid rgba(91, 117, 164, 0.35);
  border-radius: 8px;
  background: rgba(7, 16, 34, 0.92);
  color: #e8efff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.auto-new-cycle-card {
  min-height: 360px;
}

.auto-cycle-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(91, 117, 164, 0.36);
  background: rgba(14, 28, 55, 0.82);
  color: #e8efff;
  font-size: 12px;
  font-weight: 900;
}

.auto-current-cycle-form {
  margin-top: 22px;
}

.auto-position-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(77, 98, 138, 0.18);
}

.auto-state-action-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.auto-position-action-card {
  max-width: 620px;
}

.auto-position-action-summary {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.auto-action-summary-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid rgba(77, 98, 138, 0.24);
  border-radius: 8px;
  background: rgba(8, 17, 34, 0.72);
}

.auto-action-summary-grid span,
.auto-action-reason strong {
  color: #93a4c7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auto-action-summary-grid strong,
.auto-action-reason p {
  color: #f4f7ff;
  font-size: 14px;
  font-weight: 800;
}

.auto-action-reason {
  padding: 14px;
  border: 1px solid rgba(130, 170, 255, 0.28);
  border-radius: 8px;
  background: rgba(35, 52, 88, 0.34);
}

.auto-action-reason p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.auto-action-error {
  padding: 12px 14px;
  border: 1px solid rgba(244, 63, 94, 0.42);
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.auto-hs-position-action {
  min-width: 112px;
}

.auto-live-pill.expired {
  background: rgba(244, 63, 94, 0.16);
  color: #fecdd3;
}

.auto-live-pill.pending {
  background: rgba(133, 77, 14, 0.22);
  color: #fde68a;
}

.auto-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(4, 77, 45, 0.62);
  color: #22f39a;
  font-size: 14px;
  font-weight: 800;
}

.auto-live-pill i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22f39a;
  box-shadow: 0 0 14px rgba(34, 243, 154, 0.65);
}

.auto-live-pill.expired i {
  background: #fb7185;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.62);
}

.auto-live-pill.pending i {
  background: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.68);
}

.auto-operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.auto-operation-cell {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 138px;
  padding: 24px 26px;
  border-right: 1px solid rgba(77, 98, 138, 0.16);
  border-bottom: 1px solid rgba(77, 98, 138, 0.16);
}

.auto-operation-cell:nth-child(3n) {
  border-right: 0;
}

.auto-operation-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.auto-operation-cell span {
  color: #d8d2ff;
  font-size: 12px;
  font-weight: 500;
}

.auto-operation-cell strong {
  color: #f4f6ff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.auto-operation-cell strong.is-accent,
.auto-operation-cell strong.is-negative {
  font-size: 22px;
  white-space: nowrap;
}

.auto-operation-cell small {
  color: #c8cae7;
  font-size: 12px;
  font-weight: 500;
}

.auto-operation-type.call {
  color: #22f39a;
}

.auto-operation-type.put {
  color: #ff5f73;
}

.auto-operation-cell strong.is-accent {
  color: #a855f7;
}

.auto-position-card {
  padding-bottom: 22px;
}

.auto-gauge-shell {
  display: grid;
  justify-items: center;
  padding: 6px 18px 6px;
}

.auto-gauge-arc {
  --gauge-progress: 50%;
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 2 / 1.05;
  overflow: hidden;
}

.auto-gauge-arc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(
    from 180deg at 50% 100%,
    #ff2947 0deg,
    #ff4f67 38deg,
    #d46ef8 82deg,
    #5f8dff 126deg,
    #10d3ff 152deg,
    #20e6b5 170deg,
    #22f39a 180deg
  );
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 58%, #000 59% 100%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 58%, #000 59% 100%);
}

.auto-gauge-arc.is-frozen::before {
  background: conic-gradient(
    from 180deg at 50% 100%,
    #475569 0deg,
    #64748b 62deg,
    #94a3b8 126deg,
    #cbd5e1 180deg
  );
  opacity: 0.68;
}

.auto-gauge-inner {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.auto-gauge-inner span,
.auto-distance-meta span {
  color: #d7daef;
  font-size: 12px;
  font-weight: 700;
}

.auto-gauge-inner strong {
  color: #f7f8ff;
  font-size: 27px;
  font-weight: 800;
}

.auto-gauge-inner small {
  color: #d7daef;
  font-size: 13px;
  font-weight: 600;
}

.auto-gauge-distance {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.auto-distance-track {
  position: relative;
  width: min(100%, 520px);
  height: 7px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2947 0%, #f5a053 35%, #8ce886 70%, #22f39a 100%);
}

.auto-distance-track.is-frozen {
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.78), rgba(148, 163, 184, 0.72), rgba(203, 213, 225, 0.56));
}

.auto-distance-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.auto-distance-marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(89, 89, 89, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.auto-distance-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 14px;
}

.auto-distance-meta strong {
  color: #f6f7ff;
  font-size: 18px;
  font-weight: 800;
}

.auto-pending-cycle-notice {
  align-items: center;
  color: #facc15;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
}

.auto-pending-cycle-info {
  align-items: center;
  border: 1px solid rgba(250, 204, 21, 0.76);
  border-radius: 999px;
  color: #fde68a;
  cursor: help;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 17px;
  justify-content: center;
  line-height: 1;
  width: 17px;
}

.auto-open-cycles-meta {
  display: flex;
  justify-content: flex-end;
}

.auto-open-cycles-pill {
  color: #dcd7ff;
  font-size: 15px;
  font-weight: 500;
}

.auto-state-table-wrap {
  overflow-x: visible;
}

.auto-cycle-group {
  border-top: 1px solid rgba(77, 98, 138, 0.18);
}

.auto-cycle-group:first-child {
  border-top: 0;
}

.auto-cycle-group-summary {
  display: grid;
  grid-template-columns: 34px 80px 128px minmax(280px, 1fr) 150px 112px 84px 12px;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 22px;
  color: #f2f4ff;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.14));
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.auto-cycle-group-summary::-webkit-details-marker {
  display: none;
}

.auto-cycle-group-summary:hover,
.auto-cycle-group[open] .auto-cycle-group-summary {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 -1px 0 rgba(110, 145, 255, 0.08);
}

.auto-cycle-group.is-current .auto-cycle-group-summary {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.28), rgba(15, 23, 42, 0.2));
  box-shadow:
    inset 3px 0 0 rgba(56, 189, 248, 0.9),
    inset 0 1px 0 rgba(125, 211, 252, 0.12),
    inset 0 -1px 0 rgba(56, 189, 248, 0.14);
}

.auto-cycle-group.is-current .auto-cycle-letter {
  border-color: rgba(56, 189, 248, 0.76);
  color: #e0f2fe;
}

.auto-cycle-group.is-pending-action .auto-cycle-group-summary {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.36), rgba(30, 41, 59, 0.18));
  filter: grayscale(0.95);
  opacity: 0.72;
  box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.58);
}

.auto-cycle-group.is-pending-action .auto-cycle-group-summary strong,
.auto-cycle-group.is-pending-action .auto-cycle-group-summary span,
.auto-cycle-group.is-pending-action .auto-cycle-group-summary em {
  color: #aeb7c7;
}

.auto-cycle-group.is-pending-action .auto-cycle-letter {
  border-color: rgba(148, 163, 184, 0.55);
  color: #cbd5e1;
}

.auto-cycle-group-summary::after {
  content: "";
  grid-column: 8;
  justify-self: end;
  width: 9px;
  height: 9px;
  border-right: 2px solid #d8d2ff;
  border-bottom: 2px solid #d8d2ff;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.auto-cycle-group[open] .auto-cycle-group-summary::after {
  transform: rotate(225deg);
}

.auto-cycle-group-summary strong,
.auto-cycle-group-summary span,
.auto-cycle-group-summary em {
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.auto-cycle-group-summary span,
.auto-cycle-group-summary em {
  color: #c8cae7;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.auto-rysk-top-link {
  min-height: 44px;
  align-items: center;
  border-color: rgba(20, 184, 166, 0.45);
  color: #8fffea;
}

.rysk-lab-page {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rysk-lab-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.rysk-lab-hero h2 {
  margin: 4px 0 8px;
  color: #f8fbff;
  font-size: 28px;
  font-weight: 700;
}

.notification-button {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0;
  border: 1px solid rgba(90, 112, 160, 0.42);
  border-radius: 8px;
  background: rgba(4, 10, 24, 0.72);
  color: #ded8ff;
  cursor: pointer;
}

.notification-button:hover {
  border-color: rgba(167, 139, 250, 0.66);
  background: rgba(20, 18, 48, 0.86);
}

.notification-bell {
  font-size: 17px;
  line-height: 1;
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #080d1a;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.notification-count.hidden {
  display: none;
}

.rysk-notifications-card {
  width: min(100%, 620px);
}

.rysk-notifications-modal-actions {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-template-columns: none !important;
  justify-items: initial !important;
}

#rysk-notifications-modal .modal-card > .panel-header-row > div.rysk-notifications-modal-actions {
  display: flex !important;
  grid-template-columns: none !important;
  justify-items: initial !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-direction: row !important;
}

.rysk-notifications-modal-actions .ghost-button {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
}

.rysk-notifications-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.rysk-notification-item {
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(30, 41, 75, 0.46);
}

.rysk-notification-item.is-read {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

.rysk-notification-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rysk-notification-item-head strong {
  color: #f8fafc;
  font-size: 14px;
}

.rysk-notification-item-head time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
}

.rysk-notification-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.22);
  color: #fca5a5;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.notification-delete-button:hover {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.48);
  color: #fff;
}

.rysk-notifications-modal-actions .danger-action {
  cursor: pointer;
}

.rysk-notifications-modal-actions .danger-action:disabled {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(100, 116, 139, 0.18);
  color: #94a3b8;
  cursor: default;
  opacity: 1;
  position: relative;
}

.rysk-notifications-modal-actions .danger-action:disabled[data-disabled-tooltip]:hover::after {
  content: attr(data-disabled-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}

.rysk-notification-item p {
  margin: 8px 0 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

.rysk-lab-hero p {
  max-width: 760px;
  color: #cdd6ec;
  font-size: 15px;
  line-height: 1.55;
}

.rysk-lab-status {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(76, 102, 155, 0.52);
  border-radius: 8px;
  background: rgba(5, 16, 36, 0.72);
  color: #cdd6ec;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.rysk-lab-status[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.46);
  color: #36f0a0;
}

.rysk-lab-status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.5);
  color: #ff8d96;
}

.rysk-lab-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rysk-lab-summary > div {
  padding: 14px 16px;
  border: 1px solid rgba(56, 83, 129, 0.42);
  border-radius: 8px;
  background: rgba(5, 16, 36, 0.48);
}

.rysk-lab-summary span,
.rysk-table small {
  display: block;
  color: #aeb9d4;
  font-size: 12px;
}

.rysk-lab-summary strong {
  display: block;
  margin-top: 4px;
  color: #f8fbff;
  font-size: 18px;
}

.rysk-lab-grid {
  display: grid;
  gap: 18px;
}

.rysk-market-card {
  display: grid;
  gap: 16px;
}

.rysk-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(56, 83, 129, 0.42);
}

.rysk-market-head h3 {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 700;
}

.rysk-market-head > strong {
  color: #8fffea;
  font-size: 22px;
  font-weight: 700;
}

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

.rysk-market-columns h4 {
  margin-bottom: 10px;
  color: #dfe8ff;
  font-size: 15px;
  font-weight: 700;
}

.rysk-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(56, 83, 129, 0.42);
  border-radius: 8px;
}

.rysk-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.rysk-table th,
.rysk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(56, 83, 129, 0.32);
  color: #e7edff;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.rysk-table th {
  color: #aeb9d4;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.rysk-table .is-positive {
  color: #36f0a0;
  font-weight: 700;
}

.rysk-empty {
  padding: 18px;
  border: 1px dashed rgba(76, 102, 155, 0.52);
  border-radius: 8px;
  color: #aeb9d4;
  text-align: center;
}

.rysk-chart-wrap {
  min-height: 260px;
  padding: 14px;
  border: 1px solid rgba(56, 83, 129, 0.42);
  border-radius: 8px;
  background: rgba(3, 12, 28, 0.54);
}

#rysk-lab-root .auto-quick-summary-card {
  min-width: 220px;
}

#rysk-lab-root .auto-quick-summary-grid {
  overflow-x: auto;
  scrollbar-width: thin;
}

#rysk-lab-root .auto-quick-summary-card strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

#rysk-lab-root .auto-hs-market-list,
#rysk-lab-root .auto-hs-options-list {
  display: grid;
  gap: 12px;
}

#rysk-lab-root .auto-hs-market-row {
  cursor: pointer;
}

#rysk-market-modal .auto-modal-close-row {
  margin: -8px 0 6px;
}

#rysk-market-modal .auto-hs-score-guide {
  margin-top: 10px;
}

#rysk-lab-root button {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, filter 160ms ease;
}

#rysk-lab-root button:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.24), 0 0 34px rgba(168, 85, 247, 0.18);
}

#rysk-lab-root .auto-hs-market-row:hover,
#rysk-lab-root .auto-hs-option-row:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(8, 22, 47, 0.72);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

#rysk-market-modal .panel-header-row,
#rysk-options-modal .panel-header-row,
#rysk-trade-modal .panel-header-row,
#rysk-cycle-detail-modal .panel-header-row {
  margin-bottom: 0;
}

#rysk-market-modal .hs-status {
  margin-top: 6px;
}

#rysk-market-modal .hs-status:empty {
  display: none;
}

#rysk-market-modal .auto-hs-type-tabs {
  margin-top: 14px;
}

#rysk-options-modal .rysk-options-header {
  grid-template-columns: minmax(0, 1fr) minmax(88px, 0.5fr);
}

#rysk-options-modal .rysk-options-header span:nth-child(2) {
  text-align: right;
}

#rysk-options-modal .rysk-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 0.5fr);
}

#rysk-lab-root .auto-position-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#rysk-lab-root .rysk-ledger-cycle-summary {
  grid-template-columns: minmax(0, 1fr) auto 12px;
  min-height: 52px;
  padding: 10px 18px;
}

#rysk-lab-root .rysk-ledger-cycle-summary strong {
  color: #f2f4ff;
  font-size: 14px;
}

#rysk-lab-root .rysk-ledger-cycle-summary span {
  color: #c8cae7;
  font-size: 12px;
  font-weight: 600;
}

#rysk-lab-root .rysk-ledger-cycle-group .auto-table-wrap {
  border-top: 1px solid rgba(77, 98, 138, 0.18);
}

#auto-cycle-detail-modal .event-chip-row .data-chip:nth-child(2),
#auto-cycle-detail-modal .event-chip-row .data-chip:nth-child(4),
#auto-cycle-detail-modal .event-chip-row .data-chip:nth-child(5) {
  display: none;
}

#rysk-lab-root .auto-position-actions small {
  flex-basis: 100%;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

#rysk-trade-size-estimate .rysk-invalid-amount {
  color: #fca5a5;
  display: block;
  margin-top: 3px;
}

#rysk-trade-available-balance {
  display: block;
  margin-top: 5px;
  color: #c8cae7;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

#rysk-trade-size-estimate .rysk-minimum-amount {
  color: #94a3b8;
  display: block;
  margin-top: 3px;
}

#rysk-trade-size-estimate .auto-hs-premium-pct {
  color: #22c55e;
  font-weight: 900;
  margin-left: 4px;
}

#rysk-trade-confirm:disabled {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(100, 116, 139, 0.18);
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
  position: relative;
}

#rysk-trade-confirm:disabled[data-disabled-tooltip]:hover::after {
  content: attr(data-disabled-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.rysk-open-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.rysk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(1, 6, 18, 0.58);
}

.rysk-modal {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(104, 132, 196, 0.72);
  border-radius: 8px;
  background: rgba(6, 15, 34, 0.98);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.rysk-modal-close-row {
  display: flex;
  justify-content: flex-end;
}

.rysk-modal h3 {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 700;
}

.rysk-quote-box {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(56, 83, 129, 0.42);
  border-radius: 8px;
  background: rgba(3, 12, 28, 0.7);
  color: #cdd6ec;
  font-size: 13px;
}

.rysk-quote-box strong {
  color: #f8fbff;
  font-size: 15px;
}

.rysk-quote-box span {
  color: #cdd6ec;
}

.rysk-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 900px) {
  .rysk-lab-hero,
  .rysk-market-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rysk-lab-summary,
  .rysk-market-columns {
    grid-template-columns: 1fr;
  }
}

.admin-view {
  display: grid;
  gap: 18px;
}

.admin-toolbar,
.admin-panel {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.admin-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
}

.admin-toolbar h2 {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 0;
}

.admin-panel {
  margin: 0;
  min-width: 0;
  padding: 16px;
}

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

.admin-notifications-panel {
  border-color: rgba(248, 113, 113, 0.42);
}

.admin-notifications-list {
  display: grid;
  gap: 10px;
}

.admin-notification-item {
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 8px;
  background: rgba(69, 10, 10, 0.18);
  color: #fecaca;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.admin-notification-item strong {
  color: #fee2e2;
  font-size: 14px;
}

.admin-notification-item p,
.admin-notification-item small {
  margin: 0;
}

.admin-notification-item p {
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.admin-notification-item small {
  color: #fca5a5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-panel-full {
  width: 100%;
}

.admin-panel-header {
  align-items: center;
  color: #e2e8f0;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-panel-header small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.admin-settings-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.admin-settings-help {
  color: #b6c2d4;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.admin-admin-emails-shell {
  display: grid;
  gap: 20px;
}

.admin-admin-emails-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-admin-email-item {
  align-items: center;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 10px 12px;
}

.admin-admin-email-value {
  min-width: 0;
}

.admin-admin-email-value strong {
  color: #f8fafc;
  display: block;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.admin-admin-emails-form .field-stack input[type="email"],
.admin-admin-emails-form .field-stack input[name="two_factor_code"] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.admin-admin-emails-form .primary-button {
  align-self: end;
  white-space: nowrap;
}

.admin-admin-emails-form {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  max-width: 100%;
}

.admin-admin-emails-form .admin-settings-status {
  grid-column: 1 / -1;
}

.admin-admin-email-remove {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-fee-wallet-form {
  max-width: 720px;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
}

.admin-fee-wallet-field {
  min-width: 0;
}

.admin-current-fee-wallet {
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  max-width: 720px;
  padding: 10px 12px;
}

.admin-current-fee-wallet span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-current-fee-wallet strong {
  color: #e2e8f0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-settings-status {
  min-height: 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.admin-fee-credit-status {
  min-height: 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .admin-strategy-grid {
    grid-template-columns: 1fr;
  }

  .admin-admin-emails-form,
  .admin-fee-wallet-form {
    grid-template-columns: 1fr;
  }

  .admin-admin-emails-form .primary-button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .admin-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-admin-email-item {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-admin-email-remove {
    justify-self: start;
  }
}

.admin-settings-status[data-tone="success"] {
  color: #86efac;
}

.admin-settings-status[data-tone="error"] {
  color: #fca5a5;
}

.admin-settings-status[data-tone="loading"] {
  color: #93c5fd;
}

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

.admin-users-table th,
.admin-users-table td {
  text-align: left;
  vertical-align: middle;
}

.admin-users-table tr.is-selected td {
  background: rgba(34, 197, 94, 0.08);
}

.admin-user-link {
  color: #f8fafc;
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.admin-user-link:hover {
  color: #86efac;
}

.admin-view-button {
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.admin-access-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-access-button {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.admin-access-button.is-block:not(:disabled) {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.34);
  color: #fecaca;
}

.admin-access-button.is-unblock:not(:disabled) {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.34);
  color: #bbf7d0;
}

.admin-access-button:disabled {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.14);
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.admin-access-button.is-loading:disabled,
.admin-view-button.is-loading:disabled,
.admin-mini-action.is-loading:disabled,
.admin-access-button.is-loading,
.admin-view-button.is-loading,
.admin-mini-action.is-loading {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.34);
  color: #99f6e4;
  cursor: progress;
}

.admin-users-table small {
  color: #64748b;
  display: block;
  font-size: 10px;
  margin-top: 3px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-badge {
  align-items: center;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  color: #99f6e4;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  margin-right: 8px;
  min-width: 46px;
  padding: 3px 8px;
  text-transform: uppercase;
}

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

.admin-user-header,
.admin-section {
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 14px;
}

.admin-user-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

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

.admin-user-header span,
.admin-user-header small {
  color: #94a3b8;
  font-size: 12px;
}

.admin-user-header strong {
  color: #f8fafc;
  display: block;
  font-size: 22px;
  margin: 3px 0;
}

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

.admin-profile-form label {
  display: grid;
  gap: 6px;
}

.admin-profile-form label span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.admin-profile-form input {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  min-height: 38px;
  padding: 8px 10px;
}

.admin-profile-form button {
  align-self: end;
  grid-column: 2;
  justify-self: end;
}

.admin-profile-security-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-profile-security-actions span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.admin-profile-security-actions strong {
  color: #f8fafc;
  font-size: 14px;
}

.admin-operation-edit-row td {
  background: rgba(2, 6, 23, 0.24);
}

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

.admin-operation-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.admin-operation-form label {
  display: grid;
  gap: 5px;
}

.admin-operation-form label span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.admin-operation-form input {
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  min-height: 34px;
  padding: 7px 9px;
}

.admin-operation-notes {
  grid-column: span 3;
}

.admin-operation-form-actions {
  align-self: end;
  display: flex;
  gap: 8px;
  justify-self: end;
}

.admin-metric {
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.admin-metric span,
.admin-empty {
  color: #94a3b8;
  font-size: 12px;
}

.admin-metric strong {
  color: #f8fafc;
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.admin-metric-with-action {
  display: grid;
  gap: 6px;
}

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

.admin-mini-action {
  justify-self: start;
  min-height: 28px;
  padding: 4px 8px;
}

.admin-fee-adjustment-card {
  width: min(100%, 480px);
}

.admin-audit-history-card {
  max-height: min(86vh, 760px);
  width: min(100%, 1040px);
}

.admin-audit-history-note {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 8px;
}

.admin-audit-history-table-wrap {
  margin-top: 14px;
  max-height: 560px;
  overflow: auto;
}

.admin-audit-history-table td {
  vertical-align: top;
}

.admin-audit-history-table strong,
.admin-audit-history-table span,
.admin-audit-history-table small {
  display: block;
}

.admin-audit-history-table strong {
  color: #f8fafc;
  font-size: 12px;
}

.admin-audit-history-table small {
  color: #64748b;
  font-size: 10px;
  margin-top: 3px;
  max-width: 260px;
  overflow-wrap: anywhere;
}

.admin-audit-change-list {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.admin-audit-change-item {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 7px 8px;
}

.admin-audit-change-item b {
  color: #e2e8f0;
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}

.admin-audit-muted {
  color: #64748b;
  font-size: 11px;
}

.admin-fee-credit-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.admin-fee-credit-form label {
  display: grid;
  gap: 5px;
}

.admin-fee-credit-form label span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.admin-fee-credit-form input,
.admin-fee-credit-form select {
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  min-height: 34px;
  padding: 7px 9px;
}

.admin-fee-credit-actions {
  align-self: end;
  display: flex;
  gap: 8px;
  justify-self: end;
}

.admin-section {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.admin-detail-tabs-shell {
  display: grid;
  gap: 14px;
}

.admin-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-detail-tab {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.admin-detail-tab.active {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.38);
  color: #99f6e4;
}

.admin-detail-tab-panel {
  display: grid;
  gap: 8px;
}

.admin-cycle-groups {
  display: grid;
  gap: 6px;
}

.admin-cycle-group {
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.admin-cycle-group-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 8px 10px;
}

.admin-cycle-group-summary::-webkit-details-marker {
  display: none;
}

.admin-cycle-group-summary-main,
.admin-cycle-group-summary-side {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.admin-cycle-group-summary-main {
  flex-wrap: wrap;
}

.admin-cycle-group-meta,
.admin-cycle-group-dates {
  align-items: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-cycle-group-summary-main strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-cycle-ref {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #94a3b8;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 2px 6px;
  text-transform: uppercase;
}

.admin-cycle-group-summary-main span,
.admin-cycle-group-summary-side span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.admin-cycle-group-dates span {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-cycle-group-dates em {
  color: #94a3b8;
  font-style: normal;
  margin-right: 4px;
  text-transform: uppercase;
}

.admin-cycle-group-body {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 8px 10px 10px;
}

.admin-cycle-admin-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-cycle-admin-header span {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.admin-cycle-admin-header small {
  color: #94a3b8;
  font-size: 11px;
}

.admin-cycles-table th,
.admin-cycles-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding-bottom: 12px;
  padding-top: 12px;
  text-align: left;
}

.admin-cycles-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.32);
}

.admin-cycles-table tbody tr:hover td {
  background: rgba(34, 197, 94, 0.08);
}

.admin-ledger-table th,
.admin-ledger-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding-bottom: 12px;
  padding-top: 12px;
  text-align: left;
}

.admin-ledger-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.32);
}

.admin-ledger-table tbody tr:hover td {
  background: rgba(45, 212, 191, 0.08);
}

.admin-ledger-toolbar {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.admin-ledger-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.admin-ledger-toolbar label:first-child {
  min-width: 220px;
}

.admin-ledger-toolbar label span,
.admin-ledger-toolbar small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.admin-ledger-toolbar select,
.admin-ledger-toolbar input {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 10px;
}

.admin-cycle-letter {
  align-items: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 999px;
  color: #bbf7d0;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  min-width: 26px;
}

.admin-cycle-letter.is-muted {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

.admin-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.admin-json {
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 14px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.admin-json-shell {
  margin-top: 14px;
}

.admin-json-shell summary {
  color: #cbd5e1;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.admin-json-shell summary::-webkit-details-marker {
  display: none;
}

.is-positive {
  color: #86efac;
}

.is-negative {
  color: #fca5a5;
}

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

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

  .admin-profile-form button {
    grid-column: 1;
  }
}

.auto-cycle-market-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.08;
}

.auto-cycle-market-summary span {
  overflow: hidden;
  color: #c8cae7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-cycle-market-summary small {
  overflow: hidden;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-cycle-strike-meter {
  align-items: center;
  display: flex;
  min-width: 240px;
  width: 240px;
  justify-self: center;
}

.auto-cycle-strike-track {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(216, 210, 255, 0.18);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.auto-cycle-strike-center {
  background: rgba(246, 247, 255, 0.72);
  bottom: -2px;
  display: block;
  left: 50%;
  position: absolute;
  top: -2px;
  transform: translateX(-50%);
  width: 2px;
  z-index: 2;
}

.auto-cycle-strike-fill {
  border-radius: inherit;
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
}

.auto-cycle-strike-fill.positive {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.54), rgba(34, 243, 154, 0.9));
  left: 50%;
}

.auto-cycle-strike-fill.warning {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(250, 204, 21, 0.54));
  right: 50%;
}

.auto-cycle-strike-meter.is-frozen .auto-cycle-strike-track {
  background: rgba(71, 85, 105, 0.36);
  border-color: rgba(148, 163, 184, 0.22);
}

.auto-cycle-strike-meter.is-frozen .auto-cycle-strike-center {
  background: rgba(203, 213, 225, 0.52);
}

.auto-cycle-strike-meter.is-frozen .auto-cycle-strike-fill.positive,
.auto-cycle-strike-meter.is-frozen .auto-cycle-strike-fill.warning {
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.7), rgba(203, 213, 225, 0.44));
}

.auto-state-table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
}

.auto-state-table th {
  padding: 16px 22px 10px;
  color: #d8d2ff;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.auto-state-table td {
  padding: 11px 22px;
  border-top: 1px solid rgba(77, 98, 138, 0.16);
  color: #f2f4ff;
  font-size: 15px;
  font-weight: 500;
}

.auto-state-table tr.is-pending-action td {
  background: rgba(51, 65, 85, 0.14);
  color: #aeb7c7;
}

.auto-state-table tr.is-pending-action .auto-type-cell,
.auto-state-table tr.is-pending-action .auto-quantity-cell {
  filter: grayscale(0.95);
  opacity: 0.74;
}

.auto-investment-cell {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.auto-state-table td .auto-investment-movement {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 1px;
}

.auto-state-table td .auto-investment-movement.is-positive {
  color: #22c55e;
}

.auto-state-table td .auto-investment-movement.is-negative {
  color: #fb7185;
}

.auto-quantity-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auto-operation-amount {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.auto-quantity-warning {
  align-items: center;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 999px;
  color: #fde68a;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.auto-capital-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(94, 234, 212, 0.48);
  border-radius: 999px;
  color: #a7fff3;
  background: rgba(20, 184, 166, 0.12);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.auto-type-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auto-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.auto-type-cell.call strong {
  color: #22f39a;
}

.auto-type-cell.call .auto-type-icon {
  background: rgba(9, 86, 54, 0.5);
}

.auto-type-cell.put strong {
  color: #ff5f73;
}

.auto-type-cell.put .auto-type-icon {
  background: rgba(106, 26, 43, 0.5);
}

.auto-type-cell.call .auto-type-icon::before,
.auto-type-cell.put .auto-type-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.auto-type-cell.call .auto-type-icon {
  color: #22f39a;
}

.auto-type-cell.put .auto-type-icon {
  color: #ff5f73;
}

.auto-type-cell.put .auto-type-icon::before {
  transform: rotate(135deg);
}

.auto-state-badge {
  border: 1px solid rgba(126, 152, 196, 0.46);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.auto-state-action {
  cursor: pointer;
  font-family: inherit;
  border-width: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.auto-state-action:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.auto-state-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.auto-state-badge.open {
  background: rgba(4, 77, 45, 0.62);
  color: #22f39a;
}

.auto-state-badge.expired {
  border-color: rgba(130, 170, 255, 0.7);
  background: rgba(35, 52, 88, 0.9);
  color: #f4f7ff;
}

.auto-state-action.expired {
  background: rgba(45, 75, 130, 0.96);
}

.auto-state-badge.auto-expired-settle {
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(133, 77, 14, 0.18);
  color: #fde68a;
}

.auto-state-badge.auto-expired-settle:hover {
  border-color: rgba(253, 224, 71, 0.9);
  background: rgba(202, 138, 4, 0.28);
  color: #fff7cc;
}

.auto-state-table td small {
  display: block;
  margin-top: 6px;
  color: #c8cae7;
  font-size: 12px;
  font-weight: 500;
}

.auto-secondary-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(73, 96, 136, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 14, 31, 0.98), rgba(4, 11, 24, 0.99));
  scrollbar-width: thin;
}

.auto-tab-button {
  position: relative;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid rgba(73, 96, 136, 0.18);
  border-radius: 0;
  background: transparent;
  color: #e2e7ff;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.auto-tab-button:last-child {
  border-right: 0;
}

.auto-tab-button.active {
  background: rgba(255, 255, 255, 0.01);
  color: #f6f7ff;
}

.auto-tab-button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 160px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(80, 84, 255, 0), #365cff 50%, rgba(168, 85, 247, 0));
  box-shadow: 0 0 12px rgba(79, 109, 255, 0.8);
}

.auto-chart-tabs .auto-tab-button {
  min-height: 52px;
  padding: 0 20px;
  font-size: 14px;
  min-width: 0;
}

.auto-chart-tabs .auto-tab-button.active::after {
  width: 110px;
}

.auto-data-table {
  margin-top: 8px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.auto-data-table th,
.auto-data-table td {
  padding: 7px 8px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.35;
}

.auto-data-table th {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.auto-data-table td {
  color: #e5e7eb;
}

.auto-history-cycles-table th,
.auto-history-cycles-table td,
.auto-history-adjustments-table th,
.auto-history-adjustments-table td,
.auto-fees-ledger-table th,
.auto-fees-ledger-table td {
  text-align: center;
  vertical-align: middle;
}

.auto-history-cycles-table .is-numeric,
.auto-history-adjustments-table .is-numeric,
.auto-fees-ledger-table .is-numeric {
  text-align: center;
}

.auto-history-cycles-table td.is-positive {
  color: var(--green);
  font-weight: 900;
}

.auto-history-cycles-table td.is-negative {
  color: var(--red);
  font-weight: 900;
}

.auto-fees-ledger-amount {
  font-weight: 900;
}

.auto-fees-ledger-amount.is-positive {
  color: var(--green);
}

.auto-fees-ledger-amount.is-negative {
  color: var(--red);
}

.auto-money {
  font-weight: 900;
}

.auto-money.is-positive {
  color: var(--green);
}

.auto-money.is-negative {
  color: var(--red);
}

.auto-fees-pagination {
  margin-top: 12px;
}

.auto-fees-ledger-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.auto-fees-ledger-filter-state {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.auto-fees-ledger-filter {
  display: grid;
  gap: 5px;
  min-width: 220px;
}

.auto-fees-ledger-filter span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.auto-fees-ledger-filter select {
  min-height: 34px;
  border: 1px solid rgba(77, 98, 138, 0.38);
  border-radius: 8px;
  background: rgba(6, 13, 30, 0.92);
  color: #e5edff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.auto-row-number {
  color: #f8fafc;
  font-weight: 900;
}

.auto-sale-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  color: #dbeafe;
  font-weight: 900;
}

.auto-sale-pct.is-positive {
  color: #4ade80;
}

.auto-sale-pct.is-negative {
  color: #fb7185;
}

.auto-sale-pct.is-neutral {
  color: #dbeafe;
}

.auto-data-table .is-numeric,
.auto-history-adjustments-table th:nth-child(3),
.auto-history-adjustments-table th:nth-child(4) {
  text-align: right;
}

.auto-history-cycles-table .is-numeric,
.auto-history-adjustments-table .is-numeric,
.auto-history-adjustments-table th:nth-child(3),
.auto-history-adjustments-table th:nth-child(4) {
  text-align: center;
}

.auto-data-table .auto-col-wallet {
  width: 13%;
}

.auto-data-table .auto-col-number {
  width: 4%;
}

.auto-data-table .auto-col-chain {
  width: 9%;
}

.auto-data-table .auto-col-date {
  width: 10%;
}

.auto-data-table .auto-col-cycle {
  width: 8%;
}

.auto-data-table .auto-col-order {
  width: 11%;
}

.auto-data-table .auto-col-asset {
  width: 8%;
}

.auto-data-table .auto-col-status {
  width: 12%;
}

.auto-data-table .auto-col-money {
  width: 10%;
}

.auto-data-table .auto-col-actions {
  width: 9%;
}

.auto-history-cycles-table .auto-col-date {
  width: 10%;
}

.auto-history-cycles-table .auto-col-order {
  width: 11%;
}

.auto-history-cycles-table .auto-col-asset {
  width: 6%;
}

.auto-history-cycles-table .auto-col-money {
  width: 9%;
}

.auto-history-cycles-table .auto-col-status {
  width: 8%;
}

.auto-history-cycles-table .auto-col-actions {
  width: 7%;
}

.auto-ledger-table .auto-col-date {
  width: 10%;
}

.auto-ledger-table .auto-col-action {
  width: 12%;
}

.auto-ledger-table .auto-col-asset {
  width: 8%;
}

.auto-ledger-table .auto-col-hash {
  width: 28%;
}

.auto-ledger-table .auto-col-money {
  width: 12%;
}

.auto-ledger-table .auto-col-chain {
  width: 10%;
}

.auto-fees-ledger-table .auto-col-date {
  width: 11%;
}

.auto-fees-ledger-table .auto-col-status {
  width: 13%;
}

.auto-fees-ledger-table .auto-col-wallet {
  width: 14%;
}

.auto-fees-ledger-table .auto-col-chain {
  width: 10%;
}

.auto-fees-ledger-table .auto-col-money {
  width: 12%;
}

.auto-history-adjustments-table .auto-col-asset {
  width: 18%;
}

.auto-history-adjustments-table .auto-col-status {
  width: 34%;
}

.auto-history-adjustments-table .auto-col-money {
  width: 24%;
}

.auto-ledger-table th,
.auto-ledger-table td {
  text-align: center;
  vertical-align: middle;
}

.table-inline-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.auto-data-table .ghost-button {
      min-height: 30px;
      padding: 0 8px;
      font-size: 11px;
      line-height: 30px;
  }

.auto-view-cycle {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    color: #eff6ff;
}

.auto-operation-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.auto-data-table .table-mono {
  font-size: 10px;
  white-space: normal;
  word-break: break-all;
}

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

.mini-stat-label {
  color: rgba(191, 203, 221, 0.74);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.strike-card {
  margin-top: 18px;
}

.strike-subtitle {
  font-size: 18px;
}

.strike-track {
  background:
    linear-gradient(90deg, rgba(250, 204, 21, 0.22) 0 50%, rgba(34, 197, 94, 0.18) 50% 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 22px;
  margin-top: 18px;
  position: relative;
}

.strike-center-label {
  color: rgba(241, 245, 249, 0.86);
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.strike-marker {
  border-radius: 999px;
  height: 30px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
}

.strike-marker.positive { background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15); }
.strike-marker.warning { background: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18); }
.strike-marker.neutral { background: #94a3b8; }

.modal-shell {
    align-items: center;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(6px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    z-index: 10010;
  position: fixed;
}

html.auto-modal-open,
body.auto-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.modal-card {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 13, 26, 0.98));
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 38px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.modal-card > .panel-header-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.modal-card > .panel-header-row > div {
  min-width: 0;
}

.modal-card > .panel-header-row > .ghost-button {
  order: -1;
  justify-self: end;
}

.modal-card > .panel-header-row > div:has(> .ghost-button) {
  display: grid !important;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.auto-modal-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.auto-web-fee-card {
  width: min(100%, 560px);
}

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

.hypersurface-page {
  max-width: 1180px;
}

.hs-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.45fr) minmax(160px, 0.35fr);
  gap: 14px;
  margin-top: 18px;
  align-items: end;
}

.hs-type-tabs .auto-tab-button {
  min-height: 48px;
  font-size: 14px;
}

.hs-status {
  min-height: 34px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 13px;
}

.hs-status.success {
  color: #86efac;
}

.hs-status.auto-cycle-strike-recommendation {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 9px 12px;
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  letter-spacing: 0;
}

.hs-status.auto-cycle-strike-recommendation strong {
  font-weight: 800;
}

.hs-status.error {
  color: #fecaca;
}

.hs-wallet-panel {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(6px);
}

.hs-wallet-panel[hidden] {
  display: none;
}

.hs-wallet-card {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(8, 17, 34, 0.98);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hs-wallet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hs-wallet-panel-head strong,
.hs-wallet-panel-head span {
  display: block;
}

.hs-wallet-panel-head strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.hs-wallet-panel-head span,
.hs-wallet-note,
.hs-wallet-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

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

.hs-wallet-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(73, 96, 136, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #f8fafc;
  cursor: pointer;
}

.hs-wallet-choice:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.1);
}

.hs-wallet-choice img,
.hs-wallet-choice span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.hs-wallet-choice img {
  display: block;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px;
}

.hs-wallet-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.18);
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
}

.hs-wallet-choice strong {
  font-size: 13px;
  font-weight: 800;
}

.hs-market-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hs-market-table th,
.hs-market-table td {
  padding: 18px 20px;
  border-top: 1px solid rgba(73, 96, 136, 0.18);
  text-align: left;
}

.hs-market-table th {
  border-top: 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hs-market-table td {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
}

.hs-market-table th:last-child,
.hs-market-table td:last-child {
  text-align: right;
}

.hs-asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-asset-cell span:last-child {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.hs-asset-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(15, 23, 42, 0.92);
  overflow: hidden;
  flex: 0 0 auto;
}

.hs-asset-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hs-asset-icon-fallback {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.hs-asset-btc {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.hs-asset-eth {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

.hs-asset-hype {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}

.hs-earn-button {
  min-height: 36px;
  padding: 0 18px;
}

.hs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hs-options-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hs-option-pick {
  display: grid;
  min-height: 48px;
  gap: 4px;
  text-align: left;
  font-size: 12px;
}

.hs-option-pick small {
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
}

.hs-option-pick.active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.22);
  color: #f8fafc;
}

.hs-preview-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.hs-preview-panel.muted {
  opacity: 0.76;
}

.hs-preview-card,
.hs-preview-change {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(73, 96, 136, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
}

.hs-preview-card span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hs-preview-card strong {
  display: block;
  margin-top: 8px;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hs-preview-change {
  grid-column: 1 / -1;
  min-height: auto;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hs-preview-change.success {
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.08);
  color: #86efac;
}

.hs-preview-change.warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.hs-preview-change.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.hs-preview-change.neutral {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
}

.hs-quote-output {
  min-height: 120px;
  max-height: 360px;
  margin-top: 16px;
  overflow: auto;
  border: 1px solid rgba(73, 96, 136, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px;
  white-space: pre-wrap;
}

.auto-modal-card {
  max-height: 88vh;
  max-width: 860px;
  overflow-y: auto;
  width: min(100%, 860px);
}

.auto-cycle-detail-card {
  max-width: 1180px;
  width: min(96vw, 1180px);
}

.auto-cycle-detail-card .auto-table-wrap {
  overflow-x: auto;
}

.auto-cycle-detail-card th {
  white-space: nowrap;
}

.auto-history-note {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.auto-cycle-detail-table th,
.auto-cycle-detail-table td,
.auto-cycle-detail-table.auto-data-table .is-numeric {
  text-align: center;
}

.auto-cycle-detail-table .auto-type-cell {
  justify-content: center;
}

.auto-modal-summary {
  margin-top: 16px;
}

.auto-open-cycle-cta {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
}

.auto-open-cycle-cta.compact {
  min-height: 96px;
}

.auto-open-cycle-button {
  min-height: 40px;
  min-width: 138px;
}

.auto-open-cycle-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.15);
}

.auto-fee-locked-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(71, 85, 105, 0.28) !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  filter: grayscale(0.35);
  opacity: 0.78;
}

.auto-fee-locked-action::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-bottom-width: 7px;
  border-radius: 8px 8px 3px 3px;
  color: #cbd5e1;
}

.auto-fee-tooltip {
  position: fixed;
  z-index: 2147483647;
  width: max-content;
  max-width: min(300px, 72vw);
  padding: 8px 10px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 8px;
  background: rgba(10, 16, 31, 0.98);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  color: #fee2e2;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  transform: translateZ(0);
}

.auto-fee-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: rgba(10, 16, 31, 0.98);
  border-left: 1px solid rgba(248, 113, 113, 0.34);
  border-top: 1px solid rgba(248, 113, 113, 0.34);
  transform: translateX(-50%) rotate(45deg);
}

.auto-fee-tooltip.hidden {
  display: none;
}

.auto-open-cycles-shell {
  overflow: visible !important;
}

.auto-open-cycles-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.auto-hs-modal-card {
  min-height: min(620px, calc(100vh - 48px));
  width: min(100%, 920px);
}

#auto-hs-trade-modal .auto-hs-modal-card {
  min-height: 0;
}

.auto-hs-market-list,
.auto-hs-options-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auto-hs-type-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.auto-hs-type-tabs .auto-tab-button {
  min-height: 40px;
  padding: 0 14px;
}

.auto-hs-market-row,
.auto-hs-option-row {
  align-items: center;
  border: 1px solid rgba(73, 96, 136, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
  color: #f8fafc;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
}

.auto-hs-options-header {
  align-items: center;
  color: #94a3b8;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.5fr) minmax(0, 1fr);
  padding: 0 14px;
  text-transform: uppercase;
}

.auto-hs-options-header span:nth-child(2) {
  text-align: center;
}

.auto-hs-options-header span:last-child {
  text-align: right;
}

.auto-hs-market-row {
  cursor: default;
}

.auto-hs-market-row.is-selected-score {
  border-color: rgba(74, 222, 128, 0.58);
}

.auto-hs-score-guide {
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  color: #cbd5e1;
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  max-width: 760px;
  padding: 10px 12px;
}

.auto-hs-score-guide p {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.auto-hs-score-guide strong {
  color: #f8fafc;
}

.auto-hs-score-block {
  align-items: center;
  display: grid;
  flex: 1 1 340px;
  gap: 10px;
  grid-template-columns: minmax(140px, 1fr) auto;
  min-width: 220px;
}

.auto-hs-score-track {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.auto-hs-score-track::before {
  background: linear-gradient(90deg, #facc15 0%, #a3e635 52%, #22c55e 100%);
  content: "";
  inset: 0;
  opacity: 0.25;
  position: absolute;
}

.auto-hs-score-fill {
  background: linear-gradient(90deg, #facc15 0%, #a3e635 52%, #22c55e 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 2px;
  position: relative;
  z-index: 1;
}

.auto-hs-score-block-loading .auto-hs-score-track {
  opacity: 0.45;
}

.auto-hs-score-block-loading .auto-hs-score-fill {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.4), rgba(34, 197, 94, 0.5));
}

.auto-hs-score-block-loading .auto-hs-score-label {
  color: #94a3b8;
}

.auto-hs-score-label {
  align-items: center;
  color: #e2e8f0;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  justify-content: flex-end;
  min-width: 126px;
  text-transform: uppercase;
  white-space: nowrap;
}

.auto-hs-score-label strong {
  color: #f8fafc;
  display: inline;
}

.auto-info-dot {
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.62);
  border-radius: 999px;
  color: #f8fafc;
  cursor: help;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  text-transform: none;
  width: 18px;
}

.auto-fees-info,
.auto-pending-cycle-info,
.auto-capital-info,
.auto-info-dot {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(200, 202, 231, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #dfe4ff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: none;
  cursor: help;
}

.auto-hs-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.5fr) minmax(0, 1fr);
  cursor: pointer;
  width: 100%;
}

.auto-hs-option-row:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.08);
}

.auto-hs-option-row.is-recommended-strike {
  border-color: rgba(34, 197, 94, 0.46);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08)),
    rgba(7, 15, 31, 0.74);
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.82);
}

.auto-hs-option-row.is-recommended-strike:hover {
  border-color: rgba(74, 222, 128, 0.68);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0.12)),
    rgba(7, 15, 31, 0.8);
}

.auto-hs-option-row.is-below-recommended-strike {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.16), rgba(127, 29, 29, 0.12)),
    rgba(7, 15, 31, 0.74);
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.72);
}

.auto-hs-option-row.is-below-recommended-strike:hover {
  border-color: rgba(252, 165, 165, 0.72);
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.22), rgba(127, 29, 29, 0.16)),
    rgba(7, 15, 31, 0.8);
}

.auto-hs-option-row.is-closest-recommended-strike {
  border-color: rgba(134, 239, 172, 0.88);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.36), rgba(22, 163, 74, 0.2)),
    rgba(7, 15, 31, 0.8);
  box-shadow:
    inset 5px 0 0 rgba(134, 239, 172, 0.95),
    0 0 0 1px rgba(134, 239, 172, 0.18),
    0 12px 28px rgba(22, 163, 74, 0.2);
}

.auto-hs-option-row.is-closest-recommended-strike:hover {
  border-color: rgba(187, 247, 208, 0.96);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.44), rgba(22, 163, 74, 0.26)),
    rgba(7, 15, 31, 0.84);
}

.auto-hs-option-row.is-best-apr {
  border-color: rgba(74, 222, 128, 0.85);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.28), rgba(16, 185, 129, 0.14)),
    rgba(7, 15, 31, 0.78);
  box-shadow:
    inset 4px 0 0 rgba(74, 222, 128, 0.95),
    0 0 0 1px rgba(74, 222, 128, 0.16);
}

.auto-hs-option-row.is-best-apr:hover {
  border-color: rgba(110, 231, 183, 0.96);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.36), rgba(16, 185, 129, 0.2)),
    rgba(7, 15, 31, 0.84);
}

.auto-hs-option-row.is-disabled,
.auto-hs-option-row:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.auto-hs-option-row.is-disabled:hover,
.auto-hs-option-row:disabled:hover {
  border-color: rgba(56, 83, 129, 0.52);
  background: rgba(7, 15, 31, 0.74);
}

.auto-hs-market-main,
.auto-hs-market-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.auto-hs-market-main strong,
.auto-hs-market-main span,
.auto-hs-option-row strong,
.auto-hs-option-row small {
  display: block;
}

.auto-hs-option-main {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.auto-hs-option-main > span:last-child {
  min-width: 0;
}

.auto-hs-option-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
}

.auto-hs-market-main strong,
.auto-hs-option-row strong {
  font-size: 14px;
  font-weight: 900;
}

.auto-hs-market-main span,
.auto-hs-option-row small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.auto-hs-option-apr {
  text-align: center;
}

.auto-hs-option-row > span:last-child {
  text-align: right;
}

.auto-hs-trade-form,
.auto-hs-trade-summary {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auto-hs-trade-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auto-hs-trade-grid div {
  border: 1px solid rgba(73, 96, 136, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
  padding: 12px;
}

.auto-hs-trade-grid span,
.auto-hs-trade-note {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.auto-hs-trade-grid strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.auto-hs-trade-grid strong .auto-hs-premium-pct {
  color: #22c55e;
  display: inline;
  font-size: 13px;
  font-weight: 900;
  margin-left: 4px;
  white-space: nowrap;
}

.auto-hs-trade-note {
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08);
  color: #99f6e4;
  padding: 10px 12px;
}

.auto-hs-size-estimate {
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  min-height: 18px;
}

.auto-hs-inline-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auto-hs-inline-amount:hover {
  border-color: rgba(125, 211, 252, 0.72);
  background: rgba(56, 189, 248, 0.2);
}

.auto-hs-size-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  overflow: hidden;
}

.auto-hs-size-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 12px 76px 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auto-hs-size-input-wrap input:focus {
  outline: none;
}

.auto-hs-max-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 52px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(125, 190, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 86, 196, 0.48), rgba(10, 37, 88, 0.54));
  color: #f8fbff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.auto-hs-max-button:hover:not(:disabled) {
  border-color: rgba(125, 190, 255, 0.8);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.76), rgba(12, 49, 120, 0.82));
}

.auto-hs-max-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  position: relative;
}

.auto-hs-max-button:disabled[data-disabled-tooltip]:hover::after {
  content: attr(data-disabled-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.auto-manual-result-choice {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auto-manual-result-choice button {
  min-height: 66px;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 12px 14px;
  text-align: left;
}

.auto-manual-result-choice small {
  display: block;
  color: rgba(226, 232, 240, 0.68);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.auto-history-import-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.auto-history-cycles-sort {
  max-width: 240px;
}

.auto-history-import-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auto-history-import-form textarea {
  min-height: 74px;
  resize: vertical;
}

#auto-parallel-warning {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 8px;
  color: #fecaca;
  line-height: 1.5;
  padding: 12px;
}

#auto-parallel-warning strong,
#auto-parallel-warning span {
  display: block;
}

/* Premium options skin: visual-only overrides. */
body {
  background:
    radial-gradient(circle at 78% -12%, rgba(99, 102, 241, 0.12), transparent 34rem),
    radial-gradient(circle at 14% 8%, rgba(14, 165, 233, 0.1), transparent 28rem),
    linear-gradient(145deg, #020712 0%, #050b18 46%, #020611 100%);
}

.app-shell {
  grid-template-columns: 96px minmax(0, 1fr);
}

.sidebar {
  width: 96px;
  padding: 22px 10px;
  background: rgba(2, 7, 18, 0.94);
  border-right: 1px solid rgba(91, 117, 164, 0.24);
  box-shadow: inset -1px 0 0 rgba(124, 58, 237, 0.12), 18px 0 60px rgba(0, 0, 0, 0.24);
}

.brand {
  justify-content: center;
}

.brand > span:not(.brand-mark),
.sidebar-panel,
.nav-link span:first-child,
.nav-link.muted {
  display: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: conic-gradient(from 30deg, #22d3ee, #7c3aed, #4f46e5, #22d3ee);
  color: transparent;
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 6px solid #050b18;
  border-radius: 8px;
  background: transparent;
}

.sidebar nav {
  display: grid;
  gap: 18px;
  margin-top: 72px;
}

.nav-link {
  position: relative;
  width: 64px;
  height: 64px;
  min-height: 64px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
}

.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
}

.nav-link::before {
  width: 28px;
  height: 28px;
  border: 3px solid #cfc8ff;
  border-radius: 8px;
  opacity: 0.9;
}

.nav-link::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfc8ff;
  box-shadow: 13px 0 0 #cfc8ff, 0 13px 0 #cfc8ff, 13px 13px 0 #cfc8ff;
  transform: translate(-6px, -6px);
  opacity: 0.95;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(147, 51, 234, 0.72);
  background: linear-gradient(180deg, rgba(31, 41, 92, 0.62), rgba(16, 24, 52, 0.84));
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), 0 0 26px rgba(79, 70, 229, 0.42);
}

.nav-link.active::before,
.nav-link.active::after {
  border-color: #6d5cff;
  background: #6d5cff;
  box-shadow: 13px 0 0 #6d5cff, 0 13px 0 #6d5cff, 13px 13px 0 #6d5cff;
}

.nav-dot {
  display: none;
}

.main-content {
  padding: 24px 38px 32px;
}

.topbar {
  min-height: 62px;
  margin-bottom: 18px;
}

.eyebrow {
  display: none;
}

.page-title {
  color: #f8fbff;
  font-size: 28px;
  font-weight: 750;
}

.topbar-actions {
  gap: 14px;
}

.ghost-button,
.primary-button,
.session-badge {
  border-radius: 8px;
}

.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  border-color: rgba(90, 112, 160, 0.42);
  background: rgba(4, 10, 24, 0.72);
  color: #ded8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ghost-button:hover {
  border-color: rgba(167, 139, 250, 0.66);
  background: rgba(20, 18, 48, 0.86);
}

.ghost-button.auto-expired-settle {
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(133, 77, 14, 0.18);
  color: #fde68a;
}

.ghost-button.auto-expired-settle:hover {
  border-color: rgba(253, 224, 71, 0.9);
  background: rgba(202, 138, 4, 0.28);
  color: #fff7cc;
}

.primary-button,
.auto-new-investment-button {
  min-height: 46px;
  border: 1px solid rgba(190, 70, 255, 0.68);
  background: rgba(126, 34, 206, 0.14);
  color: #e879ff;
  box-shadow: 0 0 24px rgba(126, 34, 206, 0.18);
}

.danger-action {
  border-color: rgba(90, 112, 160, 0.42);
  color: #ded8ff;
}

.session-badge {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(90, 112, 160, 0.42);
  background: rgba(4, 10, 24, 0.72);
  color: #ded8ff;
  padding: 0 18px;
  font-weight: 700;
}

.auto-options-page {
  gap: 18px;
}

.panel-card,
.auto-state-summary-shell,
.auto-open-cycles-shell,
.auto-operation-card,
.auto-position-card {
  border: 1px solid rgba(56, 83, 129, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 13, 30, 0.98), rgba(2, 9, 22, 0.98)),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 24rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.panel-card {
  padding: 22px;
}

.panel-eyebrow {
  color: #bda8ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.auto-state-summary-shell {
  padding: 18px 28px;
  margin-bottom: 18px;
}

#auto-open-order {
  margin-bottom: 18px;
}

.auto-quick-summary-grid {
  margin-top: 18px;
}

.auto-quick-summary-card {
  min-height: 72px;
  gap: 18px;
  padding: 6px 28px;
  border-right-color: rgba(72, 96, 145, 0.5);
}

.auto-quick-summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.auto-quick-summary-icon.wallet,
.auto-quick-summary-icon.scale {
  background: linear-gradient(180deg, rgba(91, 62, 255, 0.58), rgba(70, 40, 170, 0.36));
}

.auto-quick-summary-icon.shield {
  background: linear-gradient(180deg, rgba(0, 154, 255, 0.46), rgba(0, 82, 168, 0.32));
}

.auto-quick-summary-icon.trend {
  background: linear-gradient(180deg, rgba(0, 190, 121, 0.46), rgba(0, 98, 69, 0.34));
}

.auto-quick-summary-icon.wallet::before {
  width: 27px;
  height: 19px;
  left: 14px;
  top: 22px;
}

.auto-quick-summary-icon.wallet::after {
  right: 14px;
  top: 28px;
}

.auto-quick-summary-icon.shield::before {
  width: 28px;
  height: 31px;
  left: 14px;
  top: 12px;
}

.auto-quick-summary-icon.shield::after {
  left: 23px;
  top: 27px;
}

.auto-quick-summary-icon.trend::before {
  left: 19px;
  top: 21px;
}

.auto-quick-summary-icon.trend::after {
  right: 15px;
  top: 16px;
}

.auto-quick-summary-icon.scale::before {
  left: 27px;
  top: 14px;
  height: 28px;
}

.auto-quick-summary-icon.scale::after {
  left: 20px;
  top: 20px;
}

.auto-quick-summary-card span {
  color: #cfc6ee;
  font-size: 14px;
  font-weight: 500;
}

.auto-quick-summary-card > div:not(.auto-quick-summary-icon) > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  white-space: nowrap;
  line-height: 1.1;
}

.auto-quick-summary-card strong {
  color: #f8fbff;
  font-size: 25px;
  font-weight: 650;
}

.auto-quick-summary-card strong em {
  color: #c8c0e8;
  font-size: 14px;
  font-weight: 500;
}

.auto-quick-summary-card strong.is-positive {
  color: #16f08b;
}

.auto-secondary-tabs {
  max-width: 1120px;
  margin: 0 auto 18px;
  border-color: rgba(56, 83, 129, 0.58);
  border-radius: 8px;
  background: rgba(4, 12, 28, 0.82);
}

.auto-tab-button {
  min-height: 56px;
  color: #d8d1f8;
  font-size: 16px;
  font-weight: 520;
}

.auto-tab-button.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.04);
}

.auto-tab-button.active::after {
  width: 190px;
  height: 2px;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0), #345cff 50%, rgba(217, 70, 239, 0));
  box-shadow: 0 0 16px rgba(52, 92, 255, 0.9);
}

.auto-current-layout {
  gap: 16px;
}

.auto-current-card-head {
  padding: 0 0 14px;
  border-bottom-color: rgba(56, 83, 129, 0.48);
}

.auto-live-pill {
  min-height: 30px;
  border-radius: 7px;
  background: rgba(0, 112, 65, 0.58);
  color: #16f08b;
  font-size: 12px;
}

.auto-operation-grid {
  margin: 0 -22px -22px;
}

.auto-operation-cell {
  min-height: 122px;
  padding: 22px 26px;
  border-color: rgba(56, 83, 129, 0.42);
}

.auto-operation-cell span {
  color: #cfc6ee;
  font-size: 13px;
}

.auto-operation-cell strong {
  color: #f8fbff;
  font-size: 24px;
  font-weight: 620;
}

.auto-operation-type.call,
.auto-type-cell.call strong {
  color: #17f08b;
}

.auto-operation-type.put,
.auto-type-cell.put strong {
  color: #ff454f;
}

.auto-operation-cell strong.is-accent {
  color: #b026ff;
}

.auto-gauge-shell {
  padding: 4px 28px 0;
}

.auto-gauge-arc {
  width: min(100%, 430px);
}

.auto-gauge-arc::before {
  background: conic-gradient(
    from 180deg at 50% 100%,
    #ff3048 0deg,
    #ff4d63 35deg,
    #b45cff 78deg,
    #7388ff 118deg,
    #22c9f5 150deg,
    #19f39c 180deg
  );
}

.auto-gauge-inner strong {
  color: #f8fbff;
  font-size: 27px;
  font-weight: 650;
}

.auto-distance-track {
  height: 7px;
  background: linear-gradient(90deg, #ff2f48 0%, #ff6b5e 33%, #a8bc78 57%, #17f08b 100%);
}

.auto-distance-marker {
  width: 18px;
  height: 18px;
  border-width: 4px;
}

.auto-open-cycles-shell {
  padding: 0;
  overflow: hidden;
}

.auto-open-cycles-shell .panel-header-row {
  align-items: center;
  flex-direction: row;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(56, 83, 129, 0.44);
}

.auto-open-cycles-pill {
  color: #d8ccff;
  font-size: 17px;
}

.auto-cycle-group {
  border-top-color: rgba(56, 83, 129, 0.36);
}

.auto-cycle-group:first-child {
  border-top: 0;
}

.auto-cycle-group-summary {
  min-height: 74px;
  padding: 12px 24px;
  color: #f6f8ff;
}

.auto-cycle-letter,
.auto-type-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  border-color: rgba(74, 108, 178, 0.62);
  background: rgba(12, 30, 64, 0.86);
  color: #dcd8ff;
  font-size: 24px;
}

.auto-cycle-group-summary strong,
.auto-cycle-group-summary span,
.auto-cycle-group-summary em {
  font-size: 17px;
}

.auto-cycle-group-summary strong {
  color: #f8fbff;
  font-weight: 760;
}

.auto-cycle-group-summary span,
.auto-cycle-group-summary em {
  color: #d8d1f8;
}

.auto-cycle-strike-track {
  height: 18px;
  background: rgba(32, 43, 64, 0.94);
  border-color: rgba(92, 113, 154, 0.72);
}

.auto-cycle-strike-fill.positive {
  background: linear-gradient(90deg, rgba(24, 210, 124, 0.55), #17f08b);
}

.auto-cycle-strike-fill.warning {
  background: linear-gradient(90deg, #f0b532, rgba(240, 181, 50, 0.55));
}

.auto-cycle-strike-center {
  background: rgba(246, 247, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

.auto-state-table {
  margin-top: 0;
}

.auto-state-table th {
  padding: 11px 20px;
  color: #cfc6ee;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auto-state-table td {
  padding: 10px 20px;
  border-top-color: rgba(56, 83, 129, 0.36);
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.2;
}

.auto-state-hash-cell {
  width: 1%;
  white-space: nowrap;
}

.auto-state-countdown-cell {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  white-space: nowrap;
}

.auto-state-countdown-text {
  display: block;
  min-width: 98px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}

.auto-state-hash-cell .data-chip,
.auto-operation-cell small .data-chip {
  display: inline-flex;
  width: auto;
  min-width: 0;
  padding-inline: 10px;
}

.auto-open-cycles-shell .auto-state-table td small {
  margin-top: 4px;
  font-size: 10px;
}

.auto-state-action,
.status-pill,
.data-chip {
  border-radius: 7px;
}

.auto-tx-link {
  color: inherit;
  text-decoration: none;
}

.auto-tx-link:hover {
  border-color: rgba(125, 211, 252, 0.68);
  color: #dff6ff;
}

/* Premium compact pass: keep the same product logic, tighten scale and restore nav labels. */
.app-shell {
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  width: 250px;
  padding: 22px 18px;
}

.brand {
  justify-content: flex-start;
  gap: 12px;
}

.brand > span:not(.brand-mark),
.nav-link span:first-child {
  display: block;
}

.brand > span:not(.brand-mark) {
  color: #f8fbff;
}

.sidebar-panel {
  display: none;
}

.sidebar nav {
  gap: 8px;
  margin-top: 34px;
}

.nav-link {
  width: 100%;
  height: 44px;
  min-height: 44px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px 0 46px;
  color: #d9d3f8;
  font-size: 13px;
}

.nav-link::before {
  left: 12px;
  width: 19px;
  height: 19px;
  border-width: 2px;
}

.nav-link::after {
  left: 19px;
  width: 5px;
  height: 5px;
  box-shadow: 9px 0 0 #cfc8ff, 0 9px 0 #cfc8ff, 9px 9px 0 #cfc8ff;
  transform: translate(-4px, -4px);
}

.nav-link.active::after {
  box-shadow: 9px 0 0 #6d5cff, 0 9px 0 #6d5cff, 9px 9px 0 #6d5cff;
}

.main-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 20px 28px 28px;
}

.topbar {
  max-width: 1540px;
  margin: 0 auto 16px;
  min-height: 54px;
}

.page-title {
  font-size: 28px;
  line-height: 1.1;
}

.topbar-actions {
  gap: 10px;
}

.ghost-button,
.primary-button,
.session-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.auto-options-page {
  max-width: 1540px;
  margin: 0 auto;
}

.panel-card {
  padding: 18px;
}

.auto-state-summary-shell {
  padding: 16px 22px;
}

.panel-eyebrow {
  font-size: 13px;
}

.auto-quick-summary-grid {
  margin-top: 12px;
}

.auto-quick-summary-card {
  min-height: 58px;
  gap: 14px;
  padding: 4px 22px;
}

.auto-quick-summary-icon {
  width: 42px;
  height: 42px;
}

.auto-quick-summary-icon.wallet::before {
  width: 21px;
  height: 15px;
  left: 10px;
  top: 16px;
}

.auto-quick-summary-icon.wallet::after {
  right: 10px;
  top: 21px;
}

.auto-quick-summary-icon.shield::before {
  width: 22px;
  height: 25px;
  left: 10px;
  top: 8px;
}

.auto-quick-summary-icon.shield::after {
  left: 17px;
  top: 19px;
}

.auto-quick-summary-icon.trend::before {
  left: 14px;
  top: 15px;
}

.auto-quick-summary-icon.trend::after {
  right: 10px;
  top: 10px;
}

.auto-quick-summary-icon.scale::before {
  left: 20px;
  top: 9px;
  height: 23px;
}

.auto-quick-summary-icon.scale::after {
  left: 14px;
  top: 15px;
}

.auto-quick-summary-card span {
  font-size: 13px;
}

.auto-quick-summary-card strong {
  font-size: 22px;
}

.auto-secondary-tabs {
  max-width: 980px;
  margin-bottom: 16px;
}

.auto-tab-button {
  min-height: 46px;
  font-size: 14px;
}

.auto-tab-button.active::after {
  width: 132px;
}

.auto-chart-tabs {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auto-chart-tabs::-webkit-scrollbar {
  display: none;
}

.auto-current-layout {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 14px;
}

#rysk-open-order + .auto-open-cycles-shell {
  margin-top: 24px;
}

.auto-current-card-head {
  padding-bottom: 12px;
}

.auto-live-pill {
  min-height: 28px;
  padding: 0 12px;
}

.auto-operation-grid {
  margin: 0 -18px -18px;
}

.auto-operation-cell {
  min-height: 104px;
  gap: 8px;
  padding: 18px 22px;
}

.auto-operation-cell span {
  font-size: 12px;
}

.auto-operation-cell strong {
  font-size: 20px;
}

.auto-operation-cell strong.is-accent,
.auto-operation-cell strong.is-negative {
  font-size: 20px;
}

.auto-operation-cell small {
  font-size: 12px;
}

.auto-position-card {
  min-height: 0;
  padding-bottom: 18px;
}

.auto-gauge-shell {
  min-height: 0;
  padding: 4px 18px 0;
}

.auto-gauge-arc {
  width: min(100%, 360px);
  aspect-ratio: 2 / 0.95;
}

.auto-gauge-arc::before {
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 67%, #000 68% 100%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 67%, #000 68% 100%);
  filter: drop-shadow(0 0 7px rgba(42, 220, 255, 0.16));
}

.auto-gauge-inner {
  bottom: 2px;
  gap: 7px;
}

.auto-gauge-inner span,
.auto-distance-meta span {
  font-size: 11px;
}

.auto-gauge-inner strong {
  font-size: 24px;
}

.auto-gauge-inner small {
  font-size: 12px;
}

.auto-gauge-distance {
  font-size: 12px;
}

.auto-distance-track {
  width: min(100%, 400px);
  height: 6px;
  margin-top: 8px;
}

.auto-distance-marker {
  width: 16px;
  height: 16px;
  border-width: 4px;
}

.auto-distance-meta {
  margin-top: 10px;
}

.auto-distance-meta strong {
  font-size: 16px;
}

.auto-open-cycles-shell .panel-header-row {
  padding: 14px 22px 10px;
}

.auto-open-cycles-pill {
  font-size: 14px;
}

.auto-cycle-group-summary {
  min-height: 50px;
  padding: 8px 20px;
  grid-template-columns: 30px 70px 116px minmax(240px, 1fr) 116px 92px 70px 12px;
}

.auto-cycle-letter,
.auto-type-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 15px;
}

.auto-cycle-group-summary strong,
.auto-cycle-group-summary span,
.auto-cycle-group-summary em {
  font-size: 12px;
}

.auto-cycle-strike-meter {
  width: 190px;
  min-width: 190px;
}

.auto-cycle-strike-track {
  height: 10px;
}

.auto-type-cell {
  gap: 8px;
}

.auto-state-badge {
  min-width: 74px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 8px;
}

.auto-state-action {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.auto-options-page strong,
.auto-options-page em,
.auto-options-page b,
.auto-options-page th,
.auto-options-page td,
.auto-options-page button,
.auto-options-page .panel-title,
.auto-options-page .panel-eyebrow,
.auto-options-page .auto-tab-button,
.auto-options-page .status-pill,
.auto-options-page .data-chip,
.auto-options-page .auto-state-badge,
.auto-options-page .auto-state-action {
  font-weight: 400;
}

.auto-options-page .auto-wallet-disconnected {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.auto-icon-button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auto-icon-button img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.auto-icon-button .auto-wallet-button-icon {
  width: auto;
  height: 38px;
  max-width: 96px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.auto-wallet-head-icon {
  width: 168px;
  max-width: min(100%, 168px);
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0 0 14px;
  object-fit: contain;
  background: transparent;
}

.auto-main-tabs {
  align-items: stretch;
  overflow: hidden;
}

.auto-main-tabs .auto-tab-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #d8d5ff;
  font-size: 16px;
  line-height: 1;
}

.auto-main-tabs .auto-tab-button::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.auto-main-tabs .auto-tab-button.active::before {
  filter: drop-shadow(0 0 10px rgba(65, 120, 255, 0.65));
}

.auto-main-tabs .auto-tab-button[data-auto-secondary-tab="estado-actual"]::before {
  background-image: url("/static/img/auto-icons/tab-state.svg");
}

.auto-main-tabs .auto-tab-button[data-rysk-secondary-tab="estado-actual"]::before {
  background-image: url("/static/img/auto-icons/tab-state.svg");
}

.auto-main-tabs .auto-tab-button[data-auto-secondary-tab="graficas"]::before {
  background-image: url("/static/img/auto-icons/tab-charts.svg");
}

.auto-main-tabs .auto-tab-button[data-rysk-secondary-tab="graficas"]::before {
  background-image: url("/static/img/auto-icons/tab-charts.svg");
}

.auto-main-tabs .auto-tab-button[data-auto-secondary-tab="historial-operaciones"]::before {
  background-image: url("/static/img/auto-icons/tab-history.svg");
}

.auto-main-tabs .auto-tab-button[data-rysk-secondary-tab="historial-operaciones"]::before {
  background-image: url("/static/img/auto-icons/tab-history.svg");
}

.auto-main-tabs .auto-tab-button[data-auto-secondary-tab="configuracion"]::before {
  background-image: url("/static/img/auto-icons/tab-config.svg");
}

.auto-main-tabs .auto-tab-button[data-rysk-secondary-tab="configuracion"]::before {
  background-image: url("/static/img/auto-icons/tab-config.svg");
}

.auto-summary-icon-image,
.auto-type-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auto-quick-summary-icon,
.auto-type-icon {
  overflow: hidden;
}

.auto-quick-summary-icon::before,
.auto-quick-summary-icon::after,
.auto-type-icon::before,
.auto-type-icon::after {
  content: none !important;
  display: none !important;
}

.auto-summary-icon-image {
  padding: 0;
}

.auto-quick-summary-card {
  gap: 12px;
}

.auto-quick-summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: transparent !important;
}

@media (max-width: 960px) {
  .auto-grid-form,
  .open-order-grid,
  .auto-current-layout,
  .auto-operation-grid,
  .hs-preview-panel,
  .hs-controls {
    grid-template-columns: 1fr;
  }

  .auto-quick-summary-grid {
    flex-direction: column;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .mini-card,
  .panel-header-row,
  .event-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .auto-quick-summary-card,
  .auto-operation-cell {
    border-right: 0;
  }

  .auto-quick-summary-icon {
    width: 46px;
    height: 46px;
  }

  .auto-hs-market-row,
  .auto-hs-option-row {
    align-items: stretch;
  }

  .auto-hs-market-row {
    flex-direction: column;
  }

  .auto-hs-score-block {
    flex-basis: auto;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .auto-hs-score-label {
    justify-content: flex-start;
  }

  .auto-hs-option-row,
  .auto-hs-options-header {
    grid-template-columns: minmax(0, 1fr) minmax(74px, 0.45fr) minmax(0, 0.9fr);
  }

  .auto-hs-trade-grid {
    grid-template-columns: 1fr;
  }

  .auto-cycle-group-summary {
    grid-template-columns: auto 1fr auto;
  }

  .auto-cycle-group-summary .auto-cycle-letter {
    grid-row: span 2;
  }

  .auto-cycle-group-summary strong,
  .auto-cycle-group-summary span,
  .auto-cycle-group-summary em {
    font-size: 11px;
  }

  .auto-cycle-letter,
  .auto-type-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 13px;
  }

  .auto-cycle-strike-meter {
    grid-column: 2 / -1;
    max-width: none;
    width: 100%;
  }

  .auto-hs-market-actions {
    justify-content: space-between;
  }

}
.admin-password-reset-modal .modal-card {
  width: min(100%, 560px);
}

.admin-temporary-password-value {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}
