:root {
  --rwf-bg: #05070b;
  --rwf-card: #0d1320;
  --rwf-elevated: #111827;
  --rwf-border: #1f2937;
  --rwf-text: #f8fafc;
  --rwf-secondary: #94a3b8;
  --rwf-accent: #38bdf8;
  --rwf-bearish: #f87171;
  --rwf-range: #fbbf24;
  --rwf-bullish: #34d399;
  --rwf-no-trade: #cbd5e1;
}

html {
  scroll-behavior: smooth;
}

[data-rwf-public-shell],
.rwf-public-shell,
.rwf-landing,
.rwf-dashboard {
  color: var(--rwf-text);
  background: var(--rwf-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rwf-public-shell {
  position: relative;
  z-index: 1;
  display: block;
}

[data-rwf-public-shell] {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  background: var(--rwf-bg);
  color: var(--rwf-text);
  isolation: isolate;
  overflow-x: clip;
}

.rwf-landing * ,
.rwf-dashboard * {
  box-sizing: border-box;
}

.rwf-landing {
  min-height: 100vh;
  overflow: hidden;
}

.entry-content > [data-rwf-public-shell],
.inside-article [data-rwf-public-shell],
.site-main [data-rwf-public-shell],
.content-area [data-rwf-public-shell] {
  margin-top: 0;
  margin-bottom: 0;
}

[data-rwf-public-shell] * ,
[data-rwf-public-shell] *::before,
[data-rwf-public-shell] *::after {
  box-sizing: border-box;
}

.rwf-landing > p:empty,
.rwf-landing .rwf-topbar p:empty,
.rwf-landing .rwf-topbar br,
.rwf-landing .rwf-nav br,
.rwf-landing .rwf-badges br,
.rwf-landing .rwf-actions br,
.rwf-landing .rwf-language-switcher br,
.rwf-landing .rwf-footer__nav br {
  display: none;
}

.rwf-landing > p {
  margin: 0;
}

body.rwf-public-shell-route,
body:has([data-rwf-public-shell]) {
  background: var(--rwf-bg);
}

body.rwf-public-shell-route .site-header,
body.rwf-public-shell-route .main-navigation,
body.rwf-public-shell-route .site-footer,
body.rwf-public-shell-route .page-header,
body.rwf-public-shell-route .entry-header,
body.rwf-public-shell-route .widget-area,
body.rwf-public-shell-route .is-right-sidebar,
body.rwf-public-shell-route .inside-right-sidebar,
body:has([data-rwf-public-shell]) .site-header,
body:has([data-rwf-public-shell]) .main-navigation,
body:has([data-rwf-public-shell]) .site-footer,
body:has([data-rwf-public-shell]) .page-header,
body:has([data-rwf-public-shell]) .entry-header,
body:has([data-rwf-public-shell]) .widget-area,
body:has([data-rwf-public-shell]) .is-right-sidebar,
body:has([data-rwf-public-shell]) .inside-right-sidebar {
  display: none !important;
}

body.rwf-public-shell-route .site-content,
body.rwf-public-shell-route .content-area,
body.rwf-public-shell-route .site-main,
body.rwf-public-shell-route .inside-article,
body.rwf-public-shell-route .entry-content,
body:has([data-rwf-public-shell]) .site-content,
body:has([data-rwf-public-shell]) .content-area,
body:has([data-rwf-public-shell]) .site-main,
body:has([data-rwf-public-shell]) .inside-article,
body:has([data-rwf-public-shell]) .entry-content {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rwf-public-shell-route .inside-article,
body:has([data-rwf-public-shell]) .inside-article {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.rwf-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.rwf-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(14px);
}

.rwf-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: clamp(24px, 4vw, 56px);
}

.rwf-brand {
  color: var(--rwf-text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  transition: color 140ms ease, opacity 140ms ease;
}

.rwf-brand:hover,
.rwf-brand:active {
  color: #e2e8f0;
  opacity: 0.86;
  text-decoration: none;
}

.rwf-brand:focus-visible {
  color: var(--rwf-text);
  text-decoration: none;
  opacity: 1;
}

.rwf-brand__label {
  display: none;
  color: var(--rwf-secondary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}

.rwf-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  color: var(--rwf-secondary);
  font-size: 13px;
}

.rwf-nav a {
  color: inherit;
  text-decoration: none;
  outline-offset: 5px;
}

.rwf-nav a:hover {
  color: var(--rwf-text);
}

.rwf-nav a:focus-visible,
.rwf-brand:focus-visible,
.rwf-button:focus-visible {
  outline: 2px solid var(--rwf-accent);
  outline-offset: 4px;
}

.rwf-topbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rwf-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.rwf-public-shell .rwf-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-right: clamp(8px, 1.8vw, 24px);
}

.rwf-public-shell .rwf-brand__label {
  display: block;
}

.rwf-public-shell .rwf-language-switcher--global {
  min-height: 36px;
  background: rgba(15, 23, 42, 0.88);
}

.rwf-public-shell--alias {
  --rwf-alias-outline: rgba(148, 163, 184, 0.16);
}

#top,
#dashboard,
#signals,
#risk,
#method,
#read-only {
  scroll-margin-top: 88px;
}

.rwf-hero {
  padding: clamp(58px, 8vw, 104px) 0 58px;
  border-bottom: 1px solid var(--rwf-border);
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.08), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(52, 211, 153, 0.08), transparent 28%);
}

.rwf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.rwf-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--rwf-text);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.rwf-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--rwf-secondary);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.rwf-badges,
.rwf-actions,
.rwf-state-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rwf-badges {
  margin-top: 30px;
}

.rwf-actions {
  margin-top: 34px;
}

.rwf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-text);
  background: var(--rwf-elevated);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rwf-button--primary {
  border-color: rgba(56, 189, 248, 0.8);
  color: #f8fafc;
  background: #075985;
  box-shadow: 0 10px 28px rgba(7, 89, 133, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rwf-button:hover {
  border-color: rgba(148, 163, 184, 0.56);
  color: #f8fafc;
  background: #162235;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rwf-button:active {
  color: #f8fafc;
  background: #0f172a;
  border-color: rgba(56, 189, 248, 0.42);
  transform: translateY(1px);
}

.rwf-button--primary:hover {
  color: #02111f;
  border-color: rgba(125, 211, 252, 0.94);
  background: #7dd3fc;
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rwf-button--primary:active {
  color: #02111f;
  background: #38bdf8;
  border-color: rgba(56, 189, 248, 0.96);
}

.rwf-button:focus-visible {
  color: #f8fafc;
  border-color: rgba(125, 211, 252, 0.95);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.rwf-button--primary:focus-visible {
  color: #f8fafc;
  background: #075985;
}

.rwf-section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--rwf-border);
}

.rwf-section--dashboard {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(5, 7, 11, 0));
}

.rwf-section h2 {
  margin: 0;
  color: var(--rwf-text);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.rwf-section__intro {
  max-width: 780px;
  margin: 14px 0 34px;
  color: var(--rwf-secondary);
  font-size: 17px;
  line-height: 1.65;
}

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

.rwf-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rwf-info-card,
.rwf-control-panel,
.rwf-hero-panel {
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
  background: var(--rwf-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.rwf-info-card {
  padding: 22px;
}

.rwf-info-card h3 {
  margin: 0 0 10px;
  color: var(--rwf-text);
  font-size: 17px;
}

.rwf-info-card p {
  margin: 0;
  color: var(--rwf-secondary);
  line-height: 1.6;
}

.rwf-section--super-radar {
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.22), rgba(15, 23, 42, 0.42));
}

.rwf-super-radar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rwf-super-radar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rwf-super-radar-card__summary {
  min-height: 3.2em;
}

.rwf-super-radar-card__states {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwf-super-radar-card__states li {
  position: relative;
  padding-left: 18px;
  color: var(--rwf-text);
  font-size: 14px;
  line-height: 1.45;
}

.rwf-super-radar-card__states li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.82);
}

.rwf-super-radar-card__boundary,
.rwf-super-radar-note {
  color: var(--rwf-secondary);
  font-size: 13px;
}

.rwf-super-radar-card__boundary {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rwf-border);
}

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

.rwf-super-radar-boundary .rwf-panel-line {
  min-height: 86px;
}

.rwf-super-radar-note {
  max-width: 720px;
  margin: 16px 0 0;
  line-height: 1.55;
}

.rwf-hero-panel,
.rwf-control-panel {
  padding: 24px;
}

.rwf-hero-panel h2,
.rwf-control-panel h3 {
  margin: 0 0 20px;
  color: var(--rwf-text);
}

.rwf-panel-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rwf-border);
  color: var(--rwf-secondary);
}

.rwf-panel-line strong {
  color: var(--rwf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: right;
}

.rwf-checklist,
.rwf-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwf-checklist li,
.rwf-steps li {
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--rwf-card);
  color: var(--rwf-text);
}

.rwf-footer-note {
  color: var(--rwf-secondary);
  line-height: 1.7;
}

.rwf-footer {
  border-top: 1px solid var(--rwf-border);
  background: #080d14;
  padding: 38px 0;
}

.rwf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.rwf-footer h2 {
  margin: 0;
  color: var(--rwf-text);
  font-size: 24px;
}

.rwf-footer__baseline,
.rwf-footer__copyright {
  color: var(--rwf-secondary);
}

.rwf-footer__baseline {
  margin: 8px 0 0;
}

.rwf-footer-note {
  max-width: 680px;
  margin: 12px 0 0;
}

.rwf-footer__copyright {
  margin: 14px 0 0;
  font-size: 12px;
}

.rwf-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  align-items: center;
  max-width: 520px;
}

.rwf-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--rwf-secondary);
  font-size: 13px;
  text-decoration: none;
  outline-offset: 5px;
}

.rwf-footer__nav a:hover,
.rwf-footer__nav a:focus-visible {
  color: var(--rwf-text);
}

.rwf-footer__nav a:focus-visible {
  outline: 2px solid var(--rwf-accent);
}

.rwf-pill,
.rwf-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-secondary);
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.rwf-icon {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  color: currentColor;
  flex-shrink: 0;
  vertical-align: -0.12em;
}

.rwf-icon--status {
  width: 0.92em;
  height: 0.92em;
  margin-right: 6px;
}

.rwf-icon--delta {
  width: 0.9em;
  height: 0.9em;
  margin-right: 4px;
  opacity: 0.72;
}

.rwf-icon--info {
  width: 0.86em;
  height: 0.86em;
  margin-left: 7px;
  opacity: 0.74;
}

.rwf-pill--ok {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--rwf-bullish);
}

.rwf-pill--lock {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--rwf-accent);
}

.rwf-pill--market {
  border-color: rgba(56, 189, 248, 0.52);
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.46);
}

.rwf-pill--warn {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--rwf-range);
}

.rwf-pill--error {
  border-color: rgba(248, 113, 113, 0.5);
  color: var(--rwf-bearish);
}

.rwf-dashboard {
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.05), transparent 36%),
    var(--rwf-card);
}

.rwf-dashboard__header,
.rwf-status-strip,
.rwf-change-row,
.rwf-row,
.rwf-risk-flags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rwf-dashboard__header {
  margin-bottom: 22px;
}

.rwf-dashboard__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.rwf-language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 6px;
  background: rgba(8, 47, 73, 0.22);
  color: var(--rwf-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.rwf-language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
  color: inherit;
  text-decoration: none;
  outline-offset: 3px;
}

.rwf-language-switcher__link:hover,
.rwf-language-switcher__link:focus-visible,
.rwf-language-switcher__link--current {
  color: var(--rwf-text);
  text-decoration: none;
}

.rwf-language-switcher__link:focus-visible {
  outline: 2px solid var(--rwf-accent);
}

.rwf-language-switcher__link--current {
  background: rgba(56, 189, 248, 0.14);
  border-radius: 4px;
}

.rwf-language-switcher__separator {
  color: rgba(148, 163, 184, 0.7);
  padding: 0 2px;
}

.rwf-eyebrow,
.rwf-label {
  display: block;
  margin: 0 0 8px;
  color: var(--rwf-secondary);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rwf-dashboard h2,
.rwf-dashboard h3 {
  margin: 0;
  color: var(--rwf-text);
}

.rwf-dashboard__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr 1fr;
  gap: 14px;
}

.rwf-dashboard__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.8fr));
  gap: 14px;
  margin: 0 0 16px;
}

.rwf-reading-card {
  min-height: 150px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(8, 13, 22, 0.82);
}

.rwf-reading-card--primary {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.1), transparent 42%),
    rgba(8, 13, 22, 0.9);
}

.rwf-reading-card--primary p {
  max-width: 38rem;
}

.rwf-reading-card strong {
  display: block;
  margin-top: 8px;
  color: var(--rwf-text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.rwf-reading-card strong.rwf-regime-badge,
.rwf-state-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbe7f4;
  font-weight: 820;
  letter-spacing: 0;
  white-space: normal;
}

.rwf-reading-card strong.rwf-regime-badge {
  padding: 8px 12px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1;
}

.rwf-state-value {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.rwf-regime-badge--bullish,
.rwf-state-value--bullish {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.1);
  color: #86efac;
}

.rwf-regime-badge--bearish,
.rwf-state-value--bearish {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.rwf-regime-badge--range,
.rwf-state-value--range {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.rwf-regime-badge--neutral,
.rwf-regime-badge--unknown,
.rwf-state-value--neutral,
.rwf-state-value--unknown {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.rwf-regime-badge--degraded,
.rwf-state-value--degraded {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
}

.rwf-reading-card p {
  margin: 12px 0 0;
  color: var(--rwf-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.rwf-dashboard__details-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin: 18px 0 10px;
}

.rwf-dashboard__details-heading h3 {
  color: var(--rwf-text);
  font-size: 18px;
}

.rwf-dashboard__details-heading p {
  margin: 0;
  color: var(--rwf-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.rwf-card,
.rwf-panel {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(12, 18, 29, 0.82);
}

.rwf-card {
  min-height: 156px;
  padding: 20px;
}

.rwf-card strong {
  color: var(--rwf-text);
  font-weight: 600;
}

.rwf-price,
.rwf-score {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 28px;
  line-height: 1.1;
}

.rwf-score--negative {
  color: var(--rwf-bearish);
}

.rwf-score--positive {
  color: var(--rwf-bullish);
}

.rwf-change-row {
  margin-top: 22px;
  color: var(--rwf-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rwf-card--regime strong {
  color: var(--rwf-bearish);
  font-size: 30px;
}

.rwf-card--regime p,
.rwf-muted {
  color: var(--rwf-secondary);
  line-height: 1.55;
}

.rwf-meter {
  height: 6px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #020617;
}

.rwf-meter span {
  display: block;
  height: 100%;
  background: var(--rwf-bearish);
}

.rwf-meter--safe span {
  background: var(--rwf-bullish);
}

.rwf-dashboard__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.rwf-panel {
  padding: 20px;
}

.rwf-panel--wide {
  grid-column: 1 / -1;
}

.rwf-row,
.rwf-risk-flags {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #9aa8ba;
}

.rwf-row strong,
.rwf-risk-flags strong {
  color: var(--rwf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  text-align: right;
}

.rwf-value-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--rwf-text);
  background: rgba(15, 23, 42, 0.54);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: right;
  cursor: pointer;
}

.rwf-value-button:hover,
.rwf-reason-chip:hover {
  border-color: rgba(56, 189, 248, 0.58);
  color: var(--rwf-text);
}

.rwf-value-button:focus-visible,
.rwf-reason-chip:focus-visible,
.rwf-modal__close:focus-visible {
  outline: 2px solid var(--rwf-accent);
  outline-offset: 3px;
}

.rwf-reason-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rwf-border);
}

.rwf-endpoint-summary {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.rwf-endpoint-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rwf-endpoint-summary strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.rwf-admin-note {
  margin: 0;
  color: #94a3b8;
}

.rwf-reason-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 6px;
  color: var(--rwf-secondary);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.rwf-reason-chip .rwf-icon--info {
  width: 0.84em;
  height: 0.84em;
  margin-left: 6px;
  opacity: 0.78;
  vertical-align: -0.1em;
}

.rwf-reason-chip--warning,
.rwf-reason-chip--watch {
  border-color: rgba(251, 191, 36, 0.34);
  color: var(--rwf-range);
}

.rwf-reason-chip--critical {
  border-color: rgba(248, 113, 113, 0.38);
  color: var(--rwf-bearish);
}

.rwf-modal-open {
  overflow: hidden;
}

.rwf-modal-root[hidden] {
  display: none;
}

.rwf-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.rwf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
}

.rwf-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 10px;
  padding: 24px;
  color: var(--rwf-text);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08), transparent 38%),
    #0a0f1a;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.52);
}

.rwf-modal h3 {
  margin: 0 0 12px;
  color: var(--rwf-text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.rwf-modal h4 {
  margin: 0 0 10px;
  color: var(--rwf-text);
  font-size: 13px;
  text-transform: uppercase;
}

.rwf-modal p,
.rwf-modal li {
  color: var(--rwf-secondary);
  line-height: 1.62;
}

.rwf-modal__text {
  margin: 0 0 20px;
  font-size: 16px;
}

.rwf-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rwf-modal__grid > div,
.rwf-modal__boundary {
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.68);
}

.rwf-modal ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.rwf-modal__boundary {
  margin-top: 14px;
}

.rwf-modal__boundary p {
  margin: 0;
}

.rwf-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-secondary);
  background: rgba(15, 23, 42, 0.88);
  font-weight: 750;
  cursor: pointer;
}

.rwf-modal__close:hover {
  color: var(--rwf-text);
  border-color: rgba(56, 189, 248, 0.54);
}

.rwf-state-preview {
  margin-top: 16px;
}

.rwf-state-bearish {
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--rwf-bearish);
}

.rwf-state-range {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--rwf-range);
}

.rwf-state-bullish {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--rwf-bullish);
}

.rwf-state-no-trade,
.rwf-state-muted {
  border-color: rgba(203, 213, 225, 0.45);
  color: var(--rwf-no-trade);
}

.rwf-state-degraded {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--rwf-range);
}

.rwf-state-error {
  border-color: rgba(248, 113, 113, 0.6);
  color: var(--rwf-bearish);
}

.rwf-admin {
  color: var(--rwf-text);
  background: var(--rwf-bg);
  margin: 20px 20px 0 0;
  padding: 24px;
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
}

.rwf-admin h1,
.rwf-admin h2 {
  color: var(--rwf-text);
}

.rwf-admin__lead {
  color: var(--rwf-secondary);
}

.rwf-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.rwf-admin-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-text);
  text-decoration: none;
  background: var(--rwf-elevated);
}

.rwf-admin-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
  background: var(--rwf-card);
}

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

.rwf-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-secondary);
  background: var(--rwf-elevated);
}

.rwf-admin-row strong {
  color: var(--rwf-text);
  text-align: right;
}

.rwf-manual-grid-mock__header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.rwf-manual-grid-mock__header p,
.rwf-manual-grid-card p,
.rwf-manual-grid-mock__footer {
  color: var(--rwf-secondary);
}

.rwf-manual-grid-mock__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rwf-manual-grid-mock__badges span,
.rwf-manual-grid-card__notes li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--rwf-text);
  background: rgba(15, 23, 42, 0.55);
  font-size: 12px;
}

.rwf-manual-grid-mock__notice,
.rwf-manual-grid-mock__footer {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.08);
}

.rwf-manual-grid-mock__summary {
  margin-top: 16px;
}

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

.rwf-manual-grid-mock__states--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rwf-manual-grid-matrix {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
}

.rwf-manual-grid-matrix__row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.2fr)
    minmax(130px, 0.8fr)
    minmax(100px, 0.55fr)
    minmax(160px, 0.9fr)
    minmax(160px, 0.9fr)
    minmax(160px, 0.9fr)
    minmax(170px, 0.9fr)
    minmax(150px, 0.8fr);
  gap: 1px;
  min-width: 1220px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
}

.rwf-manual-grid-matrix__row span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px;
  color: var(--rwf-secondary);
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.rwf-manual-grid-matrix__row--head span {
  color: var(--rwf-text);
  background: rgba(30, 41, 59, 0.9);
  font-weight: 700;
}

.rwf-manual-grid-mock__preview,
.rwf-manual-grid-mock__columns {
  margin-top: 16px;
}

.rwf-manual-grid-mock__preview {
  position: relative;
  padding: 14px;
  border: 1px dashed rgba(96, 165, 250, 0.34);
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.06);
}

.rwf-manual-grid-mock__watermark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  color: var(--rwf-text);
  background: rgba(14, 165, 233, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.rwf-manual-grid-mock__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.rwf-manual-grid-mock__json {
  max-height: 420px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  color: var(--rwf-text);
  background: rgba(2, 6, 23, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.rwf-manual-grid-scan {
  display: grid;
  gap: 8px;
  margin: 0;
}

.rwf-manual-grid-scan div,
.rwf-manual-grid-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.66);
}

.rwf-manual-grid-scan dt {
  color: var(--rwf-secondary);
}

.rwf-manual-grid-scan dd {
  margin: 0;
  color: var(--rwf-text);
  font-weight: 700;
  text-align: right;
}

.rwf-manual-grid-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rwf-manual-grid-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.rwf-manual-grid-card--clean {
  border-color: rgba(45, 212, 191, 0.22);
}

.rwf-manual-grid-card--watch {
  border-color: rgba(251, 191, 36, 0.28);
}

.rwf-manual-grid-card--locked {
  border-color: rgba(148, 163, 184, 0.22);
}

.rwf-manual-grid-card--info {
  border-color: rgba(96, 165, 250, 0.24);
}

.rwf-manual-grid-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.rwf-manual-grid-card__topline span {
  color: var(--rwf-secondary);
  font-size: 12px;
  letter-spacing: 0;
}

.rwf-manual-grid-card__topline strong {
  color: var(--rwf-text);
  text-align: right;
}

.rwf-manual-grid-card__fields {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.rwf-manual-grid-card__fields div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.rwf-manual-grid-card__fields dt {
  color: var(--rwf-secondary);
}

.rwf-manual-grid-card__fields dd {
  margin: 0;
  color: var(--rwf-text);
  text-align: right;
}

.rwf-manual-grid-card__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rwf-admin--manual-grid-mock {
  max-width: 1180px;
}

.rwf-private-cockpit-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
}

.rwf-private-cockpit-statusbar span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--rwf-text);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.rwf-private-cockpit-statusbar span:first-child {
  border-color: rgba(96, 165, 250, 0.3);
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.18);
}

.rwf-admin--private-bot-reader {
  max-width: 1160px;
}

.rwf-private-bot-reader-v3 {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(145deg, rgba(14, 165, 233, 0.08), transparent 36%),
    rgba(13, 19, 32, 0.98);
}

.rwf-private-bot-reader-v3--standalone {
  margin-top: 18px;
}

.rwf-private-bot-reader-v3__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 22px;
  align-items: start;
}

.rwf-private-bot-reader-v3__hero h2 {
  margin: 4px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.rwf-private-bot-reader-v3__hero p,
.rwf-private-bot-reader-v3__panel p,
.rwf-private-bot-reader-v3__state-card p,
.rwf-private-bot-reader-v3__footer {
  color: var(--rwf-secondary);
  line-height: 1.58;
}

.rwf-private-bot-reader-v3__eyebrow {
  margin: 0;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rwf-private-bot-reader-v3__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rwf-private-bot-reader-v3__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(8, 47, 73, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.rwf-private-bot-reader-v3__badges span:nth-child(2) {
  border-color: rgba(251, 191, 36, 0.34);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.28);
}

.rwf-private-bot-reader-v3__banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  background: rgba(120, 53, 15, 0.14);
}

.rwf-private-bot-reader-v3__banner strong {
  flex: 0 0 auto;
  color: #fde68a;
}

.rwf-private-bot-reader-v3__banner span {
  color: #e2e8f0;
  line-height: 1.55;
}

.rwf-private-bot-reader-v3__state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rwf-private-bot-reader-v3__state-card,
.rwf-private-bot-reader-v3__panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.rwf-private-bot-reader-v3__state-card {
  min-height: 142px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.rwf-private-bot-reader-v3__state-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--rwf-secondary);
  font-size: 12px;
  font-weight: 700;
}

.rwf-private-bot-reader-v3__state-card strong {
  display: block;
  color: var(--rwf-text);
  font-size: 18px;
  line-height: 1.28;
}

.rwf-private-bot-reader-v3__state-card p {
  margin: 10px 0 0;
}

.rwf-private-bot-reader-v3__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
  margin-top: 18px;
}

.rwf-private-bot-reader-v3__panel {
  padding: 16px;
}

.rwf-private-bot-reader-v3__panel h3,
.rwf-private-bot-reader-v3 > h3 {
  margin: 0 0 12px;
  color: #e0f2fe;
  font-size: 16px;
}

.rwf-private-bot-reader-v3 > h3 {
  margin-top: 20px;
}

.rwf-private-bot-reader-v3__doctrine {
  display: grid;
  gap: 8px;
}

.rwf-private-bot-reader-v3__doctrine strong,
.rwf-private-bot-reader-v3__doctrine span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.42);
}

.rwf-private-bot-reader-v3__doctrine strong {
  color: var(--rwf-text);
}

.rwf-private-bot-reader-v3__doctrine span {
  color: #fde68a;
  font-weight: 800;
}

.rwf-private-bot-reader-v3__list,
.rwf-private-bot-reader-v3__stop-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwf-private-bot-reader-v3__list li,
.rwf-private-bot-reader-v3__stop-list li {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  color: var(--rwf-text);
  background: rgba(15, 23, 42, 0.66);
}

.rwf-private-bot-reader-v3__stop-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.rwf-private-bot-reader-v3__stop-list li {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(127, 29, 29, 0.12);
  color: #fecaca;
  font-size: 12px;
}

.rwf-private-bot-reader-v3__footer {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.08);
}

.rwf-admin--private-manual-grid-advisor {
  max-width: 1180px;
}

.rwf-private-manual-grid-advisor {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    linear-gradient(145deg, rgba(20, 184, 166, 0.1), transparent 34%),
    rgba(13, 19, 32, 0.98);
}

.rwf-private-manual-grid-advisor__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.rwf-private-manual-grid-advisor__hero h2 {
  margin: 4px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.rwf-private-manual-grid-advisor__hero p,
.rwf-private-manual-grid-advisor__state-card p,
.rwf-private-manual-grid-advisor__panel p,
.rwf-private-manual-grid-advisor__footer {
  color: var(--rwf-secondary);
  line-height: 1.58;
}

.rwf-private-manual-grid-advisor__eyebrow {
  margin: 0;
  color: #5eead4;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rwf-private-manual-grid-advisor__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rwf-private-manual-grid-advisor__badges span,
.rwf-private-manual-grid-advisor__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(19, 78, 74, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.rwf-private-manual-grid-advisor__badges span:nth-child(2) {
  border-color: rgba(251, 191, 36, 0.34);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.28);
}

.rwf-private-manual-grid-advisor__banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  background: rgba(120, 53, 15, 0.14);
}

.rwf-private-manual-grid-advisor__banner strong {
  flex: 0 0 auto;
  color: #fde68a;
}

.rwf-private-manual-grid-advisor__banner span {
  color: #e2e8f0;
  line-height: 1.55;
}

.rwf-private-manual-grid-advisor > h3 {
  margin: 22px 0 12px;
  color: #ccfbf1;
  font-size: 16px;
}

.rwf-private-manual-grid-advisor__state-grid,
.rwf-private-manual-grid-advisor__states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rwf-private-manual-grid-advisor__state-grid {
  margin-top: 12px;
}

.rwf-private-manual-grid-advisor__states {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rwf-private-manual-grid-advisor__state-card,
.rwf-private-manual-grid-advisor__state,
.rwf-private-manual-grid-advisor__panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.rwf-private-manual-grid-advisor__state-card,
.rwf-private-manual-grid-advisor__state,
.rwf-private-manual-grid-advisor__panel {
  padding: 14px;
}

.rwf-private-manual-grid-advisor__state-card {
  min-height: 128px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.rwf-private-manual-grid-advisor__state-card span,
.rwf-private-manual-grid-advisor__state span {
  display: block;
  margin-bottom: 8px;
  color: var(--rwf-secondary);
  font-size: 12px;
  font-weight: 700;
}

.rwf-private-manual-grid-advisor__state-card strong,
.rwf-private-manual-grid-advisor__state strong {
  display: block;
  color: var(--rwf-text);
  font-size: 17px;
  line-height: 1.28;
}

.rwf-private-manual-grid-advisor__state--clean {
  border-color: rgba(52, 211, 153, 0.24);
}

.rwf-private-manual-grid-advisor__state--watch {
  border-color: rgba(251, 191, 36, 0.24);
}

.rwf-private-manual-grid-advisor__state--locked {
  border-color: rgba(248, 113, 113, 0.2);
}

.rwf-private-manual-grid-advisor__state--info {
  border-color: rgba(96, 165, 250, 0.22);
}

.rwf-private-manual-grid-advisor__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
  margin-top: 18px;
}

.rwf-private-manual-grid-advisor__panel h3 {
  margin: 0 0 12px;
  color: #ccfbf1;
  font-size: 16px;
}

.rwf-private-manual-grid-advisor__draft {
  display: grid;
  gap: 10px;
  margin: 0;
}

.rwf-private-manual-grid-advisor__draft div {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rwf-private-manual-grid-advisor__draft dt {
  color: var(--rwf-secondary);
  font-weight: 700;
}

.rwf-private-manual-grid-advisor__draft dd {
  margin: 0;
  color: var(--rwf-text);
  font-weight: 760;
}

.rwf-private-manual-grid-advisor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rwf-private-manual-grid-advisor__list,
.rwf-private-manual-grid-advisor__stop-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwf-private-manual-grid-advisor__list li,
.rwf-private-manual-grid-advisor__stop-list li {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  color: var(--rwf-text);
  background: rgba(15, 23, 42, 0.66);
}

.rwf-private-manual-grid-advisor__stop-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.rwf-private-manual-grid-advisor__stop-list li {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(127, 29, 29, 0.12);
  color: #fecaca;
  font-size: 12px;
}

.rwf-private-manual-grid-advisor__footer {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.08);
}

@media (max-width: 900px) {
  .rwf-hero__grid,
  .rwf-dashboard__grid,
  .rwf-dashboard__panels,
  .rwf-grid,
  .rwf-grid--six,
  .rwf-footer__grid,
  .rwf-admin-grid,
  .rwf-manual-grid-mock__header,
  .rwf-manual-grid-mock__states,
  .rwf-manual-grid-mock__states--compact,
  .rwf-manual-grid-mock__columns,
  .rwf-manual-grid-checklist,
  .rwf-private-bot-reader-v3__hero,
  .rwf-private-bot-reader-v3__state-grid,
  .rwf-private-bot-reader-v3__columns,
  .rwf-private-bot-reader-v3__stop-list,
  .rwf-private-manual-grid-advisor__hero,
  .rwf-private-manual-grid-advisor__state-grid,
  .rwf-private-manual-grid-advisor__states,
  .rwf-private-manual-grid-advisor__columns,
  .rwf-private-manual-grid-advisor__stop-list,
  .rwf-super-radar-boundary {
    grid-template-columns: 1fr;
  }

  .rwf-manual-grid-mock__badges,
  .rwf-private-cockpit-statusbar,
  .rwf-private-bot-reader-v3__badges,
  .rwf-private-manual-grid-advisor__badges {
    justify-content: flex-start;
  }

  .rwf-private-manual-grid-advisor__draft div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rwf-topbar__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .rwf-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 2px;
    white-space: nowrap;
  }

  .rwf-topbar__status {
    margin-left: auto;
  }

  .rwf-topbar__actions {
    margin-left: 0;
  }

  .rwf-footer__nav {
    justify-content: flex-start;
    max-width: none;
  }

  .rwf-dashboard__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rwf-dashboard__tools {
    align-items: flex-start;
    width: 100%;
  }

  .rwf-modal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rwf-shell {
    width: min(100% - 22px, 1180px);
  }

  .rwf-hero h1 {
    font-size: 42px;
  }

  .rwf-status-strip,
  .rwf-row,
  .rwf-risk-flags,
  .rwf-panel-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .rwf-language-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  .rwf-topbar__actions {
    width: 100%;
  }

  .rwf-topbar__actions .rwf-language-switcher {
    width: auto;
  }

  .rwf-topbar__status {
    width: 100%;
    margin-left: 0;
  }

  .rwf-topbar__status .rwf-pill--market {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rwf-footer {
    padding: 32px 0;
  }

  .rwf-hero {
    padding-top: 42px;
  }

  .rwf-modal-root {
    align-items: end;
    padding: 0;
  }

  .rwf-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    padding: 22px 18px 20px;
  }

  .rwf-premium-chart {
    height: 320px;
    min-height: 300px;
  }

  .rwf-modal__close {
    position: static;
    float: right;
    margin: 0 0 12px 12px;
  }
}

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

  .rwf-modal-root,
  .rwf-modal {
    scroll-behavior: auto;
  }
}



.rwf-settings-form {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.rwf-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--rwf-border);
  border-radius: 6px;
  color: var(--rwf-secondary);
  background: var(--rwf-elevated);
}

.rwf-setting-row input[type="number"] {
  width: 120px;
}

.rwf-setting-row select {
  min-width: 140px;
}


.rwf-chart-panel {
  margin-bottom: 14px;
  border: 1px solid var(--rwf-border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.74);
  padding: 18px;
}

.rwf-chart-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--rwf-secondary);
  margin-bottom: 12px;
}

.rwf-chart-panel__head strong {
  display: block;
  color: var(--rwf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 24px;
}

.rwf-mini-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
}

.rwf-premium-chart {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 420px);
  min-height: 360px;
  border: 1px solid rgba(31, 41, 55, 0.94);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.94), rgba(5, 7, 11, 0.98));
}

.rwf-chart-panel--premium .rwf-mini-chart-shell {
  margin-top: 12px;
}

.rwf-chart-panel--premium.rwf-chart-panel--ready .rwf-mini-chart-shell {
  display: none;
}

.rwf-chart-panel--fallback .rwf-premium-chart {
  display: none;
}

.rwf-chart-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--rwf-secondary);
  font-size: 11px;
}

.rwf-chart-panel__foot a {
  color: rgba(148, 163, 184, 0.88);
  text-decoration: none;
}

.rwf-chart-panel__foot a:hover,
.rwf-chart-panel__foot a:focus-visible {
  color: var(--rwf-accent);
  outline: none;
}

.rwf-mini-chart__area {
  fill: rgba(56, 189, 248, 0.08);
}

.rwf-mini-chart__line {
  fill: none;
  stroke: var(--rwf-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.rwf-chart-bearish { stroke: rgba(248, 113, 113, 0.82); }
.rwf-chart-bullish { stroke: rgba(52, 211, 153, 0.82); }
.rwf-chart-range { stroke: rgba(251, 191, 36, 0.82); }

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

.rwf-dashboard__grid--context {
  opacity: 0.94;
}

.rwf-metric-card h3 {
  margin: 0 0 10px;
  color: var(--rwf-text);
  font-size: 15px;
}

.rwf-metric-card .rwf-row strong {
  font-size: 12px;
}

.rwf-dashboard--refreshing {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 24px 80px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1100px) {
  .rwf-dashboard__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .rwf-dashboard__summary,
  .rwf-dashboard__details-heading {
    grid-template-columns: 1fr;
  }

  .rwf-dashboard__grid--v04 {
    grid-template-columns: 1fr;
  }
  .rwf-chart-panel__head {
    flex-direction: column;
  }
}


/* V0.4 visual premium polish */
.rwf-shell {
  width: min(1260px, calc(100% - 40px));
}

.rwf-topbar {
  background: rgba(5, 7, 11, 0.86);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.06);
}

.rwf-topbar__inner {
  min-height: 70px;
}

.rwf-hero {
  padding: clamp(58px, 7vw, 92px) 0 36px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(5, 7, 11, 0)),
    var(--rwf-bg);
}

.rwf-hero h1 {
  max-width: 800px;
  font-size: clamp(48px, 6.9vw, 88px);
  line-height: 0.94;
}

.rwf-subtitle {
  max-width: 700px;
  margin-top: 20px;
  color: #b6c3d3;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.rwf-hero__market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 720px;
}

.rwf-hero__market-strip span {
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(13, 19, 32, 0.72);
  color: var(--rwf-secondary);
  font-size: 12px;
}

.rwf-hero__market-strip strong {
  display: block;
  color: var(--rwf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
}

.rwf-hero-panel--premium {
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(13, 19, 32, 0.92) 42%),
    var(--rwf-card);
  border-color: rgba(56, 189, 248, 0.24);
}

.rwf-section {
  padding: clamp(42px, 5vw, 68px) 0;
}

.rwf-section__intro {
  max-width: 720px;
  margin: 12px 0 26px;
  color: #a8b5c7;
  font-size: 16px;
  line-height: 1.62;
}

.rwf-info-card,
.rwf-control-panel,
.rwf-hero-panel,
.rwf-card,
.rwf-panel,
.rwf-chart-panel {
  border-color: rgba(51, 65, 85, 0.86);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(13, 19, 32, 0.96));
}

.rwf-info-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
}

.rwf-info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: rgba(56, 189, 248, 0.32);
}

.rwf-info-card--bearish::before { background: rgba(248, 113, 113, 0.72); }
.rwf-info-card--range::before { background: rgba(251, 191, 36, 0.72); }
.rwf-info-card--bullish::before { background: rgba(52, 211, 153, 0.72); }
.rwf-info-card--no-trade::before { background: rgba(203, 213, 225, 0.72); }

.rwf-dashboard {
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(5, 7, 11, 0.96));
  border-color: rgba(56, 189, 248, 0.2);
}

.rwf-dashboard__header {
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  padding-bottom: 18px;
}

.rwf-chart-panel {
  padding: 22px;
}

.rwf-mini-chart {
  min-height: 210px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
}

.rwf-mini-chart__area {
  fill: rgba(56, 189, 248, 0.11);
}

.rwf-mini-chart__line {
  stroke-width: 2.6;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.12));
}

.rwf-premium-chart {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.03);
}

.rwf-dashboard__grid--v04 {
  gap: 16px;
}

.rwf-metric-card {
  min-height: 234px;
}

.rwf-metric-card h3 {
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.rwf-row {
  min-height: 42px;
}

.rwf-row span {
  color: #a8b5c7;
}

.rwf-row strong,
.rwf-panel-line strong,
.rwf-change-row,
.rwf-price,
.rwf-score {
  font-variant-numeric: tabular-nums;
}

.rwf-metric-card .rwf-row strong {
  color: #f8fafc;
  font-size: 13px;
}

.rwf-panel--wide {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(17, 24, 39, 0.86));
}

.rwf-risk-flags strong {
  color: var(--rwf-accent);
}

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

.rwf-steps--premium li {
  min-height: 168px;
  padding: 20px;
}

.rwf-steps--premium span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--rwf-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rwf-steps--premium strong {
  display: block;
  color: var(--rwf-text);
  font-size: 18px;
  margin-bottom: 8px;
}

.rwf-steps--premium p {
  margin: 0;
  color: var(--rwf-secondary);
  line-height: 1.55;
}

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

.rwf-checklist--premium li {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(13, 19, 32, 0.86);
  padding: 16px 18px;
}

.rwf-control-panel--premium {
  max-width: 760px;
}

.rwf-footer {
  background: linear-gradient(180deg, #080d14, #05070b);
}

.rwf-footer__grid {
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding-top: 22px;
}

@media (max-width: 1000px) {
  .rwf-steps--premium,
  .rwf-checklist--premium,
  .rwf-hero__market-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rwf-shell { width: min(100% - 24px, 1260px); }
  .rwf-hero { padding-top: 48px; }
  .rwf-hero h1 { font-size: 43px; }
  .rwf-mini-chart { min-height: 170px; }
  .rwf-premium-chart {
    height: 320px;
    min-height: 300px;
  }
  .rwf-chart-panel__foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .rwf-metric-card { min-height: auto; }
}


/* V0.4.2 product wording and hero layout fix */
.rwf-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.58fr);
  align-items: start;
}

.rwf-hero .rwf-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 8px;
  margin-top: 24px;
  max-width: 760px;
}

.rwf-hero .rwf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.rwf-hero__market-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-width: 820px;
}

.rwf-hero__market-strip span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}

.rwf-hero__market-strip strong {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 5px;
  white-space: nowrap;
}

.rwf-hero-panel--premium {
  margin-top: 2px;
  position: sticky;
  top: 88px;
}

.rwf-hero-panel--premium .rwf-eyebrow {
  margin-bottom: 10px;
}

.rwf-hero-panel--premium h2 {
  font-size: 28px;
}

.rwf-section#readonly .rwf-checklist--premium li,
.rwf-checklist--premium li {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.rwf-control-panel--premium .rwf-panel-line span {
  color: #b6c3d3;
}

@media (max-width: 1100px) {
  .rwf-hero__grid {
    grid-template-columns: 1fr;
  }
  .rwf-hero-panel--premium {
    position: static;
    margin-top: 10px;
  }
  .rwf-hero .rwf-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rwf-hero .rwf-badges,
  .rwf-hero__market-strip {
    grid-template-columns: 1fr;
  }
  .rwf-subtitle {
    font-size: 16px;
    line-height: 1.58;
  }
  .rwf-hero .rwf-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .rwf-hero .rwf-actions .rwf-button {
    justify-content: center;
  }
  .rwf-hero__market-strip span {
    min-height: 62px;
  }
}

/* V0.5.1 chart fix and hero simplification */
.rwf-hero__market-strip {
  display: none !important;
}

.rwf-chart-panel--premium .rwf-mini-chart-shell {
  display: none;
}

.rwf-chart-panel--premium.rwf-chart-panel--fallback .rwf-mini-chart-shell,
.rwf-chart-panel--mini .rwf-mini-chart-shell {
  display: block;
}

.rwf-chart-panel--premium.rwf-chart-panel--fallback .rwf-premium-chart {
  display: none;
}

.rwf-chart-fallback-note {
  margin: 8px 0 0;
  color: var(--rwf-secondary);
  font-size: 11px;
}

/* V0.8.4 clinical UX polish */
.rwf-brand,
.rwf-brand:hover,
.rwf-brand:focus,
.rwf-brand:active {
  text-decoration: none;
}

.rwf-brand:hover,
.rwf-brand:active {
  color: #e2e8f0;
  opacity: 0.86;
}

.rwf-brand:focus-visible {
  color: #f8fafc;
  opacity: 1;
}

.rwf-dashboard .rwf-card,
.rwf-dashboard .rwf-panel {
  border-color: rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.9), rgba(9, 14, 23, 0.94));
}

.rwf-dashboard .rwf-card,
.rwf-dashboard .rwf-panel,
.rwf-dashboard .rwf-chart-panel {
  padding: clamp(20px, 2.4vw, 24px);
}

.rwf-dashboard .rwf-row {
  min-height: 44px;
  padding: 13px 0;
  border-top-color: rgba(255, 255, 255, 0.055);
}

.rwf-dashboard .rwf-row span {
  color: #9aa8ba;
}

.rwf-dashboard .rwf-row strong,
.rwf-dashboard .rwf-risk-flags strong,
.rwf-dashboard .rwf-panel-line strong,
.rwf-dashboard .rwf-metric-card .rwf-row strong {
  color: #f8fafc;
  font-weight: 600;
}

.rwf-freshness-line {
  margin: -10px 0 22px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
