:root {
  --bg: #06111a;
  --surface: rgba(255, 255, 255, 0.05);
  --glass: rgba(8, 20, 31, 0.72);
  --glass-strong: rgba(9, 22, 34, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --ink: #edf7ff;
  --muted: #8ea2b6;
  --heading: #ffffff;
  --accent: #16c6a6;
  --accent-2: #38bdf8;
  --accent-3: #f59e0b;
  --positive: #3ce6b8;
  --negative: #ff7272;
  --warning: #ffb649;
  --glow: rgba(22, 198, 166, 0.26);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --topbar-bg: rgba(6, 17, 26, 0.72);
  --topbar-mobile-bg: rgba(8, 17, 26, 0.95);
  --hero-overlay: linear-gradient(180deg, rgba(6, 17, 26, 0) 0%, rgba(6, 17, 26, 0.72) 100%);
  --hero-grad-start: #ffffff;
  --hero-grad-end: #38bdf8;
  --grain-opacity: 0.045;
  --orb-opacity: 0.42;
  --orb4-opacity: 0.3;
  --theme-wave-primary: rgba(22, 198, 166, 0.84);
  --theme-wave-secondary: rgba(56, 189, 248, 0.48);
  --theme-wave-glow: rgba(6, 17, 26, 0.96);
  --theme-wave-shadow: rgba(22, 198, 166, 0.2);
  --page-gutter: clamp(18px, 2.4vw, 36px);
}

body.light-mode {
  --bg: #fff6eb;
  --surface: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 251, 244, 0.9);
  --glass-strong: rgba(255, 248, 238, 0.96);
  --glass-border: rgba(168, 104, 34, 0.18);
  --ink: #372115;
  --muted: #8c6140;
  --heading: #3e2312;
  --accent: #158f7d;
  --accent-2: #f08d21;
  --accent-3: #d4522a;
  --positive: #1b8f63;
  --negative: #c84d4d;
  --warning: #b9720d;
  --glow: rgba(21, 143, 125, 0.18);
  --shadow: 0 26px 58px rgba(190, 122, 62, 0.16);
  --topbar-bg: rgba(255, 247, 236, 0.84);
  --topbar-mobile-bg: rgba(255, 247, 236, 0.98);
  --hero-overlay: linear-gradient(180deg, rgba(255, 246, 235, 0) 0%, rgba(255, 240, 221, 0.76) 100%);
  --hero-grad-start: #194b44;
  --hero-grad-end: #ef8b1a;
  --grain-opacity: 0.02;
  --orb-opacity: 0.34;
  --orb4-opacity: 0.24;
  --theme-wave-primary: rgba(240, 141, 33, 0.76);
  --theme-wave-secondary: rgba(21, 143, 125, 0.42);
  --theme-wave-glow: rgba(255, 250, 245, 0.96);
  --theme-wave-shadow: rgba(240, 141, 33, 0.18);
  background:
    radial-gradient(circle at 12% 14%, rgba(240, 141, 33, 0.22), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(21, 143, 125, 0.18), transparent 18%),
    radial-gradient(circle at 52% 78%, rgba(212, 82, 42, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #fff0dc 44%, #ffdcb5 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: -55vmax;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-72%, -72%) rotate(-18deg) scale(0.88);
  transform-origin: top left;
  background:
    radial-gradient(circle at 16% 16%, var(--theme-wave-glow) 0%, rgba(255, 255, 255, 0) 12%),
    linear-gradient(
      135deg,
      transparent 38%,
      color-mix(in srgb, var(--theme-wave-primary) 18%, transparent) 44%,
      color-mix(in srgb, var(--theme-wave-primary) 88%, white 12%) 48%,
      var(--theme-wave-glow) 51%,
      var(--theme-wave-secondary) 55%,
      color-mix(in srgb, var(--theme-wave-shadow) 34%, transparent) 60%,
      transparent 67%
    );
  filter: blur(16px);
  will-change: transform, opacity, filter;
}

body.theme-transition-active::after {
  animation: theme-wave-sweep 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes theme-wave-sweep {
  0% {
    opacity: 0;
    transform: translate(-78%, -78%) rotate(-18deg) scale(0.82);
    filter: blur(18px);
  }

  14% {
    opacity: 0.98;
  }

  50% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translate(40%, 40%) rotate(-18deg) scale(1.04);
    filter: blur(8px);
  }
}

body.theme-transitioning,
body.theme-transitioning :is(
  .topbar,
  .brand-dot,
  .main-nav a,
  .menu-toggle,
  .menu-toggle span,
  .hero-banner,
  .hero-label,
  .hero-title,
  .hero-sub,
  .hero-terminal,
  .sheet,
  .panel-card,
  .stat-card,
  .button,
  .switch .slider,
  .switch .sun-moon,
  .radiant .orb,
  .ticker-pill,
  .module-card,
  .cta-banner
) {
  transition:
    background-color 760ms cubic-bezier(0.22, 1, 0.36, 1),
    background-image 760ms cubic-bezier(0.22, 1, 0.36, 1),
    color 760ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 760ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 760ms cubic-bezier(0.22, 1, 0.36, 1),
    fill 760ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after {
    display: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

ul {
  list-style: none;
}

button,
input {
  font: inherit;
}

.radiant {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.radiant .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: var(--orb-opacity);
  will-change: transform;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(22, 198, 166, 0.9) 0%, transparent 68%);
  animation: orbit1 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 520px;
  height: 520px;
  right: -8%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.86) 0%, transparent 68%);
  animation: orbit2 18s ease-in-out infinite alternate;
}

.orb-3 {
  width: 420px;
  height: 420px;
  top: 38%;
  left: 45%;
  background: radial-gradient(circle, rgba(28, 108, 255, 0.56) 0%, transparent 70%);
  animation: orbit3 26s ease-in-out infinite alternate;
}

.orb-4 {
  width: 360px;
  height: 360px;
  top: 12%;
  right: 24%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.8) 0%, transparent 70%);
  animation: orbit4 20s ease-in-out infinite alternate;
  opacity: var(--orb4-opacity);
}

@keyframes orbit1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(110px, 84px) scale(1.16); }
}

@keyframes orbit2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-96px, -52px) scale(1.18); }
}

@keyframes orbit3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-78px, 48px) scale(0.9); }
}

@keyframes orbit4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(64px, -64px) scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: var(--grain-opacity);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

.page-enter {
  animation: page-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--page-gutter);
  background: var(--topbar-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 18px var(--glow);
}

.brand h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--heading);
  border-color: var(--glass-border);
  background: var(--surface);
  outline: none;
}

.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  box-shadow: 0 0 22px var(--glow);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-switch-wrap {
  display: inline-flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch .theme-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #2196f3;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.switch .sun-moon {
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #ffd04f;
  transition: 0.4s;
}

.switch .theme-input:checked + .slider {
  background-color: #08161d;
}

.switch .theme-input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.switch .theme-input:checked + .slider .sun-moon {
  transform: translateX(26px);
  background-color: white;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

.switch .theme-input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.switch .slider.round {
  border-radius: 34px;
}

.switch .slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  position: absolute;
  left: 10px;
  top: 3px;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  position: absolute;
  left: 2px;
  top: 10px;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1,
#light-ray-2,
#light-ray-3 {
  position: absolute;
  fill: white;
  opacity: 0.1;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  width: 43px;
  height: 43px;
  z-index: -1;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  width: 55px;
  height: 55px;
  z-index: -1;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  width: 60px;
  height: 60px;
  z-index: -1;
}

.cloud-light,
.cloud-dark {
  position: absolute;
  animation: cloud-move 6s infinite;
}

.cloud-light {
  fill: #eee;
}

.cloud-dark {
  fill: #ccc;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% { transform: translateX(0); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  position: absolute;
  fill: white;
  transition: 0.4s;
  animation: star-twinkle 2s infinite;
}

.switch .theme-input:checked + .slider .stars {
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

.hero-banner {
  position: relative;
  padding: clamp(52px, 8vw, 102px) var(--page-gutter) clamp(36px, 6vw, 66px);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-inner,
.content {
  width: auto;
  max-width: none;
  margin: 0 var(--page-gutter);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 430px);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-2);
  background: rgba(56, 189, 248, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-slide 0.6s 0.1s both;
}

.hero-title {
  margin-top: 20px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--accent) 45%, var(--hero-grad-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-slide 0.6s 0.2s both;
}

.hero-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.7;
  animation: fade-slide 0.6s 0.34s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  animation: fade-slide 0.6s 0.42s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 18px 32px rgba(22, 198, 166, 0.26);
}

.button-secondary {
  border-color: var(--glass-border);
  background: var(--surface);
  color: var(--heading);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  animation: fade-slide 0.6s 0.5s both;
}

.hero-tags li {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-terminal {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: terminal-in 0.92s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.terminal-title,
.card-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-pill,
.badge,
.module-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill,
.badge {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
}

.badge-positive {
  background: rgba(60, 230, 184, 0.14);
  color: var(--positive);
  border-color: rgba(60, 230, 184, 0.22);
}

.badge-warning {
  background: rgba(255, 182, 73, 0.14);
  color: var(--warning);
  border-color: rgba(255, 182, 73, 0.22);
}

.terminal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-tile,
.stat-card,
.status-box,
.position-card,
.rule-card,
.module-card {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.metric-tile {
  padding: 14px;
}

.metric-label,
.metric-foot,
.stat-label {
  display: block;
}

.metric-label,
.metric-foot,
.stat-card p,
.status-box span,
.signal-item span,
.risk-copy span,
.journal-block span,
.module-card p,
.watchlist-table,
.ghost-link,
.table-note p,
.queue-list span,
.position-meta span {
  color: var(--muted);
}

.metric-tile strong,
.stat-card strong,
.price-cluster strong,
.status-box strong,
.position-head strong,
.journal-entry h4,
.module-card h3,
.card-head h3,
.chart-head h4,
.signal-card h4 {
  color: var(--heading);
}

.metric-tile strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.18rem;
}

.metric-foot {
  font-size: 0.82rem;
}

.mini-chart {
  margin-top: 18px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 64px
    ),
    repeating-linear-gradient(
      to top,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 48px
    );
}

.mini-chart svg,
.chart-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-bar-row span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.metric-bar,
.risk-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-bar span,
.risk-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.metric-bar-alt span {
  background: linear-gradient(90deg, var(--accent-3) 0%, var(--accent-2) 100%);
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-in {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.content {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

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

.stat-card {
  padding: 18px 18px 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.5rem;
}

.sheet {
  padding: clamp(22px, 3vw, 34px);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sheet-emphasis {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(22, 198, 166, 0.04) 100%),
    var(--glass);
}

.sheet-roadmap {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.03) 100%),
    var(--glass);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--heading);
  margin: 10px 0 10px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-card {
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.card-head h3,
.chart-head h4,
.signal-card h4,
.cta-banner h3 {
  font-size: 1.18rem;
  margin-top: 6px;
}

.card-head-compact h3,
.card-head-compact h4 {
  font-size: 1.08rem;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}

.chart-card,
.signal-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

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

.price-cluster {
  text-align: right;
}

.price-cluster strong {
  display: block;
  font-size: 1.42rem;
}

.price-cluster span {
  color: var(--positive);
  font-weight: 600;
}

.chart-stage {
  min-height: 260px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 18%, rgba(56, 189, 248, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 78px
    ),
    repeating-linear-gradient(
      to top,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 52px
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.timeframe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeframe-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

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

.signal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-item strong {
  color: var(--heading);
  font-size: 0.95rem;
}

.ticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.ticker-pill strong {
  color: var(--positive);
}

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

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

.check-list li,
.queue-list li {
  position: relative;
  padding-left: 20px;
  color: var(--heading);
  line-height: 1.6;
}

.check-list li::before,
.queue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 12px var(--glow);
}

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

.status-box {
  padding: 14px;
}

.status-box strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.watchlist-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.watchlist-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.watchlist-table th,
.watchlist-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.watchlist-table th {
  color: var(--heading);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.watchlist-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.signal-bias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.signal-bias.positive {
  color: var(--positive);
  background: rgba(60, 230, 184, 0.12);
}

.signal-bias.negative {
  color: var(--negative);
  background: rgba(255, 114, 114, 0.12);
}

.signal-bias.neutral {
  color: var(--warning);
  background: rgba(255, 182, 73, 0.14);
}

.table-note {
  align-self: start;
}

.table-note p {
  margin-top: 18px;
  line-height: 1.7;
}

.position-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr) minmax(250px, 0.85fr);
  gap: 16px;
}

.position-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.position-card {
  padding: 16px;
}

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

.position-head span {
  color: var(--accent-2);
  font-weight: 600;
}

.position-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.position-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.queue-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.queue-list strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
}

.risk-bars {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.risk-row {
  display: grid;
  gap: 10px;
}

.risk-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-copy strong {
  color: var(--heading);
}

.risk-track-cyan span {
  background: linear-gradient(90deg, var(--accent-2) 0%, #7dd3fc 100%);
}

.risk-track-amber span {
  background: linear-gradient(90deg, var(--accent-3) 0%, #facc15 100%);
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.ghost-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  color: var(--heading);
  outline: none;
}

.journal-entry {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.journal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-2);
}

.journal-entry h4 {
  margin: 16px 0 10px;
  font-size: 1.3rem;
}

.journal-entry p {
  color: var(--muted);
  line-height: 1.7;
}

.journal-grid,
.rules-grid,
.roadmap-grid {
  display: grid;
  gap: 14px;
}

.journal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.journal-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.journal-block strong {
  display: block;
  margin-top: 8px;
  color: var(--heading);
}

.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.rule-card {
  padding: 18px;
}

.rule-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
}

.rule-card p {
  margin-top: 14px;
  color: var(--heading);
  line-height: 1.65;
}

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

.module-card {
  padding: 20px;
}

.module-state {
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.module-state.next {
  color: var(--accent-2);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.18);
}

.module-state.build {
  color: var(--warning);
  background: rgba(255, 182, 73, 0.12);
  border-color: rgba(255, 182, 73, 0.18);
}

.module-state.later {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.module-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.module-card p {
  line-height: 1.7;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cta-banner p {
  color: var(--muted);
  line-height: 1.7;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 18px 32px rgba(22, 198, 166, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .overview-layout,
  .watchlist-shell,
  .position-grid,
  .journal-layout,
  .roadmap-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .position-grid > :first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    width: 100%;
    display: none;
    padding-top: 4px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--topbar-mobile-bg);
  }

  .hero-grid,
  .overview-layout,
  .board-grid,
  .watchlist-shell,
  .position-grid,
  .journal-layout,
  .stats-strip,
  .roadmap-grid,
  .metric-bar-row {
    grid-template-columns: 1fr;
  }

  .terminal-metrics,
  .status-matrix,
  .journal-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero-banner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content,
  .hero-inner {
    width: min(100%, calc(100vw - 28px));
  }

  .sheet,
  .panel-card,
  .hero-terminal {
    border-radius: 20px;
  }

  .terminal-metrics,
  .status-matrix,
  .journal-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .watchlist-table th,
  .watchlist-table td {
    padding: 14px 16px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

.button-compact {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

.session-pill strong {
  color: var(--heading);
  font-size: 0.92rem;
}

.session-pill-label,
.session-pill-role,
.watchlist-runtime,
.watchlist-updated-cell span,
.watchlist-readonly p,
.auth-copy,
.auth-benefits li,
.auth-note p,
.auth-empty-state p,
.auth-field span {
  color: var(--muted);
}

.session-pill-label,
.session-pill-role {
  font-size: 0.78rem;
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.watchlist-meta-cluster {
  text-align: right;
}

.watchlist-runtime {
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.6;
}

.watchlist-shell-live {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  align-items: start;
}

.watchlist-main {
  padding: 20px;
}

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

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

.watchlist-feedback {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.watchlist-feedback.is-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.18);
  color: var(--accent-2);
}

.watchlist-feedback.is-success,
.auth-feedback.is-success {
  background: rgba(60, 230, 184, 0.12);
  border-color: rgba(60, 230, 184, 0.2);
  color: var(--positive);
}

.watchlist-feedback.is-error,
.auth-feedback.is-error {
  background: rgba(255, 114, 114, 0.12);
  border-color: rgba(255, 114, 114, 0.2);
  color: var(--negative);
}

.watchlist-table-live th:last-child,
.watchlist-table-live td:last-child {
  width: 1%;
  white-space: nowrap;
}

.watchlist-updated-cell strong {
  display: block;
  color: var(--heading);
  margin-bottom: 4px;
}

.watchlist-row-actions {
  display: inline-flex;
  gap: 8px;
}

.table-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.table-action:hover,
.table-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.32);
  outline: none;
}

.table-action.is-danger {
  color: var(--negative);
}

.watchlist-empty {
  text-align: center;
  color: var(--muted);
}

.watchlist-editor-card {
  display: grid;
  gap: 16px;
}

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

.watchlist-field {
  display: grid;
  gap: 8px;
}

.watchlist-field span,
.auth-field span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.watchlist-field input,
.watchlist-field select,
.watchlist-field textarea,
.auth-field input {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
  padding: 13px 14px;
}

.watchlist-field textarea {
  resize: vertical;
  min-height: 112px;
}

.watchlist-field input:focus,
.watchlist-field select:focus,
.watchlist-field textarea:focus,
.auth-field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.watchlist-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watchlist-readonly {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}

.watchlist-side-note {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.sheet-team {
  background:
    linear-gradient(180deg, rgba(60, 230, 184, 0.08) 0%, rgba(56, 189, 248, 0.04) 100%),
    var(--glass);
}

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

.admin-users-main,
.admin-users-side {
  padding: 20px;
}

.admin-users-main-stack,
.admin-users-side-stack,
.admin-users-main,
.admin-audit-main,
.admin-users-side,
.admin-security-card {
  min-width: 0;
}

.admin-users-table th:last-child,
.admin-users-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.admin-user-cell strong {
  display: block;
  color: var(--heading);
  margin-bottom: 4px;
}

.admin-user-cell span {
  color: var(--muted);
}

.admin-security-note {
  display: grid;
  gap: 10px;
}

.admin-security-note p:last-child {
  margin-top: 0;
}

.watchlist-side-note p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-page {
  min-height: 100vh;
}

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

.auth-shell {
  width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 84px) 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.auth-card {
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card-primary {
  padding: clamp(26px, 4vw, 36px);
}

.auth-card-secondary {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.auth-title {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--heading);
}

.auth-copy {
  max-width: 560px;
  line-height: 1.75;
}

.auth-feedback,
.auth-empty-state {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.auth-empty-state h3,
.auth-card-secondary h3 {
  color: var(--heading);
  margin-bottom: 10px;
}

.auth-command {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--heading);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  word-break: break-word;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-actions .button {
  flex: 1 1 220px;
}

.auth-actions-stacked {
  margin-top: 8px;
}

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

.auth-submit {
  margin-top: 8px;
}

.auth-benefits {
  display: grid;
  gap: 12px;
}

.auth-benefits li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.auth-note {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.admin-users-main-stack,
.admin-users-side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-audit-main,
.admin-security-card {
  padding: 20px;
}

.admin-protection-cell {
  display: grid;
  gap: 8px;
}

.protection-note,
.audit-empty {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-security-status {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.security-secret-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.security-secret-block .auth-command {
  margin-top: 0;
}

.admin-audit-table {
  min-width: 860px;
}

.admin-audit-table th,
.admin-audit-table td {
  vertical-align: top;
}

.audit-action strong,
.audit-actor strong {
  display: block;
  color: var(--heading);
  margin-bottom: 4px;
}

.audit-action span,
.audit-actor span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.audit-actor {
  display: grid;
  gap: 2px;
}

.audit-context {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.button:disabled,
.table-action:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.button:disabled:focus-visible,
.table-action:disabled:hover,
.table-action:disabled:focus-visible {
  transform: none;
}

.watchlist-field input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

@media (max-width: 1120px) {
  .auth-shell,
  .watchlist-shell-live {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);

  .section-heading-split {
    align-items: flex-start;
  .hero-inner,
  .auth-shell {
    width: auto;
    margin-left: var(--page-gutter);
    margin-right: var(--page-gutter);

  .watchlist-meta-cluster {
    text-align: left;
  }
}

@media (max-width: 1320px) {
  .admin-users-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .user-panel {
    width: 100%;
    justify-content: flex-start;
    order: 3;
    flex-wrap: wrap;
  }

  .session-pill {
    width: 100%;
    justify-content: space-between;
  }

  .watchlist-toolbar,
  .watchlist-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .watchlist-toolbar-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
  }

  .auth-actions {
    display: grid;
  }

  .session-pill {
    gap: 8px;
    align-items: flex-start;
    border-radius: 20px;
    padding: 12px 14px;
  }

  .watchlist-row-actions {
    flex-direction: column;
  }

  .watchlist-table-live th,
  .watchlist-table-live td {
    white-space: nowrap;
  }
}