/* ==========================================================================
   AXON Dump Radar — редизайн карточек + chart/ruler (merged)
   ========================================================================== */

/* --- Tokens (дополняют index.html, не переопределяют brand) --- */
:root {
  --mono: "JetBrains Mono", "Consolas", monospace;
  --card-radius: 14px;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-strong: rgba(255, 255, 255, 0.14);
  --card-inner-hi: rgba(255, 255, 255, 0.035);
  --bg-card-hover: #1c1c1c;
  --accent-tint: rgba(41, 232, 201, 0.1);
  --accent-tint-strong: rgba(41, 232, 201, 0.18);
  --danger-tint: rgba(255, 92, 92, 0.1);
  --warning-tint: rgba(255, 176, 32, 0.1);
}

.card,
.signal-stat,
.signal-zone-card,
.tracking-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #141414 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: inset 0 1px 0 var(--card-inner-hi);
}

.tracking-row:focus-visible,
.signal-tf:focus-visible,
.track-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Обзор: two-col --- */
.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 14px;
}

.two-col > .card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  box-sizing: border-box;
}

.two-col .info-list {
  gap: 0;
  justify-content: center;
  height: 100%;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 13px;
}

.info-row + .info-row {
  border-top: 1px solid var(--card-border);
}

.info-row .i-label,
.info-row > *:first-child {
  color: var(--text-secondary);
  white-space: nowrap;
}

.info-row .i-value,
.info-row > *:last-child {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.two-col > .card:last-child {
  justify-content: center;
  gap: 0;
}

.pill-test {
  background: rgba(120, 140, 255, 0.18);
  color: #9eb0ff;
  border: 1px solid rgba(120, 140, 255, 0.35);
}

.pill-test-inline {
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.signal-test-row {
  background: rgba(120, 140, 255, 0.04);
}

.signal-row-highlight {
  animation: signalRowPulse 1.2s ease-in-out 2;
}

@keyframes signalRowPulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(120, 140, 255, 0.14); }
}

.signal-expand-cell {
  width: 56px;
  max-width: 56px;
  min-width: 56px;
  text-align: right;
  padding-right: 10px !important;
  white-space: nowrap;
  vertical-align: middle;
}

.signal-delete-test-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.08);
  color: #ff9a9a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.signal-delete-test-btn:hover {
  background: rgba(255, 80, 80, 0.18);
}

.profile-login-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.profile-preview-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(41, 232, 201, 0.35);
  background: rgba(41, 232, 201, 0.06);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.profile-preview-banner strong {
  color: var(--accent);
}

.brand-row img,
#splash img.splash-icon {
  background: transparent !important;
}

.profile-notify-card {
  margin-top: 12px;
}

.profile-notify-card .field-label {
  display: block;
  margin-bottom: 2px;
}

.profile-notify-test {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.profile-notify-test .btn {
  flex: 1 1 140px;
}

.toggle-row {
  min-height: 54px;
  align-items: center;
}

.toggle-row + .toggle-row {
  margin-top: 4px;
}

.signals-table {
  table-layout: fixed;
}

.signals-table th,
.signals-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.signals-table th:nth-child(1),
.signals-table td:nth-child(1) {
  width: 11%;
}

.signals-table th:nth-child(2),
.signals-table td:nth-child(2) {
  width: 14%;
}

.signals-table th:nth-child(3),
.signals-table td:nth-child(3) {
  width: 13%;
}

.signals-table th:nth-child(4),
.signals-table td:nth-child(4) {
  width: 10%;
}

.signals-table th:nth-child(5),
.signals-table td:nth-child(5) {
  width: 12%;
}

.signals-table th:nth-child(6),
.signals-table td:nth-child(6) {
  width: 12%;
}

.signals-table .signals-actions-col,
.signals-table .signal-expand-cell {
  width: 56px;
}

/* --- Сигналы: demo + hints --- */
.signal-demo {
  margin-bottom: 14px;
}

.signal-demo summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 2px 10px;
}

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

.signal-demo summary::before {
  content: "▸";
  color: var(--accent);
  font-size: 12px;
}

.signal-demo[open] summary::before {
  content: "▾";
}

.signal-demo-body {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  max-height: 360px;
  overflow-y: auto;
}

.hint-toggle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 2px 14px;
}

.signals-outcomes-banner {
  margin: 0 2px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(41, 232, 201, 0.05);
  line-height: 1.55;
}

.linkish-btn {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.linkish-btn:hover {
  color: var(--text-primary);
}

.signal-outcome-row .signal-ticker-cell {
  cursor: pointer;
  font-weight: 600;
}

.signal-outcome-row .signal-ticker-cell:hover {
  color: var(--accent);
}

.signal-history-row {
  cursor: default;
}

.signal-history-row.is-expanded td {
  background: rgba(41, 232, 201, 0.04);
  border-bottom-color: transparent;
}

.signal-history-row:hover td {
  background: rgba(41, 232, 201, 0.06);
}

.signal-ticker-cell {
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.signal-ticker-cell:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signal-history-row:hover .signal-ticker-cell {
  color: var(--accent);
}

.signal-expand-cell {
  width: 56px;
  max-width: 56px;
  min-width: 56px;
  text-align: right;
  padding-right: 10px !important;
  white-space: nowrap;
  vertical-align: middle;
}

.signal-expand-cell .signal-delete-test-btn {
  margin-right: 4px;
  vertical-align: middle;
}

.signal-expand-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.2s;
}

.signal-expand-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.signal-expand-btn:hover {
  background: rgba(41, 232, 201, 0.1);
  border-color: rgba(41, 232, 201, 0.35);
  color: var(--accent);
}

.signal-expand-btn.is-open svg {
  transform: rotate(180deg);
}

.signal-detail-row td {
  padding: 0 12px 14px !important;
  border-bottom: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.12);
}

.signal-detail-panel {
  padding: 14px 12px 4px;
}

.signal-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signal-detail-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-detail-id {
  font-size: 12px;
  color: var(--text-secondary);
}

.signal-detail-result {
  font-size: 11px;
}

.signal-stats-compact {
  margin-bottom: 0 !important;
  gap: 10px !important;
}

.signal-stats-compact .signal-stat {
  padding: 10px 12px;
}

.signal-levels-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.signal-result {
  color: var(--accent);
  font-weight: 600;
}

/* --- #signalStats --- */
#signalStats,
.signal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

.signal-stat {
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.signal-stat-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.signal-stat-value {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-stat-value.positive {
  color: var(--accent);
}

.signal-stat-value.negative {
  color: var(--danger);
}

.signal-stat:has(.signal-stat-value.positive) {
  background:
    linear-gradient(180deg, var(--accent-tint), transparent 140%),
    linear-gradient(180deg, var(--bg-card), #141414);
}

.signal-stat:has(.signal-stat-value.negative) {
  background:
    linear-gradient(180deg, var(--danger-tint), transparent 140%),
    linear-gradient(180deg, var(--bg-card), #141414);
}

/* --- #signalLevels / zone cards --- */
.signal-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.signal-zone-card {
  padding: 16px 20px 6px;
  margin-top: 4px;
}

.signal-zone-title,
.signal-zone-card > h3,
.signal-zone-card > h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.signal-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--card-border);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.signal-zone-row:last-child {
  border-bottom: none;
}

.signal-zone-row > span:first-child {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.signal-zone-row > span:last-child {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.signal-zone-row:first-child {
  background: var(--danger-tint);
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -4px 2px;
  border-bottom: none;
}

.signal-zone-row:first-child::before {
  content: "";
  align-self: stretch;
  width: 2px;
  margin-right: 10px;
  background: var(--danger);
  border-radius: 2px;
  flex-shrink: 0;
}

.signal-zone-row.hit {
  background: var(--accent-tint);
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
  margin: 2px -4px;
  border-bottom: none;
}

.signal-zone-row.hit > span:first-child,
.signal-zone-row.hit > span:last-child {
  color: var(--accent);
}

/* --- Сопровождение --- */
.tracking-card {
  margin-bottom: 14px;
  padding: 14px 16px 10px;
}

.tracking-card.is-empty {
  padding-bottom: 0;
}

.tracking-head {
  margin-bottom: 0;
}

.tracking-sub {
  margin-top: 4px;
}

.tracking-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

#trackingWrap {
  min-height: 0;
}

.tracking-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 4px;
  text-align: left;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tracking-empty strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.tracking-empty[hidden] {
  display: none !important;
}

.nav-item[hidden],
.overview-admin-only[hidden] {
  display: none !important;
}

.profile-details,
.profile-kv {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 0;
  flex: 0 0 auto;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
}

.profile-hidden,
.profile-card [hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.profile-card-foot {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
}

.profile-kv:not([hidden]) + .profile-card-foot:not([hidden]),
.profile-kv:not([hidden]) + .profile-hidden + .profile-card-foot:not([hidden]) {
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
}

.profile-actions:not([hidden]) + .profile-login:not([hidden]) {
  border-top: 1px solid var(--card-border);
  margin-top: 12px;
  padding-top: 12px;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41, 232, 201, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  line-height: 1.3;
}

.profile-badge + .profile-meta {
  margin-top: 0;
}

.profile-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.45;
  max-width: 100%;
}

.profile-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 7px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 13px;
}

.profile-kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-kv-value.is-unlimited {
  color: var(--accent);
  font-weight: 600;
}

.profile-kv-label {
  color: var(--text-secondary);
}

.profile-kv-value {
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}

.profile-login[hidden],
.profile-actions[hidden],
.profile-actions button[hidden] {
  display: none !important;
}

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

.profile-login .field-label {
  display: block;
  margin-bottom: 6px;
}

.profile-login-hint {
  margin: 0 0 10px;
}

.ban-section-label {
  padding: 14px 4px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  margin-top: 4px;
}

.ban-row-builtin .ban-ticker {
  color: var(--text-secondary);
}

.tracking-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--card-border);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s;
}

.tracking-row:last-child {
  border-bottom: none;
}

.tracking-row:first-child {
  border-top: none;
}

.tracking-row:hover {
  background: var(--bg-card-hover);
}

.tracking-row:active {
  background: var(--card-border-strong);
}

.tracking-row .tracking-toggle,
.tracking-row .track-toggle {
  cursor: pointer;
}

.tracking-main {
  min-width: 0;
}

.tracking-symbol {
  font-family: var(--mono);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tracking-id {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-meta {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.tracking-toggle-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent-tint);
  color: var(--accent);
  white-space: nowrap;
  min-width: 42px;
  text-align: center;
}

/* --- Модалка: shell --- */
.signal-modal[hidden] {
  display: none !important;
}

.signal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.signal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.signal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
  padding: 20px 22px 22px;
}

.signal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.signal-modal-title {
  font-size: 20px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.signal-modal-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.signal-modal-close {
  flex-shrink: 0;
}

/* --- TF bar --- */
.signal-tf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.signal-tf-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}

.signal-tf {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 7px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signal-tf:hover {
  color: var(--text-primary);
  border-color: var(--card-border-strong);
}

.signal-tf.active {
  background: var(--accent-tint-strong);
  border-color: rgba(41, 232, 201, 0.35);
  color: var(--accent);
  font-weight: 600;
}

.signal-tf-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.signal-tf-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
}

.signal-measure-btn.active {
  background: var(--accent-tint-strong);
  border-color: rgba(41, 232, 201, 0.35);
  color: var(--accent);
}

.signal-measure-out {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 10px;
}

.signal-measure-out[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .signal-tf-meta {
    width: 100%;
    margin-left: 0;
  }
}

/* --- Chart + ruler --- */
.signal-chart-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 14px;
}

.chart-measure-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: crosshair;
  background: transparent;
  touch-action: none;
  user-select: none;
}

.chart-measure-overlay[hidden] {
  display: none !important;
}

.chart-ruler {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  pointer-events: none;
  z-index: 11;
}

.chart-ruler[hidden] {
  display: none !important;
}

.chart-ruler-band {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.12);
}

.chart-ruler-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(96, 165, 250, 0.85);
}

.chart-ruler-line-top {
  top: 0;
}

.chart-ruler-arrow {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 36px;
  width: 2px;
  margin-left: -1px;
  background: rgba(96, 165, 250, 0.75);
}

.chart-ruler-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.chart-ruler-line-bottom {
  bottom: 0;
  top: auto;
}

.chart-ruler-arrow-down::after {
  bottom: -2px;
  top: auto;
  border-top: 7px solid rgba(96, 165, 250, 0.9);
  border-bottom: none;
}

.chart-ruler-arrow-up::after {
  top: -2px;
  bottom: auto;
  border-bottom: 7px solid rgba(96, 165, 250, 0.9);
  border-top: none;
}

.chart-ruler-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #93c5fd;
  white-space: nowrap;
}

.chart-ruler-price {
  position: absolute;
  right: 6px;
  z-index: 6;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #dbeafe;
  pointer-events: none;
  white-space: nowrap;
}

.chart-ruler-price[hidden] {
  display: none !important;
}

.tp-hit-popover {
  position: absolute;
  z-index: 20;
  min-width: 200px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(41, 232, 201, 0.35);
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transform: translate(-50%, -110%);
}

.tp-hit-popover[hidden] {
  display: none !important;
}

.tp-hit-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: #29e8c9;
}

.tp-hit-popover-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tp-hit-popover-link {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tp-hit-popover-link:hover {
  text-decoration: underline;
}

.tp-hit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tp-hit-modal[hidden] {
  display: none !important;
}

.tp-hit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.tp-hit-modal-panel {
  position: relative;
  width: min(520px, 96vw);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0c0c0c;
  padding: 16px;
}

.tp-hit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-hit-modal-header h3 {
  margin: 0;
  font-size: 17px;
}

.tp-hit-modal-section {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.tp-hit-modal-table-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tp-hit-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tp-hit-modal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.tp-hit-modal-table td:first-child {
  width: 42%;
  color: var(--text-secondary);
}

.tp-hit-modal-table tr:last-child td {
  border-bottom: none;
}

.tp-hit-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.signal-chart-wrap .signal-chart {
  position: relative;
  z-index: 1;
}

.signal-chart-wrap.measure-mode {
  cursor: crosshair;
}

.signal-chart {
  width: 100%;
  height: 420px;
}

.signal-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-modal-actions .btn svg {
  width: 16px;
  height: 16px;
}

/* --- pywebview / exe fullscreen --- */
body {
  padding: 0 !important;
  min-height: 100vh !important;
  height: 100vh !important;
  overflow: hidden !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: var(--bg-void) !important;
  background-image: none !important;
}

.app-window {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.title-bar {
  display: none !important;
}

/* --- Deploy section --- */
.deploy-hint {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.deploy-hint code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

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

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

.deploy-drop-card,
.deploy-side-card,
.deploy-paste-card,
.deploy-results-card {
  padding: 20px 22px;
}

.deploy-drop-inner {
  margin-top: 12px;
  border: 1.5px dashed var(--card-border-strong);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  transition: border-color 0.15s, background 0.15s;
}

.deploy-drop-inner svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: block;
  color: var(--accent);
  opacity: 0.85;
}

.deploy-drop-inner p {
  margin: 0 0 14px;
  font-size: 13px;
}

.deploy-drop-card.deploy-drop-active .deploy-drop-inner,
.deploy-drop-inner:hover {
  border-color: rgba(41, 232, 201, 0.45);
  background: var(--accent-tint);
}

.deploy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
  min-height: 28px;
}

.deploy-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.deploy-warn {
  font-size: 12px;
  color: var(--warning);
  line-height: 1.45;
}

.deploy-queue-label {
  display: block;
  margin-top: 4px;
}

.deploy-queue {
  min-height: 88px;
  max-height: 220px;
  overflow-y: auto;
  margin: 8px 0 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--bg-surface);
}

.deploy-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.deploy-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--card-border);
  font-size: 13px;
}

.deploy-queue-item:last-child {
  border-bottom: none;
}

.deploy-queue-name {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deploy-queue-size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

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

.deploy-paste-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 10px;
  flex-wrap: wrap;
}

.deploy-paste-row input {
  flex: 1;
  min-width: 140px;
}

.deploy-paste-area {
  min-height: 140px;
  font-size: 12px;
}

.deploy-results {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.analyzer-card,
.profile-card,
.analyzer-report-card {
  padding: 20px 22px;
}

#section-analyzer #analyzerLimitHint {
  margin: 0 2px 14px;
}

#section-analyzer .analyzer-card {
  margin-bottom: 16px;
}

#section-analyzer .analyzer-report-card {
  margin-top: 0;
}

#section-analyzer .analyzer-report-card .analyzer-report {
  padding-top: 4px;
}

#section-analyzer .analyzer-sep {
  margin: 20px 0;
}

#section-analyzer .hint-toggle {
  margin-top: 10px;
  margin-bottom: 0;
}

.analyzer-examples-wrap {
  margin-top: 10px;
  margin-bottom: 6px;
}

.analyzer-examples-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.analyzer-example-list {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analyzer-example-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.analyzer-example-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 5px;
  border-radius: 5px;
}

.analyzer-example-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.tracking-test-btn {
  flex-shrink: 0;
}

.tracking-test-row {
  border: 1px dashed rgba(120, 140, 255, 0.25);
}

.tracking-status-pill {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(41, 232, 201, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.analyzer-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.analyzer-example-chip {
  appearance: none;
  border: 1px solid rgba(41, 232, 201, 0.28);
  background: rgba(41, 232, 201, 0.08);
  color: var(--accent);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.analyzer-example-chip:hover {
  background: rgba(41, 232, 201, 0.16);
  border-color: rgba(41, 232, 201, 0.45);
}

.analyzer-example-top {
  font-weight: 600;
}

.analyzer-example-note {
  color: var(--text-muted);
  font-size: 12px;
}

.analyzer-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.analyzer-input-row input {
  flex: 1;
  min-width: 180px;
}

.analyzer-report {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}

.ar-tg {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}

.ar-tg b {
  color: var(--text-primary);
  font-weight: 600;
}

.ar-tg code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}

.ar-top-pick {
  appearance: none;
  border: none;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.ar-top-pick:hover {
  background: rgba(45, 212, 191, 0.22);
}

.ban-row-locked {
  opacity: 0.72;
}

.ban-row-locked .ban-reason {
  font-style: italic;
}

.analyzer-sep {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 16px 0;
}

.profile-site-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.profile-link-input {
  min-height: 72px;
  font-size: 11.5px;
}

.profile-login-hint,
.conn-field-hint {
  margin-top: 6px;
}
