@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --panel: rgba(10, 25, 45, 0.78);
  --line: rgba(125, 168, 218, 0.3);
  --text: #f4f8ff;
  --muted: #8ea6c7;
  --accent: #52f0c9;
  --danger: #ff7575;
  --ok: #86f6a6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #1e3e64 0%, #091321 55%, #050a12 100%);
}

.bg-gradient {
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 100deg at 50% 50%,
    rgba(82, 240, 201, 0.2),
    transparent,
    rgba(255, 188, 88, 0.2),
    transparent
  );
  filter: blur(80px);
  z-index: -1;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.layout {
  width: min(99vw, 3200px);
  max-width: 3200px;
  margin: 0 auto;
  padding: clamp(1.4rem, 2vw, 2.2rem) clamp(0.9rem, 1.8vw, 2.4rem) 3rem;
}

.hero {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.hero-topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.03em;
}

.subtitle {
  color: var(--muted);
  max-width: 760px;
}

.premium-subtitle {
  max-width: 780px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

#hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.8rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.28);
  background: linear-gradient(180deg, rgba(10, 25, 45, 0.72), rgba(7, 17, 31, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.18);
}

#hero-eyebrow.hero-eyebrow-free {
  letter-spacing: 0.26em;
  color: #bfffe4;
  border-color: rgba(82, 240, 201, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 41, 41, 0.88), rgba(8, 25, 25, 0.98)),
    radial-gradient(circle at 20% 50%, rgba(82, 240, 201, 0.12), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(173, 255, 234, 0.1),
    0 16px 34px rgba(3, 14, 20, 0.24);
}

#hero-eyebrow.hero-eyebrow-member {
  letter-spacing: 0.24em;
  color: #d9ebff;
  border-color: rgba(125, 168, 218, 0.3);
}

.card {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

#terminal.card {
  overflow: visible;
}

.auth-card {
  max-width: 460px;
}

.premium-card {
  max-width: 760px;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.auth-card-head h2 {
  margin: 0;
}

.auth-card-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 58ch;
}

.auth-card-note {
  margin: -0.25rem 0 0.95rem;
  color: rgba(214, 231, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 58ch;
}

.auth-card-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}

.auth-card-mode-switch .ghost.active {
  background: rgba(82, 240, 201, 0.12);
  border-color: rgba(82, 240, 201, 0.36);
  color: var(--accent);
}

.premium-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.premium-feature-card {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 14px;
  background: rgba(9, 22, 38, 0.52);
  padding: 0.85rem;
}

.premium-feature-card h3 {
  margin: 0 0 0.4rem;
}

.premium-card-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.premium-request-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.stack {
  display: grid;
  gap: 0.7rem;
}

input,
select,
button {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

button {
  background: linear-gradient(90deg, #44d5bf, #7cd8ff);
  color: #032021;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

button.is-loading {
  background: linear-gradient(90deg, #7cb8ff, #9bd7ff);
}

button.ghost {
  background: transparent;
  color: var(--text);
}

.auth-inline-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar-auth {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: auto;
}

.hero-auth {
  margin-left: 0;
  justify-content: flex-end;
  position: relative;
}

.toolbar-auth-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.26);
  background: rgba(7, 18, 31, 0.78);
  color: #dbe8fb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  white-space: nowrap;
  cursor: pointer;
}

.toolbar-auth-status:disabled {
  cursor: default;
  opacity: 1;
}

.toolbar-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(82, 240, 201, 0.24), rgba(124, 184, 255, 0.28));
  border: 1px solid rgba(125, 168, 218, 0.22);
  color: #f4f8ff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.toolbar-auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-prompt-modal {
  align-items: center;
}

.auth-prompt-dialog {
  width: min(440px, calc(100vw - 2rem));
  max-height: unset;
  padding: 1.1rem 1.1rem 1rem;
}

.auth-prompt-head {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.7rem;
}

.auth-prompt-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.auth-prompt-reason {
  margin: 0 0 0.7rem;
  color: #eef6ff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-prompt-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.38rem;
  font-size: 0.86rem;
}

.auth-prompt-note {
  margin: 0.85rem 0 0;
  color: rgba(206, 223, 245, 0.78);
  font-size: 0.79rem;
  line-height: 1.5;
}

.auth-prompt-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.auth-prompt-actions button {
  min-height: 38px;
}

.account-view {
  display: grid;
  gap: 1rem;
}

.account-hero-grid,
.account-grid {
  display: grid;
  gap: 0.9rem;
}

.account-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.account-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: stretch;
}

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

.account-profile-card,
.account-upgrade-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 16px;
  background: rgba(7, 18, 31, 0.42);
  padding: 1rem;
}

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-avatar-shell {
  flex: 0 0 auto;
}

.account-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(82, 240, 201, 0.2), rgba(124, 184, 255, 0.26));
  border: 1px solid rgba(125, 168, 218, 0.2);
  color: #f4f8ff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-profile-copy {
  display: grid;
  gap: 0.25rem;
}

.account-profile-copy strong {
  font-size: 1.05rem;
}

.account-upgrade-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.1), transparent 35%),
    rgba(7, 18, 31, 0.46);
}

.account-upgrade-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.account-upgrade-price {
  margin: 0;
  color: #ffe0ae;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.account-upgrade-kicker {
  color: #ffcf89;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-section {
  display: grid;
  gap: 0.85rem;
}

.account-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.account-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #44d5bf, #7cd8ff);
  color: #032021;
  font-weight: 700;
  cursor: pointer;
}

.account-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
}

.account-toggle input {
  margin-top: 0.15rem;
}

.account-plan-grid {
  display: grid;
  gap: 0.68rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-security-actions {
  display: grid;
  gap: 0.7rem;
}

.account-secret-box {
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 14px;
  background: rgba(9, 22, 38, 0.44);
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.account-secret-box code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: rgba(3, 12, 22, 0.92);
  border: 1px solid rgba(125, 168, 218, 0.12);
  padding: 0.75rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  color: #e8f1ff;
}

.account-totp-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.account-totp-qr-wrap img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.account-totp-enable-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.account-totp-enable-row input {
  min-height: 42px;
  min-width: 180px;
  max-width: 220px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 168, 218, 0.2);
  background: rgba(6, 16, 28, 0.88);
  color: var(--text);
}

.account-totp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.account-mini-card {
  border: 1px solid rgba(125, 168, 218, 0.12);
  border-radius: 14px;
  background: rgba(9, 22, 38, 0.44);
  padding: 0.8rem;
  display: grid;
  gap: 0.22rem;
}

.account-mini-card span {
  color: #8ea6c7;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-mini-card strong {
  font-size: 1rem;
}

.site-footer {
  margin-top: 1.3rem;
  padding: 1rem 0 0.2rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  color: var(--muted);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
}

.site-footer-nav a {
  color: #dbe8fb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.06rem;
}

.site-footer-nav a:hover {
  border-color: rgba(219, 232, 251, 0.75);
}

.site-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
}

.legal-layout {
  max-width: 1120px;
}

.legal-hero {
  gap: 0.8rem;
}

.legal-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.legal-section {
  display: grid;
  gap: 0.45rem;
}

.legal-section h2 {
  margin: 0;
}

.legal-section p,
.legal-section li {
  color: #dbe8fb;
  line-height: 1.6;
}

.legal-note {
  border: 1px solid rgba(255, 185, 94, 0.22);
  border-radius: 14px;
  background: rgba(34, 24, 10, 0.32);
  padding: 0.9rem 1rem;
  color: #ffe3b4;
  line-height: 1.55;
}

#premium-access-btn {
  background: linear-gradient(90deg, #ffb95e, #ffd98d);
  color: #251200;
  border-color: rgba(255, 202, 126, 0.45);
}

.premium-top-link,
.premium-primary-cta,
.premium-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
}

.premium-primary-cta {
  background: linear-gradient(90deg, #ffb95e, #ffd98d);
  color: #251200;
  border-color: rgba(255, 202, 126, 0.45);
  font-weight: 700;
}

.premium-secondary-cta,
.premium-top-link {
  background: transparent;
  color: var(--text);
}

.premium-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.premium-landing-layout {
  max-width: 1180px;
  padding-top: clamp(1.4rem, 2.4vw, 2.8rem);
}

.premium-hero {
  gap: 0.8rem;
}

.premium-landing-card {
  padding: 1.25rem;
}

.premium-context-note {
  max-width: 760px;
  border: 1px solid rgba(255, 202, 126, 0.2);
  border-radius: 14px;
  background: rgba(29, 21, 8, 0.34);
  color: #ffe0ae;
  padding: 0.8rem 0.9rem;
  line-height: 1.55;
}

.premium-price-strip {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(255, 202, 126, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.12), transparent 34%),
    rgba(18, 16, 10, 0.46);
  padding: 1rem 1.05rem;
}

.premium-price-strip strong {
  display: block;
  font-size: 1.18rem;
}

.premium-price-strip p {
  margin: 0;
  color: #f0dfc2;
  line-height: 1.55;
}

.premium-price-kicker,
.premium-compare-kicker {
  color: #ffcf89;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.premium-landing-head {
  margin-bottom: 1rem;
}

.premium-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.premium-landing-feature {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 16px;
  background: rgba(9, 22, 38, 0.58);
  padding: 1rem;
}

.premium-landing-feature h3 {
  margin: 0 0 0.55rem;
}

.premium-landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.premium-landing-cta-block {
  border: 1px solid rgba(255, 202, 126, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(21, 32, 48, 0.82), rgba(11, 19, 31, 0.88));
  padding: 1rem;
}

.premium-landing-actions {
  margin-top: 0.8rem;
}

.premium-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.premium-compare-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.premium-compare-overview-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 16px;
  background: rgba(9, 22, 38, 0.54);
  padding: 1rem;
}

.premium-compare-overview-card strong {
  font-size: 1.05rem;
}

.premium-compare-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.premium-compare-overview-card-highlight {
  border-color: rgba(255, 202, 126, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.1), transparent 36%),
    rgba(16, 22, 32, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 226, 181, 0.06);
}

.premium-compare-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(9, 22, 38, 0.82), rgba(7, 18, 31, 0.92)),
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.06), transparent 28%);
}

.premium-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.premium-compare-table th,
.premium-compare-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(125, 168, 218, 0.12);
}

.premium-compare-table thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfe2fd;
  background: rgba(7, 18, 31, 0.62);
}

.premium-compare-table thead th:last-child {
  background:
    linear-gradient(180deg, rgba(41, 34, 20, 0.94), rgba(24, 18, 10, 0.96)),
    rgba(7, 18, 31, 0.62);
  color: #ffe0ae;
}

.premium-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.premium-compare-table tbody td:nth-child(2),
.premium-compare-table tbody td:nth-child(3) {
  width: 240px;
  vertical-align: top;
}

.premium-compare-table tbody td:last-child {
  background: rgba(255, 185, 94, 0.035);
}

.premium-compare-section-row td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(125, 168, 218, 0.14);
  background:
    linear-gradient(90deg, rgba(82, 240, 201, 0.1), rgba(124, 184, 255, 0.05)),
    rgba(8, 20, 34, 0.92);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9ebff;
}

.premium-compare-feature {
  display: grid;
  gap: 0.3rem;
}

.premium-compare-feature strong {
  display: block;
  font-size: 0.98rem;
}

.premium-compare-feature span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.premium-compare-cell {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.premium-compare-copy {
  color: #d6e7ff;
  line-height: 1.5;
  font-size: 0.88rem;
}

.premium-compare-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.premium-compare-badge.free {
  background: rgba(124, 184, 255, 0.12);
  border: 1px solid rgba(124, 184, 255, 0.22);
  color: #cfe2fd;
  width: fit-content;
}

.premium-compare-badge.premium {
  background: rgba(255, 185, 94, 0.12);
  border: 1px solid rgba(255, 202, 126, 0.3);
  color: #ffe0ae;
  width: fit-content;
}

.premium-compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}

.premium-compare-mark.yes {
  color: #9df4ba;
  background: rgba(134, 246, 166, 0.12);
  border: 1px solid rgba(134, 246, 166, 0.22);
}

.premium-compare-mark.no {
  color: #ffb3b3;
  background: rgba(255, 117, 117, 0.1);
  border: 1px solid rgba(255, 117, 117, 0.18);
}

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

.premium-compare-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 16px;
  background: rgba(9, 22, 38, 0.58);
  padding: 1rem;
}

.premium-compare-card strong {
  font-size: 1.08rem;
}

.premium-compare-card-highlight {
  border-color: rgba(255, 202, 126, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.1), transparent 34%),
    rgba(16, 22, 32, 0.62);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.terminal-header > * {
  min-width: 0;
}

.view-loading-banner {
  margin: 1rem 0 0.4rem;
  border: 1px solid rgba(124, 184, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14, 32, 56, 0.92), rgba(7, 18, 31, 0.96)),
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.12), transparent 42%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.view-loading-shell {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
}

.view-loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(124, 184, 255, 0.25);
  border-top-color: var(--accent);
  border-right-color: #7cb8ff;
  flex: 0 0 auto;
  animation: view-loader-spin 0.9s linear infinite;
}

.view-loading-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.view-loading-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.view-loading-eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.view-loading-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes view-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.market-session-strip {
  position: relative;
  flex: 1 0 100%;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 218, 0.2);
  border-radius: 22px;
  padding: 1rem 1.05rem 1.04rem;
  display: grid;
  gap: 0.82rem;
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 30%),
    radial-gradient(circle at top left, rgba(124, 184, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(8, 19, 33, 0.94), rgba(6, 14, 24, 0.9));
  box-shadow:
    0 20px 48px rgba(2, 8, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-session-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.42), rgba(124, 184, 255, 0.34), rgba(255, 185, 94, 0.28));
}

.market-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.market-session-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.market-session-head p {
  margin: 0.24rem 0 0;
  max-width: 44rem;
  color: #93abc9;
  font-size: 0.78rem;
}

.market-session-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.24);
  background: rgba(9, 21, 37, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: #dbe8fb;
}

.market-session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 0.68rem;
}

.market-session-flow {
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 20px;
  padding: 0.96rem 0.98rem 0.96rem;
  background:
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(9, 22, 37, 0.94), rgba(5, 13, 23, 0.92));
  display: grid;
  gap: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-session-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.market-session-flow-controls {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.market-session-flow-range {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.14);
  background: rgba(6, 14, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-session-flow-range button {
  border: 1px solid transparent;
  background: transparent;
  color: #a9bfd8;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.market-session-flow-range button.active {
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.24), rgba(124, 184, 255, 0.24));
  border-color: rgba(82, 240, 201, 0.3);
  color: #f4f8ff;
  box-shadow: 0 10px 22px rgba(82, 240, 201, 0.1);
}

.market-session-flow-head h4 {
  margin: 0;
  font-size: 1.08rem;
  color: #f2f7ff;
  letter-spacing: -0.03em;
}

.market-session-flow-head p {
  margin: 0.18rem 0 0;
  color: #8fa8c8;
  font-size: 0.76rem;
}

.market-session-flow-stats {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  min-width: min(100%, 620px);
}

.market-session-flow-stat {
  border: 1px solid rgba(125, 168, 218, 0.12);
  border-radius: 14px;
  padding: 0.56rem 0.68rem;
  background:
    linear-gradient(180deg, rgba(12, 27, 43, 0.92), rgba(8, 18, 31, 0.84));
  display: grid;
  gap: 0.16rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.market-session-flow-stat.emphasis {
  border-color: rgba(82, 240, 201, 0.26);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(12, 26, 41, 0.9), rgba(7, 17, 30, 0.82));
}

.market-session-flow-stat.emphasis.positive {
  border-color: rgba(82, 240, 201, 0.34);
}

.market-session-flow-stat.emphasis.negative {
  border-color: rgba(255, 185, 94, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(31, 23, 13, 0.88), rgba(18, 13, 8, 0.8));
}

.market-session-flow-stat span {
  color: #89a1c0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-session-flow-stat strong {
  color: #f2f7ff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.market-session-flow-stat em {
  font-style: normal;
  color: #9db3cf;
  font-size: 0.68rem;
}

.market-session-flow-chart {
  min-height: 224px;
}

.market-session-flow-chart svg {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 170;
  display: block;
  cursor: crosshair;
}

.market-session-flow-empty {
  min-height: 188px;
  display: grid;
  place-items: center;
  color: #90a7c2;
  font-size: 0.84rem;
}

.market-session-flow-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.18rem;
}

.market-session-flow-legend {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  color: #b9cce2;
  font-size: 0.71rem;
}

.market-session-flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.12);
  background: rgba(10, 21, 36, 0.9);
}

.market-session-flow-legend i {
  width: 0.9rem;
  height: 0.2rem;
  border-radius: 999px;
  display: inline-block;
}

.market-session-flow-legend i.today {
  background: #52f0c9;
}

.market-session-flow-legend i.yesterday {
  background:
    repeating-linear-gradient(
      90deg,
      #ffb95e 0 4px,
      transparent 4px 7px
    );
}

.market-session-flow-legend i.average {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(169, 188, 214, 0.95) 0 3px,
      transparent 3px 6px
    );
  opacity: 0.8;
}

.market-session-flow-shell {
  display: grid;
  gap: 0.86rem;
}

.market-session-flow-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.18rem;
  padding: 0.86rem 0.94rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(125, 168, 218, 0.14);
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.11), transparent 42%),
    linear-gradient(135deg, rgba(7, 17, 30, 0.96), rgba(5, 12, 21, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(2, 8, 16, 0.16);
}

.market-session-flow-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4cf1cb, #5b94ff);
  opacity: 0.9;
}

.market-session-flow-hero.positive::before {
  background: linear-gradient(180deg, #4cf1cb, #53d4ff);
}

.market-session-flow-hero.negative::before {
  background: linear-gradient(180deg, #ffb347, #ff7d6d);
}

.market-session-flow-kicker {
  color: #8ea7c7;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-session-flow-hero strong {
  color: #f4f8ff;
  font-size: clamp(0.98rem, 1.4vw, 1.24rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.market-session-flow-hero p {
  margin: 0;
  color: #9db4d0;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 46rem;
}

.market-session-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
  gap: 0.82rem;
  align-items: stretch;
}

.market-session-chart-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(125, 168, 218, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(7, 16, 28, 0.96), rgba(5, 12, 21, 0.92));
  padding: 0.72rem 0.8rem 0.64rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(3, 10, 18, 0.16);
}

.market-session-chart-panel::after {
  content: none;
}

.market-session-flow-topline,
.market-session-flow-chart svg,
.market-session-flow-hover-card {
  position: relative;
  z-index: 2;
}

.market-session-chart-brand {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  gap: 0.08rem;
  align-items: center;
  justify-items: center;
  pointer-events: none;
  user-select: none;
  text-align: center;
  opacity: 0.95;
}

.market-session-chart-brand span {
  color: rgba(95, 128, 168, 0.11);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 0.88;
  text-shadow:
    0 0 24px rgba(72, 112, 160, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.015);
}

.market-session-chart-brand span:last-child {
  color: rgba(95, 128, 168, 0.085);
}

.market-session-flow-chart .session-flow-hover-line {
  stroke: rgba(214, 231, 255, 0.52);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.market-session-flow-chart .session-flow-hover-dot {
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(9, 18, 30, 0.36));
}

.market-session-flow-chart .session-flow-hover-dot.today {
  fill: #4cf1cb;
  stroke: rgba(7, 16, 28, 0.94);
}

.market-session-flow-chart .session-flow-hover-dot.yesterday {
  fill: #ffd166;
  stroke: rgba(7, 16, 28, 0.94);
}

.market-session-flow-chart .session-flow-hover-dot.average {
  fill: #c7d5ea;
  stroke: rgba(7, 16, 28, 0.94);
  opacity: 0.92;
}

.market-session-flow-hover-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  min-width: 158px;
  pointer-events: none;
  display: grid;
  gap: 0.14rem;
  padding: 0.5rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.2);
  background: rgba(6, 14, 24, 0.94);
  box-shadow:
    0 16px 28px rgba(2, 8, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-session-flow-hover-card strong {
  color: #f2f7ff;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.market-session-flow-hover-card span {
  color: #a6bdd8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.35;
}

.market-session-flow-sidecar {
  display: grid;
  gap: 0.68rem;
  align-content: start;
}

.market-session-pressure-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 20, 35, 0.96), rgba(5, 12, 21, 0.92));
  padding: 0.84rem 0.88rem 0.82rem;
  display: grid;
  gap: 0.34rem;
}

.market-session-pressure-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 168, 218, 0.34), transparent 86%);
}

.market-session-pressure-card.buy::before {
  background: linear-gradient(90deg, rgba(76, 241, 203, 0.82), transparent 86%);
}

.market-session-pressure-card.sell::before {
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.84), transparent 86%);
}

.market-session-pressure-card-label {
  color: #8da6c7;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.market-session-pressure-card strong {
  color: #f4f8ff;
  font-size: 1.08rem;
  letter-spacing: -0.04em;
}

.market-session-pressure-card p {
  margin: 0;
  color: #95aecb;
  font-size: 0.74rem;
}

.market-session-pressure-ratio {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 168, 218, 0.08);
}

.market-session-pressure-ratio .buy {
  background: linear-gradient(90deg, rgba(76, 241, 203, 0.82), rgba(91, 148, 255, 0.74));
}

.market-session-pressure-ratio .sell {
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.84), rgba(255, 123, 109, 0.76));
}

.market-session-pressure-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.market-session-pressure-split .buy {
  color: #85f4d2;
}

.market-session-pressure-split .sell {
  color: #ffc57a;
}

.market-session-flow-chart .session-flow-grid line,
.market-session-flow-chart .session-flow-axis line {
  stroke: rgba(125, 168, 218, 0.12);
  stroke-width: 1;
}

.market-session-flow-chart .session-flow-grid text,
.market-session-flow-chart .session-flow-axis text {
  fill: #8ea6c7;
  font-size: 10px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

.market-session-flow-chart .session-flow-area {
  fill: url(#session-flow-today-fill);
}

.market-session-flow-chart .session-flow-area.yesterday {
  fill: url(#session-flow-yesterday-fill);
}

.market-session-flow-chart .session-flow-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.market-session-flow-chart .session-flow-line.today {
  stroke: #4cf1cb;
  filter: drop-shadow(0 0 14px rgba(76, 241, 203, 0.18));
}

.market-session-flow-chart .session-flow-line.yesterday {
  stroke: #ffd166;
  stroke-dasharray: 10 7;
  opacity: 0.86;
}

.market-session-flow-chart .session-flow-line.average {
  stroke: rgba(199, 213, 234, 0.72);
  stroke-dasharray: 4 7;
  stroke-width: 1.8;
  opacity: 0.64;
}

.market-session-pressure {
  display: grid;
  gap: 0.48rem;
  padding: 0.76rem 0.84rem 0.78rem;
  border: 1px solid rgba(125, 168, 218, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 18, 31, 0.95), rgba(5, 12, 21, 0.92));
}

.market-session-pressure-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.market-session-pressure-head strong {
  font-size: 0.78rem;
  color: #f2f7ff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.market-session-pressure-head span {
  font-size: 0.69rem;
  color: #8ea6c7;
}

.market-session-pressure-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.market-session-pressure-row > span {
  color: #8ea6c7;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.market-session-pressure-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.14rem;
}

.market-session-pressure-cell {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.08);
  background: rgba(125, 168, 218, 0.12);
  opacity: var(--pressure-opacity, 0.2);
}

.market-session-pressure-cell.buy {
  background: rgba(82, 240, 201, 0.9);
}

.market-session-pressure-cell.sell {
  background: rgba(255, 185, 94, 0.88);
}

.market-session-pressure-cell.neutral {
  background: rgba(125, 168, 218, 0.22);
}

.market-session-pressure-cell.current {
  box-shadow: 0 0 0 1px rgba(242, 247, 255, 0.55);
}

.market-session-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 18px;
  padding: 0.86rem 0.9rem 0.82rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--session-accent) 20%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(11, 24, 40, 0.96), rgba(8, 18, 30, 0.9));
  display: grid;
  gap: 0.58rem;
  min-height: 146px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(2, 8, 16, 0.18);
}

.market-session-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--session-accent), transparent 82%);
}

.market-session-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.market-session-card-head strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.market-session-city {
  color: #88a2c1;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.market-session-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.24);
  background: rgba(7, 19, 32, 0.8);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-session-status.live {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.4);
}

.market-session-status.up-next {
  color: #7cb8ff;
  border-color: rgba(124, 184, 255, 0.34);
}

.market-session-status.closed {
  color: #ffcd82;
  border-color: rgba(255, 205, 130, 0.3);
}

.market-session-clock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.market-session-clock {
  font-size: 1.56rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.market-session-zone {
  color: #9bb2cf;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.market-session-window,
.market-session-foot {
  color: #91aac8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.market-session-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(125, 168, 218, 0.1);
}

.market-session-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--session-accent), color-mix(in srgb, var(--session-accent) 42%, white));
  opacity: 0.92;
  box-shadow: 0 0 18px color-mix(in srgb, var(--session-accent) 28%, transparent);
}

.market-session-meter-fill.idle {
  opacity: 0.28;
}

.share-on-x-btn {
  border-color: rgba(125, 168, 218, 0.26);
  background:
    radial-gradient(circle at top left, rgba(124, 184, 255, 0.12), transparent 42%),
    rgba(8, 20, 34, 0.84);
  color: #ecf4ff;
}

.share-on-x-btn:hover:not(:disabled) {
  border-color: rgba(124, 184, 255, 0.46);
  transform: translateY(-1px);
}

.market-session-pressure,
.chart-overlay-wrap,
.chart-card,
.develop-bar-chart,
.content-draft-snapshot {
  position: relative;
  overflow: hidden;
}

.market-session-pressure::after,
.chart-overlay-wrap::after,
.chart-card::after,
.develop-bar-chart::after,
.content-draft-snapshot::after {
  content: "CRYPTOTERMINAL";
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: rgba(180, 200, 228, 0.1);
  font-size: clamp(0.62rem, 0.78vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.chart-overlay-wrap::after {
  right: 18px;
  bottom: 14px;
}

.market-session-pressure::after {
  bottom: 12px;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.view-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1px solid rgba(125, 168, 218, 0.3);
  border-radius: 999px;
  background: rgba(7, 19, 32, 0.8);
}

.view-mode-switch button {
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.view-mode-switch button .view-lock {
  display: none;
  margin-left: 0.34rem;
  font-size: 0.84rem;
  line-height: 1;
}

.view-mode-switch button.is-locked {
  color: rgba(214, 228, 245, 0.55);
  border-color: rgba(125, 168, 218, 0.12);
  background: rgba(8, 18, 30, 0.34);
}

.view-mode-switch button.is-locked:hover {
  border-color: rgba(255, 206, 128, 0.28);
  color: rgba(244, 231, 205, 0.86);
}

.view-mode-switch button.is-locked .view-lock {
  display: inline-block;
}

.view-mode-switch button.active {
  background: linear-gradient(90deg, #44d5bf, #7cd8ff);
  color: #031f23;
  border-color: rgba(82, 240, 201, 0.5);
}

.toolbar select {
  min-width: 180px;
}

.kpi-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.75rem;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.74);
  padding: 0.65rem;
  display: grid;
  gap: 0.3rem;
}

.kpi span {
  color: var(--muted);
  font-size: 0.8rem;
}

.kpi strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.7fr 1fr;
  margin-top: 1rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(7, 17, 31, 0.72);
  min-width: 0;
}

.panel h3,
.panel h4 {
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.macro-backdrop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.macro-backdrop-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.92), rgba(7, 17, 31, 0.84));
  padding: 0.8rem;
  display: grid;
  gap: 0.38rem;
}

.macro-backdrop-card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.macro-backdrop-score {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.macro-backdrop-score strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.18rem;
}

.macro-backdrop-score span {
  font-size: 0.82rem;
  color: var(--muted);
}

.macro-backdrop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.macro-backdrop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.macro-backdrop-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(124, 184, 255, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  color: #d8e5ff;
  background: rgba(10, 22, 38, 0.62);
}

.deck-health-stack {
  display: grid;
  gap: 0.22rem;
}

.deck-health-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.deck-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(125, 168, 218, 0.28);
  background: rgba(13, 22, 36, 0.84);
  color: #dce7f5;
}

.deck-health-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  opacity: 0.88;
}

.deck-health-pill.online {
  color: #7ef0b8;
  border-color: rgba(126, 240, 184, 0.34);
  background: rgba(10, 31, 25, 0.88);
}

.deck-health-pill.degraded {
  color: #ffd37a;
  border-color: rgba(255, 211, 122, 0.34);
  background: rgba(39, 28, 8, 0.88);
}

.deck-health-pill.offline {
  color: #ff9d9d;
  border-color: rgba(255, 157, 157, 0.34);
  background: rgba(41, 16, 18, 0.88);
}

.deck-health-pill.unknown {
  color: #b7c9de;
}

.chart-panel {
  margin-top: 1rem;
  width: 100%;
}

.trading-view {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.content-view {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.control-center-view {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.control-center-hero-panel {
  border-color: rgba(124, 184, 255, 0.28);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.86), rgba(7, 17, 31, 0.78));
}

.control-center-summary-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.control-center-summary-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.28rem;
}

.control-center-summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.control-center-summary-card strong {
  font-size: 1.05rem;
  color: #f2f7ff;
}

.control-center-summary-card p {
  margin: 0;
  color: #b7c9de;
  font-size: 0.78rem;
}

.control-center-edge-grid {
  margin-top: 0.78rem;
}

.control-center-benchmark-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.72rem;
}

.control-center-benchmark-section {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.06), transparent 38%),
    rgba(5, 14, 25, 0.74);
  padding: 0.82rem 0.86rem 0.86rem;
  display: grid;
  gap: 0.68rem;
}

.control-center-benchmark-head {
  display: grid;
  gap: 0.22rem;
}

.control-center-benchmark-head h4 {
  margin: 0;
  color: #f2f7ff;
}

.control-center-benchmark-head p {
  margin: 0;
  color: #90a7c2;
  font-size: 0.8rem;
}

.control-center-benchmark-cards {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.control-center-benchmark-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.78);
  padding: 0.72rem 0.78rem;
  display: grid;
  gap: 0.5rem;
}

.control-center-benchmark-card.emphasis {
  border-color: rgba(82, 240, 201, 0.28);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.1), transparent 40%),
    rgba(5, 14, 25, 0.8);
}

.control-center-benchmark-top {
  display: grid;
  gap: 0.22rem;
}

.control-center-benchmark-top span {
  color: var(--muted);
  font-size: 0.74rem;
}

.control-center-benchmark-top strong {
  color: #f2f7ff;
  font-size: 1rem;
}

.control-center-benchmark-top p {
  margin: 0;
  color: #b7c9de;
  font-size: 0.78rem;
}

.control-center-benchmark-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.control-center-benchmark-table th,
.control-center-benchmark-table td {
  padding: 0.26rem 0.18rem;
  font-size: 0.76rem;
  text-align: left;
}

.control-center-benchmark-table th {
  color: #90a7c2;
  font-weight: 600;
  border-bottom: 1px solid rgba(125, 168, 218, 0.16);
}

.control-center-benchmark-table td {
  color: #d7e6f7;
  border-bottom: 1px solid rgba(125, 168, 218, 0.08);
}

.control-center-benchmark-table tr:last-child td {
  border-bottom: 0;
}

.control-center-benchmark-table td.good {
  color: #86f6a6;
}

.control-center-benchmark-table td.bad {
  color: #ff9a9a;
}

.control-center-edge-card {
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.08), transparent 38%),
    rgba(5, 14, 25, 0.76);
}

.control-center-edge-card.emphasis {
  border-color: rgba(82, 240, 201, 0.28);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.84), rgba(5, 14, 25, 0.78));
}

.control-center-timeframe-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.control-center-timeframe-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.07), transparent 36%),
    rgba(5, 14, 25, 0.74);
  padding: 0.82rem 0.86rem 0.86rem;
}

.control-center-timeframe-head {
  display: grid;
  gap: 0.42rem;
  align-items: start;
}

.control-center-timeframe-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #f2f7ff;
}

.control-center-timeframe-head p {
  margin: 0.16rem 0 0;
  font-size: 0.76rem;
  color: #90a7c2;
}

.control-center-timeframe-card .table-wrap {
  margin-top: 0.62rem;
}

.develop-view {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.develop-hero-panel {
  border-color: rgba(82, 240, 201, 0.24);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(8, 21, 32, 0.88), rgba(7, 17, 28, 0.8));
}

.develop-hero-grid,
.develop-grid,
.develop-coverage-grid,
.develop-metric-grid,
.develop-watch-grid,
.develop-log-grid {
  display: grid;
  gap: 0.72rem;
}

.develop-hero-grid {
  margin-top: 0.78rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.develop-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.develop-panel {
  border-color: rgba(125, 168, 218, 0.16);
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.06), transparent 38%),
    rgba(5, 14, 25, 0.76);
}

.develop-paper-panel {
  border-color: rgba(82, 240, 201, 0.28);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.09), transparent 42%),
    rgba(5, 14, 25, 0.8);
}

.develop-indicator-panel {
  grid-column: 1 / -1;
}

.develop-paper-head-copy {
  display: grid;
  gap: 0.18rem;
}

.develop-paper-head-actions {
  align-items: center;
}

.develop-paper-year-control {
  display: grid;
  gap: 0.22rem;
}

.develop-paper-year-control span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.develop-paper-year-control select {
  min-width: 150px;
}

.develop-hero-card,
.develop-coverage-card,
.develop-metric-card,
.develop-watch-card,
.develop-log-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  padding: 0.78rem 0.85rem;
  display: grid;
  gap: 0.32rem;
}

.develop-metric-card.emphasis,
.develop-watch-card {
  border-color: rgba(82, 240, 201, 0.24);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 42%),
    rgba(5, 14, 25, 0.76);
}

.develop-watch-card.recommended {
  border-color: rgba(255, 214, 121, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 121, 0.09), transparent 42%),
    rgba(24, 18, 10, 0.76);
}

.develop-watch-card.warning {
  border-color: rgba(255, 204, 139, 0.3);
  background:
    radial-gradient(circle at top right, rgba(255, 204, 139, 0.08), transparent 42%),
    rgba(24, 18, 10, 0.76);
}

.develop-metric-card.warning {
  border-color: rgba(255, 204, 139, 0.3);
  background:
    radial-gradient(circle at top right, rgba(255, 204, 139, 0.08), transparent 42%),
    rgba(24, 18, 10, 0.76);
}

.develop-metric-card.neutral {
  border-color: rgba(124, 184, 255, 0.24);
}

.develop-hero-card span,
.develop-coverage-card span,
.develop-metric-card span,
.develop-watch-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.develop-hero-card strong,
.develop-coverage-card strong,
.develop-metric-card strong,
.develop-watch-card strong {
  color: #f2f7ff;
  font-size: 1.04rem;
}

.develop-hero-card p,
.develop-coverage-card p,
.develop-metric-card p,
.develop-watch-card p,
.develop-log-card p {
  margin: 0;
  color: #b7c9de;
  font-size: 0.78rem;
}

.develop-log-card h4 {
  margin: 0;
  color: #f2f7ff;
  font-size: 0.95rem;
}

.develop-log-card.emphasis {
  border-color: rgba(82, 240, 201, 0.28);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 42%),
    rgba(5, 14, 25, 0.78);
}

.develop-log-card.warning {
  border-color: rgba(255, 204, 139, 0.3);
  background:
    radial-gradient(circle at top right, rgba(255, 204, 139, 0.08), transparent 42%),
    rgba(24, 18, 10, 0.76);
}

.develop-log-card.neutral {
  border-color: rgba(124, 184, 255, 0.24);
}

.develop-coverage-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.develop-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.develop-watch-grid,
.develop-log-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.develop-replay-panel {
  grid-column: 1 / -1;
}

.develop-method-live-panel {
  grid-column: 1 / -1;
}

.develop-paper-panel {
  grid-column: 1 / -1;
}

.develop-loss-panel {
  grid-column: 1 / -1;
}

.develop-quality-panel {
  grid-column: 1 / -1;
}

.develop-entry-panel {
  grid-column: 1 / -1;
}

.develop-foldout {
  overflow: hidden;
}

.develop-foldout-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

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

.develop-foldout-summary h3 {
  margin: 0;
}

.develop-foldout-summary p {
  margin: 0.2rem 0 0;
  max-width: 54rem;
}

.develop-foldout-summary::after {
  content: "Open";
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  flex-shrink: 0;
}

.develop-foldout[open] .develop-foldout-summary::after {
  content: "Hide";
}

.develop-foldout-body {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.develop-replay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  gap: 0.85rem;
  align-items: start;
}

.develop-replay-chart-stack {
  display: grid;
  gap: 0.72rem;
}

.develop-scroll-shell {
  min-height: 340px;
}

.develop-replay-side {
  display: grid;
  gap: 0.62rem;
}

.develop-replay-list {
  display: grid;
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.15rem;
}

.develop-replay-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  padding: 0.78rem 0.85rem;
  display: grid;
  gap: 0.26rem;
  color: #d7e6f7;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.develop-replay-item:hover {
  border-color: rgba(124, 184, 255, 0.32);
  transform: translateY(-1px);
}

.develop-replay-item.active {
  border-color: rgba(82, 240, 201, 0.34);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 40%),
    rgba(5, 14, 25, 0.78);
}

.develop-replay-item span {
  color: var(--muted);
  font-size: 0.74rem;
}

.develop-replay-item strong {
  color: #f2f7ff;
  font-size: 0.96rem;
}

.develop-replay-item p {
  margin: 0;
  font-size: 0.78rem;
}

.develop-bar-chart {
  margin: 0.2rem 0 0.78rem;
  display: grid;
  gap: 0.44rem;
}

.develop-bar-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 70px;
  gap: 0.55rem;
  align-items: center;
}

.develop-bar-label {
  color: #d7e6f7;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
}

.develop-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 24, 40, 0.9);
  border: 1px solid rgba(125, 168, 218, 0.14);
}

.develop-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.develop-bar-fill.positive {
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.6), rgba(134, 246, 166, 0.95));
}

.develop-bar-fill.negative {
  background: linear-gradient(90deg, rgba(255, 154, 154, 0.65), rgba(255, 204, 139, 0.95));
}

.develop-bar-row strong {
  text-align: right;
  font-size: 0.8rem;
}

.control-center-table {
  border-collapse: separate;
  border-spacing: 0;
}

.control-center-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(11, 24, 40, 0.98), rgba(8, 18, 31, 0.96));
  box-shadow: 0 1px 0 rgba(125, 168, 218, 0.22);
}

.control-center-table td {
  vertical-align: middle;
}

.control-center-table td.good,
.control-center-table td.bad,
.develop-metric-card p.good,
.develop-metric-card p.bad,
.develop-metric-card p.neutral,
.develop-watch-card p.good,
.develop-watch-card p.bad,
.develop-watch-card p.neutral,
.develop-bar-row strong.good,
.develop-bar-row strong.bad {
  font-weight: 600;
}

.control-center-table td.good,
.develop-metric-card p.good,
.develop-watch-card p.good,
.develop-bar-row strong.good {
  color: #86f6a6;
}

.develop-replay-item p.good {
  color: #86f6a6;
  font-weight: 600;
}

.control-center-table td.bad,
.develop-metric-card p.bad,
.develop-watch-card p.bad,
.develop-bar-row strong.bad {
  color: #ff9a9a;
}

.develop-replay-item p.bad {
  color: #ff9a9a;
  font-weight: 600;
}

.develop-metric-card p.neutral,
.develop-watch-card p.neutral {
  color: #f4d28a;
}

.develop-replay-item p.neutral {
  color: #f4d28a;
  font-weight: 600;
}

.control-center-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.24);
  background: rgba(10, 24, 40, 0.72);
  color: #d7e6f7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.control-center-status-chip.open {
  color: #ffd37c;
  border-color: rgba(255, 211, 124, 0.34);
  background: rgba(56, 42, 12, 0.4);
}

.control-center-status-chip.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.34);
  background: rgba(16, 48, 24, 0.42);
}

.control-center-status-chip.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.34);
  background: rgba(60, 19, 24, 0.42);
}

.control-center-status-chip.neutral {
  color: #b7c9de;
}

.content-hero-panel {
  border-color: rgba(124, 184, 255, 0.28);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.86), rgba(7, 17, 31, 0.78));
}

.content-hero-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.content-stat-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

#content-x-meta {
  margin-top: 0.72rem;
}

.content-stat-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.28rem;
}

.content-stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.content-stat-card strong {
  font-size: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.18fr) minmax(280px, 0.78fr);
  gap: 0.72rem;
  align-items: start;
}

.content-compose-controls {
  display: grid;
  gap: 0.72rem;
}

.content-compose-controls label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
}

.content-pillars,
.content-checklist {
  display: grid;
  gap: 0.62rem;
}

.content-automation-form {
  display: grid;
  gap: 0.72rem;
}

.content-automation-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
}

.content-toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.content-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.content-review-stack {
  display: grid;
  gap: 0.85rem;
}

.content-review-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 14px;
  background: rgba(5, 14, 25, 0.48);
  padding: 0.78rem;
  display: grid;
  gap: 0.72rem;
}

.content-review-card .panel-head {
  margin-bottom: 0;
}

.content-drafts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.78rem;
}

.content-draft-empty {
  border: 1px dashed rgba(125, 168, 218, 0.18);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.42);
  padding: 1rem;
  color: var(--muted);
}

.content-draft-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  min-width: 0;
  padding: 0.78rem;
  display: grid;
  gap: 0.62rem;
}

.content-draft-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content-draft-head h4 {
  margin: 0;
}

.content-draft-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.content-draft-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.45;
}

.content-draft-snapshot {
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 12px;
  background: rgba(8, 18, 32, 0.72);
  padding: 0.72rem 0.78rem;
  display: grid;
  gap: 0.55rem;
}

.content-draft-snapshot svg {
  width: 100%;
  height: 96px;
  display: block;
}

.content-draft-snapshot path {
  fill: none;
  stroke: #7cb8ff;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-draft-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.content-draft-snapshot-grid span {
  color: var(--muted);
  font-size: 0.72rem;
}

.content-draft-snapshot-grid strong {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.92rem;
  color: #eef7ff;
}

.content-draft-preview {
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 12px;
  background: rgba(8, 18, 32, 0.72);
  padding: 0.55rem;
  overflow: hidden;
}

.content-draft-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #08121f;
}

.content-draft-preview-shell {
  display: grid;
  gap: 0.5rem;
}

.content-draft-preview-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.x-post-preview {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #000;
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.x-post-header {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.x-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #21486f 0%, #0e253c 100%);
  color: #eef7ff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.x-post-avatar-image {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #13273d;
}

.x-post-author {
  min-width: 0;
}

.x-post-author-line {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.92rem;
}

.x-post-author-line strong {
  color: #f7fbff;
}

.x-post-author-line span {
  color: #8899ad;
}

.x-post-copy {
  color: #eef7ff;
  line-height: 1.52;
  font-size: 0.98rem;
  white-space: normal;
  word-break: break-word;
}

.x-post-media {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #080f16;
}

.x-post-media img {
  width: 100%;
  height: auto;
  display: block;
}

.x-post-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #7f93aa;
  font-size: 0.82rem;
}

.content-draft-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content-draft-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

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

@media (max-width: 980px) {
  .content-drafts {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .market-session-flow-head {
    align-items: stretch;
  }

  .market-session-flow-controls {
    justify-items: stretch;
  }

  .market-session-flow-stats {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .market-session-flow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-session-chart-panel {
    padding-inline: 0.62rem;
  }

  .market-session-flow-hero strong {
    font-size: 1.28rem;
  }

  .market-session-head {
    align-items: stretch;
  }

  .market-session-now {
    width: 100%;
    justify-content: flex-start;
  }

  .market-session-pressure-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.content-pillar-card {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.72);
  padding: 0.78rem 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.content-pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content-pillar-head h4 {
  margin: 0;
}

.content-pillar-status {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(82, 240, 201, 0.24);
  background: rgba(10, 34, 30, 0.48);
  color: #89efd4;
  font-size: 0.72rem;
  white-space: nowrap;
}

.content-pillar-meta {
  display: grid;
  gap: 0.32rem;
}

.content-pillar-meta strong {
  color: #d8ecff;
  font-weight: 600;
}

.content-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-checklist li {
  border: 1px solid rgba(125, 168, 218, 0.14);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.64);
  padding: 0.75rem 0.85rem;
  line-height: 1.45;
}

.trading-workspace {
  display: grid;
  gap: 0.72rem;
  align-items: start;
}

.trading-view > .trading-workspace {
  order: 1;
}

.trading-view > .trading-free-daily-desk {
  order: 2;
}

.trading-view > .trading-free-post-chart-grid {
  order: 3;
}

.trading-view > .trading-market-opps-panel {
  order: 4;
}

.trading-overview-row,
.trading-main-stack {
  display: grid;
  gap: 0.62rem;
  align-content: start;
  min-width: 0;
}

.trading-overview-row {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: start;
}

.trading-main-stack {
  order: 1;
}

.trading-overview-row {
  order: 2;
}

.trading-view .panel {
  padding: 0.72rem;
}

.trading-toolbar-panel {
  margin-top: 0;
}

.trading-toolbar-head {
  align-items: flex-start;
}

.trading-toolbar-title {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.trading-selected-coin-display-wrap {
  margin-left: auto;
  min-width: 0;
}

.trading-selected-coin-display {
  min-width: 132px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.24);
  background: linear-gradient(180deg, rgba(10, 24, 40, 0.9), rgba(7, 18, 32, 0.82));
  color: rgba(231, 241, 251, 0.96);
  font: 600 0.95rem/1.1 "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.trading-pro-decision-panel {
  display: grid;
  gap: 0.82rem;
  margin-bottom: 0.7rem;
  padding: 0.9rem 0.96rem !important;
  border-radius: 16px;
  border: 1px solid rgba(124, 184, 255, 0.3);
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(9, 24, 41, 0.95), rgba(7, 18, 31, 0.9));
  box-shadow: 0 18px 36px rgba(3, 10, 20, 0.2);
}

.trading-pro-decision-head {
  align-items: flex-start;
}

.trading-pro-decision-head-copy {
  display: grid;
  gap: 0.2rem;
}

.trading-pro-decision-kicker {
  color: #9fb6d2;
  font: 600 0.7rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trading-pro-decision-head h3 {
  margin: 0;
  color: #f3f9ff;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.trading-pro-decision-status-row,
.trading-pro-decision-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trading-pro-decision-headline {
  display: block;
  color: #f2f8ff;
  font: 600 1.22rem/1.25 "IBM Plex Mono", monospace;
  letter-spacing: -0.03em;
}

.trading-pro-decision-copy {
  margin: -0.1rem 0 0;
  max-width: 92ch;
  color: #dbeaf9;
  font-size: 0.86rem;
  line-height: 1.5;
}

.trading-pro-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.trading-pro-decision-card {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.72rem 0.76rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.18);
  background: rgba(8, 20, 34, 0.62);
}

.trading-pro-decision-card > span {
  color: #9fb6d2;
  font: 600 0.68rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trading-pro-decision-card > strong {
  color: #eef7ff;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.trading-pro-decision-card .decision-line {
  margin: 0;
  color: #c6d9ec;
  font-size: 0.76rem;
  line-height: 1.45;
}

.trading-pro-deskbar {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.4rem;
  padding: 0.56rem 0.64rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.2);
  background: linear-gradient(180deg, rgba(9, 22, 38, 0.78), rgba(7, 17, 31, 0.74));
}

.trading-pro-deskbar-main,
.trading-pro-deskbar-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.trading-pro-deskbar-main strong {
  color: #eff7ff;
  font: 600 0.88rem/1.35 "IBM Plex Mono", monospace;
}

.trading-pro-deskbar .chart-summary {
  gap: 0.34rem;
}

.trading-symbol-native-select {
  min-width: 156px;
  padding: 0.58rem 2rem 0.58rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.24);
  background: linear-gradient(180deg, rgba(10, 24, 40, 0.9), rgba(7, 18, 32, 0.82));
  color: rgba(231, 241, 251, 0.96);
  font: 600 0.95rem/1.1 "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}

.trading-symbol-native-select.hidden {
  display: none;
}

.trading-chart-head {
  align-items: flex-start;
}

.trading-chart-head-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.trading-chart-controls {
  margin-left: auto;
}

.trading-chart-controls select {
  min-width: 112px;
}

.trading-price-fingerprint-signal {
  display: grid;
  gap: 0.15rem;
  min-width: min(100%, 520px);
  padding: 0.48rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.28);
  background: linear-gradient(180deg, rgba(9, 22, 38, 0.84), rgba(7, 17, 31, 0.78));
}

.trading-price-fingerprint-signal.bullish {
  border-color: rgba(134, 246, 166, 0.42);
  background: linear-gradient(180deg, rgba(8, 30, 24, 0.88), rgba(6, 22, 18, 0.78));
}

.trading-price-fingerprint-signal.bearish {
  border-color: rgba(255, 154, 154, 0.4);
  background: linear-gradient(180deg, rgba(38, 14, 18, 0.88), rgba(26, 10, 14, 0.78));
}

.trading-price-fingerprint-signal.neutral {
  border-color: rgba(255, 185, 94, 0.38);
  background: linear-gradient(180deg, rgba(35, 24, 10, 0.86), rgba(24, 16, 8, 0.76));
}

.trading-price-fingerprint-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 236, 255, 0.72);
}

.trading-price-fingerprint-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trading-price-fingerprint-main strong {
  margin: 0;
  color: #f4fbff;
}

.trading-price-fingerprint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.26);
  background: rgba(6, 16, 28, 0.54);
  padding: 0.18rem 0.48rem;
  font-size: 0.72rem;
  color: #d8ecff;
  font-family: "IBM Plex Mono", monospace;
}

.trading-price-fingerprint-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.trading-market-opps-panel {
  border-color: rgba(124, 184, 255, 0.28);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.86), rgba(7, 17, 31, 0.78));
}

.trading-scan-summary-panel {
  margin-bottom: 0.62rem;
  border-color: rgba(124, 184, 255, 0.32);
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(9, 24, 41, 0.92), rgba(7, 18, 31, 0.84));
}

.trading-scan-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(180px, 0.9fr));
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.trading-scan-card {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 218, 0.18);
  background: rgba(8, 20, 34, 0.7);
}

.trading-scan-card[data-scan-symbol],
.trading-scan-card strong[data-scan-symbol] {
  cursor: pointer;
}

.trading-scan-card-primary {
  border-color: rgba(124, 184, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 26, 44, 0.9), rgba(8, 20, 34, 0.82));
}

.trading-scan-card-primary.bullish {
  border-color: rgba(134, 246, 166, 0.34);
  background:
    radial-gradient(circle at top right, rgba(134, 246, 166, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(8, 31, 24, 0.9), rgba(7, 20, 17, 0.82));
}

.trading-scan-card-primary.bearish {
  border-color: rgba(255, 154, 154, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 154, 154, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(34, 12, 18, 0.9), rgba(22, 9, 13, 0.82));
}

.trading-scan-card-focus {
  grid-column: 1 / -1;
}

.trading-scan-card > span {
  color: #9fb6d2;
  font: 600 0.68rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trading-scan-card > strong {
  color: #eef7ff;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.trading-scan-card p {
  margin: 0;
  color: #c6d9ec;
  font-size: 0.75rem;
  line-height: 1.42;
}

.trading-scan-card-tags,
.trading-scan-focus-list {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.trading-scan-focus-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.trading-scan-focus-column {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
  padding: 0.48rem 0.52rem;
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.54);
}

.trading-scan-focus-column.long {
  border-color: rgba(134, 246, 166, 0.18);
  background: linear-gradient(180deg, rgba(9, 28, 22, 0.62), rgba(7, 18, 31, 0.5));
}

.trading-scan-focus-column.short {
  border-color: rgba(255, 154, 154, 0.18);
  background: linear-gradient(180deg, rgba(28, 11, 17, 0.62), rgba(7, 18, 31, 0.5));
}

.trading-scan-focus-column header {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.trading-scan-focus-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.trading-scan-focus-pill {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.trading-scan-focus-pill:hover,
.trading-scan-focus-pill:focus-visible,
.trading-scan-card strong[data-scan-symbol]:hover,
.trading-scan-card strong[data-scan-symbol]:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 184, 255, 0.52);
  background: rgba(14, 30, 48, 0.92);
  outline: none;
}

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

  .trading-scan-card-primary,
  .trading-scan-card-focus {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .trading-scan-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trading-scan-focus-sides {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trading-mtf-panel {
  border-color: rgba(82, 240, 201, 0.25);
  background: linear-gradient(180deg, rgba(7, 24, 38, 0.84), rgba(7, 17, 31, 0.76));
}

.trading-inline-section {
  margin-top: 0.42rem;
  padding: 0.52rem 0.58rem;
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 0.34rem;
}

.trading-mtf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.55rem;
}

.trading-mtf-card {
  border: 1px solid rgba(125, 168, 218, 0.26);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.74);
  padding: 0.52rem 0.58rem;
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.trading-mtf-card.aligned {
  border-color: rgba(134, 246, 166, 0.45);
}

.trading-mtf-card.watch {
  border-color: rgba(124, 184, 255, 0.45);
}

.trading-mtf-card.mixed,
.trading-mtf-card.waiting {
  border-color: rgba(255, 204, 139, 0.42);
}

.trading-mtf-head,
.trading-mtf-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.trading-mtf-head strong {
  font-size: 0.88rem;
}

.trading-mtf-card .mtf-setup {
  color: var(--text);
  font-size: 0.76rem;
}

.trading-mtf-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.35;
}

.trading-market-opps {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}

.trading-market-opp {
  border: 1px solid rgba(125, 168, 218, 0.26);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.74);
  padding: 0.52rem 0.58rem;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.trading-market-opp.active {
  border-color: rgba(134, 246, 166, 0.45);
}

.trading-market-opp.armed,
.trading-market-opp.watch {
  border-color: rgba(124, 184, 255, 0.42);
}

.trading-market-opp.near,
.trading-market-opp.no_trade {
  border-color: rgba(255, 185, 94, 0.42);
  background: linear-gradient(180deg, rgba(28, 20, 10, 0.8), rgba(14, 12, 8, 0.74));
}

.trading-market-opp.empty {
  grid-column: 1 / -1;
}

.trading-market-opp-head,
.trading-market-opp-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.trading-market-opp-head strong {
  font-size: 0.88rem;
}

.trading-market-opp p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.trading-action-panel {
  border-color: rgba(82, 240, 201, 0.35);
  background: linear-gradient(180deg, rgba(7, 24, 38, 0.88), rgba(7, 17, 31, 0.78));
}

.trading-action-copy {
  margin: 0.25rem 0 0;
}

.trading-action-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.trading-state-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.trading-state-card {
  border: 1px solid rgba(125, 168, 218, 0.28);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.74);
  padding: 0.55rem 0.6rem;
  display: grid;
  gap: 0.18rem;
}

.trading-state-card span,
.trading-state-card small {
  color: var(--muted);
}

.trading-state-card span {
  font-size: 0.72rem;
}

.trading-state-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.96rem;
}

.trading-state-card small {
  font-size: 0.69rem;
  line-height: 1.35;
}

.trading-state-card.pass {
  border-color: rgba(134, 246, 166, 0.42);
}

.trading-state-card.watch {
  border-color: rgba(255, 204, 139, 0.42);
}

.trading-state-card.fail {
  border-color: rgba(255, 154, 154, 0.42);
}

#trading-action-badge.action-long {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.6);
}

#trading-action-badge.action-short {
  color: #ffcc8b;
  border-color: rgba(255, 204, 139, 0.6);
}

#trading-action-badge.action-wait {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.6);
}

#trading-action-headline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.trading-plan-grid {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.plan-card {
  border: 1px solid rgba(125, 168, 218, 0.28);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.68);
  padding: 0.48rem 0.56rem;
  display: grid;
  gap: 0.2rem;
}

.plan-card span {
  color: var(--muted);
  font-size: 0.7rem;
}

.plan-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.trading-gates {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trading-gate {
  border: 1px solid rgba(125, 168, 218, 0.35);
  border-radius: 999px;
  padding: 0.13rem 0.46rem;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}

.trading-gate.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.55);
}

.trading-gate.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.55);
}

.trading-risk-controls {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.55rem;
}

.trading-risk-controls label {
  display: grid;
  gap: 0.22rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.trading-risk-controls input {
  font-family: "IBM Plex Mono", monospace;
}

.trading-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr);
  gap: 0.62rem;
  align-items: start;
}

.trading-chart-panel {
  grid-column: auto;
  display: grid;
  gap: 0.85rem;
  border-radius: 16px;
  border-color: rgba(125, 168, 218, 0.24);
  background:
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(7, 18, 32, 0.94), rgba(6, 14, 24, 0.92));
}

.trading-chart-stage {
  display: grid;
  gap: 0.72rem;
}

.trading-chart-meta-strip {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.trading-chart-status-pill,
.trading-chart-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 30px;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.22);
  background: rgba(8, 20, 34, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: #dbe8f8;
}

.trading-chart-status-pill.fresh {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.34);
}

.trading-chart-status-pill.aging {
  color: #ffcd82;
  border-color: rgba(255, 205, 130, 0.34);
}

.trading-chart-status-pill.stale {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.34);
}

.trading-chart-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.56rem;
}

.trading-chart-kpi {
  display: grid;
  gap: 0.22rem;
  padding: 0.68rem 0.74rem;
  border-radius: 14px;
  border: 1px solid rgba(125, 168, 218, 0.16);
  background: rgba(9, 21, 36, 0.72);
}

.trading-chart-kpi span {
  color: rgba(203, 219, 240, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trading-chart-kpi strong {
  color: #eef7ff;
  font-size: 1.08rem;
  line-height: 1.1;
}

.trading-chart-kpi strong.pass {
  color: #86f6a6;
}

.trading-chart-kpi strong.fail {
  color: #ffb17f;
}

.trading-chart-kpi small {
  color: #8ea6c7;
  font-size: 0.72rem;
}

.trading-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: #9bb2cf;
  font-size: 0.76rem;
}

.trading-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trading-chart-legend i {
  display: inline-block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
}

.trading-chart-legend i.ema-fast {
  background: rgba(124, 184, 255, 0.95);
}

.trading-chart-legend i.ema-slow {
  background: rgba(82, 240, 201, 0.95);
}

.trading-chart-legend i.structure {
  background: rgba(124, 184, 255, 0.75);
  border-top: 1px dashed rgba(124, 184, 255, 0.9);
  height: 0;
}

.trading-chart-legend i.last-price {
  background: rgba(255, 185, 94, 0.95);
}

.premium-workspace-hero {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 202, 126, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 94, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(124, 184, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(12, 23, 39, 0.92), rgba(8, 17, 30, 0.88));
  box-shadow: 0 18px 40px rgba(4, 10, 18, 0.2);
}

.premium-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.premium-workspace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  color: #ffd8a1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font: 600 0.7rem/1 "IBM Plex Mono", monospace;
}

.premium-workspace-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #f4f8fd;
}

.premium-workspace-summary {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-workspace-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 126, 0.22);
  background: rgba(255, 185, 94, 0.09);
  color: #ffe3b7;
  font: 500 0.76rem/1 "IBM Plex Mono", monospace;
}

.premium-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
}

.premium-workspace-card {
  display: grid;
  gap: 0.42rem;
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 168, 218, 0.16);
  background: rgba(9, 20, 34, 0.62);
}

.premium-workspace-card span {
  color: rgba(214, 232, 248, 0.68);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font: 600 0.68rem/1 "IBM Plex Mono", monospace;
}

.premium-workspace-card strong {
  color: #eff7ff;
  font-size: 1rem;
}

.premium-workspace-card p {
  margin: 0;
  color: #b8cbe0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.premium-pro-zone {
  display: grid;
  gap: 0.52rem;
}

.premium-pro-zone-head,
.premium-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
  flex-wrap: wrap;
  padding: 0.05rem 0.1rem 0;
}

.premium-pro-zone-head h3,
.premium-subsection-head h3 {
  margin: 0;
  color: #f0f7ff;
  font-size: 0.98rem;
}

.premium-pro-zone-summary {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-pro-zone-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 184, 255, 0.2);
  background: rgba(11, 25, 42, 0.72);
  color: #d8e9fb;
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
}

.premium-subsection-head {
  margin-top: 0.08rem;
}

.premium-pro-focus-zone .trading-chart-panel,
.premium-pro-analysis-focus-zone .chart-panel {
  border-color: rgba(124, 184, 255, 0.26);
}

.premium-pro-execution-zone {
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
  align-items: start;
}

.premium-pro-execution-zone > .premium-pro-zone-head {
  grid-column: 1 / -1;
}

.premium-pro-execution-zone > .trading-action-panel {
  grid-column: 1;
}

.premium-pro-execution-zone > .premium-pro-liquidity-panel {
  grid-column: 2;
}

.premium-pro-execution-zone > .premium-pro-evidence-zone {
  grid-column: 1 / -1;
}

.premium-pro-evidence-zone .trading-grid-mid,
.premium-pro-evidence-zone .trading-grid-bottom {
  gap: 0.58rem;
}

.premium-pro-zone .trading-action-panel,
.premium-pro-zone .playbook-panel,
.premium-pro-zone .opportunity-panel {
  box-shadow: 0 12px 28px rgba(4, 10, 18, 0.12);
}

.trading-view .premium-workspace-hero.trading-pro-only {
  display: none;
}

.trading-view .premium-pro-zone {
  gap: 0.38rem;
}

.trading-view .premium-pro-zone-head {
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(125, 168, 218, 0.12);
  padding-bottom: 0.2rem;
}

.trading-view .premium-pro-zone-head .decision-line,
.trading-view .premium-pro-zone-summary {
  display: none;
}

.trading-view .premium-pro-zone-head h3 {
  font: 600 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb6d2;
}

.trading-view .premium-pro-zone-kicker {
  display: none;
}

.trading-side-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.58rem;
  align-content: start;
  min-width: 0;
}

.trading-chart-insight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.trading-chart-insight-card {
  display: grid;
  gap: 0.38rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(125, 168, 218, 0.2);
  background: linear-gradient(180deg, rgba(10, 24, 40, 0.88), rgba(8, 18, 31, 0.8));
}

.trading-chart-insight-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.68);
}

.trading-chart-insight-card strong {
  font-size: 0.96rem;
  color: #eef7ff;
}

.trading-chart-volume-meter {
  min-height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 218, 0.18);
  background: rgba(125, 168, 218, 0.12);
}

.trading-chart-volume-meter span {
  display: block;
  min-height: 12px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 184, 255, 0.82), rgba(134, 246, 166, 0.9));
  transition: width 180ms ease;
}

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

  .trading-pro-decision-grid,
  .trading-grid-top,
  .premium-pro-execution-zone,
  .trading-overview-row {
    grid-template-columns: 1fr;
  }

  .premium-pro-execution-zone > .trading-action-panel,
  .premium-pro-execution-zone > .premium-pro-liquidity-panel,
  .premium-pro-execution-zone > .premium-pro-evidence-zone {
    grid-column: 1;
  }

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

@media (max-width: 640px) {
  .trading-pro-decision-panel {
    padding: 0.82rem !important;
  }

  .trading-pro-decision-headline {
    font-size: 1.04rem;
  }

  .premium-workspace-grid {
    grid-template-columns: 1fr;
  }

  .premium-workspace-summary {
    justify-content: flex-start;
  }

  .premium-pro-zone-summary {
    justify-content: flex-start;
  }

  .trading-chart-kpi-strip,
  .trading-chart-insight-row {
    grid-template-columns: 1fr;
  }

  .trading-chart-meta-strip {
    align-items: stretch;
  }
}

.trading-market-meta-panel {
  display: grid;
  gap: 0.5rem;
}

.trading-positioning-panel {
  display: grid;
  gap: 0.72rem;
}

.trading-positioning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.trading-positioning-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.42rem;
  padding: 0.84rem 0.88rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 168, 218, 0.16);
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(10, 24, 40, 0.88), rgba(7, 16, 28, 0.82));
}

.trading-positioning-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 168, 218, 0.3), transparent 84%);
}

.trading-positioning-card.long-dominant::before {
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.9), transparent 84%);
}

.trading-positioning-card.short-dominant::before {
  background: linear-gradient(90deg, rgba(255, 185, 94, 0.92), transparent 84%);
}

.trading-positioning-card.divergence.aligned::before {
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.82), rgba(91, 148, 255, 0.58), transparent 84%);
}

.trading-positioning-card.divergence.moderate::before {
  background: linear-gradient(90deg, rgba(255, 204, 108, 0.88), rgba(255, 144, 82, 0.72), transparent 84%);
}

.trading-positioning-card.divergence.strong::before {
  background: linear-gradient(90deg, rgba(255, 122, 109, 0.94), rgba(255, 185, 94, 0.74), transparent 84%);
}

.trading-positioning-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.trading-positioning-head strong {
  font-size: 1.02rem;
  color: #eef7ff;
  letter-spacing: -0.03em;
}

.trading-positioning-head span {
  color: #91aac8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trading-positioning-bias {
  color: #f5f8ff;
  font-size: 0.78rem;
}

.trading-positioning-bias .bull {
  color: #86f6d3;
}

.trading-positioning-bias .bear {
  color: #ffc57a;
}

.trading-positioning-ratio {
  display: flex;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 168, 218, 0.1);
}

.trading-positioning-ratio.single {
  height: 14px;
}

.trading-positioning-ratio .long {
  background: linear-gradient(90deg, rgba(76, 241, 203, 0.84), rgba(91, 148, 255, 0.74));
}

.trading-positioning-ratio .short {
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.84), rgba(255, 123, 109, 0.76));
}

.trading-positioning-split {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.74rem;
  font-family: "IBM Plex Mono", monospace;
}

.trading-positioning-split .long {
  color: #86f6d3;
}

.trading-positioning-split .short {
  color: #ffc57a;
}

.trading-positioning-venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.trading-positioning-venue-row {
  display: grid;
  gap: 0.42rem;
  padding: 0.7rem 0.72rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(125, 168, 218, 0.14);
  background: rgba(8, 19, 34, 0.52);
}

.trading-positioning-venue-row.spot {
  grid-column: 1 / -1;
  background: rgba(8, 22, 38, 0.62);
  border-color: rgba(125, 168, 218, 0.18);
}

.trading-positioning-venue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.trading-positioning-venue-head strong {
  color: #eef7ff;
  font-size: 0.86rem;
}

.trading-positioning-venue-head span {
  color: #91aac8;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trading-positioning-venue-bar {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 168, 218, 0.08);
}

.trading-positioning-venue-bar .long {
  background: linear-gradient(90deg, rgba(76, 241, 203, 0.88), rgba(91, 148, 255, 0.76));
}

.trading-positioning-venue-bar .short {
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.86), rgba(255, 123, 109, 0.78));
}

.trading-positioning-venue-split {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.trading-positioning-venue-split .long {
  color: #86f6d3;
}

.trading-positioning-venue-split .short {
  color: #ffc57a;
}

.trading-positioning-venue-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.trading-positioning-venue-metrics span {
  display: grid;
  gap: 0.16rem;
  padding: 0.48rem 0.52rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(125, 168, 218, 0.1);
  background: rgba(12, 26, 42, 0.52);
}

.trading-positioning-venue-metrics label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #91aac8;
}

.trading-positioning-venue-metrics strong {
  color: #eef7ff;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.trading-positioning-venue-foot {
  color: #92abc8;
  font-size: 0.69rem;
  line-height: 1.45;
}

.trading-positioning-foot {
  color: #92abc8;
  font-size: 0.71rem;
  line-height: 1.45;
}

.trading-positioning-empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: #91aac8;
  font-size: 0.8rem;
  border: 1px dashed rgba(125, 168, 218, 0.18);
  border-radius: 1rem;
  background: rgba(8, 18, 31, 0.52);
}

@media (max-width: 860px) {
  .trading-positioning-venue-grid {
    grid-template-columns: 1fr;
  }

  .trading-positioning-venue-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trading-free-daily-desk {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trading-free-daily-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 0.9rem;
}

.trading-free-post-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.95rem 0;
}

.trading-free-market-now-panel,
.trading-free-best-setup-panel,
.trading-free-changes-panel,
.trading-free-watchlist-panel,
.trading-free-playbook-panel,
.trading-free-scoreboard-panel {
  display: grid;
  gap: 0.78rem;
  background:
    linear-gradient(180deg, rgba(12, 26, 42, 0.92), rgba(8, 18, 31, 0.82)),
    radial-gradient(circle at top right, rgba(122, 189, 255, 0.12), transparent 46%);
  border-color: rgba(124, 184, 255, 0.22);
  box-shadow:
    0 18px 40px rgba(2, 8, 16, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trading-free-market-now-panel {
  position: relative;
  overflow: hidden;
  gap: 0.95rem;
}

.trading-free-market-now-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 184, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%);
  pointer-events: none;
}

.trading-free-market-now-panel.compass-bullish {
  background:
    linear-gradient(180deg, rgba(9, 31, 24, 0.94), rgba(8, 20, 18, 0.84)),
    radial-gradient(circle at top right, rgba(134, 246, 166, 0.18), transparent 48%);
  border-color: rgba(134, 246, 166, 0.28);
}

.trading-free-market-now-panel.compass-bearish {
  background:
    linear-gradient(180deg, rgba(34, 17, 18, 0.94), rgba(22, 11, 13, 0.84)),
    radial-gradient(circle at top right, rgba(255, 120, 120, 0.18), transparent 48%);
  border-color: rgba(255, 120, 120, 0.24);
}

.trading-free-market-now-panel > * {
  position: relative;
  z-index: 1;
}

.trading-free-market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.72fr);
  gap: 0.85rem;
  align-items: stretch;
}

.trading-free-market-hero-main {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(6, 16, 28, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.trading-free-market-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.62);
}

.trading-free-market-headline {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.02;
  color: #f4fbff;
}

.trading-free-market-stance {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 238, 251, 0.86);
  max-width: 58ch;
}

.trading-free-market-pulse {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  background: rgba(4, 12, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.trading-free-market-pulse-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.58);
}

.trading-free-market-pulse-value {
  font-size: 1.1rem;
  line-height: 1.15;
  color: #eef7ff;
}

.trading-free-market-confidence-row {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
  color: rgba(214, 232, 248, 0.8);
  font-size: 0.78rem;
}

.trading-free-market-confidence-row strong {
  color: #eef7ff;
  font-size: 0.98rem;
}

.trading-free-market-confidence-track {
  min-height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 218, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.trading-free-market-confidence-track span {
  display: block;
  min-height: 12px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 184, 255, 0.95), rgba(134, 246, 166, 0.95));
  transition: width 180ms ease;
}

.trading-free-market-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.trading-free-market-stat-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.88rem;
  background: rgba(6, 16, 28, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-free-market-stat-card span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.58);
}

.trading-free-market-stat-card strong {
  font-size: 1rem;
  color: #eef7ff;
}

.trading-free-market-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trading-free-market-reasons li {
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.16);
  background: rgba(6, 16, 28, 0.42);
  color: rgba(226, 238, 251, 0.84);
  font-size: 0.76rem;
  line-height: 1.35;
}

.trading-free-best-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.trading-free-best-setup-panel {
  position: relative;
  overflow: hidden;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(14, 32, 50, 0.96), rgba(8, 18, 31, 0.86)),
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.16), transparent 42%);
}

.trading-free-best-setup-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 46%);
  pointer-events: none;
}

.trading-free-best-setup-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 184, 255, 0.15), rgba(124, 184, 255, 0.9), rgba(124, 184, 255, 0.15));
  pointer-events: none;
}

.trading-free-best-setup-panel.bias-bullish {
  background:
    linear-gradient(180deg, rgba(8, 30, 24, 0.96), rgba(7, 19, 17, 0.86)),
    radial-gradient(circle at top right, rgba(134, 246, 166, 0.2), transparent 44%);
  border-color: rgba(134, 246, 166, 0.3);
}

.trading-free-best-setup-panel.bias-bullish::after {
  background: linear-gradient(90deg, rgba(134, 246, 166, 0.15), rgba(134, 246, 166, 0.92), rgba(134, 246, 166, 0.15));
}

.trading-free-best-setup-panel.bias-bearish {
  background:
    linear-gradient(180deg, rgba(35, 16, 18, 0.96), rgba(20, 10, 12, 0.86)),
    radial-gradient(circle at top right, rgba(255, 120, 120, 0.18), transparent 44%);
  border-color: rgba(255, 120, 120, 0.24);
}

.trading-free-best-setup-panel.bias-bearish::after {
  background: linear-gradient(90deg, rgba(255, 120, 120, 0.12), rgba(255, 120, 120, 0.88), rgba(255, 120, 120, 0.12));
}

.trading-free-best-setup-panel > * {
  position: relative;
  z-index: 1;
}

.trading-free-best-symbol {
  display: block;
  font-size: clamp(1.28rem, 1.7vw, 1.7rem);
  line-height: 1.02;
  color: #f5fbff;
  max-width: 14ch;
  text-wrap: balance;
}

.trading-free-best-state {
  margin-top: 0.24rem;
  color: rgba(224, 237, 250, 0.78);
}

.trading-free-best-summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(230, 240, 251, 0.9);
}

.trading-free-best-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.trading-free-best-action {
  margin: 0;
  padding: 0.82rem 0.92rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(125, 168, 218, 0.2);
  background: rgba(6, 16, 28, 0.56);
  color: #eef7ff;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trading-free-best-action.state-live {
  border-color: rgba(134, 246, 166, 0.28);
  background: rgba(10, 30, 24, 0.62);
}

.trading-free-best-action.state-watch {
  border-color: rgba(124, 184, 255, 0.24);
}

.trading-free-best-action.state-idle {
  border-color: rgba(255, 185, 94, 0.22);
  background: rgba(27, 21, 10, 0.48);
}

.trading-free-best-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.trading-free-best-actions .ghost {
  min-height: 2.6rem;
  padding-inline: 0.95rem;
  border-radius: 0.9rem;
  border-color: rgba(125, 168, 218, 0.2);
  background: rgba(6, 16, 28, 0.4);
}

.trading-free-best-actions .ghost:hover,
.trading-free-best-actions .ghost:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 184, 255, 0.42);
}

.trading-free-changes-panel {
  gap: 0.82rem;
  padding-top: 1rem;
}

.trading-free-changes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.trading-free-change-card {
  display: grid;
  gap: 0.32rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(125, 168, 218, 0.15);
  background: rgba(8, 20, 34, 0.58);
  position: relative;
  overflow: hidden;
}

.trading-free-change-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(124, 184, 255, 0.6);
  opacity: 0.7;
}

.trading-free-change-card.positive {
  border-color: rgba(134, 246, 166, 0.22);
  background: linear-gradient(180deg, rgba(10, 29, 23, 0.78), rgba(8, 20, 18, 0.68));
}

.trading-free-change-card.positive::before {
  background: rgba(134, 246, 166, 0.92);
}

.trading-free-change-card.negative {
  border-color: rgba(255, 120, 120, 0.2);
  background: linear-gradient(180deg, rgba(34, 17, 18, 0.78), rgba(21, 11, 13, 0.68));
}

.trading-free-change-card.negative::before {
  background: rgba(255, 120, 120, 0.86);
}

.trading-free-change-card strong {
  font-size: 1.04rem;
  color: #eef7ff;
}

.trading-free-change-card p,
.trading-free-change-card em {
  margin: 0;
  font-style: normal;
}

.trading-free-change-card p {
  color: rgba(220, 233, 248, 0.84);
  font-size: 0.79rem;
  line-height: 1.45;
}

.trading-free-change-card em {
  color: rgba(194, 212, 231, 0.64);
  font-size: 0.72rem;
}

.trading-free-change-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.58);
}

.trading-free-alert-block {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(125, 168, 218, 0.12);
}

.trading-top-meta-grid {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.45rem;
}

.trading-oi-meta-panel {
  margin-top: 0;
}

.trading-free-compass-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trading-free-watchlist-toggles,
.trading-free-watchlist-active,
.trading-free-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trading-free-watch-toggle,
.trading-free-watch-pill {
  appearance: none;
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 999px;
  background: rgba(9, 22, 38, 0.58);
  color: #dceafb;
  font: inherit;
  font-size: 0.74rem;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.trading-free-watch-toggle:hover,
.trading-free-watch-toggle:focus-visible,
.trading-free-watch-pill:hover,
.trading-free-watch-pill:focus-visible {
  border-color: rgba(124, 184, 255, 0.42);
  background: rgba(11, 26, 44, 0.74);
  transform: translateY(-1px);
  outline: none;
}

.trading-free-watch-toggle.active,
.trading-free-watch-pill.current {
  border-color: rgba(134, 246, 166, 0.42);
  background: rgba(11, 31, 24, 0.72);
  color: #e8fff1;
}

.trading-free-fingerprint-reliability {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(208, 219, 236, 0.66);
}

.trading-free-fingerprint-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.trading-free-fingerprint-panel {
  display: grid;
  gap: 0.58rem;
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.9), rgba(8, 18, 31, 0.82));
  border-color: rgba(124, 184, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.trading-free-fingerprint-copy {
  margin: -0.16rem 0 0;
  color: rgba(214, 232, 248, 0.78);
  max-width: none;
}

.trading-free-fingerprint-card {
  appearance: none;
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(11, 24, 40, 0.84), rgba(8, 18, 31, 0.74)),
    radial-gradient(circle at top right, rgba(122, 189, 255, 0.14), transparent 40%);
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  color: inherit;
  font: inherit;
}

.trading-free-fingerprint-card.empty {
  color: var(--muted);
}

.trading-free-fingerprint-card.locked-cta:hover,
.trading-free-fingerprint-card.locked-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 184, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(12, 27, 45, 0.92), rgba(9, 21, 36, 0.82)),
    radial-gradient(circle at top right, rgba(122, 189, 255, 0.18), transparent 42%);
  outline: none;
}

.trading-free-fingerprint-head {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
}

.trading-free-fingerprint-match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  background: var(--match-bg, rgba(125, 168, 218, 0.12));
  border: 1px solid var(--match-border, rgba(125, 168, 218, 0.35));
  color: var(--match-text, #d0dbec);
  white-space: nowrap;
}

.trading-free-fingerprint-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
}

.trading-free-fingerprint-time {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.trading-free-fingerprint-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
}

.trading-free-fingerprint-metric {
  border-radius: 0.72rem;
  padding: 0.42rem 0.48rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.18rem;
}

.trading-market-meta-panel .panel-head h3 {
  margin-bottom: 0.45rem;
}

.trading-market-meta-panel .decision-summary {
  padding: 0.56rem 0.58rem;
  gap: 0.34rem;
}

.trading-market-meta-panel .decision-summary .headline {
  font-size: 0.84rem;
  line-height: 1.35;
}

.trading-market-meta-panel .insight-reasons {
  padding-left: 1rem;
  display: grid;
  gap: 0.18rem;
  line-height: 1.4;
}

.trading-market-meta-panel .insight-reasons li {
  margin: 0;
}

@media (max-width: 900px) {
  .trading-free-fingerprint-list {
    grid-template-columns: 1fr;
  }
}

.trading-free-fingerprint-metric span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trading-free-fingerprint-metric strong {
  font-size: 0.86rem;
}

.trading-free-fingerprint-metric.locked {
  color: rgba(208, 219, 236, 0.54);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-free-fingerprint-metric.locked span,
.trading-free-fingerprint-metric.locked strong {
  color: rgba(208, 219, 236, 0.52);
}

.trading-free-fingerprint-metric.locked strong {
  filter: blur(6px);
  user-select: none;
  letter-spacing: 0.08em;
}

.trading-free-fingerprint-cta {
  font-size: 0.72rem;
  color: rgba(155, 206, 255, 0.92);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trading-free-playbook-grid,
.trading-free-scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.trading-free-playbook-card,
.trading-free-score-card {
  border-radius: 0.85rem;
  border: 1px solid rgba(125, 168, 218, 0.16);
  background: rgba(8, 20, 34, 0.66);
  padding: 0.7rem 0.78rem;
  display: grid;
  gap: 0.3rem;
}

.trading-free-playbook-card strong,
.trading-free-score-card strong {
  color: #eef7ff;
}

.trading-free-playbook-card p,
.trading-free-score-card p {
  margin: 0;
  color: rgba(214, 232, 248, 0.78);
  font-size: 0.78rem;
  line-height: 1.45;
}

.trading-free-playbook-label,
.trading-free-score-card span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 232, 248, 0.62);
}

.trading-free-playbook-card.aggressive {
  border-color: rgba(134, 246, 166, 0.24);
  background: linear-gradient(180deg, rgba(10, 29, 23, 0.82), rgba(8, 20, 18, 0.7));
}

.trading-free-playbook-card.neutral {
  border-color: rgba(124, 184, 255, 0.22);
}

.trading-free-playbook-card.defensive {
  border-color: rgba(255, 185, 94, 0.24);
  background: linear-gradient(180deg, rgba(31, 24, 10, 0.82), rgba(20, 16, 8, 0.7));
}

.trading-free-watchlist-panel,
.trading-free-playbook-panel,
.trading-free-scoreboard-panel {
  background:
    linear-gradient(180deg, rgba(10, 22, 36, 0.9), rgba(8, 18, 31, 0.8)),
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.08), transparent 46%);
}

.trading-free-watchlist-panel {
  border-color: rgba(124, 184, 255, 0.2);
}

.trading-free-score-card strong {
  font-size: 1rem;
}

.trading-free-secondary-panel {
  opacity: 0.92;
  background:
    linear-gradient(180deg, rgba(9, 20, 33, 0.84), rgba(7, 16, 28, 0.76)),
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.06), transparent 44%);
}

.trading-free-secondary-panel .panel-head h3 {
  color: rgba(235, 244, 252, 0.92);
}

.trading-free-only .insight-reasons {
  margin-top: 0.15rem;
}

@media (max-width: 1080px) {
  .trading-free-daily-hero-grid,
  .trading-free-post-chart-grid,
  .trading-free-changes-grid {
    grid-template-columns: 1fr;
  }

  .trading-free-market-hero,
  .trading-free-market-stat-grid {
    grid-template-columns: 1fr;
  }

  .trading-free-best-head {
    flex-direction: column;
  }

  .trading-free-best-badges {
    justify-content: flex-start;
  }

  .trading-free-best-actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 1081px) {
  .trading-free-post-chart-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.trading-meta-notes {
  display: grid;
  gap: 0.6rem;
}

.trading-meta-notes h4 {
  margin: 0 0 0.18rem;
}

.trading-grid-mid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.72rem;
  align-items: start;
}

.trading-grid-bottom {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.72rem;
  align-items: start;
}

.trading-opportunity-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.72rem;
  align-items: start;
}

.trading-grid-top > .panel,
.trading-grid-mid > .panel,
.trading-grid-bottom > .panel,
.trading-opportunity-grid > .panel {
  align-self: start;
}

.grid-2 > *,
.trading-view > *,
.trading-grid-top > *,
.trading-grid-mid > *,
.trading-grid-bottom > *,
.trading-opportunity-grid > * {
  min-width: 0;
}

.trading-radar-panel {
  display: grid;
  gap: 0.65rem;
}

.trading-mini-section {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid rgba(125, 168, 218, 0.2);
  padding-top: 0.6rem;
}

.panel-head.compact h4 {
  margin: 0;
}

.trading-scroll-shell {
  border-color: rgba(255, 185, 94, 0.28);
}

.trading-grid-mid .insight-grid {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.trading-structure-grid {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.trading-blockers {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trading-blocker {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.69rem;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(8, 20, 34, 0.72);
  color: var(--muted);
}

.trading-blocker.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.48);
}

.trading-blocker.watch {
  color: #ffcc8b;
  border-color: rgba(255, 204, 139, 0.48);
}

.trading-blocker.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.48);
}

.trading-feed-table {
  margin-top: 0.25rem;
}

.trading-feed-table,
.trading-feed-table .table-wrap {
  min-width: 0;
}

.trading-feed-table tbody tr {
  cursor: pointer;
}

.trading-feed-symbol,
.trading-feed-setup,
.trading-feed-oi,
.trading-feed-status {
  display: grid;
  gap: 0.16rem;
}

.trading-feed-symbol strong,
.trading-feed-setup strong,
.conviction-inline strong,
.trading-priority-head strong {
  font-size: 0.84rem;
}

.trading-feed-rank,
.trading-feed-setup span,
.trading-feed-oi span,
.trading-feed-trigger {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.conviction-inline {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.trade-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.35);
  padding: 0.08rem 0.42rem;
  font-size: 0.64rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.78);
}

.trade-status.triggered {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.45);
}

.trade-status.forming {
  color: #7cb8ff;
  border-color: rgba(124, 184, 255, 0.45);
}

.trade-status.invalidated {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.45);
}

.trade-status.alert {
  color: #52f0c9;
  border-color: rgba(82, 240, 201, 0.4);
}

.trade-status.oi {
  color: #ffcc8b;
  border-color: rgba(255, 204, 139, 0.42);
}

.trade-status.minor {
  color: var(--muted);
}

.trading-signal-alerts,
.trading-active-list,
.trading-priority-list {
  display: grid;
  gap: 0.42rem;
}

.trading-alert-item,
.trading-active-item,
.trading-priority-item {
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.48rem 0.56rem;
}

.trading-alert-item {
  display: grid;
  gap: 0.2rem;
}

.trading-alert-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.trading-active-item,
.trading-priority-head,
.trading-priority-metrics {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.trading-active-item > div:first-child,
.trading-priority-item {
  display: grid;
  gap: 0.18rem;
}

.trading-active-item span,
.trading-priority-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
}

.probability-bar {
  margin-bottom: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.probability-bar.compact {
  margin-bottom: 0;
}

.probability-bar.compact .probability-track {
  min-height: 12px;
}

.probability-bar.compact .probability-legend {
  display: none;
}

.probability-track {
  display: flex;
  width: 100%;
  min-height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 168, 218, 0.16);
  border: 1px solid rgba(125, 168, 218, 0.22);
}

.probability-track.empty {
  min-height: 14px;
}

.probability-segment {
  display: block;
  min-width: 2px;
}

.probability-segment.up {
  background: linear-gradient(90deg, rgba(82, 240, 201, 0.86), rgba(134, 246, 166, 0.92));
}

.probability-segment.neutral {
  background: rgba(124, 184, 255, 0.42);
}

.probability-segment.down {
  background: linear-gradient(90deg, rgba(255, 185, 120, 0.82), rgba(255, 154, 154, 0.9));
}

.probability-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.trade-checklist {
  display: grid;
  gap: 0.45rem;
}

.trade-check-row {
  border: 1px solid rgba(125, 168, 218, 0.28);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.34rem;
}

.trade-check-row.empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.trade-check-row.pass {
  border-color: rgba(134, 246, 166, 0.42);
}

.trade-check-row.fail {
  border-color: rgba(255, 154, 154, 0.42);
}

.trade-check-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.trade-check-main strong {
  font-size: 0.84rem;
}

.trade-check-status {
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  font-size: 0.64rem;
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid rgba(125, 168, 218, 0.35);
  color: var(--muted);
}

.trade-check-row.pass .trade-check-status {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.45);
}

.trade-check-row.fail .trade-check-status {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.45);
}

.trading2-view {
  display: grid;
  gap: 1rem;
}

.trading2-panel {
  min-height: 62vh;
}

.trading2-shell {
  display: grid;
  gap: 0.95rem;
}

.trading2-shell-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 0.95rem;
  align-items: start;
}

.trading2-primary-stack {
  display: grid;
  gap: 0.95rem;
}

.trading2-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.trading2-opportunity-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.07), transparent 36%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.82), rgba(8, 20, 34, 0.72));
  padding: 0.95rem;
  display: grid;
  gap: 0.8rem;
  height: 100%;
  align-content: start;
}

.trading2-opportunity-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.trading2-opportunity-threshold-row {
  display: grid;
  gap: 0.45rem;
}

.trading2-opportunity-threshold-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.trading2-opportunity-threshold-label strong {
  color: #e7f1ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.trading2-opportunity-threshold {
  width: 100%;
  accent-color: #7cb8ff;
}

.trading2-opportunity-item {
  border: 1px solid rgba(125, 168, 218, 0.2);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.8rem 0.85rem;
  display: grid;
  gap: 0.35rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.trading2-opportunity-item:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 184, 255, 0.38);
}

.trading2-opportunity-item.active {
  border-color: rgba(82, 240, 201, 0.45);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.1), transparent 34%),
    rgba(8, 20, 34, 0.82);
}

.trading2-opportunity-item.empty {
  cursor: default;
  color: var(--muted);
}

.trading2-opportunity-item.empty:hover {
  transform: none;
  border-color: rgba(125, 168, 218, 0.2);
}

.trading2-opportunity-item strong {
  font-size: 0.96rem;
}

.trading2-opportunity-score {
  font-family: "IBM Plex Mono", monospace;
  color: #86f6a6;
  font-size: 0.86rem;
}

.trading2-opportunity-detail,
.trading2-opportunity-foot {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.trading2-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 16px;
  background: rgba(8, 20, 34, 0.58);
  padding: 0.8rem 0.9rem;
}

.trading2-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trading2-toolbar-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.trading2-toolbar-copy strong {
  font-size: 0.95rem;
}

.trading2-toolbar-actions button {
  min-width: 8.5rem;
}

.trading2-mode-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: start;
}

.trading2-mode-card-featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(12, 28, 46, 0.88), rgba(8, 18, 30, 0.76));
  border-color: rgba(82, 240, 201, 0.2);
}

.trading2-mode-card {
  border: 1px solid rgba(125, 168, 218, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 25, 42, 0.82), rgba(8, 18, 30, 0.74));
  padding: 0.95rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.trading2-mode-card > :first-child,
.trading2-mode-card > .trading2-stats-grid,
.trading2-mode-card > .trading2-results-card {
  grid-column: 1 / -1;
}

.trading2-mode-card > .trading2-grid {
  grid-column: 1 / 8;
}

.trading2-mode-card > .trading2-validation-card {
  grid-column: 8 / -1;
  align-self: stretch;
}

.trading2-mode-head {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.trading2-mode-head h4 {
  margin: 0;
}

.trading2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.trading2-stat-card {
  border: 1px solid rgba(125, 168, 218, 0.2);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.8rem 0.85rem;
  display: grid;
  gap: 0.26rem;
}

.trading2-stat-card span {
  color: var(--muted);
  font-size: 0.74rem;
}

.trading2-stat-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.trading2-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.trading2-hero {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(82, 240, 201, 0.08), transparent 42%),
    radial-gradient(circle at bottom right, rgba(124, 184, 255, 0.08), transparent 38%),
    rgba(8, 20, 34, 0.74);
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.42rem;
}

.trading2-hero h4 {
  margin: 0;
  font-size: 1.1rem;
}

.trading2-hero p,
.trading2-placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trading2-weight-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.84), rgba(8, 20, 34, 0.72));
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.trading2-weight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.trading2-weight-pill {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 14px;
  background: rgba(10, 24, 39, 0.68);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.28rem;
}

.trading2-weight-pill span {
  color: var(--muted);
  font-size: 0.75rem;
}

.trading2-weight-pill strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.12rem;
}

.trading2-weight-pill p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.trading2-live-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(124, 184, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.84), rgba(8, 20, 34, 0.72));
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.trading2-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.trading2-live-primary {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 14px;
  background: rgba(10, 24, 39, 0.68);
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.trading2-live-primary .deck-health-pill {
  justify-self: start;
}

.trading2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 0.7rem;
}

.trading2-placeholder-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.7);
  padding: 0.82rem 0.88rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.trading2-placeholder-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.trading2-placeholder-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

.trading2-results-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.trading2-validation-card {
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(9, 22, 36, 0.84), rgba(8, 20, 34, 0.72));
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.trading2-validation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trading2-validation-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 218, 0.18);
  background: rgba(10, 24, 39, 0.68);
  color: var(--muted);
  font-size: 0.74rem;
}

.trading2-validation-strip strong {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  font-size: 0.82rem;
}

.trading2-results-head {
  align-items: center;
}

.trading2-results-card .table-wrap.small,
.trading2-placeholder-card .table-wrap.small {
  max-height: 25vh;
}

.trade-check-detail {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.compass-panel {
  margin-top: 0.75rem;
}

.compass-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#compass-direction.compass-bullish {
  --tag-color: var(--ok);
}

#compass-direction.compass-bearish {
  --tag-color: #ffcc8b;
}

#compass-direction.compass-neutral {
  --tag-color: var(--muted);
}

.compass-panel .table-wrap.small {
  max-height: 30vh;
}

.compass-panel td:last-child {
  min-width: 280px;
}

.focus-panel {
  margin-top: 1rem;
}

.focus-content {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chart-controls select {
  min-width: 160px;
}

.ticker-panel {
  margin-top: 1rem;
}

.playbook-panel {
  margin-top: 1rem;
}

.social-pulse-panel {
  margin-top: 1rem;
}

.social-pulse-asset-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.social-pulse-asset {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(124, 184, 255, 0.08), transparent 38%),
    rgba(8, 20, 34, 0.68);
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.social-pulse-asset.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.social-pulse-asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.social-pulse-asset-score {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--text);
}

.social-pulse-asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.social-pulse-asset-foot {
  color: #dcecff;
  font-size: 0.8rem;
  line-height: 1.45;
}

.social-pulse-grid {
  margin-top: 0.8rem;
  align-items: start;
}

.social-pulse-subpanel {
  border: 1px solid rgba(125, 168, 218, 0.16);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.56);
  padding: 0.8rem;
}

.social-pulse-subpanel h4 {
  margin: 0 0 0.6rem;
}

.social-pulse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-pulse-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.social-pulse-highlight {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(125, 168, 218, 0.12);
  display: grid;
  gap: 0.35rem;
}

.social-pulse-highlight:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.social-pulse-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.social-pulse-highlight-head strong {
  color: var(--text);
}

.social-pulse-highlight p {
  margin: 0;
  line-height: 1.45;
  color: #e7f1ff;
}

.social-pulse-highlight-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.playbook-table-wrap {
  margin-top: 0.55rem;
  max-height: 36vh;
}

.playbook-rules {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.6rem;
}

.playbook-rule-card {
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.66);
  padding: 0.55rem 0.65rem;
}

.playbook-rule-card h4 {
  margin-top: 0.1rem;
  margin-bottom: 0.45rem;
}

.playbook-steps {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.playbook-forecast,
.playbook-flow,
.playbook-liquidity {
  display: grid;
  gap: 0.17rem;
  min-width: 180px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.playbook-threshold {
  color: var(--muted);
  font-size: 0.66rem;
}

.playbook-trigger,
.playbook-invalidation {
  min-width: 190px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.pb-gates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  min-width: 170px;
}

.pb-gate {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  font-size: 0.64rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}

.pb-gate.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.5);
}

.pb-gate.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.5);
}

.top-flow-grid {
  margin-top: 0.82rem;
  gap: 0.78rem;
}

.opportunity-panel,
.telegram-panel {
  align-self: start;
}

.opportunity-toolbar {
  margin-top: 0.28rem;
  display: grid;
  gap: 0.3rem;
}

.opportunity-controls {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.opportunity-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0.4rem;
  flex: 1 1 720px;
  min-width: min(100%, 720px);
}

.opportunity-selector-grid select {
  min-width: 0;
}

#opportunity-scope-status {
  margin-top: 0;
  margin-bottom: 0;
}

.opportunity-table-wrap {
  margin-top: 0.36rem;
  max-height: 40vh;
}

.opportunity-table th,
.opportunity-table td {
  padding: 0.34rem 0.42rem;
  vertical-align: top;
}

.opportunity-table tbody tr {
  cursor: pointer;
}

.opportunity-tf-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
}

.tf-mini-chip {
  border: 1px solid rgba(125, 168, 218, 0.32);
  border-radius: 999px;
  padding: 0.08rem 0.34rem;
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.72);
  white-space: nowrap;
}

.conviction-legend.compact {
  margin-top: 0;
  margin-bottom: 0.15rem;
  gap: 0.28rem;
}

.conviction-legend.compact .legend-chip {
  padding: 0.12rem 0.42rem;
  font-size: 0.66rem;
}

.ticker-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.news-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-height: 32vh;
  overflow: auto;
}

.news-list li {
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 8px;
  background: rgba(8, 20, 34, 0.68);
  padding: 0.42rem 0.55rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.news-list .headline {
  color: var(--text);
}

.news-list .meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(125, 168, 218, 0.36);
  padding: 0.1rem 0.4rem;
  font-family: "IBM Plex Mono", monospace;
}

.pill.inflow {
  color: var(--ok);
}

.pill.outflow {
  color: #ffcc8b;
}

.pill.transfer {
  color: #f1d16f;
}

.chart-summary {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chart-summary.compact {
  margin-top: 0.3rem;
  gap: 0.28rem;
}

.chart-tag {
  border: 1px solid rgba(125, 168, 218, 0.35);
  border-left: 3px solid var(--tag-color, var(--accent));
  border-radius: 8px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.32rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text);
}

.chart-overlay-wrap {
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.45rem;
  min-width: 0;
}

.chart-overlay-wrap canvas {
  width: 100%;
  display: block;
}

.chart-scroll-shell {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.trading-scroll-shell .chart-axis-pane {
  flex: 0 0 112px;
  width: 112px;
  min-width: 112px;
}

.trading-scroll-shell .chart-axis-pane canvas {
  width: 112px;
  max-width: 112px;
}

.chart-scroll-shell .chart-axis-pane {
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  box-sizing: border-box;
  border-right: 1px solid rgba(125, 168, 218, 0.3);
  padding-right: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.chart-scroll-shell .chart-axis-pane canvas {
  width: 82px;
  max-width: 82px;
  display: block;
}

.chart-scroll-shell .chart-scroll-pane {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.45rem;
  position: relative;
  z-index: 1;
  background: rgba(8, 20, 34, 0.52);
}

.chart-scroll-shell .chart-scroll-pane canvas {
  width: auto;
  max-width: none;
  display: block;
}

#trading-price-canvas {
  cursor: crosshair;
}

.chart-individual-wrap {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
}

.usdt-chart-section {
  margin-top: 1rem;
  border-top: 1px solid rgba(125, 168, 218, 0.2);
  padding-top: 0.8rem;
}

.usdt-chart-head h4 {
  margin: 0;
}

.usdt-chart-head .chart-controls select {
  min-width: 170px;
}

#usdt-chart-meta {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.usdt-chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.usdt-chart-stats .chip {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.72);
}

.usdt-chart-stats .chip.good {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.48);
}

.usdt-chart-stats .chip.mid {
  color: #ffcc8b;
  border-color: rgba(255, 204, 139, 0.45);
}

.usdt-chart-stats .chip.low {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.45);
}

.usdt-forecast-kpis {
  margin-bottom: 0.45rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.4rem;
}

.usdt-forecast-kpis .forecast-kpi {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 10px;
  padding: 0.34rem 0.45rem;
  background: rgba(8, 20, 34, 0.72);
  display: grid;
  gap: 0.18rem;
}

.usdt-forecast-kpis .forecast-kpi .label {
  color: var(--muted);
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
}

.usdt-forecast-kpis .forecast-kpi .value {
  color: var(--text);
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}

.usdt-forecast-kpis .forecast-kpi.pass .value {
  color: #86f6a6;
}

.usdt-forecast-kpis .forecast-kpi.fail .value {
  color: #ff9a9a;
}

.usdt-scroll-shell {
  border-color: rgba(82, 240, 201, 0.28);
}

.usdt-chart-wrap {
  margin-top: 0;
}

.heatmap-section {
  margin-top: 1rem;
  border-top: 1px solid rgba(125, 168, 218, 0.2);
  padding-top: 0.8rem;
}

.heatmap-head h4 {
  margin: 0;
}

#heatmap-meta {
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.heatmap-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.heatmap-chip {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.72);
}

.heatmap-chip.move-confirmed {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.5);
}

.heatmap-chip.move-developing {
  color: #7cb8ff;
  border-color: rgba(124, 184, 255, 0.5);
}

.heatmap-chip.move-spike {
  color: #ffb978;
  border-color: rgba(255, 185, 120, 0.5);
}

.heatmap-chip.risk-low {
  color: #86f6a6;
}

.heatmap-chip.risk-medium {
  color: #ffcc8b;
}

.heatmap-chip.risk-high {
  color: #ff9a9a;
}

.heatmap-chip.quality-high {
  color: #86f6a6;
}

.heatmap-chip.quality-medium {
  color: #ffcc8b;
}

.heatmap-chip.quality-low {
  color: #ff9a9a;
}

.heatmap-chip.liquidity-low {
  color: #86f6a6;
}

.heatmap-chip.liquidity-medium {
  color: #ffcc8b;
}

.heatmap-chip.liquidity-high {
  color: #ff9a9a;
}

.heatmap-chip.tf-bullish {
  color: #86f6a6;
}

.heatmap-chip.tf-bearish {
  color: #ffb978;
}

.heatmap-chip.tf-neutral {
  color: #a9bcda;
}

.heatmap-scroll-shell {
  border-color: rgba(124, 184, 255, 0.3);
}

.heatmap-wrap {
  margin-top: 0;
}

.chart-scroll-shell .chart-scroll-pane::-webkit-scrollbar {
  height: 8px;
}

.chart-scroll-shell .chart-scroll-pane::-webkit-scrollbar-track {
  background: rgba(125, 168, 218, 0.12);
  border-radius: 999px;
}

.chart-scroll-shell .chart-scroll-pane::-webkit-scrollbar-thumb {
  background: rgba(124, 184, 255, 0.55);
  border-radius: 999px;
}

.heatmap-action-board {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(125, 168, 218, 0.2);
  padding-top: 0.55rem;
}

.heatmap-action-controls {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.heatmap-action-controls select {
  min-width: 300px;
}

.chart-disclaimer {
  margin-top: 0.4rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.72);
  padding: 0.6rem;
}

.chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.chart-card canvas {
  width: 100%;
  display: block;
}

.table-wrap {
  overflow: auto;
  max-height: 56vh;
  max-width: 100%;
  min-width: 0;
}

.table-wrap.small {
  max-height: 34vh;
}

.market-cap-panel {
  margin-top: 0.75rem;
}

.market-cap-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-cap-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(125, 168, 218, 0.22);
  border-radius: 999px;
  background: rgba(8, 20, 34, 0.66);
}

.market-cap-mode-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 0.32rem 0.6rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.market-cap-mode-btn:hover {
  color: #dcecff;
}

.market-cap-mode-btn.active {
  background: rgba(124, 184, 255, 0.16);
  color: #eef6ff;
}

.market-cap-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.6rem;
}

.cap-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 34, 0.7);
  padding: 0.55rem;
  display: grid;
  gap: 0.3rem;
}

.cap-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.cap-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.96rem;
}

.cap-card-change {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.cap-card-change.pos {
  color: var(--success);
}

.cap-card-change.neg {
  color: var(--danger);
}

.cap-card.cap-total {
  grid-column: span 2;
}

.cap-card.cap-tracked {
  grid-column: span 2;
  border-color: rgba(82, 240, 201, 0.24);
  background:
    radial-gradient(circle at top right, rgba(82, 240, 201, 0.08), transparent 36%),
    rgba(8, 20, 34, 0.72);
}

.market-cap-summary-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.whale-wallet-radar {
  margin-top: 0.9rem;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-toggle input {
  accent-color: #7cb8ff;
}

.inline-toggle.compact {
  font-size: 0.74rem;
}

.whale-wallet-cell {
  display: grid;
  gap: 0.2rem;
}

.whale-wallet-cell strong {
  font-size: 0.95rem;
}

.whale-wallet-cell span,
.muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.whale-wallet-net.positive {
  color: #86f6a6;
}

.whale-wallet-net.negative {
  color: #ff8a8a;
}

.market-cap-history-shell {
  margin-top: 0.85rem;
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.6);
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
  overflow: hidden;
}

.market-cap-history-shell.compact-free {
  padding: 0.58rem;
  gap: 0.42rem;
}

.market-cap-history-shell.compact-free .market-cap-history-head {
  gap: 0.45rem;
}

.market-cap-history-shell.compact-free #market-cap-history-meta {
  font-size: 0.74rem;
  line-height: 1.34;
}

.market-cap-history-head {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.market-cap-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.market-cap-controls select {
  min-width: 120px;
}

#market-cap-history-meta {
  display: block;
  max-width: 100%;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#market-cap-chart-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: crosshair;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(124, 184, 255, 0.06), rgba(8, 20, 34, 0.1)),
    rgba(7, 16, 29, 0.86);
  border: 1px solid rgba(125, 168, 218, 0.18);
}

.market-cap-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.market-universe-panel {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.market-universe-panel .table-wrap {
  min-height: clamp(420px, 52vh, 900px);
  max-height: clamp(420px, 66vh, 1040px);
}

.coin-insight-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: start;
}

.coin-insight-scroll {
  min-height: clamp(420px, 52vh, 900px);
  max-height: clamp(420px, 66vh, 1040px);
  overflow: auto;
  padding-right: 0.2rem;
}

.coin-insight-scroll .table-wrap.small {
  max-height: 30vh;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

th,
td {
  text-align: left;
  padding: 0.45rem;
  border-bottom: 1px solid rgba(125, 168, 218, 0.2);
}

.market-universe-panel th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 140ms ease, background 140ms ease;
}

.market-universe-panel th.sortable:hover,
.market-universe-panel th.sortable:focus-visible {
  color: var(--accent);
  background: rgba(82, 240, 201, 0.06);
  outline: none;
}

.market-universe-panel th.sortable::after {
  content: "↕";
  margin-left: 0.38rem;
  color: rgba(142, 166, 199, 0.55);
  font-size: 0.72rem;
}

.market-universe-panel th.sortable.active {
  color: var(--text);
  background: rgba(124, 184, 255, 0.08);
}

.market-universe-panel th.sortable.active[data-sort-direction="asc"]::after {
  content: "↑";
  color: #7cb8ff;
}

.market-universe-panel th.sortable.active[data-sort-direction="desc"]::after {
  content: "↓";
  color: #7cb8ff;
}

tbody tr:hover {
  background: rgba(82, 240, 201, 0.07);
}

tbody tr.active {
  background: rgba(82, 240, 201, 0.16);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.6rem;
}

.insight-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(8, 20, 34, 0.7);
}

.insight-item .label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.insight-item .value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.insight-reasons {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.decision-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(8, 20, 34, 0.7);
  display: grid;
  gap: 0.45rem;
}

.decision-summary .headline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.decision-line {
  margin: 0;
  color: var(--muted);
}

#focus-status {
  margin-top: 0.2rem;
  margin-bottom: 0.25rem;
}

.alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.telegram-connect-card {
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.55);
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.telegram-connect-link {
  display: grid;
  gap: 0.35rem;
}

.telegram-connect-link a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.telegram-connect-link code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--text);
}

.telegram-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.telegram-preferences-form {
  display: grid;
  gap: 0.7rem;
}

.telegram-pref-group {
  border: 1px solid rgba(125, 168, 218, 0.18);
  border-radius: 12px;
  background: rgba(5, 16, 28, 0.48);
  padding: 0.68rem 0.72rem;
  display: grid;
  gap: 0.5rem;
}

.telegram-pref-group h4 {
  margin: 0;
  font-size: 0.84rem;
}

.telegram-preferences-form label {
  display: grid;
  gap: 0.22rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.telegram-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.48rem;
  color: var(--text) !important;
}

.telegram-toggle span {
  color: var(--text);
}

.telegram-toggle input[type="checkbox"] {
  margin: 0;
}

.telegram-pref-actions {
  display: flex;
  justify-content: flex-start;
}

.telegram-summary-card {
  border: 1px solid rgba(125, 168, 218, 0.24);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.55);
  padding: 0.72rem;
  display: grid;
  gap: 0.2rem;
}

.telegram-summary-note {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.app-modal.hidden {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 15, 0.72);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(125, 168, 218, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(5, 13, 24, 0.95));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.4);
  padding: 0.92rem;
}

.app-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.92));
  padding-bottom: 0.65rem;
  margin-bottom: 0.7rem;
}

body.modal-open {
  overflow: hidden;
}

.telegram-preferences-form > button,
.telegram-pref-actions > button {
  justify-self: start;
}

.alerts li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
}

.badge.pos {
  color: var(--ok);
}

.badge.neg {
  color: var(--danger);
}

.opportunity-setup {
  display: grid;
  gap: 0.16rem;
}

.opportunity-why {
  color: var(--muted);
  font-size: 0.68rem;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opportunity-forecast {
  min-width: 140px;
  display: grid;
  gap: 0.12rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.tradeable-tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tradeable-tag.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.52);
}

.tradeable-tag.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.52);
}

.tradeable-tag.watch {
  color: #ffcc8b;
  border-color: rgba(255, 204, 139, 0.55);
}

.tradeable-tag.ignore {
  color: #8ea6c7;
  border-color: rgba(142, 166, 199, 0.42);
}

.gates-inline {
  color: var(--muted);
  font-size: 0.68rem;
}

.decision-gates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.decision-gates .gate {
  border: 1px solid rgba(125, 168, 218, 0.34);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}

.decision-gates .gate.pass {
  color: #86f6a6;
  border-color: rgba(134, 246, 166, 0.48);
}

.decision-gates .gate.fail {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.48);
}

.conviction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  margin-bottom: 0.65rem;
}

.legend-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.conviction-cell {
  min-width: 170px;
  display: grid;
  gap: 0.16rem;
}

.conviction-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.conviction-score {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.conviction-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 168, 218, 0.22);
  overflow: hidden;
}

.conviction-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.conviction-note {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.conviction-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
}

.conviction-pill.weak,
.legend-chip.weak {
  color: #ff9a9a;
}

.conviction-pill.watchlist,
.legend-chip.watchlist {
  color: #ffcc8b;
}

.conviction-pill.tradable,
.legend-chip.tradable {
  color: #7cb8ff;
}

.conviction-pill.high,
.legend-chip.high {
  color: #52f0c9;
}

.conviction-pill.very-high,
.legend-chip.very-high {
  color: #86f6a6;
}

.bias-tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.bias-tag.long {
  color: var(--ok);
}

.bias-tag.short {
  color: #ffcc8b;
}

.bias-tag.neutral {
  color: var(--muted);
}

.message {
  min-height: 1.4rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

.mode-hidden {
  display: none !important;
}

.neg {
  color: var(--danger);
}

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

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

  .market-cap-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .cap-card.cap-total,
  .cap-card.cap-tracked {
    grid-column: span 2;
  }

  .market-cap-history-head {
    align-items: flex-start;
  }

  .market-cap-controls {
    width: 100%;
  }

  .market-cap-controls select {
    flex: 1 1 140px;
  }

  .trading2-shell-top,
  .trading2-summary-grid,
  .trading2-stats-grid,
  .trading2-grid,
  .trading2-mode-stack,
  .trading2-weight-grid,
  .trading2-live-grid,
  .trading2-opportunity-list {
    grid-template-columns: 1fr;
  }

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

  .trading2-mode-card > .trading2-grid,
  .trading2-mode-card > .trading2-validation-card,
  .trading2-mode-card-featured {
    grid-column: auto;
  }

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

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

  .content-stat-grid,
  .content-grid,
  .develop-grid,
  .develop-log-grid,
  .develop-watch-grid,
  .develop-metric-grid,
  .develop-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .premium-landing-grid,
  .premium-landing-split {
    grid-template-columns: 1fr;
  }

  .premium-hero-actions {
    width: 100%;
  }

  .premium-primary-cta,
  .premium-secondary-cta {
    width: 100%;
  }

  .content-hero-actions {
    justify-items: stretch;
  }

  .opportunity-selector-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .app-modal-dialog {
    width: min(100vw - 1rem, 900px);
    max-height: calc(100vh - 1rem);
    margin: 0;
    padding: 0.75rem;
  }

  .trading-workspace,
  .trading-overview-row,
  .trading-grid-top,
  .trading-grid-mid,
  .trading-grid-bottom,
  .trading-opportunity-grid {
    grid-template-columns: 1fr;
  }

  .trading-chart-insight-row {
    grid-template-columns: 1fr;
  }

  .trading-mtf-grid {
    grid-template-columns: 1fr;
  }

  .trading-plan-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .trading-state-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .account-hero-grid,
  .account-grid,
  .account-plan-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .trading-risk-controls {
    grid-template-columns: 1fr;
  }

  .playbook-rules {
    grid-template-columns: 1fr;
  }

  .analysis-grid > .panel {
    min-height: auto;
  }

  .market-universe-panel .table-wrap {
    max-height: 52vh;
  }

  .coin-insight-panel {
    overflow: visible;
  }

  .coin-insight-scroll {
    overflow: visible;
    padding-right: 0;
  }

  .coin-insight-scroll .table-wrap.small {
    max-height: 34vh;
  }
}
