:root {
  --bg: #05080a;
  --bg-soft: #08100d;
  --panel: rgba(8, 18, 14, 0.72);
  --panel-strong: rgba(7, 16, 12, 0.9);
  --panel-border: rgba(0, 255, 159, 0.22);
  --panel-border-strong: rgba(0, 255, 159, 0.34);
  --text: #e3ffef;
  --text-soft: #c6f7da;
  --muted: #7be8b5;
  --accent: #00ff9f;
  --accent-soft: rgba(0, 255, 159, 0.08);
  --danger: #ff6f6f;
  --warn: #ffd666;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 28px rgba(0, 255, 159, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1120px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.76;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.12), transparent 22rem),
    radial-gradient(circle at 8% 18%, rgba(0, 255, 159, 0.08), transparent 16rem),
    linear-gradient(180deg, #040608 0%, #05080a 42%, #020304 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 159, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 159, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 36px 100%;
  opacity: 0.18;
}

.public-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f1fff8;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(0, 255, 159, 0.52);
  outline-offset: 2px;
}

.bg-orbit {
  position: fixed;
  z-index: 0;
  fill: none;
  stroke: rgba(0, 255, 159, 0.045);
  stroke-width: 1.2;
  pointer-events: none;
}

.bg-orbit-a {
  top: 3rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
}

.bg-orbit-b {
  bottom: 3rem;
  left: -3rem;
  width: 15rem;
  height: 15rem;
}

.frame {
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--content-width) + 3rem));
  margin: 0 auto;
  padding: 1.15rem 1.5rem 2.4rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 255, 159, 0.18);
  border-radius: 22px;
  background: rgba(5, 13, 10, 0.72);
  box-shadow: 0 0 24px rgba(0, 255, 159, 0.04);
  backdrop-filter: blur(14px);
}

.topbar-main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 28rem);
}

.brand {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  text-decoration: none;
}

.brand-logo-full {
  display: block;
  width: clamp(126px, 16vw, 184px);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 0 10px rgba(0, 255, 159, 0.15));
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(0, 255, 159, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(0, 255, 159, 0.28);
  background: rgba(0, 255, 159, 0.08);
  color: #f3fff8;
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.nav-link.is-active {
  border-color: rgba(0, 255, 159, 0.34);
  background: rgba(0, 255, 159, 0.11);
  color: var(--accent);
  box-shadow: inset 0 0 14px rgba(0, 255, 159, 0.04), 0 0 14px rgba(0, 255, 159, 0.06);
}

.nav-link-cta {
  border-color: rgba(0, 255, 159, 0.22);
  background: linear-gradient(180deg, rgba(0, 255, 159, 0.14), rgba(0, 255, 159, 0.05));
  color: #effff7;
}

.nav-lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.public-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem;
  border: 1px solid rgba(0, 255, 159, 0.12);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.02);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  min-width: 2.1rem;
  padding: 0 0.46rem;
  border-radius: 999px;
  color: rgba(123, 232, 181, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: #e5fff4;
  border-color: rgba(0, 255, 159, 0.26);
}

.lang-link.is-active {
  color: var(--accent);
  border-color: rgba(0, 255, 159, 0.34);
  background: rgba(0, 255, 159, 0.1);
}

.button-primary-compact {
  min-height: 1.95rem;
  padding: 0.32rem 0.66rem;
  border-color: rgba(0, 255, 159, 0.3);
  background: linear-gradient(180deg, rgba(0, 255, 159, 0.14), rgba(0, 255, 159, 0.04));
  color: #ecfff7;
  box-shadow: 0 0 12px rgba(0, 255, 159, 0.08);
}

.button-primary-compact:hover,
.button-primary-compact:focus-visible,
.button-primary-compact.is-active {
  border-color: rgba(0, 255, 159, 0.5);
  background: linear-gradient(180deg, rgba(0, 255, 159, 0.22), rgba(0, 255, 159, 0.06));
  color: #f7fffb;
}

.user-widget {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(0, 255, 159, 0.16);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.05);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell {
  position: relative;
  min-height: calc(100vh - 8rem);
  padding: 1.4rem 0 2rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.footer-led {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 159, 0.55);
}

.site-footer-public,
.site-footer-admin {
  text-transform: none;
}

.site-footer-admin {
  justify-content: center;
}

.site-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.site-footer-link {
  color: rgba(123, 232, 181, 0.82);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #ddfff0;
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.14);
}

.site-footer-copy {
  color: rgba(123, 232, 181, 0.72);
}

.panel {
  width: min(100%, 920px);
  padding: clamp(1.45rem, 2vw, 2.4rem);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
}

.panel-compact {
  padding: clamp(1rem, 1.5vw, 1.35rem);
}

.cta-panel {
  border-color: rgba(0, 255, 159, 0.14);
  background: rgba(4, 14, 10, 0.6);
}

.cta-panel-compact {
  padding-block: 0.72rem;
  border-color: rgba(0, 255, 159, 0.1);
  background: rgba(4, 12, 9, 0.38);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), 0 0 8px rgba(0, 255, 159, 0.02);
}

.cta-panel-compact .section-head {
  align-items: center;
}

.cta-panel-compact .page-title {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0, 255, 159, 0.2);
}

.page-title {
  margin: 0;
  line-height: 1.04;
}

.page-title-compact {
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  text-shadow: 0 0 10px rgba(0, 255, 159, 0.14);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  color: #eafff4;
}

.tagline-compact {
  margin-top: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.description {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: #c1f4d6;
  line-height: 1.9;
}

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

.hero-grid {
  display: grid;
  gap: 1.7rem;
  grid-template-columns: 1.55fr 0.95fr;
  align-items: stretch;
}

.home-shell {
  gap: 0.8rem;
}

.home-desktop-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.home-desktop-shell > .panel {
  width: 100%;
  max-width: none;
}

.home-pair {
  display: grid;
  gap: 0.8rem;
  align-items: stretch;
}

.home-pair-primary {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
}

.home-pair-content {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.home-pair-actions {
  grid-template-columns: 1fr;
}

.home-section-break {
  width: 100%;
}

.home-section-break-primary {
  min-height: 1rem;
}

.home-section-break-secondary {
  min-height: 0.55rem;
}

.home-panel-main,
.home-panel-side {
  min-width: 0;
  min-height: 100%;
}

.home-insights-panel {
  width: 100%;
  max-width: none;
  padding-top: 0.95rem;
  padding-bottom: 0.9rem;
}

.home-hero-panel {
  padding-top: 1rem;
  padding-bottom: 0.95rem;
}

.home-hero-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
  align-items: start;
}

.home-hero-copy {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.home-hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.82rem;
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(0, 255, 159, 0.12);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.035);
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.home-hero-side {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.home-aside-card {
  padding: 0.68rem 0.78rem;
  border-color: rgba(0, 255, 159, 0.12);
  background: rgba(0, 255, 159, 0.028);
}

.home-aside-note {
  margin-top: 0.35rem;
  line-height: 1.5;
}

.home-hero-market-list {
  display: grid;
  gap: 0.38rem;
}

.home-market-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.08rem 0 0.08rem;
}

.home-market-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(0, 255, 159, 0.12);
  border-radius: 12px;
  background: rgba(0, 255, 159, 0.032);
}

.home-market-line-symbol {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-market-line-price {
  min-width: 0;
  margin-left: auto;
  color: #f2fff8;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.home-market-line-change {
  flex: 0 0 auto;
  min-width: 4.1rem;
  text-align: right;
}

.home-progress-compact {
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem 0.78rem;
}

.home-panel-soft {
  border-color: rgba(0, 255, 159, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 14px rgba(0, 255, 159, 0.04);
}

.home-panel-muted {
  border-color: rgba(0, 255, 159, 0.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 0 10px rgba(0, 255, 159, 0.03);
  background: rgba(6, 14, 11, 0.62);
}

.home-section-head {
  gap: 0.7rem;
}

.hero-side {
  display: grid;
  gap: 1.5rem;
}

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

.hero-stat {
  padding: 0.1rem 0.2rem 0 0;
  border-top: 1px solid rgba(0, 255, 159, 0.12);
}

.progress-metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.progress-metrics-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-equal-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.home-guides-stack {
  gap: 1rem;
}

.home-guide-list {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  color: #d8fff0;
  line-height: 1.56;
  font-size: 0.9rem;
}

.home-guide-list li + li {
  margin-top: 0.28rem;
}

.home-start-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-subscribe-copy {
  margin-top: 0.08rem;
  margin-bottom: 0;
  max-width: 30rem;
  line-height: 1.42;
  font-size: 0.86rem;
}

.home-subscribe-head {
  align-items: center;
  justify-content: space-between;
}

.home-subscribe-copy-wrap {
  max-width: 34rem;
}

.home-subscribe-actions {
  display: flex;
  align-items: center;
}

.home-subscribe-title {
  margin: 0;
  color: #f0fff8;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.08;
}

.home-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: auto;
}

.home-subscribe-rail {
  padding-top: 0.5rem;
  padding-bottom: 0.48rem;
}

.home-subscribe-rail-compact {
  border-color: rgba(0, 255, 159, 0.1);
  background: rgba(5, 12, 9, 0.44);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14), 0 0 8px rgba(0, 255, 159, 0.02);
}

.metric-card {
  padding: 0.86rem;
  border: 1px solid rgba(0, 255, 159, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 159, 0.04);
}

.metric-value {
  margin: 0;
  color: #f2fff8;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
}

.progress-shell {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.market-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.market-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin: 0.3rem 0 0.8rem;
}

.market-card {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 255, 159, 0.16);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.035);
}

.market-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.45;
  white-space: nowrap;
}

.market-symbol {
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

.market-price {
  margin: 0;
  color: #f4fff9;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.market-change {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.market-change.is-up {
  color: #ff8080;
}

.market-change.is-down {
  color: #00ff9f;
}

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

.progress-percent {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 14px;
  border: 1px solid rgba(0, 255, 159, 0.18);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.05);
  box-shadow: inset 0 0 12px rgba(0, 255, 159, 0.03);
}

.progress-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(0, 255, 159, 0.4) 0%, rgba(0, 255, 159, 0.95) 45%, rgba(0, 255, 159, 0.35) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.2);
  animation: progressFlow 2.4s linear infinite;
}

.mini-console {
  padding: 1.2rem;
  border: 1px solid rgba(0, 255, 159, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 159, 0.045);
}

.console-line {
  margin: 0;
  color: #baf7d4;
  font-size: 0.9rem;
  line-height: 1.85;
}

.card {
  padding: 1rem;
  border: 1px solid rgba(0, 255, 159, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 159, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 159, 0.18);
  box-shadow: 0 0 10px rgba(0, 255, 159, 0.05);
}

.signal-row-featured {
  border: 1px solid rgba(0, 255, 159, 0.24);
  background: linear-gradient(180deg, rgba(0, 255, 159, 0.08), rgba(0, 255, 159, 0.03));
  justify-content: flex-start;
  align-content: flex-start;
}

.home-signal-summary-grid {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: 1fr;
  margin-top: 0.65rem;
}

.home-signal-summary-card {
  display: grid;
  gap: 0.28rem;
  min-height: 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(0, 255, 159, 0.12);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.028);
}

.home-signal-link {
  color: inherit;
  text-decoration: none;
}

.home-signal-link:hover,
.home-signal-link:focus-visible {
  border-color: rgba(0, 255, 159, 0.24);
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.home-signal-summary-card.is-marked {
  border-color: rgba(255, 214, 102, 0.22);
  background: rgba(255, 214, 102, 0.05);
}

.home-insights-stack {
  gap: 0;
}

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

.home-insight-grid-single {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.25rem;
}

.home-insight-card {
  display: grid;
  min-height: 100%;
  align-content: start;
  padding: 0.8rem 0.86rem;
}

.home-insight-card-single {
  max-width: none;
  width: 100%;
  min-height: 0;
}

.home-insights-tagline-tight {
  max-width: 30rem;
  font-size: 0.88rem;
}

.home-insight-link {
  color: inherit;
  text-decoration: none;
}

.home-insight-link:hover,
.home-insight-link:focus-visible {
  border-color: rgba(0, 255, 159, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 18px rgba(0, 255, 159, 0.1);
}

.card-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

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

.auth-panel {
  width: min(100%, 480px);
  margin-inline: auto;
}

.auth-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 255, 159, 0.22);
  border-radius: 14px;
  background: rgba(2, 10, 7, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.control-input,
.control-select,
.control-textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 255, 159, 0.2);
  border-radius: 12px;
  background: rgba(2, 10, 7, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.control-input::placeholder,
.control-textarea::placeholder {
  color: rgba(195, 239, 214, 0.46);
}

.control-input:focus,
.control-select:focus,
.control-textarea:focus {
  border-color: rgba(0, 255, 159, 0.46);
  box-shadow: 0 0 0 3px rgba(0, 255, 159, 0.08), 0 0 12px rgba(0, 255, 159, 0.06);
  outline: none;
}

.control-textarea {
  min-height: 140px;
  line-height: 1.6;
  resize: vertical;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(195, 239, 214, 0.46);
}

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(0, 255, 159, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 159, 0.1), 0 0 16px rgba(0, 255, 159, 0.08);
  outline: none;
}

.field-textarea {
  min-height: 300px;
  line-height: 1.7;
  resize: vertical;
}

.button-row,
.toolbar,
.service-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.toolbar-tight {
  gap: 0.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(0, 255, 159, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 255, 159, 0.2), rgba(0, 255, 159, 0.07));
  color: #f3fff8;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 16px rgba(0, 255, 159, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 159, 0.62);
  box-shadow: 0 0 22px rgba(0, 255, 159, 0.18), inset 0 0 14px rgba(0, 255, 159, 0.04);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(0, 255, 159, 0.18);
  background: rgba(0, 255, 159, 0.04);
  color: var(--text-soft);
}

.button-ghost-danger {
  border-color: rgba(255, 113, 113, 0.28);
  background: rgba(255, 113, 113, 0.04);
  color: #ffd7d7;
}

.button-ghost-danger:hover,
.button-ghost-danger:focus-visible {
  border-color: rgba(255, 113, 113, 0.5);
  box-shadow: 0 0 20px rgba(255, 113, 113, 0.14);
}

.button-danger {
  border-color: rgba(255, 113, 113, 0.34);
  background: linear-gradient(180deg, rgba(255, 113, 113, 0.16), rgba(255, 113, 113, 0.06));
}

.button-small {
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  font-size: 0.72rem;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(0, 255, 159, 0.28);
  border-radius: 12px;
  background: rgba(0, 255, 159, 0.08);
  color: #f3fff8;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.control-button:hover,
.control-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 159, 0.5);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.12);
}

.button-link {
  text-decoration: none;
}

.button-disabled,
.button-disabled:hover,
.button-disabled:focus-visible {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.status-line,
.meta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.alert {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 94, 94, 0.28);
  border-radius: 14px;
  background: rgba(61, 11, 11, 0.44);
  color: #ffd3d3;
}

.dashboard-head,
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.section-head-compact {
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.section-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.home-title-stack {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.home-title-stack .eyebrow {
  margin: 0;
}

.home-title-stack .page-title {
  margin: 0;
}

.section-head-actions {
  margin-left: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(0, 255, 159, 0.16);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.035);
  color: var(--text-soft);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(0, 255, 159, 0.3);
  background: rgba(0, 255, 159, 0.08);
  color: #f3fff8;
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.back-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.terminal-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #c2f6d7;
  line-height: 1.7;
}

.inline-form {
  margin: 0;
}

.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.articles-shell > .pagination-panel,
.articles-shell > .cta-panel {
  width: min(100%, 920px);
  margin-inline: auto;
}

.articles-content-panel {
  width: 100%;
  max-width: none;
}

.article-feature-list,
.article-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.page-stack {
  display: grid;
  gap: 1.1rem;
}

.news-list,
.service-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.news-card,
.service-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.65rem;
  border: 1px solid rgba(0, 255, 159, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 255, 159, 0.06);
}

.badge-draft {
  border-color: rgba(255, 214, 102, 0.2);
  color: #ffe69c;
  background: rgba(255, 214, 102, 0.08);
}

.badge-published {
  border-color: rgba(0, 255, 159, 0.22);
}

.badge-approved {
  border-color: rgba(0, 255, 159, 0.22);
  color: var(--accent);
  background: rgba(0, 255, 159, 0.08);
}

.badge-archived {
  border-color: rgba(149, 166, 188, 0.2);
  color: #c7d2e0;
  background: rgba(149, 166, 188, 0.08);
}

.badge-pending {
  border-color: rgba(255, 214, 102, 0.22);
  color: #ffe69c;
  background: rgba(255, 214, 102, 0.08);
}

.badge-marked {
  border-color: rgba(255, 214, 102, 0.28);
  color: #fff2bd;
  background: rgba(255, 214, 102, 0.16);
}

.badge-sent {
  border-color: rgba(0, 255, 159, 0.22);
  color: var(--accent);
  background: rgba(0, 255, 159, 0.08);
}

.badge-failed {
  border-color: rgba(255, 111, 111, 0.22);
  color: #ffc1c1;
  background: rgba(255, 111, 111, 0.08);
}

.badge-rejected {
  border-color: rgba(255, 111, 111, 0.22);
  color: #ffc1c1;
  background: rgba(255, 111, 111, 0.08);
}

.badge-skipped {
  border-color: rgba(149, 166, 188, 0.2);
  color: #c7d2e0;
  background: rgba(149, 166, 188, 0.08);
}

.news-summary {
  margin: 0;
  color: #c8f9db;
  line-height: 1.7;
  font-size: 0.94rem;
}

.news-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-title a:hover,
.news-title a:focus-visible {
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.15);
}

.news-card {
  position: relative;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 159, 0.16);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.06), transparent 46%),
    rgba(4, 14, 10, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 14px rgba(0, 255, 159, 0.06);
}

.news-card:hover {
  border-color: rgba(0, 255, 159, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 18px rgba(0, 255, 159, 0.1);
}

.news-card-link {
  color: inherit;
  text-decoration: none;
}

.news-card-marked {
  border-color: rgba(255, 214, 102, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.08), 0 0 18px rgba(255, 214, 102, 0.08);
}

.news-title-marked {
  font-weight: 800;
  color: #f5ffd8;
}

.news-card-new {
  animation: newsFlash 2.4s ease;
}

.news-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.news-card-body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.article-feature-card,
.article-list-card {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 159, 0.16);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.06), transparent 46%),
    rgba(4, 14, 10, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 14px rgba(0, 255, 159, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-feature-card:hover,
.article-feature-card:focus-visible,
.article-list-card:hover,
.article-list-card:focus-visible {
  border-color: rgba(0, 255, 159, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 18px rgba(0, 255, 159, 0.1);
  transform: translateY(-1px);
}

.article-feature-card {
  padding: 0.88rem 0.96rem 0.94rem;
}

.article-list-card {
  padding: 0.95rem 1rem;
}

.article-feature-meta,
.article-list-meta {
  margin: 0;
}

.article-feature-copy,
.article-list-copy {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.article-feature-title,
.article-list-title {
  margin: 0;
  color: #f4fff8;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-feature-title {
  font-size: clamp(1.28rem, 2.15vw, 1.78rem);
  line-height: 1.32;
}

.article-list-title {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.article-feature-summary,
.article-list-summary {
  margin: 0;
  color: #c8f9db;
  line-height: 1.68;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-feature-summary {
  max-width: 72ch;
  color: #bff3d2;
}

.article-list-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-feature-card-daily {
  padding: 0.84rem 0.92rem 0.92rem;
}

.article-feature-meta-daily,
.article-list-meta-daily {
  gap: 0.5rem;
}

.article-feature-title-daily {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.3;
}

.article-feature-summary-daily {
  max-width: 80ch;
  font-size: 0.92rem;
  color: #b8eed0;
}

.article-list-card-daily {
  padding: 0.84rem 0.92rem;
  gap: 0.52rem;
}

.article-list-title-daily {
  font-size: clamp(1.04rem, 1.7vw, 1.32rem);
  line-height: 1.34;
}

.article-list-summary-daily {
  -webkit-line-clamp: 1;
  font-size: 0.9rem;
  color: #b8eed0;
}

.news-read-link {
  min-height: 30px;
  padding: 0.35rem 0.62rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.signal-row-link {
  color: inherit;
  text-decoration: none;
}

.news-summary-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tools-panel {
  padding: 0.9rem 0.95rem;
}

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

.tools-intro-bar {
  gap: 0.85rem;
}

.tools-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tools-intro-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.035);
  color: #bfead2;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tools-group-desc {
  margin: 0.18rem 0 0;
  max-width: 54ch;
}

.tools-index-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tools-index-card {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.05), transparent 48%),
    rgba(4, 14, 10, 0.54);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tools-index-card:hover,
.tools-index-card:focus-visible {
  border-color: rgba(0, 255, 159, 0.24);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.08);
  transform: translateY(-1px);
}

.tools-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  min-width: 0;
}

.tools-index-category,
.tools-index-host {
  color: #9de8c0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tools-index-host {
  color: #87d8b0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tools-index-title {
  margin: 0;
  color: #f4fff8;
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tools-index-desc {
  margin: 0;
  color: #c9f7dc;
  font-size: 0.9rem;
  line-height: 1.55;
}

.tools-index-desc-muted {
  color: #b3eacb;
}

.tools-group {
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.03);
  overflow: hidden;
}

.tools-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.66rem 0.8rem;
  cursor: pointer;
  list-style: none;
}

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

.tools-group-title {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tools-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.2);
  color: var(--muted);
  background: rgba(0, 255, 159, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
}

.tools-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 255, 159, 0.09);
}

.tools-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid rgba(0, 255, 159, 0.07);
}

.tools-item:first-child {
  border-top: 0;
}

.tools-item-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.tools-item-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
}

.tools-item-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tools-item-host {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  word-break: break-all;
}

.tools-open {
  min-height: 28px;
  padding: 0.3rem 0.58rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.tools-grid-panel {
  padding: 0.9rem 0.95rem 1rem;
}

.tools-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.tools-grid-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.tools-grid-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  min-height: 1.7rem;
  padding: 0 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.2);
  color: var(--muted);
  background: rgba(0, 255, 159, 0.07);
  font-size: 0.74rem;
  font-weight: 700;
}

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

.tools-grid-card {
  display: grid;
  gap: 0.45rem;
  min-height: 168px;
  padding: 0.86rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 159, 0.16);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.08), transparent 48%),
    rgba(4, 14, 10, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 14px rgba(0, 255, 159, 0.05);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tools-grid-card:hover,
.tools-grid-card:focus-visible {
  border-color: rgba(0, 255, 159, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01), 0 0 16px rgba(0, 255, 159, 0.1);
  transform: translateY(-1px);
}

.tools-grid-card-title {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
}

.tools-grid-card-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.42;
}

.tools-grid-card-desc-muted {
  color: rgba(198, 247, 218, 0.58);
}

.tools-grid-card-host {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  word-break: break-all;
}

.article-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 159, 0.14);
}

.article-cover-detail {
  margin: 0.8rem 0 0.9rem;
  max-height: 320px;
}

.news-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.25rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.filter-field {
  flex: 1 1 12rem;
}

.filter-field-wide {
  flex-basis: 20rem;
}

.filter-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  align-items: center;
}

.settings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.settings-tabs-shell {
  display: grid;
  gap: 0.65rem;
}

.settings-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-group {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.74rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  background: rgba(0, 255, 159, 0.03);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.settings-group:hover,
.settings-group:focus-visible {
  border-color: rgba(0, 255, 159, 0.3);
  color: #f3fff8;
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.settings-group.is-active {
  border-color: rgba(0, 255, 159, 0.38);
  color: var(--accent);
  background: rgba(0, 255, 159, 0.09);
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.52rem 0.7rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 14px;
  color: var(--text-soft);
  text-decoration: none;
  background: rgba(0, 255, 159, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
}

.settings-tab:hover,
.settings-tab:focus-visible {
  border-color: rgba(0, 255, 159, 0.3);
  color: #f3fff8;
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.settings-tab.is-active {
  border-color: rgba(0, 255, 159, 0.38);
  color: var(--accent);
  background: rgba(0, 255, 159, 0.08);
}

.settings-panel {
  min-width: 0;
}

.settings-collapse {
  display: grid;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.03);
}

.settings-collapse-summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.code-block {
  margin: 0.8rem 0 0;
  padding: 0.9rem;
  border: 1px solid rgba(0, 255, 159, 0.16);
  border-radius: 12px;
  background: rgba(0, 255, 159, 0.03);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.control-input-inline {
  max-width: 240px;
  min-height: 36px;
  padding: 0.5rem 0.65rem;
}

.control-button-inline {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
}

.settings-textarea {
  min-height: 160px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #00ff9f;
}

.avatar-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
}

.avatar-option {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 12px;
  background: rgba(0, 255, 159, 0.03);
  cursor: pointer;
}

.avatar-option img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(2, 10, 7, 0.72);
  border: 1px solid rgba(0, 255, 159, 0.14);
}

.avatar-option span {
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}

.avatar-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-option:has(.avatar-radio:checked) {
  border-color: rgba(0, 255, 159, 0.42);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.12);
}

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1.05rem 0.9rem;
  border-bottom: 1px solid rgba(0, 255, 159, 0.08);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.table td {
  color: var(--text-soft);
}

.table-title {
  margin: 0;
  font-weight: 700;
  color: #f0fff8;
}

.user-avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 159, 0.22);
  background: rgba(2, 10, 7, 0.72);
  object-fit: contain;
}

.prose {
  color: #d9ffe8;
  line-height: 1.95;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 1.42rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  margin: 0 0 1rem;
}

.prose blockquote {
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 255, 159, 0.18);
  color: #c9f8db;
}

.prose a {
  color: #9bffd9;
}

.prose code {
  padding: 0.08rem 0.32rem;
  border-radius: 6px;
  background: rgba(0, 255, 159, 0.08);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 1rem auto;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 159, 0.16);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.06);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.15rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 14px;
  background: rgba(3, 14, 10, 0.68);
}

.prose thead {
  background: rgba(0, 255, 159, 0.08);
}

.prose th,
.prose td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid rgba(0, 255, 159, 0.1);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

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

.prose th {
  color: #f2fff8;
  font-weight: 700;
}

.muted-block {
  margin: 0;
  color: #bfead2;
  line-height: 1.85;
}

.content-panel {
  display: grid;
  gap: 1rem;
}

.article-detail-panel {
  width: min(100%, 920px);
  margin-inline: auto;
}

.article-detail-head {
  display: grid;
  gap: 0.6rem;
}

.article-detail-meta {
  gap: 0.55rem;
}

.article-detail-summary {
  max-width: 78ch;
  font-size: 1rem;
  color: #d0f7df;
}

.article-detail-footer {
  width: min(100%, 920px);
  margin-inline: auto;
}

.about-grid,
.subscribe-layout {
  display: grid;
  gap: 1rem;
}

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

.about-card {
  min-height: 100%;
  align-content: start;
}

.about-contact-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.subscribe-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.analytics-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

.analytics-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.analytics-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(0, 255, 159, 0.14);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.03);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.analytics-tab:hover,
.analytics-tab:focus-visible {
  border-color: rgba(0, 255, 159, 0.3);
  color: #f3fff8;
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.08);
}

.analytics-tab.is-active {
  border-color: rgba(0, 255, 159, 0.34);
  background: rgba(0, 255, 159, 0.1);
  color: var(--accent);
}

.analytics-kpi {
  min-height: 104px;
}

.analytics-chart-panel {
  display: grid;
  gap: 0.9rem;
}

.analytics-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: baseline;
  justify-content: space-between;
}

.analytics-chart {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(0, 255, 159, 0.15);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.03);
  cursor: crosshair;
}

.analytics-chart.is-dragging {
  cursor: grabbing;
}

.content-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #c8f9db;
  line-height: 1.8;
}

.feedback-note {
  margin: 0;
  color: rgba(198, 247, 218, 0.78);
  line-height: 1.7;
}

.flash-success {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 255, 159, 0.2);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.06);
  color: #dfffee;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.16);
  background: rgba(0, 255, 159, 0.04);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7be8b5;
  box-shadow: 0 0 10px rgba(123, 232, 181, 0.35);
}

.status-running .status-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 159, 0.45);
}

.status-stopped .status-dot {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 111, 111, 0.4);
}

.status-unknown .status-dot,
.status-unsupported .status-dot,
.status-not_installed .status-dot {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(255, 214, 102, 0.35);
}

.terminal-block {
  margin: 0;
  padding: 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 159, 0.12);
  background: rgba(0, 0, 0, 0.26);
  color: #bfffd8;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
}

.signal-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.home-main-grid-single {
  grid-template-columns: 1fr;
}

.home-news-side {
  position: sticky;
  top: 0.8rem;
}

.quick-news-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.quick-news-item {
  padding: 0.62rem 0.7rem 0.58rem;
  border: 1px solid rgba(0, 255, 159, 0.1);
  border-radius: 12px;
  background: rgba(0, 255, 159, 0.024);
}

.quick-news-item-new {
  animation: newsFlash 2.4s ease;
}

.quick-news-item-marked {
  border-color: rgba(255, 214, 102, 0.26);
  background: rgba(255, 214, 102, 0.07);
}

.quick-news-title {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.quick-news-title a {
  color: inherit;
  text-decoration: none;
}

.quick-news-title a:hover,
.quick-news-title a:focus-visible {
  color: #f1fff8;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.78rem 0.85rem 0.62rem;
  border: 1px solid rgba(0, 255, 159, 0.1);
  border-radius: 14px;
  background: rgba(0, 255, 159, 0.026);
}

.home-daily-panel,
.home-subscribe-rail .tagline {
  max-width: 28rem;
}

.home-daily-panel-lower {
  max-width: none;
}

.home-subscribe-rail .button {
  min-height: 40px;
}

.signal-copy {
  flex: 1 1 24rem;
  min-width: 0;
}

.signal-row-featured .signal-copy {
  flex-basis: 100%;
  max-width: none;
}

.signal-row-featured .meta-row {
  margin-bottom: 0.15rem;
}

.signal-row-featured .news-title {
  margin-top: 0;
}

.signal-title {
  margin: 0.45rem 0 0;
  font-size: 1.02rem;
  line-height: 1.38;
}

.signal-title-home {
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-title a {
  color: inherit;
  text-decoration: none;
}

.signal-title a:hover,
.signal-title a:focus-visible {
  color: #f1fff8;
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.16);
}

.pagination-panel {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

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

.pagination-label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@keyframes newsFlash {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 159, 0);
    border-color: rgba(0, 255, 159, 0.16);
  }
  25% {
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.22);
    border-color: rgba(0, 255, 159, 0.38);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 159, 0);
    border-color: rgba(0, 255, 159, 0.16);
  }
}

@keyframes progressFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

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

  .home-pair,
  .home-hero-grid,
  .home-dual-grid,
  .home-balanced-grid,
  .home-insight-grid {
    grid-template-columns: 1fr;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .home-insight-card-single {
    max-width: none;
  }

  .home-news-side {
    position: static;
  }

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

@media (max-width: 720px) {
  .frame {
    padding: 0.9rem 1rem 1.7rem;
  }

  .topbar {
    padding: 0.7rem;
  }

  .topbar-main {
    min-width: 100%;
  }

  .user-widget {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .public-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .shell {
    padding: 1rem 0 1.3rem;
  }

  .panel {
    border-radius: 20px;
  }

  .settings-shell {
    grid-template-columns: 1fr;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .table th,
  .table td {
    padding: 0.8rem 0.65rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  .progress-fill,
  .news-card-new,
  .quick-news-item-new {
    animation: none;
  }
}
