:root {
  --cs-bg: #f4f7fb;
  --cs-surface: #ffffff;
  --cs-surface-2: #eef3f8;
  --cs-text: #182230;
  --cs-muted: #64748b;
  --cs-muted-2: #475569;
  --cs-border: #d8e0ea;
  --cs-border-strong: #bfccd9;
  --cs-ink: #050814;
  --cs-ink-2: #0b1220;
  --cs-ink-3: #111827;
  --cs-blue: #2563eb;
  --cs-blue-2: #1689ff;
  --cs-blue-soft: #dbeafe;
  --cs-green: #0f9f6e;
  --cs-green-soft: #dcfce7;
  --cs-amber: #b7791f;
  --cs-amber-soft: #fff4d6;
  --cs-red: #c2413a;
  --cs-red-soft: #fee2e2;
  --cs-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --cs-command-shadow: 0 12px 26px rgba(15, 23, 42, .08), 0 1px 0 rgba(255,255,255,.9) inset;
  --cs-command-shadow-hover: 0 16px 34px rgba(37, 99, 235, .13), 0 1px 0 rgba(255,255,255,.92) inset;
  --cs-module-shadow: 0 18px 42px rgba(15, 23, 42, .075), 0 1px 0 rgba(255,255,255,.86) inset;
  --cs-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cs-page {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,.025) 1px, transparent 1px),
    var(--cs-bg);
  background-size: 44px 44px;
  color: var(--cs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.cs-page a { color: inherit; }
body.cs-page button,
body.cs-page input,
body.cs-page select,
body.cs-page textarea { font: inherit; }

body.public-site-page,
body.public-trust-page {
  --bg: var(--cs-bg);
  --bg2: var(--cs-surface);
  --bg3: var(--cs-surface-2);
  --border: var(--cs-border);
  --accent: var(--cs-blue);
  --accent2: #14b8a6;
  --text: var(--cs-text);
  --muted: var(--cs-muted);
  --muted2: var(--cs-muted-2);
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,.025) 1px, transparent 1px),
    var(--cs-bg);
  background-size: 44px 44px;
  color: var(--cs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.public-site-page .cs-topbar,
body.public-trust-page .cs-topbar {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(191,204,217,.86);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

body.public-site-page .cs-brand,
body.public-trust-page .cs-brand {
  color: var(--cs-text);
}

body.public-site-page .cs-public-brand,
body.public-trust-page .cs-public-brand {
  min-width: 138px;
  gap: 9px;
  letter-spacing: 0;
}

body.public-site-page .cs-public-brand-mark,
body.public-trust-page .cs-public-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1f6fff, #14b8a6);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

body.public-site-page .cs-public-brand-name,
body.public-trust-page .cs-public-brand-name {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

body.public-site-page .cs-public-brand-name .os,
body.public-trust-page .cs-public-brand-name .os {
  color: var(--cs-blue);
}

body.public-site-page .cs-public-brand-name small,
body.public-trust-page .cs-public-brand-name small {
  margin-left: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

body.public-site-page .cs-brand-wordmark,
body.public-trust-page .cs-brand-wordmark {
  width: 132px;
  height: 25px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7);
}

body.public-site-page .cs-topnav,
body.public-trust-page .cs-topnav {
  gap: 6px;
}

body.public-site-page .cs-topnav a,
body.public-trust-page .cs-topnav a {
  color: #334155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  border-radius: 7px;
  padding: 7px 10px;
}

body.public-site-page .cs-topnav a:hover,
body.public-site-page .cs-topnav a:focus-visible,
body.public-trust-page .cs-topnav a:hover,
body.public-trust-page .cs-topnav a:focus-visible {
  color: #0f172a;
  background: #e8f0ff;
  text-decoration: none;
}

body.public-site-page .cs-topnav a[aria-current="page"],
body.public-trust-page .cs-topnav a[aria-current="page"] {
  color: #0f172a;
  background: #dbeafe;
}

body.public-trust-page .container {
  width: min(980px, calc(100vw - 48px));
  max-width: 980px;
  margin: 0 auto;
  padding: 54px 0 64px;
}

body.public-trust-page h1,
body.public-trust-page h2,
body.public-trust-page h3 {
  color: var(--cs-text);
}

body.public-trust-page h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  margin: 0 0 10px;
}

body.public-trust-page h2 {
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom-color: var(--cs-border);
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.public-trust-page h3 {
  margin: 16px 0 6px;
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 850;
}

body.public-trust-page p,
body.public-trust-page li,
body.public-trust-page ul,
body.public-trust-page td {
  color: var(--cs-muted-2);
  font-size: 14px;
}

body.public-trust-page .subtitle {
  color: var(--cs-muted);
  margin: 0 0 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

body.public-trust-page .card {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
  padding: 24px;
  margin-bottom: 10px;
}

body.public-trust-page .highlight,
body.public-trust-page .note,
body.public-trust-page .version {
  display: block;
  background: rgba(219,234,254,.72);
  border-color: rgba(37,99,235,.20);
  border-style: solid;
  border-width: 1px;
  border-radius: var(--cs-radius);
  color: #334155;
  padding: 16px 20px;
  margin: 0 0 16px;
  font-size: 13px;
}

body.public-trust-page .version {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  font-weight: 850;
}

body.public-trust-page .formula {
  background: #f8fbff;
  border-color: var(--cs-border);
  border-style: solid;
  border-width: 1px;
  border-radius: var(--cs-radius);
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-x: auto;
  padding: 9px;
  margin: 8px 0;
}

body.public-trust-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

body.public-trust-page ul {
  padding-left: 20px;
  margin: 8px 0;
}

body.public-trust-page li {
  margin-bottom: 4px;
}

body.public-trust-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

body.public-trust-page th {
  color: var(--cs-text);
  text-align: left;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .10em;
}

body.public-trust-page th,
body.public-trust-page td {
  border-bottom: 1px solid var(--cs-border);
  padding: 9px;
  vertical-align: top;
}

body.public-trust-page footer {
  background: rgba(255,255,255,.70);
  border-top: 1px solid var(--cs-border);
  color: var(--cs-muted);
}

body.public-trust-page .container a {
  color: var(--cs-blue);
}

.cs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 62px;
  border-bottom: 1px solid rgba(148,163,184,.22);
  background: rgba(5,8,20,.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
}
.cs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  min-width: 150px;
}
.cs-brand-wordmark {
  width: 142px;
  height: 27px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.cs-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--cs-radius);
  background: #152033;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}
.cs-brand img { height: 28px; width: auto; display: block; }
.cs-topnav,
.cs-appnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cs-topnav { margin-left: auto; }
.cs-appnav {
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.74);
  border-radius: var(--cs-radius);
  padding: 3px;
}
body.cs-page .cs-topbar > .cs-appnav {
  display: none;
}
body.cs-page .cs-topnav a,
body.cs-page .cs-appnav a {
  color: #d8e3f3;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 7px 10px;
}
body.cs-page .cs-topnav a:hover,
body.cs-page .cs-appnav a:hover { color: #fff; background: rgba(59,130,246,.12); }
body.cs-page .cs-appnav a[aria-current="page"],
body.cs-page .cs-topnav a[aria-current="page"] { color: #fff; background: rgba(37,99,235,.32); }

body.public-site-page .cs-topnav a,
body.public-trust-page .cs-topnav a {
  color: #334155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  border-radius: 7px;
  padding: 7px 10px;
}
body.public-site-page .cs-topnav a:hover,
body.public-site-page .cs-topnav a:focus-visible,
body.public-trust-page .cs-topnav a:hover,
body.public-trust-page .cs-topnav a:focus-visible {
  color: #0f172a;
  background: #e8f0ff;
  text-decoration: none;
}
body.public-site-page .cs-topnav a[aria-current="page"],
body.public-trust-page .cs-topnav a[aria-current="page"] {
  color: #0f172a;
  background: #dbeafe;
}
.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: var(--cs-radius);
  background: rgba(15,23,42,.74);
  color: #cbd5e1;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: default;
}
body.cs-page a.cs-chip {
  text-decoration: none;
}
.cs-chip.cs-chip-action {
  cursor: pointer;
}
.cs-chip.cs-chip-action:hover {
  border-color: rgba(37,99,235,.38);
  color: #fff;
}
.cs-main .cs-chip.cs-chip-action:hover,
.cs-hero .cs-chip.cs-chip-action:hover,
.cs-section-head .cs-chip.cs-chip-action:hover {
  color: var(--cs-text);
  background: #e8f0ff;
}
.cs-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--cs-blue);
}
.cs-chip.readonly::before { background: var(--cs-green); }
.cs-main .cs-chip,
.cs-hero .cs-chip,
.cs-section-head .cs-chip {
  background: #eef4ff;
  border-color: #c5d4ea;
  color: var(--cs-text);
}
.cs-main .cs-chip.readonly,
.cs-hero .cs-chip.readonly,
.cs-section-head .cs-chip.readonly {
  background: #ecfdf5;
  border-color: rgba(22,163,74,.26);
  color: #047857;
}
.cs-topbar .cs-chip,
.cs-account .cs-chip {
  background: rgba(15,23,42,.74);
  border-color: rgba(148,163,184,.26);
  color: #cbd5e1;
}
.cs-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-shell-extras {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cs-shell-extras:empty {
  display: none;
}
.cs-shell-extras > * {
  flex: 0 1 auto;
}
.cs-account-menu {
  position: relative;
}
.cs-account-menu button {
  border: 1px solid rgba(148,163,184,.26);
  border-radius: var(--cs-radius);
  background: rgba(15,23,42,.74);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
body.cs-page .cs-topbar .cs-account-menu > button {
  appearance: none;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.cs-account-menu button.cs-account-trigger,
.system-menu-btn.cs-account-trigger {
  gap: 8px;
}
.cs-account-menu button.cs-account-trigger::after,
.system-menu-btn.cs-account-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: .82;
  flex: 0 0 auto;
}
.cs-account-menu button:hover { border-color: var(--cs-blue-2); color: #fff; }
.cs-account-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  min-width: 210px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  box-shadow: 0 18px 48px rgba(15,23,42,.16);
  padding: 6px;
}
.cs-account-menu.open .cs-account-menu-panel { display: grid; }
body.cs-page .cs-account-menu-panel a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--cs-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  border-radius: 6px;
  padding: 9px 10px;
}
body.cs-page .cs-account-menu-panel a span { color: var(--cs-muted); }
body.cs-page .cs-account-menu-panel a .cs-menu-chevron,
body.cs-page .cs-account-menu-panel button .cs-menu-chevron,
.system-menu-panel a .cs-menu-chevron,
.system-menu-panel button .cs-menu-chevron {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
  opacity: .58;
}

body.cs-page .cs-account-menu-panel a .cs-menu-chevron svg,
body.cs-page .cs-account-menu-panel button .cs-menu-chevron svg,
.system-menu-panel a .cs-menu-chevron svg,
.system-menu-panel button .cs-menu-chevron svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

body.cs-page .cs-account-menu-panel a:hover .cs-menu-chevron,
body.cs-page .cs-account-menu-panel button:hover .cs-menu-chevron,
.system-menu-panel a:hover .cs-menu-chevron,
.system-menu-panel button:hover .cs-menu-chevron {
  opacity: .9;
}
body.cs-page .cs-account-menu-panel a:hover {
  color: var(--cs-text);
  background: var(--cs-blue-soft);
}
.cs-menu-sep { height: 1px; background: var(--cs-border); margin: 5px 4px; }

.cs-auth-shell {
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
}
.cs-auth-card {
  width: min(460px, calc(100vw - 36px));
  max-width: 100%;
  border: 1px solid var(--cs-border);
  border-left: 3px solid var(--cs-blue);
  background: rgba(255,255,255,.94);
  box-shadow: var(--cs-shadow);
  border-radius: var(--cs-radius);
  padding: 28px;
}
/* Auth brand: crisp Alpha Scope identity lockup for the access surface. */
.cs-auth-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  width: min(100%, 404px);
  max-width: 100%;
  min-height: 100px;
  margin: 0 0 30px;
  padding: 12px 16px 12px 12px;
  border: 1px solid #ccd9e8;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at 20% 18%, rgba(20,184,166,.16), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(96,165,250,.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 18px 38px rgba(15,23,42,.10),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.cs-auth-brand::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31,111,255,.92), rgba(20,184,166,.78), rgba(15,23,42,.08));
  box-shadow: 0 0 18px rgba(37,99,235,.20);
}
.cs-auth-brand::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px 10px 10px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(148,163,184,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.15) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.44), transparent 74%);
  pointer-events: none;
}
.cs-auth-brand-signal {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 12%, rgba(45,199,255,.24), transparent 44%),
    linear-gradient(145deg, #f8fbff 0%, #eaf3ff 58%, #dfeeff 100%);
  border: 1px solid rgba(148,163,184,.54);
  box-shadow:
    0 12px 26px rgba(15,23,42,.13),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(37,99,235,.12);
}
.cs-auth-brand-signal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #111827 0%, #07111f 64%, #050814 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(37,99,235,.22);
  pointer-events: none;
}
.cs-auth-brand-signal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(125,211,252,.28);
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.18);
  pointer-events: none;
}
.cs-auth-scope-logo {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 58px;
  display: block;
}
.cs-auth-scope-panel {
  fill: rgba(7,17,31,.84);
  stroke: rgba(226,232,240,.14);
  stroke-width: 1;
}
.cs-auth-scope-grid {
  fill: none;
  stroke: rgba(226,232,240,.075);
  stroke-width: 1;
}
.cs-auth-scope-zone {
  fill: rgba(20,184,166,.14);
}
.cs-auth-scope-trace {
  fill: none;
  stroke: url(#cs-auth-scope-b);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-auth-scope-cut {
  fill: none;
  stroke: rgba(248,250,252,.92);
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-auth-scope-mark {
  fill: url(#cs-auth-scope-a);
  stroke: rgba(255,255,255,.34);
  stroke-width: 1;
}
.cs-auth-scope-counter {
  fill: #07111f;
}
.cs-auth-scope-crosshair {
  fill: none;
  stroke: rgba(191,238,229,.88);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-auth-scope-pulse {
  fill: #35dfbd;
  stroke: #08111f;
  stroke-width: 2;
}
.cs-auth-brand-main {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}
.cs-auth-wordmark {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #0f172a;
  font-size: 31px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
}
.cs-auth-word-alpha,
.cs-auth-word-dash {
  color: #0f172a;
}
.cs-auth-word-os {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #1f6fff;
  font-weight: 950;
}
.cs-auth-word-os::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6fff, #14b8a6);
}
.cs-auth-word-tld {
  align-self: flex-end;
  margin-left: 4px;
  color: #64748b;
  font-size: 16px;
  font-weight: 800;
  line-height: .9;
}
.cs-auth-brand-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cs-auth-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-auth-brand-line::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6fff, #14b8a6);
  flex: 0 0 auto;
}
.cs-auth-brand-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f8b75;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}
.cs-auth-brand-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,.14);
}
.cs-auth-title {
  color: var(--cs-ink);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 950;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.cs-auth-subtitle {
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.cs-auth-field,
.cs-auth-card .field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.cs-auth-field label,
.cs-auth-card label {
  color: var(--cs-muted);
  font-size: 12px;
  letter-spacing: .2px;
  font-weight: 900;
}
.cs-auth-field input,
.cs-auth-card input,
.cs-auth-card select,
.cs-auth-card textarea {
  width: 100%;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: #fff;
  color: var(--cs-ink);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
}
.cs-auth-field input:focus,
.cs-auth-card input:focus,
.cs-auth-card select:focus,
.cs-auth-card textarea:focus {
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.cs-auth-submit,
.cs-auth-card .btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cs-blue);
  background: var(--cs-blue);
  color: #fff;
  border-radius: var(--cs-radius);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 10px 14px;
}
.cs-auth-submit:hover,
.cs-auth-card .btn:hover { background: #1d4ed8; }
.cs-auth-submit:disabled,
.cs-auth-card .btn:disabled { opacity: .55; cursor: not-allowed; }
.cs-auth-message,
.cs-auth-card .msg,
.cs-auth-card .error,
.cs-auth-card .status {
  display: none;
  border: 1px solid var(--cs-border);
  background: rgba(241,245,249,.78);
  color: var(--cs-muted);
  border-radius: var(--cs-radius);
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.cs-auth-message.show,
.cs-auth-card .msg.show,
.cs-auth-card .error.show,
.cs-auth-card .status { display: block; }
.cs-auth-message.error,
.cs-auth-card .err,
.cs-auth-card .error.show {
  border-color: rgba(220,38,38,.25);
  background: rgba(254,226,226,.72);
  color: #991b1b;
}
.cs-auth-card .ok {
  border-color: rgba(22,163,74,.25);
  background: rgba(220,252,231,.78);
  color: #166534;
}
.cs-auth-note {
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(219,234,254,.62);
  color: #1e3a8a;
  border-radius: var(--cs-radius);
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0;
}
.cs-auth-links {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: var(--cs-muted);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.cs-auth-links > div {
  min-width: 0;
}
.cs-auth-links a,
.cs-auth-card .link-row a {
  color: var(--cs-blue);
  text-decoration: none;
  font-weight: 850;
}
.cs-auth-card .link-row {
  color: var(--cs-muted);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}
.cs-auth-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.cs-auth-list li {
  position: relative;
  padding-left: 14px;
}
.cs-auth-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--cs-green);
}

.cs-app {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
  min-width: 0;
  overflow-x: clip;
}
.cs-app > * { min-width: 0; }
.cs-rail {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  border-right: 1px solid var(--cs-border);
  background: rgba(255,255,255,.88);
  padding: 18px 12px;
  min-width: 0;
  overflow-x: hidden;
}
.cs-rail-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148,163,184,.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #0b1220, #111827);
  color: #d8e3f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  margin: 0 auto 14px;
  box-shadow: 0 10px 20px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.cs-rail-toggle-icon,
.alpha-workbar-toggle::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-rail-toggle-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-rail-toggle:hover {
  border-color: var(--cs-blue-2);
  color: #fff;
}
.cs-rail-tools {
  margin: 0 0 14px;
}
.cs-rail-density {
  width: 100%;
}
.cs-rail-density button {
  flex: 1 1 0;
}
.cs-rail-title {
  font-size: 10px;
  color: var(--cs-muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  margin: 0 10px 9px;
}
.cs-rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cs-muted-2);
  text-decoration: none;
  border-radius: var(--cs-radius);
  padding: 10px;
  font-size: 13px;
  font-weight: 850;
}
.cs-rail a:hover { background: var(--cs-surface-2); color: var(--cs-text); }
.cs-rail a[aria-current="page"] {
  background: var(--cs-blue-soft);
  color: var(--cs-blue);
}
.cs-rail-icon {
  width: 20px;
  flex: 0 0 20px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-rail-icon svg,
.alpha-workbar-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alpha-workbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.cs-page.cs-rail-collapsed .cs-app {
  grid-template-columns: 64px minmax(0, 1fr);
}
body.cs-page.cs-rail-collapsed .cs-rail {
  padding: 14px 9px;
}
body.cs-page.cs-rail-collapsed .cs-rail-tools,
body.cs-page.cs-rail-collapsed .cs-rail-title {
  display: none;
}
body.cs-page.cs-rail-collapsed .cs-rail-toggle {
  margin: 0 auto 12px;
}
body.cs-page.cs-rail-collapsed .cs-rail a {
  justify-content: center;
  gap: 0;
  padding: 10px 0;
  font-size: 0;
}
body.cs-page.cs-rail-collapsed .cs-rail-icon {
  font-size: 14px;
}
.cs-main {
  width: 100%;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}
.cs-generated-main {
  isolation: isolate;
}
body.cs-shellified {
  min-height: 100vh;
}
body.cs-shellified .cs-generated-main > main:first-child {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.cs-shellified .cs-generated-main > .wrap,
body.cs-shellified .cs-generated-main > .main,
body.cs-shellified .cs-generated-main > .content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.cs-hero-public {
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 44px;
  align-items: center;
  padding: 54px 28px 44px;
  max-width: 1180px;
  margin: 0 auto;
}
.cs-kicker {
  margin: 0 0 12px;
  color: var(--cs-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.cs-title {
  margin: 0;
  color: var(--cs-text);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 920;
}
.cs-title.compact { font-size: clamp(24px, 2.55vw, 32px); line-height: 1.12; }
.cs-lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--cs-muted-2);
  font-size: 16px;
}
.cs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cs-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #b6c7da;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
  color: var(--cs-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px 8px 19px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: var(--cs-command-shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.cs-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 7px 0 0 7px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  opacity: .92;
}
.cs-button:hover {
  transform: translateY(-1px);
  border-color: #7da8ea;
  box-shadow: var(--cs-command-shadow-hover);
}
.cs-button.primary {
  border-color: #1d4ed8;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0)),
    linear-gradient(180deg, #2f6df1, #1f56d6);
  color: #fff;
  box-shadow: 0 13px 28px rgba(37,99,235,.22), 0 1px 0 rgba(255,255,255,.22) inset;
}
.cs-button.primary::before {
  background: linear-gradient(180deg, #bfdbfe, #22d3ee);
  opacity: 1;
}
.cs-button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--cs-blue);
  box-shadow: none;
  padding-left: 10px;
}
.cs-button.ghost::before {
  display: none;
}
.cs-button.warn {
  border-color: #f2cf7b;
  background: var(--cs-amber-soft);
  color: #835000;
}
.cs-button.warn::before {
  background: linear-gradient(180deg, #fbbf24, #b7791f);
}
.cs-button:focus-visible {
  outline: 2px solid rgba(37,99,235,.42);
  outline-offset: 2px;
}

/* Landing artifact story: product proof panels instead of generic SaaS cards. */
body.landing-artifact-page {
  background:
    linear-gradient(90deg, rgba(15,23,42,.038) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,.028) 1px, transparent 1px),
    radial-gradient(circle at 78% 14%, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at 12% 36%, rgba(20,184,166,.10), transparent 28%),
    var(--cs-bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}
.cs-landing-hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .82fr);
  gap: 48px;
  align-items: center;
  padding: clamp(42px, 7vw, 82px) 28px 42px;
  max-width: 1220px;
  margin: 0 auto;
}
.cs-landing-hero-copy .cs-title {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
}
.cs-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.cs-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #c9d8e8;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
  color: #475569;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}
.cs-trust-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #0f9f6e;
  margin-right: 7px;
}
.cs-proof-ledger,
.cs-artifact-surface {
  border: 1px solid #cad8e8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37,99,235,.07), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.95));
  box-shadow: var(--cs-module-shadow);
  min-width: 0;
}
.cs-proof-ledger {
  padding: 14px;
}
.cs-proof-ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe5ef;
  padding: 0 0 12px;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}
.cs-proof-ledger-head strong {
  color: #172033;
}
.cs-proof-ledger-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #e2e9f2;
  color: #172033;
}
.cs-proof-ledger-row:last-child {
  border-bottom: 0;
}
.cs-proof-ledger-row span,
.cs-proof-ledger-row em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.cs-proof-ledger-row strong {
  font-size: 13px;
  line-height: 1.25;
}
.cs-proof-ledger-row.is-warning {
  color: #8a4f00;
}
.cs-proof-ledger-row.is-good {
  color: #047857;
}
.cs-artifact-story {
  display: grid;
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 28px 52px;
  scroll-snap-type: y proximity;
}
.cs-artifact-panel {
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(280px, .64fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  border-top: 1px solid #d7e2ef;
  padding: clamp(38px, 7vw, 76px) 0;
  scroll-snap-align: start;
}
.cs-artifact-copy {
  max-width: 470px;
}
.cs-artifact-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #b8c7dc;
  border-radius: 8px;
  background: #0b1220;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 18px;
}
.cs-artifact-copy h2 {
  margin: 0;
  color: var(--cs-text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
.cs-artifact-copy p {
  margin: 18px 0 0;
  color: #475569;
  font-size: 16px;
}
.cs-artifact-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.cs-artifact-list li {
  display: flex;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
}
.cs-artifact-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 99px;
  background: #2563eb;
  margin-top: .65em;
}
.cs-artifact-surface {
  padding: clamp(18px, 3vw, 30px);
}
.cs-artifact-surface-warning {
  background:
    linear-gradient(90deg, rgba(183,121,31,.10), transparent 48%),
    linear-gradient(180deg, #fff, #fffaf0);
}
.cs-artifact-surface-good {
  background:
    linear-gradient(90deg, rgba(15,159,110,.10), transparent 48%),
    linear-gradient(180deg, #fff, #f7fffb);
}
.cs-ledger-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cs-ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  overflow: hidden;
}
.cs-ledger-grid div {
  min-height: 88px;
  padding: 14px;
  border-right: 1px solid #dbe5ef;
  border-bottom: 1px solid #dbe5ef;
}
.cs-ledger-grid div:nth-child(2n) {
  border-right: 0;
}
.cs-ledger-grid div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.cs-ledger-grid dt,
.cs-tradecheck-box span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cs-ledger-grid dd {
  margin: 8px 0 0;
  color: #172033;
  font-size: 18px;
  font-weight: 920;
  line-height: 1.15;
}
.cs-rule-finding {
  border-left: 4px solid #c2413a;
  background: #fff;
  padding: 18px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 0 #ead9c6 inset;
}
.cs-rule-finding strong {
  display: block;
  color: #172033;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}
.cs-rule-finding span {
  display: block;
  margin-top: 10px;
  color: #a51d2d;
  font-weight: 900;
}
.cs-evidence-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 18px;
}
.cs-evidence-chain span {
  background: rgba(255,255,255,.82);
  padding: 12px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
.cs-tradecheck-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  overflow: hidden;
}
.cs-tradecheck-box div {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid #dbe5ef;
  border-bottom: 1px solid #dbe5ef;
}
.cs-tradecheck-box div:nth-child(2n) { border-right: 0; }
.cs-tradecheck-box div:nth-last-child(-n+2) { border-bottom: 0; }
.cs-tradecheck-box strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 18px;
  line-height: 1.15;
}
.cs-danger-text {
  color: #c2413a !important;
}
.cs-command-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cs-command-preview .cs-button {
  min-height: 36px;
  font-size: 12px;
}
.cs-review-note {
  background: #fff;
  border: 1px solid #dbe5ef;
  border-left: 4px solid #0f9f6e;
  border-radius: 8px;
  padding: 18px 20px;
}
.cs-review-note strong {
  color: #047857;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cs-review-note p {
  margin: 10px 0 0;
  color: #172033;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}
.cs-trust-block {
  border-top: 1px solid #d7e2ef;
}
.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.cs-passport-collapsed .cs-layout { grid-template-columns: minmax(0, 1fr); }
.cs-passport-collapsed .cs-passport { display: none; }
.cs-passport-collapsed .cs-passport-dock { display: none; }
.cs-stack { display: grid; gap: 16px; min-width: 0; }
.cs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cs-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cs-panel {
  border: 1px solid var(--cs-border);
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
  min-width: 0;
}
.cs-panel.tight { padding: 14px; }
.cs-panel.accent,
.cs-panel.success,
.cs-panel.warning,
.cs-panel.danger {
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.cs-panel.accent { border-color: #b9cffd; border-left: 3px solid var(--cs-blue); }
.cs-panel.success { border-color: #a8e4cb; border-left: 3px solid var(--cs-green); }
.cs-panel.warning { border-color: #f2d184; border-left: 3px solid var(--cs-amber); background: linear-gradient(180deg, #fff, #fffdf7); }
.cs-panel.danger { border-color: #f3b1b1; border-left: 3px solid var(--cs-red); background: linear-gradient(180deg, #fff, #fffafa); }
a.cs-panel,
body.cs-page a.cs-panel {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.cs-panel:hover,
body.cs-page a.cs-panel:hover {
  border-color: rgba(37,99,235,.42);
  box-shadow: 0 10px 28px rgba(37,99,235,.08);
  transform: translateY(-1px);
}
.cs-panel-title {
  margin: 0 0 4px;
  color: var(--cs-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}
.cs-panel-kicker {
  margin: 0 0 8px;
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cs-panel-copy {
  margin: 0;
  color: var(--cs-muted-2);
  font-size: 13px;
}
.cs-scope-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
  border: 0;
  background: transparent;
  border-radius: var(--cs-radius);
  padding: 0;
}
.cs-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.cs-viewbar-left,
.cs-viewbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.cs-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--cs-border);
  background: var(--cs-surface);
  border-radius: 8px;
  padding: 3px;
}
.cs-mode-switch button,
.cs-passport-toggle {
  border: 0;
  border-radius: 6px;
  min-height: 26px;
  padding: 4px 9px;
  background: transparent;
  color: var(--cs-muted-2);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.cs-mode-switch button[aria-pressed="true"] {
  background: var(--cs-ink-2);
  color: #fff;
}
.cs-passport-toggle {
  border: 1px solid var(--cs-border);
  background: var(--cs-surface);
}

body.cs-page .cs-viewbar .cs-mode-switch,
body.cs-page .cs-command-bar .cs-mode-switch {
  display: none;
}
.cs-passport-toggle:hover { border-color: var(--cs-blue); color: var(--cs-text); }
.cs-passport-dock {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(219,234,254,.58);
  border-radius: var(--cs-radius);
  padding: 10px 12px;
  margin: 14px 0;
}
.cs-passport-dock strong { font-size: 13px; }
.cs-passport-dock span { color: var(--cs-muted-2); font-size: 12px; }
.cs-lite-only { display: block; }
.cs-trader-only { display: none; }
html.alpha-density-detail .cs-detail-only,
html.alpha-trader .cs-detail-only,
html.alpha-density-detail .cs-trader-only,
html.alpha-trader .cs-trader-only { display: block; }
html.alpha-density-compact .cs-detail-only,
html.alpha-lite .cs-detail-only,
html.alpha-density-compact .cs-trader-only,
html.alpha-lite .cs-trader-only { display: none !important; }
html.alpha-density-detail .cs-compact-only,
html.alpha-trader .cs-compact-only,
html.alpha-density-detail .cs-lite-only,
html.alpha-trader .cs-lite-only { display: none !important; }
html.alpha-density-detail .cs-rail a.cs-detail-only,
html.alpha-trader .cs-rail a.cs-detail-only,
html.alpha-density-detail .cs-rail a.cs-trader-only,
html.alpha-trader .cs-rail a.cs-trader-only { display: flex; }
html.alpha-density-detail .cs-grid-2.cs-detail-only,
html.alpha-density-detail .cs-grid-3.cs-detail-only,
html.alpha-density-detail .cs-grid-4.cs-detail-only,
html.alpha-density-detail .cs-link-grid.cs-detail-only,
html.alpha-trader .cs-grid-2.cs-trader-only,
html.alpha-trader .cs-grid-3.cs-trader-only,
html.alpha-trader .cs-grid-4.cs-trader-only,
html.alpha-trader .cs-link-grid.cs-trader-only { display: grid; }
html.alpha-product-investor .cs-trading-only { display: none !important; }
html.alpha-product-trading .cs-investor-only { display: none !important; }
html.alpha-product-investor .cs-grid-2.cs-investor-only,
html.alpha-product-investor .cs-grid-3.cs-investor-only,
html.alpha-product-investor .cs-grid-4.cs-investor-only,
html.alpha-product-investor .cs-link-grid.cs-investor-only { display: grid; }
.cs-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 4px 0 12px;
  min-width: 0;
}
.cs-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.cs-section-head p {
  margin: 4px 0 0;
  color: var(--cs-muted-2);
  font-size: 13px;
}
.cs-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--cs-border);
  background: rgba(255,255,255,.86);
  border-radius: var(--cs-radius);
  padding: 10px;
  margin: 16px 0;
}
.cs-command-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-command-label {
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 0 4px;
}
.cs-action-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--cs-border);
  background: #fff;
  border-radius: var(--cs-radius);
  overflow: hidden;
  min-width: 0;
}
.cs-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--cs-border);
  background: transparent;
  border-radius: 0;
  padding: 13px 12px;
}
.cs-action-item:last-child { border-bottom: 0; }
.cs-action-item strong {
  display: block;
  font-size: 14px;
}
.cs-action-item span {
  display: block;
  color: var(--cs-muted-2);
  font-size: 12px;
  margin-top: 3px;
}
.cs-action-item .cs-button {
  min-width: 132px;
}
.cs-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cs-link-card {
  border: 1px solid var(--cs-border);
  background: #fbfcfe;
  border-radius: var(--cs-radius);
  padding: 13px;
  color: inherit;
  text-decoration: none;
  min-height: 96px;
}
.cs-link-card:hover {
  border-color: rgba(37,99,235,.38);
  background: #fff;
  box-shadow: 0 8px 22px rgba(37,99,235,.07);
}
.cs-link-card small {
  display: block;
  color: var(--cs-blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 7px;
}
.cs-link-card strong { display: block; font-size: 14px; line-height: 1.25; }
.cs-link-card span { display: block; margin-top: 5px; color: var(--cs-muted-2); font-size: 12px; line-height: 1.4; }
.cs-analysis-strip {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.cs-chart-bars {
  height: 176px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background:
    linear-gradient(180deg, transparent 24%, rgba(100,116,139,.12) 24% 25%, transparent 25% 49%, rgba(100,116,139,.12) 49% 50%, transparent 50% 74%, rgba(100,116,139,.12) 74% 75%, transparent 75%),
    linear-gradient(180deg, #fff, #f8fbff);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 5px;
  padding: 20px 18px;
}
.cs-chart-bars i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: var(--cs-blue);
  opacity: .82;
}
.cs-chart-bars i.loss { background: var(--cs-red); }
.cs-scope-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  background: var(--cs-surface-2);
  border: 1px solid #e2e8f0;
  color: var(--cs-muted-2);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}
.cs-metric {
  border: 1px solid var(--cs-border);
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  padding: 14px;
}
.cs-metric-label {
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.cs-metric-value {
  margin-top: 8px;
  color: var(--cs-text);
  font-size: 26px;
  line-height: 1;
  font-weight: 920;
  font-variant-numeric: tabular-nums;
}
.cs-metric-note {
  margin-top: 7px;
  color: var(--cs-muted-2);
  font-size: 12px;
}
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cs-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.cs-table th,
.cs-table td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid var(--cs-border);
  vertical-align: top;
}
.cs-table th {
  color: var(--cs-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}
.cs-table tr:last-child td { border-bottom: 0; }
.cs-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.cs-status.ok { color: #036449; background: var(--cs-green-soft); }
.cs-status.warn { color: #835000; background: var(--cs-amber-soft); }
.cs-status.risk { color: #8f1d1d; background: var(--cs-red-soft); }
.cs-status.info { color: #1d4ed8; background: var(--cs-blue-soft); }
.cs-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-list li,
.cs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--cs-border);
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
}
.cs-list li:last-child,
.cs-row:last-child { border-bottom: 0; }
.cs-row strong,
.cs-list strong { display: block; font-size: 13px; }
.cs-row span,
.cs-list span { display: block; color: var(--cs-muted-2); font-size: 12px; margin-top: 2px; }

.cs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.cs-form-grid label,
.cs-field-full {
  display: grid;
  gap: 6px;
  color: var(--cs-muted-2);
  font-size: 12px;
  font-weight: 850;
}
.cs-field-full { margin-top: 12px; }
.cs-input {
  width: 100%;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: #fff;
  color: var(--cs-text);
  padding: 9px 10px;
  min-height: 38px;
  outline: none;
}
textarea.cs-input {
  min-height: 84px;
  resize: vertical;
}
.cs-input:focus {
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.cs-inline-status {
  color: var(--cs-muted-2);
  font-size: 12px;
  font-weight: 800;
}
.cs-passport {
  position: sticky;
  top: 82px;
}
.cs-passport dl {
  display: grid;
  gap: 9px;
  margin: 0;
}
.cs-passport div {
  border-bottom: 1px solid var(--cs-border);
  padding-bottom: 8px;
}
.cs-passport div:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-passport dt {
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cs-passport dd {
  margin: 3px 0 0;
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 800;
}
.cs-chart {
  height: 132px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background:
    linear-gradient(180deg, transparent 24%, rgba(37,99,235,.07) 24% 25%, transparent 25% 49%, rgba(37,99,235,.07) 49% 50%, transparent 50% 74%, rgba(37,99,235,.07) 74% 75%, transparent 75%),
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(15,159,110,.08));
  position: relative;
  overflow: hidden;
}
.cs-chart::after {
  content: "";
  position: absolute;
  inset: 22px 18px 28px;
  clip-path: polygon(0 72%, 14% 64%, 27% 76%, 41% 48%, 53% 58%, 66% 28%, 80% 36%, 100% 18%, 100% 100%, 0 100%);
  background: rgba(37,99,235,.42);
}
.cs-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.cs-flow-step {
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
  padding: 13px;
  min-height: 118px;
}
.cs-flow-step small {
  color: var(--cs-blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.cs-flow-step strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}
.cs-flow-step span {
  display: block;
  margin-top: 6px;
  color: var(--cs-muted-2);
  font-size: 12px;
}
.cs-form {
  display: grid;
  gap: 13px;
}
.cs-field { display: grid; gap: 6px; }
.cs-field label {
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cs-field input,
.cs-field select,
.cs-field textarea {
  width: 100%;
  border: 1px solid var(--cs-border);
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  color: var(--cs-text);
  padding: 11px;
  outline: none;
}
.cs-field textarea { min-height: 110px; resize: vertical; }
.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.cs-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--cs-muted-2);
  font-size: 12px;
}
.cs-check input { width: 18px; height: 18px; accent-color: var(--cs-blue); }
.cs-footer {
  border-top: 1px solid var(--cs-border);
  background: #fbfcfe;
  padding: 26px;
  color: var(--cs-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cs-footer a { color: var(--cs-muted-2); text-decoration: none; font-weight: 750; }
.cs-footer a:hover { color: var(--cs-text); }
.cs-footer a[aria-current="page"] {
  color: var(--cs-text);
  background: var(--cs-blue-soft);
  border-radius: 6px;
  padding: 2px 6px;
}
.cs-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.cs-hidden { display: none !important; }

@media (max-width: 1050px) {
  .cs-app { grid-template-columns: 1fr; }
  .cs-rail {
    position: sticky;
    top: 62px;
    z-index: 30;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--cs-border);
    padding: 8px;
    display: flex;
    overflow-x: auto;
    max-width: 100vw;
    scrollbar-width: thin;
  }
  .cs-rail-toggle,
  body.cs-page.cs-rail-collapsed .cs-rail-toggle {
    display: none;
  }
  .cs-rail-tools {
    display: none;
  }
  body.cs-page.cs-rail-collapsed .cs-rail {
    padding: 8px;
  }
  body.cs-page.cs-rail-collapsed .cs-rail-tools {
    display: none;
  }
  body.cs-page.cs-rail-collapsed .cs-rail a {
    justify-content: flex-start;
    gap: 9px;
    padding: 10px;
    font-size: 13px;
  }
  body.cs-page.cs-rail-collapsed .cs-rail-icon {
    font-size: 14px;
  }
  .cs-rail-title { display: none; }
  .cs-rail a { flex: 0 0 auto; }
  .cs-layout,
  .cs-hero-public,
  .cs-landing-hero,
  .cs-artifact-panel { grid-template-columns: 1fr; }
  .cs-landing-hero { min-height: auto; gap: 28px; }
  .cs-artifact-story { scroll-snap-type: none; }
  .cs-artifact-panel { min-height: auto; }
  .cs-passport-collapsed .cs-layout { grid-template-columns: 1fr; }
  .cs-passport { position: static; }
  .cs-flow { grid-template-columns: 1fr 1fr; }
  .cs-link-grid,
  .cs-analysis-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cs-topbar { align-items: flex-start; flex-wrap: wrap; padding: 10px 14px; }
  .cs-topnav { order: 3; margin-left: 0; width: 100%; }
  .cs-appnav { order: 4; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .cs-account { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .cs-account > .cs-chip:not(.readonly) { display: none; }
  .cs-account-menu button { min-height: 32px; }
  .cs-main { padding: 22px 14px 48px; }
  .cs-hero-public { padding: 36px 16px; }
  .cs-landing-hero { padding: 34px 16px 24px; }
  .cs-artifact-story { padding: 0 16px 42px; gap: 10px; }
  .cs-proof-ledger-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .cs-ledger-grid,
  .cs-tradecheck-box,
  .cs-evidence-chain { grid-template-columns: 1fr; }
  .cs-ledger-grid div,
  .cs-tradecheck-box div,
  .cs-ledger-grid div:nth-child(2n),
  .cs-tradecheck-box div:nth-child(2n),
  .cs-ledger-grid div:nth-last-child(-n+2),
  .cs-tradecheck-box div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #dbe5ef;
  }
  .cs-ledger-grid div:last-child,
  .cs-tradecheck-box div:last-child { border-bottom: 0; }
  .cs-title { font-size: 38px; }
  .cs-title.compact { font-size: 26px; }
  .cs-lead { font-size: 16px; }
  .cs-grid-2,
  .cs-grid-3,
  .cs-grid-4,
  .cs-form-grid,
  .cs-flow { grid-template-columns: 1fr; }
  .cs-scope-strip { align-items: stretch; }
  .cs-scope-strip span { width: 100%; }
  .cs-table { min-width: 620px; }
  .cs-table-wrap { overflow-x: auto; }
  .cs-link-grid,
  .cs-analysis-strip { grid-template-columns: 1fr; }
  .cs-action-item { grid-template-columns: 1fr; }
  .cs-action-item .cs-button { width: 100%; }
  .cs-action-table { border-radius: 7px; }
  .cs-scope-strip span { width: 100%; justify-content: space-between; }
  .cs-section-head { flex-direction: column; align-items: stretch; }
  .cs-section-head .cs-button { width: 100%; }
  .cs-chip { max-width: 100%; white-space: normal; }
  .cs-brand { min-width: 122px; }
  .cs-brand-wordmark { width: 124px; height: 24px; }
  .cs-auth-shell {
    place-items: start center;
    width: 100vw;
    min-width: 0;
    padding: 150px 18px 72px;
    overflow-x: hidden;
  }
  .cs-auth-card {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    min-width: 0;
    margin-inline: auto;
    padding: 24px 20px;
    overflow: hidden;
  }
  .cs-auth-brand {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    min-height: 76px;
    margin-bottom: 24px;
    padding: 9px 10px 10px 9px;
    overflow: hidden;
  }
  .cs-auth-brand::before {
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 2px;
  }
  .cs-auth-brand::after {
    inset: 7px;
    background-size: 16px 16px;
  }
  .cs-auth-brand-signal {
    grid-column: 1;
    position: relative;
    right: auto;
    top: auto;
    width: 50px;
    height: 50px;
    border-radius: 11px;
    opacity: 1;
  }
  .cs-auth-brand-signal::before {
    inset: 6px;
    border-radius: 9px;
  }
  .cs-auth-brand-signal::after {
    inset: 5px;
    border-radius: 10px;
  }
  .cs-auth-scope-logo {
    width: 49px;
    height: 40px;
  }
  .cs-auth-brand-main {
    grid-column: 2;
    gap: 6px;
  }
  .cs-auth-wordmark {
    max-width: 100%;
    font-size: clamp(23px, 8vw, 29px);
    line-height: .9;
  }
  .cs-auth-word-os::after {
    bottom: -4px;
    height: 2px;
  }
  .cs-auth-word-tld {
    margin-left: 3px;
    font-size: 13px;
  }
  .cs-auth-brand-meta {
    gap: 7px;
    align-items: flex-start;
    flex-direction: column;
    padding-right: 0;
  }
  .cs-auth-brand-line {
    font-size: 7.5px;
    gap: 5px;
    letter-spacing: .06em;
    white-space: normal;
  }
  .cs-auth-brand-line::before {
    width: 16px;
  }
  .cs-auth-brand-status {
    min-height: 12px;
    padding: 0;
    font-size: 7.5px;
  }
  .cs-auth-card form,
  .cs-auth-field,
  .cs-auth-card .field {
    min-width: 0;
  }
  .cs-auth-card input,
  .cs-auth-card select,
  .cs-auth-card textarea,
  .cs-auth-submit,
  .cs-auth-card .btn {
    width: 100%;
    max-width: 100%;
  }
  .cs-auth-links,
  .cs-auth-card .link-row {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .cs-auth-links > div,
  .cs-auth-card .link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 4px;
    row-gap: 2px;
  }
  .cs-auth-links a,
  .cs-auth-card .link-row a {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .cs-auth-shell {
    padding: 150px 16px 72px;
  }
  .cs-auth-card {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    padding: 24px 18px;
  }
  .cs-auth-brand {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 8px;
    width: min(100%, 304px);
    min-height: 68px;
    padding: 8px;
  }
  .cs-auth-brand-signal {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .cs-auth-brand-signal::before {
    inset: 5px;
    border-radius: 8px;
  }
  .cs-auth-brand-signal::after {
    inset: 4px;
    border-radius: 9px;
  }
  .cs-auth-scope-logo {
    width: 42px;
    height: 34px;
  }
  .cs-auth-wordmark {
    font-size: clamp(20px, 5.8vw, 22px);
  }
  .cs-auth-word-tld {
    font-size: 11px;
  }
  .cs-auth-brand-line {
    font-size: 7px;
  }
  .cs-auth-brand-status {
    font-size: 7px;
  }
  .cs-auth-links > div,
  .cs-auth-card .link-row {
    display: block;
    text-align: center;
  }
}

/* Legacy detail surfaces refreshed into the Control System shell. */
body.analysis-refresh,
body.mot-refresh {
  --bg: var(--cs-bg);
  --bg2: #ffffff;
  --bg3: #f8fafc;
  --bg4: #eef3f8;
  --border: var(--cs-border);
  --border2: var(--cs-border-strong);
  --accent: var(--cs-blue);
  --accent2: var(--cs-blue-2);
  --green: var(--cs-green);
  --red: var(--cs-red);
  --yellow: #d49218;
  --orange: #d97706;
  --purple: #6366f1;
  --text: var(--cs-text);
  --muted: var(--cs-muted);
  --muted2: var(--cs-muted-2);
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,.025) 1px, transparent 1px),
    var(--cs-bg);
  background-size: 44px 44px;
  color: var(--cs-text);
}

body.analysis-refresh .header,
body.mot-refresh .header {
  min-height: 62px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(148,163,184,.22);
  background: rgba(5,8,20,.94);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

body.analysis-refresh .logo,
body.mot-refresh .logo {
  flex: 0 0 auto;
  min-width: 150px;
}

body.analysis-refresh .logo img,
body.mot-refresh .logo-img {
  width: 142px;
  height: 27px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

body.analysis-refresh .logo > div,
body.mot-refresh .logo-text {
  display: none;
}

body.analysis-refresh .app-nav {
  border-color: rgba(148,163,184,.22);
  background: rgba(15,23,42,.74);
  border-radius: var(--cs-radius);
}

body.analysis-refresh .app-nav-link {
  color: #d8e3f3;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
}

body.analysis-refresh .app-nav-link:hover,
body.analysis-refresh .app-nav-link.active {
  color: #fff;
  background: rgba(37,99,235,.32);
}

body.analysis-refresh .system-menu-btn,
body.analysis-refresh .chip,
body.analysis-refresh .live-widget,
body.mot-refresh .btn-back,
body.mot-refresh .concept-badge {
  border-color: rgba(148,163,184,.26);
  background: rgba(15,23,42,.74);
  color: #d8e3f3;
  border-radius: var(--cs-radius);
}

body.analysis-refresh .header-right,
body.prediction-refresh .nav-right,
body.mot-refresh .header-right {
  gap: 6px !important;
}

body.analysis-refresh .system-menu-btn,
body.analysis-refresh .chip,
body.analysis-refresh .live-widget,
body.prediction-refresh .system-menu-btn,
body.prediction-refresh .nav-badge,
body.mot-refresh .system-menu-btn,
body.mot-refresh .concept-badge {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body.analysis-refresh .live-widget,
body.analysis-refresh .chip {
  flex-basis: auto !important;
  max-width: 208px !important;
}

body.analysis-refresh .live-widget {
  border-color: rgba(16,185,129,.30) !important;
  background: rgba(236,253,245,.96) !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .live-widget .lw-sync,
body.analysis-refresh .live-widget .lw-val {
  color: var(--cs-text) !important;
}

body.analysis-refresh .live-widget .lw-val.pos {
  color: var(--cs-green) !important;
}

body.analysis-refresh .live-widget .lw-val.neg {
  color: var(--cs-red) !important;
}

body.analysis-refresh .live-widget .lw-label,
body.analysis-refresh .live-widget .lw-last-sync,
body.analysis-refresh .live-widget .lw-inline-sep {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .system-menu-panel {
  background: var(--cs-ink-2);
  border-color: rgba(148,163,184,.25);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
}

body.analysis-refresh .system-menu-panel a,
body.analysis-refresh .system-menu-panel button {
  color: #d8e3f3;
}

body.analysis-refresh .system-menu-panel a:hover,
body.analysis-refresh .system-menu-panel button:hover,
body.mot-refresh .btn-back:hover {
  background: rgba(59,130,246,.12);
  color: #fff;
}

body.analysis-refresh .analysis-refresh-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--cs-border);
  background: rgba(255,255,255,.88);
}

body.analysis-refresh .analysis-refresh-bridge strong {
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 950;
}

body.analysis-refresh .analysis-refresh-bridge span {
  margin-left: 8px;
  color: var(--cs-muted-2);
  font-size: 12px;
}

body.analysis-refresh .analysis-refresh-bridge nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.analysis-refresh .analysis-refresh-bridge a {
  border: 1px solid var(--cs-border);
  border-radius: 7px;
  background: #fff;
  color: var(--cs-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

body.analysis-refresh .mode-panel,
body.analysis-refresh .lite-question-strip,
body.analysis-refresh .investor-mode-banner,
body.analysis-refresh .analysis-mode-rail,
body.analysis-refresh .workflow-nav,
body.analysis-refresh .kpi-bar,
body.analysis-refresh .panel,
body.analysis-refresh .aha-panel,
body.analysis-refresh .account-state-banner,
body.analysis-refresh .data-basis-card,
body.analysis-refresh .insight,
body.analysis-refresh .rec,
body.analysis-refresh .callout,
body.analysis-refresh .scope-details,
body.analysis-refresh .scope-modal,
body.analysis-refresh .rc-shell,
body.analysis-refresh .rc-panel,
body.analysis-refresh .rc-cardish,
body.analysis-refresh .rc-acc,
body.analysis-refresh .rc-report-card,
body.analysis-refresh .footer,
body.mot-refresh .broker-panel,
body.mot-refresh .alpha-panel,
body.mot-refresh .ticker,
body.mot-refresh .form-input,
body.mot-refresh .dir-btn,
body.mot-refresh .spread-info,
body.mot-refresh .scan-panel,
body.mot-refresh .paper-intent-panel,
body.mot-refresh .stat-card,
body.mot-refresh .hour-chart,
body.mot-refresh .pattern-item {
  background: rgba(255,255,255,.92) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: none;
}

body.analysis-refresh .panel,
body.analysis-refresh .aha-panel,
body.analysis-refresh .data-basis-card,
body.analysis-refresh .rc-panel,
body.mot-refresh .broker-panel,
body.mot-refresh .alpha-panel {
  border-radius: var(--cs-radius);
}

body.analysis-refresh .analysis-mode-card,
body.analysis-refresh .lite-question,
body.analysis-refresh .tab,
body.analysis-refresh .kpi,
body.analysis-refresh .chart-wrap,
body.analysis-refresh .scope-chip,
body.analysis-refresh .data-basis-action,
body.analysis-refresh .rc-btn,
body.analysis-refresh .rc-row,
body.analysis-refresh .rc-kpi-cell,
body.analysis-refresh .rc-mot-badge,
body.mot-refresh .ticker,
body.mot-refresh .dir-btn,
body.mot-refresh .execute-btn,
body.mot-refresh .btn-abort,
body.mot-refresh .btn-proceed,
body.mot-refresh .btn-reset {
  border-radius: var(--cs-radius);
}

body.analysis-refresh .analysis-mode-card {
  background: #fff !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .analysis-mode-card.active,
body.analysis-refresh .tab.active {
  background: #fff !important;
  border-color: #b9cffd !important;
  color: var(--cs-text) !important;
  box-shadow: inset 3px 0 0 var(--cs-blue);
}

body.analysis-refresh .analysis-mode-kicker,
body.analysis-refresh .panel-title,
body.analysis-refresh .ui-role-tag,
body.analysis-refresh .kpi-label,
body.analysis-refresh .stat-label,
body.analysis-refresh .data-basis-title,
body.analysis-refresh .lite-question-kicker,
body.analysis-refresh .rc-kicker,
body.mot-refresh .panel-label,
body.mot-refresh .form-label,
body.mot-refresh .stat-label,
body.mot-refresh .chart-title,
body.mot-refresh .scan-title,
body.mot-refresh .paper-intent-head,
body.mot-refresh .ui-role-tag {
  color: var(--cs-muted) !important;
}

body.analysis-refresh .analysis-mode-title,
body.analysis-refresh .lite-question-title,
body.analysis-refresh .aha-title,
body.analysis-refresh .kpi-val,
body.analysis-refresh .metric-val,
body.analysis-refresh .insight-title,
body.analysis-refresh .rec-title,
body.analysis-refresh .next-review-title,
body.analysis-refresh h1,
body.analysis-refresh h2,
body.analysis-refresh h3,
body.mot-refresh .alpha-title,
body.mot-refresh .stat-val,
body.mot-refresh .pattern-text strong,
body.mot-refresh .spread-val,
body.mot-refresh h1,
body.mot-refresh h2,
body.mot-refresh h3 {
  color: var(--cs-text) !important;
}

body.analysis-refresh .analysis-mode-sub,
body.analysis-refresh .lite-question-sub,
body.analysis-refresh .account-state-copy,
body.analysis-refresh .data-basis-sub,
body.analysis-refresh .kpi-sub,
body.analysis-refresh .chart-note,
body.analysis-refresh .insight-body,
body.analysis-refresh .rec-body,
body.analysis-refresh .footer,
body.mot-refresh .alpha-sub,
body.mot-refresh .stat-sub,
body.mot-refresh .pattern-text,
body.mot-refresh .paper-intent-note,
body.mot-refresh .gate-note,
body.mot-refresh .safety-strip,
body.mot-refresh .scan-item {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .btn-primary,
body.analysis-refresh .data-basis-action.primary,
body.analysis-refresh .rc-btn.primary,
body.analysis-refresh .rc-btn.mot,
body.mot-refresh .execute-btn,
body.mot-refresh .btn-abort {
  border: 1px solid var(--cs-blue) !important;
  background: var(--cs-blue) !important;
  color: #fff !important;
}

body.analysis-refresh .chart-empty-state,
body.analysis-refresh .analysis-state,
body.mot-refresh .mot-modal,
body.mot-refresh .result-box {
  background: rgba(255,255,255,.98) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: var(--cs-shadow);
}

body.analysis-refresh {
  overflow-x: clip;
}

body.analysis-refresh .container,
body.analysis-refresh .main,
body.analysis-refresh .tab-content,
body.analysis-refresh .rc-module,
body.analysis-refresh .rc-body,
body.analysis-refresh .rc-acc,
body.analysis-refresh .rc-acc-body,
body.analysis-refresh .rc-report-body,
body.analysis-refresh .rc-report-kpis,
body.analysis-refresh .rc-suggest-grid,
body.analysis-refresh .rc-suggest-metrics,
body.analysis-refresh .rc-rule-grid,
body.analysis-refresh .rc-focus-grid,
body.analysis-refresh .rc-user-rule-form,
body.analysis-refresh .rc-cfg-grid,
body.analysis-refresh .rc-card,
body.analysis-refresh .rc-row,
body.analysis-refresh .rc-row.rc-cardish,
body.analysis-refresh .ai-data-use {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.analysis-refresh .rc-rule-grid,
body.analysis-refresh .rc-report-kpis,
body.analysis-refresh .rc-suggest-grid,
body.analysis-refresh .rc-suggest-metrics,
body.analysis-refresh .rc-focus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.analysis-refresh .rc-report-kpis {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important;
  align-items: stretch;
}

body.analysis-refresh .rc-report-kpi {
  min-height: 58px;
  padding: 9px 10px !important;
}

body.analysis-refresh .rc-report-kpi strong {
  font-size: 14px !important;
  line-height: 1.25;
}

body.analysis-refresh .rc-pnl-definition {
  margin-top: 8px !important;
  border-top: 1px solid rgba(148,163,184,.24);
  padding-top: 7px;
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .rc-pnl-definition summary {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .rc-card,
body.analysis-refresh .rc-card *,
body.analysis-refresh .rc-report-card,
body.analysis-refresh .rc-report-card *,
body.analysis-refresh .rc-suggest-card,
body.analysis-refresh .rc-suggest-card *,
body.analysis-refresh .rc-mot-item,
body.analysis-refresh .rc-mot-item *,
body.analysis-refresh .ai-data-use,
body.analysis-refresh .ai-data-use * {
  overflow-wrap: anywhere;
}

body.analysis-refresh .rc-card,
body.analysis-refresh .rc-row,
body.analysis-refresh .rc-row.rc-cardish,
body.analysis-refresh .rc-report-card,
body.analysis-refresh .rc-report-kpi,
body.analysis-refresh .rc-report-callout,
body.analysis-refresh .rc-report-basis,
body.analysis-refresh .rc-suggest-card,
body.analysis-refresh .rc-suggest-metric,
body.analysis-refresh .rc-focus-panel,
body.analysis-refresh .rc-focus-chip,
body.analysis-refresh .rc-user-rule-form,
body.analysis-refresh .rc-user-rule-empty,
body.analysis-refresh .rc-filter-bar,
body.analysis-refresh .rc-filter-empty,
body.analysis-refresh .rc-mot-kpi,
body.analysis-refresh .rc-mot-item,
body.analysis-refresh .rc-mot-empty,
body.analysis-refresh .rc-mot-reason,
body.analysis-refresh .rc-mot-outcome,
body.analysis-refresh .rc-trade-item,
body.analysis-refresh .ai-data-use {
  background: #fff !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .rc-report-callout,
body.analysis-refresh .rc-report-basis,
body.analysis-refresh .rc-focus-panel,
body.analysis-refresh .ai-data-use {
  background: #f4f8ff !important;
  border-color: #b9cffd !important;
}

body.analysis-refresh .rc-card.rc-ok,
body.analysis-refresh .rc-row.rc-cardish.is-on {
  border-color: rgba(22,163,74,.26) !important;
}

body.analysis-refresh .rc-card.rc-bad {
  border-color: rgba(220,38,38,.28) !important;
}

body.analysis-refresh .rc-card.rc-warn,
body.analysis-refresh .rc-focus-chip.mot {
  border-color: rgba(217,119,6,.28) !important;
}

body.analysis-refresh .rc-rule-hd,
body.analysis-refresh .rc-report-trade-head,
body.analysis-refresh .rc-mot-head,
body.analysis-refresh .rc-section-head,
body.analysis-refresh .rc-focus-head {
  min-width: 0;
}

body.analysis-refresh .rc-rule-title,
body.analysis-refresh .rc-headline,
body.analysis-refresh .rc-kpi-val,
body.analysis-refresh .rc-report-trade-title,
body.analysis-refresh .rc-suggest-title,
body.analysis-refresh .rc-suggest-metric strong,
body.analysis-refresh .rc-report-kpi strong,
body.analysis-refresh .rc-focus-title,
body.analysis-refresh .rc-focus-chip strong,
body.analysis-refresh .rc-modal-title,
body.analysis-refresh .rc-card strong,
body.analysis-refresh .rc-stat strong,
body.analysis-refresh .rc-rule-detail strong,
body.analysis-refresh .rc-mot-title,
body.analysis-refresh .rc-mot-kpi strong,
body.analysis-refresh .ai-data-use strong,
body.analysis-refresh .rc-report-basis strong,
body.analysis-refresh .rc-pnl-definition strong,
body.analysis-refresh .rc-trade-main {
  color: var(--cs-text) !important;
}

body.analysis-refresh .rc-rule-title {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 900 !important;
}

body.analysis-refresh .rc-hint,
body.analysis-refresh .rc-rule-detail,
body.analysis-refresh .rc-stat,
body.analysis-refresh .rc-report-copy,
body.analysis-refresh .rc-report-callout,
body.analysis-refresh .rc-report-basis,
body.analysis-refresh .rc-pnl-definition,
body.analysis-refresh .rc-suggest-reason,
body.analysis-refresh .rc-section-note,
body.analysis-refresh .rc-mot-reason,
body.analysis-refresh .rc-mot-empty,
body.analysis-refresh .rc-mot-meta,
body.analysis-refresh .rc-mot-outcome span,
body.analysis-refresh .rc-trade-meta,
body.analysis-refresh .ai-data-use {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .rc-card-badge,
body.analysis-refresh .rc-rule-status,
body.analysis-refresh .rc-mot-pill {
  background: #eef4ff !important;
  border-color: #bfd2f4 !important;
  color: var(--cs-blue) !important;
}

body.analysis-refresh .rc-card-badge.green,
body.analysis-refresh .rc-rule-status.on {
  background: #ecfdf5 !important;
  border-color: rgba(22,163,74,.24) !important;
  color: #047857 !important;
}

body.analysis-refresh .rc-card-badge.warn,
body.analysis-refresh .rc-mot-pill {
  background: #fff7ed !important;
  border-color: rgba(217,119,6,.24) !important;
  color: #9a5b00 !important;
}

body.analysis-refresh .rc-report-btn,
body.analysis-refresh .rc-report-drill-btn,
body.analysis-refresh .rc-show-more,
body.analysis-refresh .rc-user-rule-btn {
  background: #fff !important;
  border-color: var(--cs-border-strong) !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .rc-report-btn:hover,
body.analysis-refresh .rc-report-drill-btn:hover,
body.analysis-refresh .rc-show-more:hover,
body.analysis-refresh .rc-user-rule-btn:hover {
  border-color: rgba(37,99,235,.45) !important;
  color: var(--cs-blue) !important;
}

body.analysis-refresh .rc-trade-items,
body.analysis-refresh .rc-report-trade-panel {
  overflow-x: hidden !important;
}

body.analysis-refresh .rc-mot-outcome {
  align-items: flex-start;
}

body.analysis-refresh .start-card,
body.analysis-refresh .start-action,
body.analysis-refresh .setup-workspace,
body.analysis-refresh .setup-status-item,
body.analysis-refresh .setup-source-card,
body.analysis-refresh .next-review-panel,
body.analysis-refresh .next-review-metric,
body.analysis-refresh .stat-box,
body.analysis-refresh .bc-num,
body.analysis-refresh .sp-kpi,
body.analysis-refresh .pb-card,
body.analysis-refresh .risk-card,
body.analysis-refresh .eq-card,
body.analysis-refresh .import-bar,
body.analysis-refresh .import-reconcile,
body.analysis-refresh .import-reconcile-kpi,
body.analysis-refresh .import-reconcile-step,
body.analysis-refresh .scope-bar,
body.analysis-refresh .scope-modal,
body.analysis-refresh .scope-fieldset,
body.analysis-refresh .scope-option,
body.analysis-refresh .settings-modal-panel,
body.analysis-refresh #oandaSettingsModal > div {
  background: rgba(255,255,255,.94) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .setup-workspace,
body.analysis-refresh .next-review-panel,
body.analysis-refresh .import-reconcile,
body.analysis-refresh .settings-modal-panel .ai-data-use {
  background: linear-gradient(135deg, #f4f8ff, #f8fffc) !important;
  border-color: #b9cffd !important;
}

body.analysis-refresh .start-card {
  box-shadow: var(--cs-shadow) !important;
}

body.analysis-refresh .mode-panel-title,
body.analysis-refresh .start-title,
body.analysis-refresh .start-action strong,
body.analysis-refresh .setup-workspace-title,
body.analysis-refresh .setup-status-item strong,
body.analysis-refresh .setup-source-card strong,
body.analysis-refresh .account-state-title,
body.analysis-refresh .data-basis-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

body.analysis-refresh .data-basis-value,
body.analysis-refresh .data-basis-sub {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.analysis-refresh .data-basis-item {
  min-height: 82px;
}

body.analysis-refresh .data-basis-value,
body.analysis-refresh .stat-box-val,
body.analysis-refresh .bc-title,
body.analysis-refresh .bc-num-val,
body.analysis-refresh .sp-kpi-val,
body.analysis-refresh .pb-val,
body.analysis-refresh .risk-val,
body.analysis-refresh .eq-val,
body.analysis-refresh .import-bar-title strong,
body.analysis-refresh .scope-modal-title,
body.analysis-refresh .scope-radio strong,
body.analysis-refresh .import-reconcile-title,
body.analysis-refresh .import-reconcile-kpi strong,
body.analysis-refresh .import-reconcile-step strong,
body.analysis-refresh .callout strong,
body.analysis-refresh .rec-title,
body.analysis-refresh .td-name,
body.analysis-refresh .settings-modal-panel strong,
body.analysis-refresh #oandaSettingsModal strong {
  color: var(--cs-text) !important;
}

body.analysis-refresh .setup-workspace-copy,
body.analysis-refresh .setup-status-item span,
body.analysis-refresh .setup-source-card span,
body.analysis-refresh .next-review-body,
body.analysis-refresh .stat-box-sub,
body.analysis-refresh .bc-sub,
body.analysis-refresh .bc-body,
body.analysis-refresh .sp-kpi-sub,
body.analysis-refresh .pb-median,
body.analysis-refresh .pb-note,
body.analysis-refresh .import-reconcile-sub,
body.analysis-refresh .import-reconcile-step,
body.analysis-refresh .import-reconcile-note,
body.analysis-refresh .scope-modal-copy,
body.analysis-refresh .scope-option,
body.analysis-refresh .scope-option small,
body.analysis-refresh .settings-modal-panel li,
body.analysis-refresh #oandaSettingsModal li {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .rc-mot-badge {
  background: #fff7ed !important;
  border-color: rgba(217,119,6,.30) !important;
  color: #8a4b00 !important;
}

body.analysis-refresh .setup-workspace-kicker {
  color: var(--cs-blue) !important;
}

body.mot-refresh .spread-cost {
  color: #8a5a00 !important;
}

body.analysis-refresh .data-basis-action.danger {
  background: #fee2e2 !important;
  border-color: rgba(220,38,38,.30) !important;
  color: #991b1b !important;
}

body.analysis-refresh .data-basis-action.danger:hover {
  background: #fecaca !important;
  border-color: rgba(220,38,38,.42) !important;
  color: #7f1d1d !important;
}

body.analysis-refresh .mode-switch button {
  color: #cbd5e1 !important;
}

body.analysis-refresh .mode-switch button.active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(191,219,254,.32) !important;
}

body.analysis-refresh .mode-panel,
body.analysis-refresh .lite-question-strip {
  background: rgba(255,255,255,.78) !important;
  border-color: var(--cs-border) !important;
}

body.analysis-refresh .mode-panel-title,
body.analysis-refresh .lite-question-title {
  color: var(--cs-text) !important;
}

body.analysis-refresh .mode-panel-sub,
body.analysis-refresh .lite-question-sub {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .lite-question {
  background: #fbfcfe !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .lite-question:hover {
  border-color: rgba(37,99,235,.38) !important;
  background: #f4f8ff !important;
}

body.analysis-refresh .lite-question-kicker,
body.analysis-refresh .rc-kicker {
  color: #315fbc !important;
}

body.analysis-refresh .analysis-mode-rail,
html.alpha-trader body.analysis-refresh .analysis-mode-rail[data-pro-only="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.analysis-refresh .workflow-nav {
  align-items: stretch !important;
  gap: 6px !important;
  padding: 10px 28px !important;
  background: rgba(255,255,255,.9) !important;
  border-bottom: 1px solid var(--cs-border) !important;
}

html.alpha-density-compact body.analysis-refresh .workflow-nav,
body.analysis-refresh.alpha-setup-mode .workflow-nav {
  display: none !important;
}

html.alpha-density-detail body.analysis-refresh:not(.alpha-setup-mode) .workflow-nav {
  display: flex !important;
}

body.analysis-refresh .workflow-nav .tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  margin-bottom: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--cs-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--cs-muted-2) !important;
  box-shadow: none !important;
}

body.analysis-refresh .workflow-nav .tab:hover,
body.analysis-refresh .workflow-nav .tab:focus-visible {
  border-color: #b9cffd !important;
  background: #eef4ff !important;
  color: #1e40af !important;
}

body.analysis-refresh .workflow-nav .tab.active {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.analysis-refresh .lite-question-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 12px 28px !important;
}

body.analysis-refresh .lite-question {
  position: relative;
  background: #fff !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .lite-question:hover,
body.analysis-refresh .lite-question:focus-visible {
  border-color: #b9cffd !important;
  background: #f4f8ff !important;
}

body.analysis-refresh .lite-question.active {
  border-color: #93b9ff !important;
  background: #eef4ff !important;
  box-shadow: inset 3px 0 0 #2563eb !important;
}

body.analysis-refresh .panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .rc-module :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .rc-module :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .tab-content :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .tab-content :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .scope-modal :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .scope-modal :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .settings-modal-panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .settings-modal-panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"] {
  color: var(--cs-text) !important;
}

body.analysis-refresh .tab-content :not(button):not(a):not(input):not(select):not(textarea)[style*="background:rgba(15,23,42"],
body.analysis-refresh .tab-content :not(button):not(a):not(input):not(select):not(textarea)[style*="background: rgba(15,23,42"],
body.analysis-refresh .tab-content :not(button):not(a):not(input):not(select):not(textarea)[style*="background:var(--bg2)"],
body.analysis-refresh .tab-content :not(button):not(a):not(input):not(select):not(textarea)[style*="background: var(--bg2)"],
body.analysis-refresh .settings-modal-panel [style*="background:rgba(15,23,42"],
body.analysis-refresh .settings-modal-panel [style*="background: rgba(15,23,42"],
body.analysis-refresh #oandaSettingsModal [style*="background:rgba(15,23,42"],
body.analysis-refresh #oandaSettingsModal [style*="background: rgba(15,23,42"] {
  background: #f4f8ff !important;
  border-color: #b9cffd !important;
  color: var(--cs-muted-2) !important;
}

@media(max-width:760px) {
  body.analysis-refresh .lite-question-strip {
    grid-template-columns: 1fr !important;
    padding: 10px 14px !important;
  }

  body.analysis-refresh .workflow-nav {
    padding: 8px 10px !important;
  }
}

body.analysis-refresh .kpi-method-link {
  color: #1d4ed8 !important;
  border-bottom-color: rgba(29,78,216,.25) !important;
}

body.analysis-refresh .lw-last-sync,
body.analysis-refresh .lw-line {
  color: #b6c4d6 !important;
}

body.analysis-refresh .lw-last-sync {
  max-width: 138px !important;
}

body.analysis-refresh .data-control-note {
  background: #eef4ff !important;
  border-color: #bfd2f4 !important;
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .data-control-note a {
  color: #1d4ed8 !important;
  border-bottom-color: rgba(29,78,216,.28) !important;
}

body.analysis-refresh .ui-role-tag.decision {
  background: #ecfdf5 !important;
  border-color: rgba(22,163,74,.26) !important;
  color: #047857 !important;
}

body.analysis-refresh .ui-role-tag.action,
body.analysis-refresh .ui-role-tag.setup,
body.mot-refresh .ui-role-tag.setup {
  background: #eef4ff !important;
  border-color: #bfd2f4 !important;
  color: #1d4ed8 !important;
}

body.analysis-refresh .ui-role-tag.evidence,
body.mot-refresh .ui-role-tag.evidence {
  background: #eef2ff !important;
  border-color: rgba(79,70,229,.24) !important;
  color: #4338ca !important;
}

body.analysis-refresh .ui-role-tag.warning,
body.mot-refresh .ui-role-tag.warning {
  background: #fff7ed !important;
  border-color: rgba(217,119,6,.24) !important;
  color: #8a5a00 !important;
}

body.analysis-refresh .period-btn.active,
body.analysis-refresh .scope-bar:hover,
body.analysis-refresh .scope-option:hover,
body.analysis-refresh .scope-preset:hover {
  background: var(--cs-blue-soft) !important;
  border-color: rgba(37,99,235,.34) !important;
  color: var(--cs-blue) !important;
}

body.analysis-refresh .scope-preset {
  background: #f8fbff !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .next-review-tag,
body.analysis-refresh .data-warning-chip,
body.analysis-refresh .data-warning-chip.info {
  border-color: #bfd2f4 !important;
  background: #eef4ff !important;
  color: var(--cs-blue) !important;
}

body.analysis-refresh .data-warning-chip.warn,
body.analysis-refresh .import-reconcile-step.warn {
  border-color: rgba(217,119,6,.24) !important;
  background: #fff7ed !important;
  color: #8a5a00 !important;
}

body.analysis-refresh .panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .rc-module :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .rc-module :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .scope-modal :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .scope-modal :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"],
body.analysis-refresh .settings-modal-panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color:#fff"],
body.analysis-refresh .settings-modal-panel :is(h1,h2,h3,h4,strong,span,div,td,li,label)[style*="color: #fff"] {
  color: var(--cs-text) !important;
}

body.analysis-refresh .settings-modal-panel [style*="background:rgba(15,23,42"],
body.analysis-refresh .settings-modal-panel [style*="background: rgba(15,23,42"],
body.analysis-refresh #oandaSettingsModal [style*="background:rgba(15,23,42"],
body.analysis-refresh #oandaSettingsModal [style*="background: rgba(15,23,42"] {
  background: #f4f8ff !important;
  border-color: #b9cffd !important;
  color: var(--cs-muted-2) !important;
}

@media(max-width:900px) {
  body.analysis-refresh .rc-rule-grid,
  body.analysis-refresh .rc-report-kpis,
  body.analysis-refresh .rc-suggest-grid,
  body.analysis-refresh .rc-suggest-metrics,
  body.analysis-refresh .rc-focus-grid {
    grid-template-columns: 1fr !important;
  }
}

body.mot-refresh .mot-overlay,
body.mot-refresh .result-overlay {
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  padding: clamp(12px, 3vh, 28px) !important;
}

body.mot-refresh .mot-modal {
  width: min(720px, 100%) !important;
  max-height: calc(100dvh - 56px) !important;
  padding: 28px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

body.mot-refresh .mot-icon {
  margin-bottom: 4px !important;
}

body.mot-refresh .mot-title {
  font-size: clamp(24px, 3vw, 30px) !important;
  line-height: 1.12 !important;
  margin-bottom: 0 !important;
}

body.mot-refresh .mot-subtitle,
body.mot-refresh .mot-stats {
  margin-bottom: 8px !important;
}

body.mot-refresh .mot-warnings {
  flex: 0 1 auto !important;
  max-height: min(260px, 30dvh) !important;
  margin: 0 0 12px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px !important;
}

body.mot-refresh .mot-warn-item,
body.mot-refresh .mot-actions {
  min-width: 0 !important;
}

body.mot-refresh .mot-warn-body,
body.mot-refresh .mot-warn-text,
body.mot-refresh .mot-warn-detail {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

body.mot-refresh .override-label {
  margin-top: 12px !important;
  letter-spacing: .08em !important;
}

body.mot-refresh .override-reason {
  min-height: 96px !important;
  resize: vertical;
}

body.mot-refresh .mot-tip {
  max-width: 620px;
  margin: 10px auto 0 !important;
}

body.mot-refresh .result-saved.green {
  color: #047857 !important;
}

body.mot-refresh .result-saved.red,
body.mot-refresh #proceedLogNote {
  color: #991b1b !important;
}

body.mot-refresh #proceedLogNote {
  background: #fff7ed !important;
  border: 1px solid rgba(217,119,6,.22) !important;
  border-radius: var(--cs-radius);
  padding: 12px;
}

body.analysis-refresh .alpha-help-floating-trigger,
body.mot-refresh .alpha-help-floating-trigger {
  background: var(--cs-blue) !important;
  border-color: var(--cs-blue) !important;
  color: #fff !important;
  opacity: 1 !important;
}

@media(max-width:640px) {
  body.mot-refresh .mot-overlay,
  body.mot-refresh .result-overlay {
    padding: 12px !important;
  }

  body.mot-refresh .mot-modal {
    max-height: calc(100dvh - 24px) !important;
    padding: 20px 16px !important;
  }

  body.mot-refresh .mot-warnings {
    max-height: 26dvh !important;
  }
}

body.mot-refresh .layout {
  min-height: calc(100vh - 62px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  gap: 18px;
  grid-template-columns: minmax(420px, .96fr) minmax(360px, 1fr);
}

body.mot-refresh .broker-panel,
body.mot-refresh .alpha-panel {
  padding: 24px;
  border: 1px solid var(--cs-border) !important;
  border-radius: var(--cs-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}

body.mot-refresh .broker-panel {
  border-left: 3px solid var(--cs-blue) !important;
}

body.mot-refresh .alpha-panel {
  border-left: 3px solid #7c83ff !important;
  overflow: visible;
}

body.mot-refresh .gate-note,
body.mot-refresh .safety-strip {
  background: #f4f8ff !important;
  border-color: #c8d8f2 !important;
  box-shadow: none !important;
}

body.mot-refresh .safety-strip {
  padding: 12px;
  gap: 8px;
}

body.mot-refresh .gate-note strong,
body.mot-refresh .safety-item strong {
  color: var(--cs-text) !important;
}

body.mot-refresh .form-input {
  background-image: none;
}

body.mot-refresh .panel-label::after,
body.mot-refresh .scan-rule-sep::after {
  background: var(--cs-border) !important;
}

body.mot-refresh .ticker-bar {
  gap: 8px;
}

body.mot-refresh .ticker,
body.mot-refresh .stat-card,
body.mot-refresh .hour-chart,
body.mot-refresh .pattern-item,
body.mot-refresh .spread-info,
body.mot-refresh .scan-panel,
body.mot-refresh .paper-intent-panel {
  background: #fbfcfe !important;
  border-color: var(--cs-border) !important;
  box-shadow: none !important;
}

body.mot-refresh .paper-intent-panel,
body.mot-refresh .scan-panel {
  border-left: 3px solid rgba(37,99,235,.5) !important;
}

body.mot-refresh .scan-panel {
  border-left-color: rgba(183,121,31,.55) !important;
}

body.mot-refresh .form-input,
body.mot-refresh select.form-input,
body.mot-refresh textarea.form-input {
  min-height: 40px;
  border-color: var(--cs-border) !important;
  background-color: #fff !important;
  color: var(--cs-text) !important;
}

body.mot-refresh .form-input:focus,
body.mot-refresh textarea.form-input:focus {
  border-color: var(--cs-blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

body.mot-refresh .alpha-icon {
  box-shadow: none !important;
}

body.mot-refresh .ticker.active {
  background: var(--cs-blue-soft) !important;
  border-color: rgba(37,99,235,.35) !important;
  color: #1e40af !important;
}

body.mot-refresh .ticker-price {
  color: var(--cs-text) !important;
}

body.mot-refresh .dir-btn.long.active {
  background: #dcfce7 !important;
  border-color: rgba(22,163,74,.36) !important;
  color: #166534 !important;
}

body.mot-refresh .dir-btn.short.active {
  background: #fee2e2 !important;
  border-color: rgba(220,38,38,.32) !important;
  color: #991b1b !important;
}

body.mot-refresh .input-unit {
  background: var(--cs-surface-2);
  border-color: var(--cs-border);
  color: #334155;
}

body.mot-refresh .mot-title,
body.mot-refresh .mot-warn-text,
body.mot-refresh .result-title,
body.mot-refresh .override-label,
body.mot-refresh .gate-status,
body.mot-refresh .mot-stat-val {
  color: var(--cs-text) !important;
}

body.mot-refresh .mot-subtitle,
body.mot-refresh .mot-warn-detail,
body.mot-refresh .mot-stat-label,
body.mot-refresh .mot-tip,
body.mot-refresh .override-error {
  color: var(--cs-muted-2) !important;
}

body.mot-refresh .mot-stat,
body.mot-refresh .override-reason {
  background: var(--cs-surface-2) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
}

body.mot-refresh .btn-proceed {
  background: #fff !important;
  border-color: var(--cs-border-strong) !important;
  color: var(--cs-text) !important;
}

body.mot-refresh .btn-proceed:not(:disabled):hover {
  border-color: rgba(37,99,235,.45) !important;
  color: var(--cs-blue) !important;
}

body.mot-refresh .btn-proceed:disabled {
  background: #f8fbff !important;
  border-color: var(--cs-border-strong) !important;
  color: var(--cs-text) !important;
  opacity: .62 !important;
}

body.mot-refresh .btn-proceed .countdown {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

body.mot-refresh .scan-item.warn {
  color: #8a5a00 !important;
}

body.mot-refresh .scan-item.ok {
  color: #047857 !important;
}

body.mot-refresh .scan-dot.warn {
  background: #d97706 !important;
}

body.mot-refresh .scan-dot.ok {
  background: #059669 !important;
}

body.mot-refresh .sev-critical,
body.mot-refresh .mot-warn-pill.w-critical {
  background: #fee2e2 !important;
  border-color: rgba(220,38,38,.28) !important;
  color: #991b1b !important;
}

body.mot-refresh .sev-check,
body.mot-refresh .mot-warn-pill.w-check {
  background: #fef3c7 !important;
  border-color: rgba(217,119,6,.28) !important;
  color: #835000 !important;
}

body.mot-refresh .mot-warn-pill.w-high {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

body.mot-refresh .mot-warn-item.w-critical {
  background: rgba(254,226,226,.84) !important;
  border-color: rgba(220,38,38,.24) !important;
}

body.mot-refresh .mot-warn-item.w-high {
  background: rgba(255,237,213,.82) !important;
  border-color: rgba(234,88,12,.24) !important;
}

body.mot-refresh .mot-warn-item.w-check {
  background: rgba(254,243,199,.78) !important;
  border-color: rgba(217,119,6,.2) !important;
}

body.mot-refresh .mot-overlay,
body.mot-refresh .result-overlay {
  background: rgba(15,23,42,.38);
}

body.mot-refresh .mot-modal,
body.mot-refresh .result-box {
  border-radius: var(--cs-radius) !important;
}

body.mot-refresh .result-box {
  background: #fff !important;
  border: 1px solid var(--cs-border) !important;
  color: var(--cs-text) !important;
  box-shadow: var(--cs-shadow);
}

@media(max-width:900px) {
  body.analysis-refresh .header,
  body.mot-refresh .header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.mot-refresh .layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  body.analysis-refresh .app-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  body.analysis-refresh .analysis-refresh-bridge {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }
}

@media(max-width:480px) {
  body.mot-refresh .layout {
    padding: 12px;
  }

  body.mot-refresh .broker-panel,
  body.mot-refresh .alpha-panel {
    padding: 16px;
  }
}

/* Broad refresh for account, docs and auxiliary legacy pages. */
body.legacy-refresh {
  --bg: var(--cs-bg);
  --bg2: #ffffff;
  --bg3: #f8fafc;
  --bg4: #eef3f8;
  --panel: #ffffff;
  --ink: var(--cs-text);
  --text: var(--cs-text);
  --muted: var(--cs-muted);
  --muted2: var(--cs-muted-2);
  --border: var(--cs-border);
  --border2: var(--cs-border-strong);
  --accent: var(--cs-blue);
  --accent2: var(--cs-blue-2);
  --green: var(--cs-green);
  --yellow: #d49218;
  --red: var(--cs-red);
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,.025) 1px, transparent 1px),
    var(--cs-bg) !important;
  background-size: 44px 44px !important;
  color: var(--cs-text) !important;
}

body.legacy-refresh a { color: inherit; }

body.legacy-refresh nav,
body.legacy-refresh .nav,
body.legacy-refresh .header,
body.legacy-refresh .topbar {
  border-bottom: 1px solid rgba(148,163,184,.22) !important;
  background: rgba(5,8,20,.94) !important;
  color: #d8e3f3 !important;
  box-shadow: none !important;
}

body.legacy-refresh .nav-title,
body.legacy-refresh .brand,
body.legacy-refresh .logo-text {
  color: #fff !important;
}

body.legacy-refresh .nav-logo img,
body.legacy-refresh .logo img {
  width: 142px !important;
  height: 27px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body.legacy-refresh .nav-logo .nav-title,
body.legacy-refresh .logo .logo-text {
  display: none !important;
}

body.legacy-refresh .app-nav,
body.legacy-refresh .system-menu-btn,
body.legacy-refresh .nav-link,
body.legacy-refresh .btn-back {
  border-color: rgba(148,163,184,.26) !important;
  background: rgba(15,23,42,.74) !important;
  color: #d8e3f3 !important;
  border-radius: var(--cs-radius) !important;
}

body.legacy-refresh .app-nav-link {
  color: #d8e3f3 !important;
}

body.legacy-refresh .app-nav-link:hover,
body.legacy-refresh .nav-link:hover,
body.legacy-refresh .system-menu-btn:hover,
body.legacy-refresh .btn-back:hover {
  color: #fff !important;
  background: rgba(37,99,235,.22) !important;
}

body.legacy-refresh .system-menu-panel {
  background: var(--cs-ink-2) !important;
  border-color: rgba(148,163,184,.25) !important;
  border-radius: var(--cs-radius) !important;
  box-shadow: var(--cs-shadow) !important;
}

body.legacy-refresh .system-menu-panel a,
body.legacy-refresh .system-menu-panel button {
  color: #d8e3f3 !important;
}

body.legacy-refresh main,
body.legacy-refresh .wrap,
body.legacy-refresh .container {
  color: var(--cs-text) !important;
}

body.legacy-refresh .hero,
body.legacy-refresh .plan,
body.legacy-refresh .starter-proof,
body.legacy-refresh .proof-kpi,
body.legacy-refresh .pricing-form,
body.legacy-refresh .gate-line,
body.legacy-refresh .card,
body.legacy-refresh .panel,
body.legacy-refresh .profile,
body.legacy-refresh .settings,
body.legacy-refresh .workflow-card,
body.legacy-refresh .workflow-box,
body.legacy-refresh .setup-card,
body.legacy-refresh .context-panel,
body.legacy-refresh .status-badge,
body.legacy-refresh .rule-card,
body.legacy-refresh .market-card,
body.legacy-refresh .scenario-card,
body.legacy-refresh .modal,
body.legacy-refresh .modal-content,
body.legacy-refresh .terms-card,
body.legacy-refresh .stat,
body.legacy-refresh .metric,
body.legacy-refresh .row,
body.legacy-refresh .trust-item,
body.legacy-refresh .status-note,
body.legacy-refresh .setup-callout,
body.legacy-refresh .notice,
body.legacy-refresh .info-box,
body.legacy-refresh .section,
body.legacy-refresh .section-card,
body.legacy-refresh .feature-card,
body.legacy-refresh .pricing-card,
body.legacy-refresh .table-card,
body.legacy-refresh .callout {
  background: rgba(255,255,255,.92) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  border-radius: var(--cs-radius) !important;
  box-shadow: none !important;
}

body.legacy-refresh h1,
body.legacy-refresh h2,
body.legacy-refresh h3,
body.legacy-refresh h4,
body.legacy-refresh strong,
body.legacy-refresh .card-title,
body.legacy-refresh .section-title,
body.legacy-refresh .panel-title,
body.legacy-refresh .stat strong,
body.legacy-refresh .metric strong,
body.legacy-refresh .row strong,
body.legacy-refresh .trust-item strong {
  color: var(--cs-text) !important;
}

body.legacy-refresh .plan-name,
body.legacy-refresh .price,
body.legacy-refresh .starter-proof h2,
body.legacy-refresh .proof-kpi strong,
body.legacy-refresh .workflow-title,
body.legacy-refresh .workflow-box-title,
body.legacy-refresh .setup-title,
body.legacy-refresh .context-title,
body.legacy-refresh .status-badge-val,
body.legacy-refresh .rule-title,
body.legacy-refresh .market-title,
body.legacy-refresh .scenario-title {
  color: var(--cs-text) !important;
}

body.legacy-refresh .sub,
body.legacy-refresh .muted,
body.legacy-refresh .eyebrow,
body.legacy-refresh .section-desc,
body.legacy-refresh .feature-copy,
body.legacy-refresh .field-help,
body.legacy-refresh .workflow-copy,
body.legacy-refresh .workflow-box-text,
body.legacy-refresh .context-copy,
body.legacy-refresh .status-badge-label,
body.legacy-refresh .rule-meta,
body.legacy-refresh .market-desc,
body.legacy-refresh .scenario-copy,
body.legacy-refresh p,
body.legacy-refresh li,
body.legacy-refresh td,
body.legacy-refresh label {
  color: var(--cs-muted-2) !important;
}

body.legacy-refresh input,
body.legacy-refresh textarea,
body.legacy-refresh select {
  background: #fff !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  border-radius: var(--cs-radius) !important;
}

body.legacy-refresh .btn,
body.legacy-refresh button,
body.legacy-refresh .ao-action-link {
  border-radius: var(--cs-radius) !important;
}

body.legacy-refresh .btn:not(.danger),
body.legacy-refresh .workflow-link.primary,
body.legacy-refresh .update-btn,
body.legacy-refresh .context-btn,
body.legacy-refresh button:not(.danger):not(.system-menu-btn):not(.alpha-workbar-toggle):not(.firm-btn):not(.phase-tab):not(.filter-btn):not(.mode-switch button):not(.profile-mode-tabs button) {
  border: 1px solid var(--cs-blue) !important;
  background: var(--cs-blue) !important;
  color: #fff !important;
}

body.legacy-refresh .firm-selector,
body.legacy-refresh .phase-tabs,
body.legacy-refresh .mode-switch,
body.legacy-refresh .filter-bar {
  background: transparent !important;
  border-color: transparent !important;
}

body.legacy-refresh .firm-btn,
body.legacy-refresh .phase-tab,
body.legacy-refresh .filter-btn,
body.legacy-refresh .profile-mode-tabs button {
  border: 1px solid var(--cs-border) !important;
  background: #fff !important;
  color: var(--cs-muted-2) !important;
  border-radius: var(--cs-radius) !important;
}

body.legacy-refresh .firm-btn.active,
body.legacy-refresh .phase-tab.active,
body.legacy-refresh .filter-btn.active,
body.legacy-refresh .profile-mode-tabs button.active {
  border-color: var(--cs-blue) !important;
  background: var(--cs-ink-2) !important;
  color: #fff !important;
}

body.legacy-refresh .plan.featured,
body.legacy-refresh .starter-proof {
  background: linear-gradient(135deg, #f4f8ff, #f8fffc) !important;
  border-color: #b9cffd !important;
}

body.legacy-refresh .gate-line {
  background: #f4f8ff !important;
  border-color: #b9cffd !important;
  color: var(--cs-muted-2) !important;
}

body.legacy-refresh .plan-badge {
  background: #ecfdf5 !important;
  border-color: rgba(22,163,74,.26) !important;
  color: #047857 !important;
}

body.cs-page .cs-rail a[aria-current="page"] {
  background: #dbeafe !important;
  color: #1e40af !important;
}

body.cs-page .cs-panel-kicker,
body.cs-page .cs-kicker {
  color: #315fbc !important;
}

body.legacy-refresh .badge.unverified {
  background: #fff7ed !important;
  border-color: rgba(217,119,6,.28) !important;
  color: #8a5a00 !important;
}

body.legacy-refresh .msg.bad,
body.legacy-refresh .msg.show.bad {
  background: #fee2e2 !important;
  border-color: rgba(220,38,38,.28) !important;
  color: #991b1b !important;
}

body.legacy-refresh .workflow-actions,
body.legacy-refresh .context-actions {
  gap: 10px;
}

body.legacy-refresh .workflow-link:not(.primary) {
  border: 1px solid var(--cs-border-strong) !important;
  background: #fff !important;
  color: var(--cs-text) !important;
  border-radius: var(--cs-radius) !important;
}

body.legacy-refresh table,
body.legacy-refresh th,
body.legacy-refresh td {
  border-color: var(--cs-border) !important;
}

body.analysis-refresh .setup-workspace,
body.analysis-refresh .setup-flow-grid,
body.analysis-refresh .setup-panel,
body.analysis-refresh .setup-status-item,
body.analysis-refresh .setup-source-card,
body.analysis-refresh .scope-modal,
body.analysis-refresh .scope-form,
body.analysis-refresh .scope-fieldset,
body.analysis-refresh .scope-option,
body.analysis-refresh .scope-radio {
  background: #fff !important;
  border-color: #cbd8ea !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .setup-workspace-head,
body.analysis-refresh .scope-modal-head,
body.analysis-refresh .scope-presets,
body.analysis-refresh .scope-modal-actions {
  background: #f8fafc !important;
  border-color: #cbd8ea !important;
}

body.analysis-refresh .setup-workspace-title,
body.analysis-refresh .setup-source-card strong,
body.analysis-refresh .setup-status-item strong,
body.analysis-refresh .scope-modal-title,
body.analysis-refresh .scope-radio strong,
body.analysis-refresh .scope-option span {
  color: var(--cs-text) !important;
}

body.analysis-refresh .setup-workspace-copy,
body.analysis-refresh .setup-source-card span,
body.analysis-refresh .setup-status-item span,
body.analysis-refresh .scope-modal-copy,
body.analysis-refresh .scope-form-note,
body.analysis-refresh .scope-option small,
body.analysis-refresh .scope-radio {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .setup-panel-title,
body.analysis-refresh .setup-status-item small,
body.analysis-refresh .scope-fieldset legend,
body.analysis-refresh .scope-modal-kicker,
body.analysis-refresh .scope-bar-label {
  color: #52627a !important;
}

body.analysis-refresh .scope-chip {
  background: #eef4ff !important;
  border-color: #c5d4ea !important;
  color: #26364c !important;
}

body.analysis-refresh .scope-chip.warn {
  background: #fff4d6 !important;
  border-color: #f4c34f !important;
  color: #7a5200 !important;
}

body.analysis-refresh .scope-chip.ok {
  background: #e6f8ef !important;
  border-color: #8fd8bb !important;
  color: #047857 !important;
}

body.analysis-refresh .scope-modal-close {
  background: #fff !important;
  border-color: #cbd8ea !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .setup-action,
body.analysis-refresh .scope-preset,
body.analysis-refresh .scope-modal-btn {
  background: #fff !important;
  border-color: #b8c8dd !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .setup-action.primary,
body.analysis-refresh .scope-modal-btn.primary,
body.analysis-refresh .scope-preset.active {
  background: var(--cs-blue) !important;
  border-color: var(--cs-blue) !important;
  color: #fff !important;
}

body.analysis-refresh .setup-action.safe {
  background: #ecfdf5 !important;
  border-color: #8fd8bb !important;
  color: #047857 !important;
}

body.analysis-refresh .setup-action:disabled,
body.analysis-refresh .scope-preset:disabled {
  background: #eef2f7 !important;
  border-color: #cbd8ea !important;
  color: #334155 !important;
  opacity: 1 !important;
}

body.analysis-refresh .setup-separation-note {
  background: #fff7d6 !important;
  border-color: #f4c34f !important;
  color: #7a5200 !important;
}

/* Unified data basis + scope modal. */
body.analysis-refresh .data-scope-modal {
  width: min(1180px, 100%) !important;
  max-height: calc(100vh - 56px) !important;
  overflow: hidden !important;
}

body.analysis-refresh .scope-modal-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--cs-border) !important;
  background: #fff !important;
}

body.analysis-refresh .scope-modal-tab {
  height: 30px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #52627a !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

body.analysis-refresh .scope-modal-tab:hover {
  border-color: #cbd8ea !important;
  color: var(--cs-blue) !important;
  background: #f8fafc !important;
}

body.analysis-refresh .scope-modal-tab.active {
  border-color: #9fb7dc !important;
  color: #fff !important;
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.18) !important;
}

body.analysis-refresh .scope-modal-panel {
  max-height: calc(100vh - 168px) !important;
  overflow-y: auto !important;
  background: #fff !important;
}

body.analysis-refresh .scope-modal-panel[hidden] {
  display: none !important;
}

body.analysis-refresh #scopeModalDataPanel {
  padding: 0 !important;
}

body.analysis-refresh #scopeModalDataPanel .data-basis-card {
  max-height: none !important;
  overflow: visible !important;
}

body.analysis-refresh #scopeModalScopePanel .scope-presets,
body.analysis-refresh #scopeModalScopePanel .scope-form,
body.analysis-refresh #scopeModalScopePanel .scope-modal-actions {
  flex-shrink: 0 !important;
}

/* Analysis overview cleanup: one data-basis entry, visible scope state, readable evidence. */
body.analysis-refresh .data-basis-modal-backdrop:not(.show) {
  display: none !important;
}

body.analysis-refresh .data-basis-modal-backdrop.show {
  display: flex !important;
}

body.analysis-refresh .data-basis-modal {
  width: min(1180px, 100%) !important;
  max-height: calc(100vh - 56px);
  overflow: hidden;
}

body.analysis-refresh .data-basis-card {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 56px);
}

body.analysis-refresh .data-basis-head {
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #f8fbff, #f2fff8) !important;
  border-bottom: 1px solid var(--cs-border) !important;
  cursor: default !important;
}

body.analysis-refresh .import-bar {
  gap: 10px !important;
  align-items: center !important;
}

body.analysis-refresh .import-bar-title {
  min-width: 126px !important;
  flex: 0 0 auto !important;
  cursor: default !important;
}

body.analysis-refresh .import-status {
  flex: 1 1 260px !important;
  min-width: 180px !important;
}

body.analysis-refresh .data-basis-manage-btn {
  margin-left: auto !important;
  border-color: #b9cffd !important;
  background: #fff !important;
  color: #1e40af !important;
  font-weight: 900 !important;
}

body.analysis-refresh .data-basis-manage-btn:hover,
body.analysis-refresh .data-basis-manage-btn.active {
  border-color: var(--cs-blue) !important;
  background: var(--cs-blue) !important;
  color: #fff !important;
}

body.analysis-refresh .data-basis-actions {
  background: #fbfdff !important;
  border-color: var(--cs-border) !important;
  border-bottom: 1px solid var(--cs-border) !important;
  gap: 8px !important;
  padding: 10px 12px !important;
}

body.analysis-refresh .data-basis-action {
  background: #fff !important;
  border-color: #b8c8dd !important;
  color: var(--cs-text) !important;
  box-shadow: none !important;
}

body.analysis-refresh .data-basis-action:hover {
  background: var(--cs-blue-soft) !important;
  border-color: rgba(37,99,235,.34) !important;
  color: var(--cs-blue) !important;
}

body.analysis-refresh #riskPanel {
  background: #f8fafc !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh #riskPanel > div:first-child {
  background: #fff !important;
}

body.analysis-refresh .risk-card {
  background: #fff !important;
  border-color: #cbd8ea !important;
  color: var(--cs-text) !important;
}

body.analysis-refresh .risk-val {
  color: var(--cs-text) !important;
}

body.analysis-refresh .dropdown-chevron,
body.analysis-refresh .data-basis-toggle-icon,
body.analysis-refresh .rc-acc-chevron,
body.analysis-refresh .collapse-chevron,
body.analysis-refresh .rc-trade-list-toggle {
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.analysis-refresh .scope-chip {
  max-width: min(14rem, 100%) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.analysis-refresh .scope-preset {
  position: relative;
}

body.analysis-refresh .scope-preset.active {
  background: var(--cs-blue) !important;
  border-color: var(--cs-blue) !important;
  color: #fff !important;
}

body.analysis-refresh .scope-preset.active::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 950;
}

body.analysis-refresh .kpi-bar {
  border-top: 1px solid var(--cs-border) !important;
  border-bottom: 1px solid var(--cs-border) !important;
  background: #fff !important;
}

body.analysis-refresh .kpi {
  background: linear-gradient(180deg, #fff, #fbfdff) !important;
  border-color: var(--cs-border) !important;
  min-width: 0 !important;
}

body.analysis-refresh .kpi-label {
  color: #52627a !important;
}

body.analysis-refresh .kpi-val {
  color: var(--cs-text) !important;
}

body.analysis-refresh .kpi-sub,
body.analysis-refresh .kpi-risk-note {
  color: var(--cs-muted-2) !important;
  border-top-color: rgba(148,163,184,.24) !important;
}

body.analysis-refresh .kpi-risk-note.warn {
  color: #8a5a00 !important;
}

body.analysis-refresh .kpi:nth-child(1) {
  background: linear-gradient(180deg, #f1fbf7, #fff) !important;
}

body.analysis-refresh .kpi:nth-child(2) {
  background: linear-gradient(180deg, #f4f8ff, #fff) !important;
}

body.analysis-refresh .kpi:nth-child(3) {
  background: linear-gradient(180deg, #fff9e8, #fff) !important;
}

body.analysis-refresh .kpi:nth-child(4) {
  background: linear-gradient(180deg, #f5f3ff, #fff) !important;
}

body.analysis-refresh .kpi:nth-child(5) {
  background: linear-gradient(180deg, #fff7ed, #fff) !important;
}

body.analysis-refresh .kpi:nth-child(6) {
  background: linear-gradient(180deg, #fff1f2, #fff) !important;
}

body.analysis-refresh .data-quality-summary {
  margin: 18px 20px 16px !important;
  background: linear-gradient(135deg, #f8fbff, #fff) !important;
  border: 1px solid var(--cs-border) !important;
  color: var(--cs-muted-2) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.analysis-refresh .data-quality-title {
  color: #52627a !important;
}

body.analysis-refresh .data-quality-note {
  color: var(--cs-muted-2) !important;
}

body.analysis-refresh .data-quality-chip {
  background: #eef4ff !important;
  border-color: #c5d4ea !important;
  color: #26364c !important;
}

body.analysis-refresh .data-quality-chip.warn {
  background: #fff7ed !important;
  border-color: rgba(217,119,6,.28) !important;
  color: #8a5a00 !important;
}

/* Unified app shell pass: one product header, one navigation model. */
body.cs-page .cs-topbar > .cs-appnav {
  display: flex !important;
}

body.cs-page .cs-app {
  display: block !important;
  min-height: calc(100vh - 62px);
}

body.cs-page .cs-rail {
  display: none !important;
}

body.cs-page .cs-main {
  max-width: min(1680px, calc(100vw - 48px));
}

body.cs-page .cs-topbar .cs-mode-switch {
  background: rgba(15,23,42,.74);
  border-color: rgba(148,163,184,.26);
}

body.cs-page .cs-topbar .cs-mode-switch button {
  color: #d8e3f3;
}

body.cs-page .cs-topbar .cs-mode-switch button:hover {
  color: #fff;
}

body.cs-page .cs-topbar .cs-mode-switch button[aria-pressed="true"] {
  background: var(--cs-blue);
  color: #fff;
}

body.prediction-refresh .alpha-unified-topbar,
body.mot-refresh .header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 62px;
  padding: 10px 24px !important;
  border-bottom: 1px solid rgba(148,163,184,.22) !important;
  background: rgba(5,8,20,.94) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  flex-wrap: wrap;
}

body.prediction-refresh .nav-logo,
body.mot-refresh .logo {
  min-width: 150px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.prediction-refresh .nav-logo img,
body.mot-refresh .logo-img {
  width: 142px !important;
  height: 27px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

body.prediction-refresh .nav-icon,
body.prediction-refresh .nav-title,
body.mot-refresh .logo-text {
  display: none !important;
}

body.prediction-refresh .app-nav,
body.mot-refresh .app-nav {
  display: flex !important;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: rgba(15,23,42,.74) !important;
  border-radius: var(--cs-radius) !important;
  padding: 3px !important;
  white-space: nowrap;
  min-width: 0;
}

body.prediction-refresh .app-nav-link,
body.mot-refresh .app-nav-link {
  color: #d8e3f3 !important;
  text-decoration: none;
  font-size: 12px !important;
  font-weight: 850;
  border-radius: 6px !important;
  padding: 7px 10px !important;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

body.prediction-refresh .app-nav-link:hover,
body.prediction-refresh .app-nav-link.active,
body.mot-refresh .app-nav-link:hover,
body.mot-refresh .app-nav-link.active {
  color: #fff !important;
  background: rgba(37,99,235,.32) !important;
}

body.prediction-refresh .nav-right,
body.mot-refresh .header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

body.prediction-refresh .mode-switch,
body.mot-refresh .mode-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  height: 32px;
  border: 1px solid rgba(148,163,184,.26) !important;
  background: rgba(15,23,42,.74) !important;
  border-radius: var(--cs-radius) !important;
  padding: 3px !important;
  flex: 0 0 auto;
}

body.prediction-refresh .alpha-unified-topbar .nav-right > .mode-switch,
body.mot-refresh .header > .header-right > .mode-switch {
  display: none !important;
}

body.prediction-refresh .alpha-workbar .alpha-workbar-density,
body.mot-refresh .alpha-workbar .alpha-workbar-density {
  display: inline-flex !important;
  width: 100%;
  height: auto;
  border: 1px solid var(--cs-border) !important;
  background: var(--cs-surface) !important;
  border-radius: 8px !important;
  padding: 4px !important;
  gap: 4px;
}

body.prediction-refresh .mode-switch button,
body.mot-refresh .mode-switch button {
  border: 0 !important;
  background: transparent !important;
  color: #d8e3f3 !important;
  border-radius: 6px !important;
  height: 24px;
  min-height: 24px;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 900;
  box-shadow: none !important;
}

body.prediction-refresh .alpha-workbar .alpha-workbar-density button,
body.mot-refresh .alpha-workbar .alpha-workbar-density button {
  flex: 1 1 0;
  height: 28px;
  min-height: 28px;
  color: var(--cs-muted-2) !important;
  border-radius: 6px !important;
}

body.prediction-refresh .mode-switch button:hover,
body.mot-refresh .mode-switch button:hover {
  color: #fff !important;
}

body.legacy-refresh.prediction-refresh .mode-switch button:not(.active) {
  border: 0 !important;
  background: transparent !important;
  color: #d8e3f3 !important;
  box-shadow: none !important;
}

html body.legacy-refresh.prediction-refresh .alpha-unified-topbar .nav-right .mode-switch button:not(.active):not(.system-menu-btn):not(.filter-btn):not(.phase-tab):not(.firm-btn):not(.profile-mode-tabs) {
  border: 0 !important;
  background: transparent !important;
  color: #d8e3f3 !important;
  box-shadow: none !important;
}

body.prediction-refresh .mode-switch button.active,
body.mot-refresh .mode-switch button.active {
  background: var(--cs-blue) !important;
  color: #fff !important;
}

body.prediction-refresh .alpha-workbar .alpha-workbar-density button.active,
body.mot-refresh .alpha-workbar .alpha-workbar-density button.active {
  background: var(--cs-blue) !important;
  color: #fff !important;
}

body.legacy-refresh.prediction-refresh .alpha-workbar .alpha-workbar-density button:not(.active),
body.mot-refresh .alpha-workbar .alpha-workbar-density button:not(.active) {
  background: transparent !important;
  color: var(--cs-muted-2) !important;
}

body.prediction-refresh .system-menu,
body.mot-refresh .system-menu {
  position: relative;
}

body.prediction-refresh .system-menu-btn,
body.mot-refresh .system-menu-btn,
body.prediction-refresh .nav-badge,
body.mot-refresh .concept-badge {
  min-height: 32px;
  border: 1px solid rgba(148,163,184,.26) !important;
  background: rgba(15,23,42,.74) !important;
  color: #d8e3f3 !important;
  border-radius: var(--cs-radius) !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
}

body.prediction-refresh .system-menu-btn,
body.mot-refresh .system-menu-btn {
  padding: 7px 10px !important;
}

body.prediction-refresh .system-menu-btn:hover,
body.mot-refresh .system-menu-btn:hover {
  border-color: var(--cs-blue-2) !important;
  color: #fff !important;
}

html body.legacy-refresh.prediction-refresh .alpha-unified-topbar .alpha-workbar-toggle:not(.system-menu-btn):not(.filter-btn) {
  border: 1px solid rgba(148,163,184,.26) !important;
  background: rgba(15,23,42,.74) !important;
  color: #d8e3f3 !important;
  box-shadow: none !important;
}

body.prediction-refresh .system-menu-panel,
body.mot-refresh .system-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 250;
  min-width: 220px;
  border: 1px solid var(--cs-border) !important;
  background: rgba(255,255,255,.98) !important;
  border-radius: var(--cs-radius) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.16) !important;
  padding: 6px !important;
}

body.prediction-refresh .system-menu.open .system-menu-panel,
body.mot-refresh .system-menu.open .system-menu-panel {
  display: grid !important;
}

body.prediction-refresh .system-menu-panel a,
body.prediction-refresh .system-menu-panel button,
body.mot-refresh .system-menu-panel a,
body.mot-refresh .system-menu-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0 !important;
  background: transparent !important;
  color: var(--cs-text) !important;
  border-radius: 6px !important;
  text-decoration: none;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.2;
  padding: 9px 10px !important;
  text-align: left;
  cursor: pointer;
}

body.prediction-refresh .system-menu-panel a span,
body.prediction-refresh .system-menu-panel button span,
body.mot-refresh .system-menu-panel a span,
body.mot-refresh .system-menu-panel button span {
  color: var(--cs-muted);
}

body.prediction-refresh .system-menu-panel a:hover,
body.prediction-refresh .system-menu-panel button:hover,
body.mot-refresh .system-menu-panel a:hover,
body.mot-refresh .system-menu-panel button:hover {
  color: var(--cs-text) !important;
  background: var(--cs-blue-soft) !important;
}

body.prediction-refresh .system-menu-sep,
body.mot-refresh .system-menu-sep {
  height: 1px;
  background: var(--cs-border);
  margin: 5px 4px;
}

body.prediction-refresh .main {
  width: min(1400px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 32px 0 72px !important;
}

body.prediction-refresh .risk-meter,
body.prediction-refresh .filters,
body.prediction-refresh .data-note,
body.prediction-refresh .market-source,
body.prediction-refresh .modal-source,
body.prediction-refresh .sparkline-wrap,
body.prediction-refresh .action-box {
  background: rgba(255,255,255,.92) !important;
  border-color: var(--cs-border) !important;
  color: var(--cs-muted-2) !important;
  box-shadow: none !important;
}

body.prediction-refresh .market-question,
body.prediction-refresh .modal-question,
body.prediction-refresh .risk-title,
body.prediction-refresh .scenarios-title,
body.prediction-refresh .dates-title,
body.prediction-refresh .chart-label,
body.prediction-refresh .action-header,
body.prediction-refresh .date-label,
body.prediction-refresh .modal-trend-val,
body.prediction-refresh .gauge-pct {
  color: var(--cs-text) !important;
}

body.prediction-refresh .market-desc,
body.prediction-refresh .modal-split-label,
body.prediction-refresh .modal-trend-lab,
body.prediction-refresh .scenario-body,
body.prediction-refresh .date-sub,
body.prediction-refresh .action-text,
body.prediction-refresh .market-stand {
  color: var(--cs-muted-2) !important;
}

body.prediction-refresh .data-note.source-live,
body.prediction-refresh .scenario-yes,
body.prediction-refresh .sig-yes {
  background: #ecfdf5 !important;
  border-color: #8fd8bb !important;
  color: #047857 !important;
}

body.prediction-refresh .data-note.source-partial,
body.prediction-refresh .sig-watch {
  background: #fff4d6 !important;
  border-color: #f4c34f !important;
  color: #7a5200 !important;
}

body.prediction-refresh .scenario-no,
body.prediction-refresh .sig-no {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}

body.prediction-refresh .scenario-yes .scenario-header,
body.prediction-refresh .scenario-yes .scenario-impact {
  color: #047857 !important;
}

body.prediction-refresh .scenario-no .scenario-header,
body.prediction-refresh .scenario-no .scenario-impact {
  color: #be123c !important;
}

@media (max-width: 1120px) {
  body.prediction-refresh .alpha-unified-topbar,
  body.mot-refresh .header {
    align-items: flex-start !important;
  }

  body.prediction-refresh .app-nav,
  body.mot-refresh .app-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body.prediction-refresh .nav-right,
  body.mot-refresh .header-right {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  body.cs-page .cs-main {
    max-width: none;
  }

  body.prediction-refresh .main {
    width: calc(100vw - 28px) !important;
    padding-top: 22px !important;
  }

  body.prediction-refresh .alpha-unified-topbar,
  body.mot-refresh .header {
    padding: 10px 14px !important;
  }

  body.prediction-refresh .nav-logo,
  body.mot-refresh .logo {
    min-width: 122px;
  }

  body.prediction-refresh .nav-logo img,
  body.mot-refresh .logo-img {
    width: 124px !important;
    height: 24px !important;
  }
}

/* Rail-first correction: navigation lives in the workbar, not in the topbar. */
body.cs-page .cs-topbar > .cs-appnav {
  display: none !important;
}

body.cs-page .cs-app {
  display: grid !important;
  grid-template-columns: 192px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}

body.cs-page.cs-rail-collapsed .cs-app {
  grid-template-columns: 64px minmax(0, 1fr) !important;
}

body.cs-page.cs-rail-collapsed .cs-main {
  margin-left: 0 !important;
  margin-right: auto !important;
}

body.cs-page .cs-rail {
  display: block !important;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
}

body.cs-page .cs-main {
  max-width: 1280px;
}

body.analysis-refresh .analysis-refresh-bridge nav {
  display: none !important;
}

body.analysis-refresh .analysis-refresh-bridge {
  justify-content: flex-start !important;
}

body.analysis-refresh .header > .app-nav,
body.mot-refresh .header > .app-nav,
body.prediction-refresh .alpha-unified-topbar > .app-nav {
  display: none !important;
}

/* Integrated left navigation collapse control: centered on the topbar baseline, not a floating bubble. */
.alpha-workbar-toggle {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  border: 1px solid rgba(148,163,184,.34);
  background: linear-gradient(180deg, #0b1220, #111827);
  color: #d8e3f3;
  border-radius: 8px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transform: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.alpha-workbar-toggle::before {
  content: none !important;
}

.alpha-workbar-toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.alpha-workbar-toggle-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

html.alpha-workbar-collapsed .alpha-workbar-toggle-icon svg {
  transform: rotate(180deg);
}

.alpha-workbar-toggle:hover {
  border-color: var(--cs-blue-2);
  color: #fff;
}

/* Analysis header compact app chrome */
body.analysis-refresh .header {
  min-height: 54px !important;
  padding: 8px 22px !important;
  gap: 12px !important;
}

body.analysis-refresh .header-right {
  gap: 6px !important;
}

body.analysis-refresh .header .live-widget,
body.analysis-refresh .header .chip,
body.analysis-refresh .header .system-menu-btn {
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 7px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

body.analysis-refresh .header .live-widget {
  max-width: 156px !important;
  flex: 0 1 156px !important;
  gap: 5px !important;
}

body.analysis-refresh .header .chip {
  max-width: 156px !important;
  flex: 0 1 156px !important;
  gap: 5px !important;
}

body.analysis-refresh .header .system-menu-btn {
  max-width: 148px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.analysis-refresh .header .lw-sync,
body.analysis-refresh .header .chip span {
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.analysis-refresh .header .lw-last-sync {
  max-width: 52px !important;
  font-size: 9px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.analysis-refresh .header .lw-status-title {
  min-width: 0 !important;
  overflow: hidden !important;
}

body.analysis-refresh .header .lw-inline-sep {
  flex: 0 0 auto !important;
}

body.prediction-refresh .alpha-unified-topbar .nav-badge,
body.prediction-refresh .alpha-unified-topbar .system-menu-btn,
body.mot-refresh .header .concept-badge,
body.mot-refresh .header .system-menu-btn {
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 7px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.prediction-refresh .alpha-unified-topbar .nav-badge,
body.mot-refresh .header .concept-badge {
  max-width: 156px !important;
  flex: 0 1 156px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.prediction-refresh .alpha-unified-topbar .nav-badge span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.prediction-refresh .alpha-unified-topbar .system-menu-btn,
body.mot-refresh .header .system-menu-btn {
  max-width: 148px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.analysis-refresh .header .lw-dot,
body.analysis-refresh .header .chip-dot {
  width: 6px !important;
  height: 6px !important;
}

.alpha-workbar {
  position: fixed;
  top: 62px;
  left: 0;
  bottom: 0;
  z-index: 45;
  width: 192px;
  border-right: 1px solid var(--cs-border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  padding: 18px 12px;
  overflow-y: auto;
  transition: transform .2s ease;
}

.alpha-workbar-tools {
  margin: 0 0 14px;
}

.alpha-workbar-density {
  width: 100%;
  border-color: var(--cs-border) !important;
  background: var(--cs-surface) !important;
}

.alpha-workbar-density button {
  flex: 1 1 0;
  color: var(--cs-muted-2) !important;
}

.alpha-workbar-density button.active {
  background: var(--cs-ink-2) !important;
  color: #fff !important;
}

/* TradingView-style compact density toggles */
.cs-mode-switch,
.mode-switch,
.alpha-workbar-density,
body.prediction-refresh .mode-switch,
body.mot-refresh .mode-switch,
body.prediction-refresh .alpha-workbar .alpha-workbar-density,
body.mot-refresh .alpha-workbar .alpha-workbar-density {
  align-items: center !important;
  gap: 2px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(17, 24, 39, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 18px rgba(15, 23, 42, .12) !important;
}

.cs-rail-density,
.alpha-workbar-density,
body.prediction-refresh .alpha-workbar .alpha-workbar-density,
body.mot-refresh .alpha-workbar .alpha-workbar-density {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
}

.cs-mode-switch button,
.mode-switch button,
.alpha-workbar-density button,
body.prediction-refresh .mode-switch button,
body.mot-refresh .mode-switch button,
body.prediction-refresh .alpha-workbar .alpha-workbar-density button,
body.mot-refresh .alpha-workbar .alpha-workbar-density button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.cs-mode-switch button:hover,
.mode-switch button:hover,
.alpha-workbar-density button:hover {
  color: #fff !important;
}

.cs-mode-switch button[aria-pressed="true"],
.mode-switch button.active,
.alpha-workbar-density button.active,
body.prediction-refresh .mode-switch button.active,
body.mot-refresh .mode-switch button.active,
body.prediction-refresh .alpha-workbar .alpha-workbar-density button.active,
body.mot-refresh .alpha-workbar .alpha-workbar-density button.active {
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, .32), 0 1px 0 rgba(255, 255, 255, .10) !important;
}

.alpha-workbar-title {
  font-size: 10px;
  color: var(--cs-muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  margin: 0 10px 9px;
}

.alpha-workbar a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cs-muted-2);
  text-decoration: none;
  border-radius: var(--cs-radius);
  padding: 10px;
  font-size: 13px;
  font-weight: 850;
}

.alpha-workbar a:hover {
  background: var(--cs-surface-2);
  color: var(--cs-text);
}

.alpha-workbar a.active {
  background: var(--cs-blue-soft);
  color: var(--cs-blue);
}

.alpha-workbar-icon {
  width: 20px;
  text-align: center;
  color: inherit;
}

.alpha-workbar-section {
  margin-top: 18px;
}

.alpha-workbar-backdrop {
  display: none;
}

body.analysis-refresh > .analysis-refresh-bridge,
body.analysis-refresh > .mode-panel,
body.analysis-refresh > .lite-question-strip,
body.analysis-refresh > .investor-mode-banner,
body.analysis-refresh > .analysis-mode-rail,
body.analysis-refresh > .workflow-nav,
body.analysis-refresh > .setup-workspace,
body.analysis-refresh > .tab-content,
body.analysis-refresh > .data-basis-card,
body.analysis-refresh > .account-state-banner,
body.analysis-refresh > .data-control-note,
body.analysis-refresh > .footer {
  margin-left: 192px !important;
  width: calc(100% - 192px) !important;
}

body.analysis-refresh > .setup-workspace {
  scroll-margin-top: 86px;
}

body.mot-refresh .layout {
  margin-left: 192px !important;
  width: calc(100% - 192px) !important;
}

body.prediction-refresh .main {
  width: min(1400px, calc(100vw - 240px)) !important;
  margin-left: calc(192px + 24px) !important;
  margin-right: 24px !important;
}

body.prediction-refresh .lite-context-banner {
  background: #ecfdf5 !important;
  border-color: #8fd8bb !important;
  color: var(--cs-muted-2) !important;
}

body.prediction-refresh .lite-context-banner strong {
  color: var(--cs-text) !important;
}

html.alpha-workbar-collapsed .alpha-workbar {
  transform: translateX(-100%);
}

html.alpha-workbar-collapsed body.analysis-refresh > .analysis-refresh-bridge,
html.alpha-workbar-collapsed body.analysis-refresh > .mode-panel,
html.alpha-workbar-collapsed body.analysis-refresh > .lite-question-strip,
html.alpha-workbar-collapsed body.analysis-refresh > .investor-mode-banner,
html.alpha-workbar-collapsed body.analysis-refresh > .analysis-mode-rail,
html.alpha-workbar-collapsed body.analysis-refresh > .workflow-nav,
html.alpha-workbar-collapsed body.analysis-refresh > .setup-workspace,
html.alpha-workbar-collapsed body.analysis-refresh > .tab-content,
html.alpha-workbar-collapsed body.analysis-refresh > .data-basis-card,
html.alpha-workbar-collapsed body.analysis-refresh > .account-state-banner,
html.alpha-workbar-collapsed body.analysis-refresh > .data-control-note,
html.alpha-workbar-collapsed body.analysis-refresh > .footer,
html.alpha-workbar-collapsed body.mot-refresh .layout {
  margin-left: 0 !important;
  width: 100% !important;
}

html.alpha-workbar-collapsed body.prediction-refresh .main {
  width: min(1400px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1050px) {
  body.cs-page .cs-app {
    grid-template-columns: 1fr;
  }

  body.cs-page.cs-rail-collapsed .cs-app {
    grid-template-columns: 1fr !important;
  }

  body.cs-page .cs-rail {
    position: sticky;
    top: 62px;
    z-index: 30;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--cs-border);
    padding: 8px;
    display: flex !important;
    overflow-x: auto;
    max-width: 100vw;
  }
}

@media (max-width: 900px) {
  .alpha-workbar {
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(15,23,42,.18);
  }

  html.alpha-workbar-open .alpha-workbar {
    transform: translateX(0);
  }

  html.alpha-workbar-open .alpha-workbar-backdrop {
    display: block;
    position: fixed;
    inset: 62px 0 0;
    z-index: 42;
    background: rgba(15,23,42,.22);
    backdrop-filter: blur(2px);
  }

  .alpha-workbar-toggle-icon svg {
    transform: rotate(180deg);
  }

  html.alpha-workbar-open .alpha-workbar-toggle-icon svg {
    transform: rotate(0deg);
  }

  body.analysis-refresh > .analysis-refresh-bridge,
  body.analysis-refresh > .mode-panel,
  body.analysis-refresh > .lite-question-strip,
  body.analysis-refresh > .investor-mode-banner,
  body.analysis-refresh > .analysis-mode-rail,
  body.analysis-refresh > .workflow-nav,
  body.analysis-refresh > .setup-workspace,
  body.analysis-refresh > .tab-content,
  body.analysis-refresh > .data-basis-card,
  body.analysis-refresh > .account-state-banner,
  body.analysis-refresh > .data-control-note,
  body.analysis-refresh > .footer,
  body.mot-refresh .layout {
    margin-left: 0 !important;
    width: 100% !important;
  }

  body.prediction-refresh .main {
    width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Alpha OS command surface pass: product-native commands without suffix glyphs. */
:where(
  .cs-button,
  .cs-auth-submit,
  .cs-auth-card .btn,
  body.analysis-refresh .import-btn,
  body.analysis-refresh .data-basis-action,
  body.analysis-refresh .setup-action,
  body.analysis-refresh .scope-modal-btn,
  body.analysis-refresh .rc-btn,
  body.analysis-refresh .rc-report-btn,
  body.analysis-refresh .rc-show-more,
  body.mot-refresh .execute-btn,
  body.mot-refresh .btn-abort,
  body.mot-refresh .btn-proceed,
  body.mot-refresh .btn-reset,
  body.legacy-refresh .ao-action-link
) {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  border-color: #bfccda !important;
  border-radius: 7px !important;
  min-height: 34px;
  padding: 8px 12px 8px 15px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  color: var(--cs-text);
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .055), 0 1px 0 rgba(255,255,255,.9) inset !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease, color .16s ease !important;
}

:where(
  .cs-button,
  .cs-auth-submit,
  .cs-auth-card .btn,
  body.analysis-refresh .import-btn,
  body.analysis-refresh .data-basis-action,
  body.analysis-refresh .setup-action,
  body.analysis-refresh .scope-modal-btn,
  body.analysis-refresh .rc-btn,
  body.analysis-refresh .rc-report-btn,
  body.analysis-refresh .rc-show-more,
  body.mot-refresh .execute-btn,
  body.mot-refresh .btn-abort,
  body.mot-refresh .btn-proceed,
  body.mot-refresh .btn-reset,
  body.legacy-refresh .ao-action-link
)::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--cs-blue);
  opacity: .72;
  pointer-events: none;
}

/* Commands use a status edge, not a fake trailing arrow/pill suffix. */
:where(
  .cs-button,
  body.analysis-refresh .import-btn,
  body.analysis-refresh .data-basis-action,
  body.analysis-refresh .setup-action,
  body.analysis-refresh .scope-modal-btn,
  body.analysis-refresh .rc-btn,
  body.analysis-refresh .rc-report-btn,
  body.analysis-refresh .rc-show-more,
  body.mot-refresh .btn-reset,
  body.legacy-refresh .ao-action-link
)::after {
  content: none !important;
  display: none !important;
}

:where(
  .cs-button:hover,
  .cs-auth-submit:hover,
  .cs-auth-card .btn:hover,
  body.analysis-refresh .import-btn:hover,
  body.analysis-refresh .data-basis-action:hover,
  body.analysis-refresh .setup-action:hover,
  body.analysis-refresh .scope-modal-btn:hover,
  body.analysis-refresh .rc-btn:hover,
  body.analysis-refresh .rc-report-btn:hover,
  body.analysis-refresh .rc-show-more:hover,
  body.mot-refresh .execute-btn:hover,
  body.mot-refresh .btn-abort:hover,
  body.mot-refresh .btn-proceed:not(:disabled):hover,
  body.mot-refresh .btn-reset:hover,
  body.legacy-refresh .ao-action-link:hover
) {
  transform: translateY(-1px);
  border-color: #8fb1e8 !important;
  box-shadow: 0 12px 26px rgba(37,99,235,.10), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

:where(
  .cs-button:active,
  .cs-auth-submit:active,
  .cs-auth-card .btn:active,
  body.analysis-refresh .import-btn:active,
  body.analysis-refresh .data-basis-action:active,
  body.analysis-refresh .setup-action:active,
  body.analysis-refresh .scope-modal-btn:active,
  body.analysis-refresh .rc-btn:active,
  body.analysis-refresh .rc-report-btn:active,
  body.analysis-refresh .rc-show-more:active,
  body.mot-refresh .execute-btn:active,
  body.mot-refresh .btn-abort:active,
  body.mot-refresh .btn-proceed:not(:disabled):active,
  body.mot-refresh .btn-reset:active
) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.10) inset !important;
}

:where(
  .cs-button.primary,
  .cs-auth-submit,
  .cs-auth-card .btn,
  body.analysis-refresh .btn-primary,
  body.analysis-refresh .data-basis-action.primary,
  body.analysis-refresh .setup-action.primary,
  body.analysis-refresh .scope-modal-btn.primary,
  body.analysis-refresh .rc-btn.primary,
  body.analysis-refresh .rc-btn.mot,
  body.mot-refresh .execute-btn,
  body.mot-refresh .btn-abort
) {
  border-color: #1d4ed8 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, #245bd6, #2563eb 54%, #1689ff) !important;
  color: #fff !important;
}

:where(
  .cs-button.primary,
  .cs-auth-submit,
  .cs-auth-card .btn,
  body.analysis-refresh .btn-primary,
  body.analysis-refresh .data-basis-action.primary,
  body.analysis-refresh .setup-action.primary,
  body.analysis-refresh .scope-modal-btn.primary,
  body.analysis-refresh .rc-btn.primary,
  body.analysis-refresh .rc-btn.mot,
  body.mot-refresh .execute-btn,
  body.mot-refresh .btn-abort
)::before {
  background: #7dd3fc;
  opacity: .95;
}

:where(
  .cs-button.primary,
  body.analysis-refresh .data-basis-action.primary,
  body.analysis-refresh .rc-btn.primary,
  body.analysis-refresh .rc-btn.mot
)::after {
  content: none !important;
  display: none !important;
}

:where(.cs-button.ghost) {
  color: #1d4ed8 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:where(.cs-button.ghost)::before,
:where(.cs-button.ghost)::after {
  opacity: 0;
}

:where(
  body.analysis-refresh .data-basis-action.danger,
  body.mot-refresh .btn-proceed
)::before {
  background: var(--cs-red);
}

:where(
  .cs-button.warn,
  body.analysis-refresh .setup-action.safe
)::before {
  background: var(--cs-green);
}

.cs-panel,
body.analysis-refresh .panel,
body.analysis-refresh .aha-panel,
body.analysis-refresh .scope-modal,
body.analysis-refresh .rc-panel,
body.analysis-refresh .rc-cardish,
body.analysis-refresh .rc-report-card,
body.mot-refresh .broker-panel,
body.mot-refresh .alpha-panel,
body.mot-refresh .scan-panel,
body.mot-refresh .paper-intent-panel {
  position: relative;
  border-color: #c9d5e4 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94)) !important;
  box-shadow: var(--cs-module-shadow) !important;
}

.cs-panel::before,
body.analysis-refresh .panel::before,
body.analysis-refresh .aha-panel::before,
body.analysis-refresh .rc-panel::before,
body.analysis-refresh .rc-cardish::before,
body.analysis-refresh .rc-report-card::before,
body.mot-refresh .broker-panel::before,
body.mot-refresh .alpha-panel::before,
body.mot-refresh .scan-panel::before,
body.mot-refresh .paper-intent-panel::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(37,99,235,.85), rgba(15,159,110,.66), rgba(37,99,235,0));
  pointer-events: none;
}

.cs-panel.warning::before,
.cs-panel.danger::before,
body.analysis-refresh .rc-cardish.is-off::before {
  background: linear-gradient(90deg, rgba(183,121,31,.86), rgba(194,65,58,.50), rgba(183,121,31,0));
}

.cs-action-table {
  border-color: #c7d5e6 !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.055), 0 1px 0 rgba(255,255,255,.82) inset;
}

.cs-action-item {
  position: relative;
  min-height: 58px;
  gap: 18px !important;
  background: transparent !important;
  padding: 13px 13px 13px 18px !important;
}

.cs-action-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: rgba(37,99,235,.34);
}

.cs-action-item:hover {
  background: linear-gradient(90deg, rgba(219,234,254,.55), rgba(255,255,255,0)) !important;
}

.cs-action-item:hover::before {
  background: var(--cs-blue);
}

/* Action rows: intent-led command list instead of generic open pills. */
.cs-action-item > div {
  min-width: 0;
}

.cs-action-item strong {
  color: #101827;
  font-size: 13px !important;
  line-height: 1.15;
  letter-spacing: 0;
}

.cs-action-item span {
  max-width: 680px;
  color: #526278 !important;
  line-height: 1.35;
}

.cs-action-item .cs-button {
  min-width: 148px !important;
  min-height: 34px !important;
  justify-content: center !important;
  padding: 7px 11px !important;
  border-radius: 6px !important;
  border-color: #a9bfdb !important;
  background: linear-gradient(180deg, #ffffff, #eef5ff) !important;
  color: #172033 !important;
  box-shadow: 0 6px 14px rgba(15,23,42,.045), 0 1px 0 rgba(255,255,255,.92) inset !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.cs-action-item .cs-button::before {
  content: "";
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: inline-block !important;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 99px;
  background: currentColor;
  opacity: .44;
  pointer-events: none;
}

.cs-action-item .cs-button::after {
  content: none !important;
  display: none !important;
}

.cs-action-item .cs-button.primary,
.cs-section-head .cs-button.primary {
  border-color: #1d4ed8 !important;
  background: linear-gradient(180deg, #2d6df2, #1f56d6) !important;
  color: #ffffff !important;
}

.cs-action-item .cs-button:hover {
  border-color: #2563eb !important;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37,99,235,.12), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

.cs-link-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94)) !important;
  border-color: #cbd8e7 !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.cs-link-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--cs-blue), rgba(15,159,110,.7));
}

body.analysis-refresh .scope-bar {
  border-color: #b8cbe2 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.94)) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.06), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .scope-bar::before {
  content: "";
  width: 3px;
  align-self: stretch;
  min-height: 22px;
  border-radius: 99px;
  background: var(--cs-blue);
  opacity: .68;
}

body.analysis-refresh .scope-chip {
  border-radius: 6px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset;
}

body.analysis-refresh .data-basis-modal {
  border-radius: 10px !important;
  box-shadow: 0 26px 70px rgba(15,23,42,.22) !important;
}

body.analysis-refresh .data-basis-card {
  background:
    linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

body.analysis-refresh .data-basis-item {
  position: relative;
  background: rgba(255,255,255,.52);
}

body.analysis-refresh .data-basis-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 28px;
  height: 2px;
  background: rgba(37,99,235,.34);
}

body.analysis-refresh .data-basis-label {
  padding-top: 6px;
}

body.analysis-refresh .workflow-nav .tab {
  box-shadow: 0 8px 22px rgba(15,23,42,.045), 0 1px 0 rgba(255,255,255,.84) inset !important;
}

body.analysis-refresh .workflow-nav .tab.active {
  box-shadow: inset 3px 0 0 var(--cs-blue), 0 14px 30px rgba(37,99,235,.10) !important;
}

body.prediction-refresh .system-menu-btn,
body.mot-refresh .system-menu-btn,
body.analysis-refresh .system-menu-btn,
body.prediction-refresh .nav-badge,
body.mot-refresh .concept-badge,
body.analysis-refresh .live-widget,
body.analysis-refresh .chip {
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px rgba(0,0,0,.16) !important;
}

body.analysis-refresh .import-btn,
body.analysis-refresh .data-basis-action,
body.analysis-refresh .setup-action,
body.analysis-refresh .scope-modal-btn,
body.analysis-refresh .rc-btn,
body.analysis-refresh .rc-report-btn,
body.analysis-refresh .rc-show-more,
body.mot-refresh .execute-btn,
body.mot-refresh .btn-abort,
body.mot-refresh .btn-proceed,
body.mot-refresh .btn-reset {
  border-radius: 7px !important;
  box-shadow: var(--cs-command-shadow) !important;
}

body.analysis-refresh .data-basis-action.primary,
body.analysis-refresh .data-basis-manage-btn.active,
body.analysis-refresh .setup-action.primary,
body.analysis-refresh .scope-modal-btn.primary,
body.analysis-refresh .rc-btn.primary,
body.analysis-refresh .rc-btn.mot,
body.mot-refresh .execute-btn,
body.mot-refresh .btn-abort {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, #245bd6, #2563eb 54%, #1689ff) !important;
  color: #fff !important;
  border-color: #1d4ed8 !important;
}

body.analysis-refresh .data-basis-manage-btn.active {
  color: #fff !important;
}

body.analysis-refresh .data-basis-action:hover,
body.analysis-refresh .setup-action:hover,
body.analysis-refresh .scope-modal-btn:hover,
body.analysis-refresh .rc-btn:hover,
body.analysis-refresh .rc-report-btn:hover,
body.analysis-refresh .rc-show-more:hover,
body.mot-refresh .execute-btn:hover,
body.mot-refresh .btn-abort:hover,
body.mot-refresh .btn-proceed:not(:disabled):hover,
body.mot-refresh .btn-reset:hover {
  box-shadow: var(--cs-command-shadow-hover) !important;
}

body.analysis-refresh .data-basis-action::after,
body.analysis-refresh .setup-action::after,
body.analysis-refresh .scope-modal-btn::after,
body.analysis-refresh .rc-btn::after,
body.analysis-refresh .rc-report-btn::after,
body.analysis-refresh .rc-show-more::after,
body.mot-refresh .execute-btn::after,
body.mot-refresh .btn-abort::after,
body.mot-refresh .btn-proceed::after,
body.mot-refresh .btn-reset::after {
  content: none !important;
  display: none !important;
}

body.mot-refresh .execute-btn::after,
body.mot-refresh .btn-abort::after {
  content: none !important;
  display: none !important;
}

/* Findings pass: readable risk monitor, non-generic controls, report clarity. */
body.analysis-refresh #riskPanel {
  background: linear-gradient(180deg, #f7fbff 0%, #eef8f5 100%) !important;
  border-top: 1px solid #d9e5f0 !important;
  border-bottom: 1px solid #cbd8e7 !important;
  color: #172033 !important;
}

body.analysis-refresh #riskPanel > div:first-child {
  background: transparent !important;
  min-height: 54px;
}

body.analysis-refresh #riskPanelBody {
  padding: 0 24px 18px !important;
}

body.analysis-refresh .risk-grid {
  gap: 14px !important;
}

body.analysis-refresh .risk-card {
  min-height: 116px;
  padding: 15px 16px !important;
  border-radius: 8px !important;
  border-color: #c4d3e5 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.95)) !important;
  box-shadow: 0 12px 26px rgba(15,23,42,.06), 0 1px 0 rgba(255,255,255,.86) inset !important;
}

body.analysis-refresh .risk-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(37,99,235,.78), rgba(15,159,110,.55), rgba(37,99,235,0));
}

body.analysis-refresh .risk-card.alert::before,
body.analysis-refresh .risk-card.negative::before {
  background: linear-gradient(90deg, rgba(194,65,58,.92), rgba(183,121,31,.45), rgba(194,65,58,0));
}

body.analysis-refresh .risk-card.warn::before {
  background: linear-gradient(90deg, rgba(183,121,31,.92), rgba(37,99,235,.32), rgba(183,121,31,0));
}

/* Risk monitor integrated control-system panel */
body.analysis-refresh #riskPanel.risk-monitor-panel {
  background: transparent !important;
  border-top: 1px solid #dbe5ef !important;
  border-bottom: 1px solid #dbe5ef !important;
  color: #172033 !important;
  box-shadow: none !important;
  padding: 10px 24px !important;
}

body.analysis-refresh .risk-monitor-head {
  width: 100%;
  max-width: 1180px;
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #cbd8e8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37,99,235,.06), transparent 50%),
    #ffffff;
  padding: 8px 14px 8px 16px;
  color: #172033;
  cursor: pointer;
  text-align: left;
  user-select: none;
  box-shadow: 0 10px 24px rgba(15,23,42,.06), 0 1px 0 rgba(255,255,255,.92) inset;
}

body.analysis-refresh .risk-monitor-head:hover {
  border-color: #9fb7dc;
  background:
    linear-gradient(90deg, rgba(37,99,235,.09), transparent 50%),
    #ffffff;
}

body.analysis-refresh .risk-monitor-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.7px;
  line-height: 1.2;
  text-transform: uppercase;
}

body.analysis-refresh .risk-monitor-body {
  width: 100%;
  max-width: 1180px;
  margin: 8px auto 0;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 16px 16px !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

body.analysis-refresh .risk-monitor-config {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 0 12px;
}

body.analysis-refresh .risk-monitor-config .risk-cfg-row {
  margin-top: 0 !important;
  border: 1px solid #d4dfec;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 5px 8px;
  color: #475569 !important;
}

body.analysis-refresh .risk-monitor-config .risk-cfg-input {
  height: 24px;
  background: #fff !important;
  border-color: #cbd8ea !important;
  color: #172033 !important;
}

body.analysis-refresh .risk-monitor-save {
  height: 30px;
  border: 1px solid #b8c7dc;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

body.analysis-refresh .risk-monitor-save:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #f8fbff;
}

body.analysis-refresh .risk-monitor-head .collapse-chevron {
  align-self: center !important;
  margin-left: auto;
}

body.analysis-refresh .risk-label {
  color: #64748b !important;
  font-size: 10px !important;
  letter-spacing: 1.1px !important;
}

body.analysis-refresh .risk-val {
  color: #172033 !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
}

body.analysis-refresh #riskDailyCard.positive #riskDailyPl,
body.analysis-refresh #riskOpenCard.clear #riskOpenCount {
  color: #0f9f6e !important;
}

body.analysis-refresh #riskDailyCard.negative #riskDailyPl,
body.analysis-refresh #riskDailyCard.alert #riskDailyPl {
  color: #c2413a !important;
}

body.analysis-refresh #riskDailyCard.warn #riskDailyPl,
body.analysis-refresh #riskMarginCard.warn #riskMarginPct,
body.analysis-refresh #riskOpenCard.has-open #riskOpenCount {
  color: #b7791f !important;
}

body.analysis-refresh .risk-sub {
  color: #475569 !important;
  font-size: 11px !important;
}

body.analysis-refresh .risk-bar-wrap {
  background: #e2e8f0 !important;
}

body.analysis-refresh .open-trade-row {
  border-top: 1px solid #e2e8f0;
  padding: 6px 0;
}

body.analysis-refresh .open-trade-row span:first-child {
  color: #172033 !important;
}

body.analysis-refresh .open-trade-row span:nth-child(2),
body.analysis-refresh .open-trade-row span:nth-child(3) {
  color: #64748b !important;
}

body.analysis-refresh .dropdown-chevron,
body.analysis-refresh .data-basis-toggle-icon,
body.analysis-refresh .rc-acc-chevron,
body.analysis-refresh .collapse-chevron,
body.analysis-refresh .rc-trade-list-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  border-color: #c5d4e7 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,246,255,.92)) !important;
  color: #172033 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .dropdown-chevron svg,
body.analysis-refresh .data-basis-toggle-icon svg,
body.analysis-refresh .rc-acc-chevron svg,
body.analysis-refresh .collapse-chevron svg,
body.analysis-refresh .rc-trade-list-toggle svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  margin: auto !important;
}

body.analysis-refresh .dropdown-chevron,
body.analysis-refresh .data-basis-toggle-icon,
body.analysis-refresh .collapse-chevron,
body.analysis-refresh .rc-acc-head .rc-acc-chevron {
  align-self: center !important;
}

body.analysis-refresh .dropdown-chevron:hover,
body.analysis-refresh .data-basis-head:hover .data-basis-toggle-icon,
body.analysis-refresh .collapse-chevron:hover,
body.analysis-refresh .rc-acc-head:hover .rc-acc-chevron,
body.analysis-refresh .rc-trade-list summary:hover .rc-trade-list-toggle {
  background:
    linear-gradient(180deg, #ffffff, #eaf2ff) !important;
  border-color: #8fb1e8 !important;
  color: #1d4ed8 !important;
}

body.analysis-refresh .import-btn::after,
body.analysis-refresh .data-basis-action::after,
body.analysis-refresh .setup-action::after,
body.analysis-refresh .scope-modal-btn::after,
body.analysis-refresh .rc-btn::after,
body.analysis-refresh .rc-report-btn::after,
body.analysis-refresh .rc-show-more::after {
  content: none !important;
  display: none !important;
}

/* Final command suffix suppression: no trailing arrow boxes on product commands. */
.cs-button::after,
body.analysis-refresh .import-btn::after,
body.analysis-refresh .data-basis-action::after,
body.analysis-refresh .setup-action::after,
body.analysis-refresh .scope-modal-btn::after,
body.analysis-refresh .rc-btn::after,
body.analysis-refresh .rc-report-btn::after,
body.analysis-refresh .rc-show-more::after,
body.mot-refresh .execute-btn::after,
body.mot-refresh .btn-abort::after,
body.mot-refresh .btn-proceed::after,
body.mot-refresh .btn-reset::after,
body.legacy-refresh .ao-action-link::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}

body.analysis-refresh .rc-banner-inner {
  grid-template-columns: 140px minmax(0, 1fr) minmax(220px, 280px) !important;
  gap: 24px !important;
}

body.analysis-refresh .rc-banner-actions {
  align-items: stretch !important;
}

body.analysis-refresh .rc-banner-actions .rc-btn {
  width: 100%;
  min-height: 38px;
}

body.analysis-refresh .rc-report-table {
  font-size: 12px !important;
}

body.analysis-refresh .rc-report-table th {
  font-size: 10px !important;
  color: #64748b !important;
}

body.analysis-refresh .rc-report-table td {
  color: #334155 !important;
}

body.analysis-refresh .rc-rule-history-table {
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
}

body.analysis-refresh .rc-rule-history-table td {
  background: rgba(255,255,255,.74);
  border-top: 1px solid #d8e4f0;
  border-bottom: 1px solid #d8e4f0;
  vertical-align: middle;
}

body.analysis-refresh .rc-rule-history-table td:first-child {
  border-left: 1px solid #d8e4f0;
  border-radius: 8px 0 0 8px;
}

body.analysis-refresh .rc-rule-history-table td:last-child {
  border-right: 1px solid #d8e4f0;
  border-radius: 0 8px 8px 0;
}

body.analysis-refresh .rc-rule-name-cell strong,
body.analysis-refresh .rc-rule-latest-cell strong {
  display: block;
  color: #172033 !important;
  font-size: 13px;
  line-height: 1.25;
}

body.analysis-refresh .rc-rule-name-cell span,
body.analysis-refresh .rc-rule-latest-cell span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

body.analysis-refresh .rc-week-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body.analysis-refresh .rc-week-chip,
body.analysis-refresh .rc-trend-badge,
body.analysis-refresh .rc-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  border: 1px solid #d0ddec;
  background: #fff;
  color: #334155;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.analysis-refresh .rc-week-chip strong {
  color: #64748b !important;
  font-size: 10px;
}

body.analysis-refresh .rc-week-chip.good,
body.analysis-refresh .rc-trend-badge.good {
  border-color: rgba(15,159,110,.32);
  background: rgba(236,253,245,.92);
  color: #0f766e;
}

body.analysis-refresh .rc-week-chip.warn {
  border-color: rgba(183,121,31,.32);
  background: #fff7ed;
  color: #9a5b00;
}

body.analysis-refresh .rc-week-chip.bad,
body.analysis-refresh .rc-trend-badge.bad {
  border-color: rgba(194,65,58,.32);
  background: #fef2f2;
  color: #991b1b;
}

body.analysis-refresh .rc-trend-badge.neutral {
  background: #f8fbff;
}

body.analysis-refresh .rc-priority-pill {
  background: #f7fbff;
  color: #1d4ed8;
}

body.analysis-refresh #rcResults {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
}

body.analysis-refresh .rc-card {
  border-radius: 8px !important;
  padding: 15px 16px !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.06), 0 1px 0 rgba(255,255,255,.86) inset !important;
}

body.analysis-refresh .rc-rule-title {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

body.analysis-refresh .rc-hint,
body.analysis-refresh .rc-rule-detail,
body.analysis-refresh .rc-stat {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body.analysis-refresh .rc-pct {
  font-size: 22px !important;
  margin-top: 10px;
}

body.analysis-refresh .rc-card-badge {
  border-radius: 6px !important;
  letter-spacing: .6px !important;
  padding: 3px 6px !important;
}

body.analysis-refresh #rcSoftResults > div:nth-child(2) {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 900px) {
  body.analysis-refresh .rc-banner-inner {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-gauge-wrap {
    margin: 0 auto;
  }
}

/* Findings pass 2: remove admin-template noise and sharpen the compliance decision surface. */
body.analysis-refresh,
body.mot-refresh {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  background-size: auto !important;
}

body.analysis-refresh .container,
body.analysis-refresh .main,
body.analysis-refresh .tab-content {
  background: transparent !important;
  background-image: none !important;
}

body.analysis-refresh .rc-module {
  border-top: 1px solid #d7e1ec !important;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.86) inset !important;
}

body.analysis-refresh .rc-banner {
  margin: 18px 22px 16px !important;
  padding: 22px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,252,255,.96)),
    linear-gradient(135deg, rgba(37,99,235,.07), rgba(15,159,110,.08)) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.075), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

body.analysis-refresh .rc-banner::after {
  display: none !important;
}

body.analysis-refresh .rc-banner-inner {
  grid-template-columns: 132px minmax(0, 1fr) minmax(210px, 260px) !important;
  align-items: center !important;
  gap: 20px !important;
}

body.analysis-refresh .rc-gauge-wrap {
  width: 132px !important;
  height: 132px !important;
  align-self: center !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 50% 50%, #ffffff 0 58%, #eef5fb 59% 100%) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.08), 0 0 0 1px #d5e0eb inset !important;
}

body.analysis-refresh .rc-gauge-svg {
  width: 132px !important;
  height: 132px !important;
}

body.analysis-refresh .rc-gauge-bg {
  stroke: #d9e1eb !important;
}

body.analysis-refresh .rc-gauge-pct {
  color: #172033 !important;
  font-size: 29px !important;
}

body.analysis-refresh .rc-gauge-grade {
  color: #64748b !important;
}

body.analysis-refresh .rc-banner-text {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.analysis-refresh .rc-kicker {
  color: #0f766e !important;
}

body.analysis-refresh .rc-headline {
  max-width: 760px !important;
  color: #172033 !important;
  font-size: 24px !important;
  line-height: 1.16 !important;
}

body.analysis-refresh .rc-copy {
  max-width: 760px !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.analysis-refresh .rc-kpi-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

body.analysis-refresh .rc-kpi-cell {
  min-height: 104px !important;
  min-width: 0 !important;
  padding: 12px !important;
  border: 1px solid #d6e1ee !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.045), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

body.analysis-refresh .rc-kpi-label {
  color: #64748b !important;
  letter-spacing: 1px !important;
}

body.analysis-refresh .rc-kpi-sub,
body.analysis-refresh .rc-score-sub {
  color: #64748b !important;
}

body.analysis-refresh .rc-kpi-bar {
  left: 10px !important;
  right: 10px !important;
  bottom: 8px !important;
  height: 3px !important;
  max-width: calc(100% - 20px) !important;
  border-radius: 999px !important;
}

body.analysis-refresh .rc-banner-actions {
  align-items: stretch !important;
  align-self: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid #d3dfeb !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 12px 24px rgba(15,23,42,.055), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .rc-banner-actions .ui-role-tag {
  margin-bottom: 2px !important;
}

body.analysis-refresh .ui-role-tag.action,
body.analysis-refresh .ui-role-tag.decision {
  border-radius: 6px !important;
  background: #eef6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

body.analysis-refresh .ui-role-tag.decision {
  background: #edfdf6 !important;
  border-color: rgba(15,159,110,.24) !important;
  color: #0f766e !important;
}

body.analysis-refresh .rc-btn {
  min-height: 36px !important;
  border-radius: 7px !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .1px !important;
  background: #ffffff !important;
  border-color: #b9c9dc !important;
  color: #172033 !important;
  box-shadow: 0 5px 12px rgba(15,23,42,.04), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .rc-btn.primary {
  background: linear-gradient(180deg, #2f6df1, #1f56d6) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(37,99,235,.18), 0 1px 0 rgba(255,255,255,.24) inset !important;
}

body.analysis-refresh .rc-btn.mot {
  background: #f8fbff !important;
  border-color: #8fb1e8 !important;
  color: #1d4ed8 !important;
}

body.analysis-refresh .rc-btn:hover {
  transform: translateY(-1px);
  border-color: #2563eb !important;
}

body.analysis-refresh .rc-filter-bar,
body.analysis-refresh .rc-user-rule-form {
  border-color: #d4dfec !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.04), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .rc-rule-meta,
body.analysis-refresh .rc-soft-section-title,
body.analysis-refresh .rc-soft-active-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .9px !important;
  text-transform: uppercase !important;
}

body.analysis-refresh .rc-rule-icon {
  display: inline-flex !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ccd9e8 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #ffffff, #eef5fb) !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset !important;
  filter: saturate(.74);
}

body.analysis-refresh .rc-rule-icon .rc-icon-svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.analysis-refresh .rc-soft-active-title {
  display: flex !important;
  margin-bottom: 12px !important;
}

body.analysis-refresh .rc-rule-hd {
  gap: 10px !important;
}

body.analysis-refresh .rc-premium-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  transform: translateY(-1px);
  border: 1px solid #bfd2f4;
  border-radius: 6px;
  background: #eef4ff;
  color: #1d4ed8;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 1120px) {
  body.analysis-refresh .rc-banner-inner {
    grid-template-columns: 120px minmax(0, 1fr) !important;
  }

  body.analysis-refresh .rc-banner-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.analysis-refresh .rc-banner {
    margin: 12px !important;
    padding: 16px !important;
  }

  body.analysis-refresh .rc-banner-inner,
  body.analysis-refresh .rc-kpi-row {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-gauge-wrap {
    margin: 0 auto !important;
  }
}

/* Findings pass 5: make rule, commitment and report surfaces product-native. */
body.analysis-refresh .rc-rule-workspace {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body.analysis-refresh .rc-rule-result {
  display: grid !important;
  grid-template-rows: auto auto auto auto 1fr auto auto !important;
  min-height: 292px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.055), 0 1px 0 rgba(255,255,255,.9) inset !important;
}

body.analysis-refresh .rc-rule-result::before {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  height: auto !important;
  border-radius: 0 !important;
  background: #d5e0eb !important;
}

body.analysis-refresh .rc-rule-result.rc-ok::before {
  background: #0f9f6e !important;
}

body.analysis-refresh .rc-rule-result.rc-warn::before {
  background: #d97706 !important;
}

body.analysis-refresh .rc-rule-result.rc-bad::before {
  background: #dc2626 !important;
}

body.analysis-refresh .rc-rule-result > :not(.rc-trade-list) {
  margin-left: 16px !important;
  margin-right: 16px !important;
}

body.analysis-refresh .rc-rule-result .rc-rule-hd {
  min-height: 42px !important;
  margin: 0 0 11px !important;
  padding-top: 15px !important;
  border-bottom: 1px solid #e1e8f1 !important;
}

body.analysis-refresh .rc-rule-score {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: end !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

body.analysis-refresh .rc-rule-score .rc-pct {
  margin: 0 !important;
  font-size: 28px !important;
  letter-spacing: 0 !important;
}

body.analysis-refresh .rc-rule-score-label {
  padding-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .7px;
}

body.analysis-refresh .rc-rule-evidence-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  margin-top: 12px !important;
  border: 1px solid #dbe5f1 !important;
  border-radius: 7px !important;
  background: #f8fbff !important;
  color: #475569 !important;
}

body.analysis-refresh .rc-rule-evidence-row span {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid #e1e8f1;
  border-bottom: 1px solid #e1e8f1;
  font-size: 10px;
  line-height: 1.35;
}

body.analysis-refresh .rc-rule-evidence-row span:nth-child(2n) {
  border-right: 0;
}

body.analysis-refresh .rc-rule-evidence-row span:nth-last-child(-n+2) {
  border-bottom: 0;
}

body.analysis-refresh .rc-rule-result .rc-pnl-definition,
body.analysis-refresh .rc-rule-result .rc-trade-list {
  margin-left: 16px !important;
  margin-right: 16px !important;
}

body.analysis-refresh .rc-rule-result .rc-trade-list {
  margin-bottom: 14px !important;
}

body.analysis-refresh .rc-soft-results {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #dbe5f1 !important;
}

body.analysis-refresh .rc-soft-ledger {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
  gap: 1px !important;
  overflow: hidden !important;
  border: 1px solid #d9e3ee !important;
  border-radius: 8px !important;
  background: #d9e3ee !important;
}

body.analysis-refresh .rc-soft-card {
  min-height: 170px !important;
  border: 0 !important;
  border-left: 3px solid #d97706 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fffdf7 !important;
}

body.analysis-refresh .rc-soft-card::before {
  display: none !important;
}

body.analysis-refresh .rc-soft-card .rc-card-badge.warn {
  border-radius: 4px !important;
  background: #fff7ed !important;
}

body.analysis-refresh .rc-history-workspace {
  margin-top: 12px;
}

body.analysis-refresh #rcAccHistory .chart-wrap {
  border: 1px solid #d9e3ee !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  padding: 8px !important;
}

body.analysis-refresh #rcAccHistory .rc-report-table {
  border: 1px solid #d9e3ee !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.analysis-refresh .rc-rule-history-table td {
  vertical-align: top !important;
}

body.analysis-refresh .rc-report-evidence-layout {
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 16px !important;
  align-items: start !important;
}

body.analysis-refresh .rc-report-main {
  min-width: 0;
}

body.analysis-refresh .rc-report-evidence-rail {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: sticky !important;
  top: 84px !important;
  border: 1px solid #d9e3ee !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.045) !important;
}

body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi {
  display: grid !important;
  min-height: 0 !important;
  gap: 5px !important;
  padding: 12px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid #e1e8f1 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi:last-child {
  border-bottom: 0 !important;
}

body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi small {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 8.5px !important;
  line-height: 1.35 !important;
  letter-spacing: .75px !important;
}

body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi strong {
  font-size: 18px !important;
  line-height: 1.12 !important;
}

body.analysis-refresh .rc-report-rule-row {
  background: #fff !important;
}

body.analysis-refresh .rc-report-rule-row td {
  vertical-align: middle !important;
}

body.analysis-refresh .rc-report-count {
  display: inline-flex;
  min-width: 32px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #f8fbff;
  color: #172033;
  font-weight: 900;
}

body.analysis-refresh .rc-status-token {
  display: inline-flex;
  min-width: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8e7;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f8fbff;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
}

body.analysis-refresh .rc-status-token.good {
  border-color: rgba(15,159,110,.28);
  background: #edfdf6;
  color: #0f766e;
}

body.analysis-refresh .rc-status-token.warn {
  border-color: rgba(217,119,6,.28);
  background: #fff7ed;
  color: #9a5b00;
}

body.analysis-refresh .rc-status-token.bad {
  border-color: rgba(220,38,38,.28);
  background: #fef2f2;
  color: #991b1b;
}

/* Report ledger final polish: tables read as evidence ledgers, not default HTML tables. */
body.analysis-refresh .rc-report-main > .rc-report-table,
body.analysis-refresh .rc-history-workspace > .rc-report-table,
body.analysis-refresh .rc-report-trade-panel .rc-report-table {
  width: 100% !important;
  min-width: 620px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d7e2ee !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15,23,42,.045), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

body.analysis-refresh .rc-report-trade-panel .rc-report-table {
  min-width: 980px !important;
}

body.analysis-refresh .rc-report-table thead th {
  padding: 9px 10px !important;
  border-bottom: 1px solid #cfdceb !important;
  background:
    linear-gradient(180deg, #f8fbff, #edf4fb) !important;
  color: #526178 !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: .9px !important;
  text-transform: uppercase !important;
}

body.analysis-refresh .rc-report-table tbody tr {
  background: #ffffff !important;
}

body.analysis-refresh .rc-report-table tbody tr + tr td {
  border-top: 1px solid #e1e8f1 !important;
}

body.analysis-refresh .rc-report-table tbody td {
  padding: 10px !important;
  border-bottom: 0 !important;
  color: #334155 !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body.analysis-refresh .rc-report-table tbody tr:hover td {
  background: #f8fbff !important;
}

body.analysis-refresh .rc-report-table tbody tr.rc-report-rule-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(37,99,235,.38);
}

body.analysis-refresh .rc-rule-history-table {
  min-width: 760px !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.analysis-refresh .rc-rule-history-table thead th {
  border-top: 1px solid #d7e2ee !important;
  border-bottom: 1px solid #d7e2ee !important;
}

body.analysis-refresh .rc-rule-history-table tbody tr td {
  border-top: 1px solid #d8e4f0 !important;
  border-bottom: 1px solid #d8e4f0 !important;
  background: #ffffff !important;
  vertical-align: top !important;
}

body.analysis-refresh .rc-rule-history-table tbody tr:hover td {
  background: #f8fbff !important;
}

body.analysis-refresh .rc-rule-history-table tbody tr td:first-child {
  border-left: 1px solid #d8e4f0 !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: inset 3px 0 0 rgba(37,99,235,.32);
}

body.analysis-refresh .rc-rule-history-table tbody tr td:last-child {
  border-right: 1px solid #d8e4f0 !important;
  border-radius: 0 8px 8px 0 !important;
}

body.analysis-refresh .rc-report-count-cell {
  width: 78px;
  text-align: center;
}

body.analysis-refresh .rc-report-money-cell {
  min-width: 104px;
  text-align: right;
  white-space: nowrap;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

body.analysis-refresh .rc-report-count {
  box-shadow: 0 1px 0 rgba(255,255,255,.92) inset;
}

body.analysis-refresh .rc-status-token.neutral {
  border-color: rgba(100,116,139,.26);
  background: #f8fbff;
  color: #526178;
}

body.analysis-refresh #rcReportBody,
body.analysis-refresh #rcMotAuditBody,
body.analysis-refresh #rcHistoryBody,
body.analysis-refresh .rc-report-main,
body.analysis-refresh .rc-history-workspace,
body.analysis-refresh .rc-report-trade-panel {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

@media (max-width: 1120px) {
  body.analysis-refresh .rc-report-evidence-layout {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-report-evidence-rail {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi {
    border-right: 1px solid #e1e8f1 !important;
  }

  body.analysis-refresh .rc-report-evidence-rail .rc-report-kpi:nth-child(2n) {
    border-right: 0 !important;
  }
}

@media (max-width: 760px) {
  body.analysis-refresh .rc-rule-workspace,
  body.analysis-refresh .rc-soft-ledger,
  body.analysis-refresh .rc-report-evidence-rail {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-rule-evidence-row {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-rule-evidence-row span,
  body.analysis-refresh .rc-rule-evidence-row span:nth-child(2n),
  body.analysis-refresh .rc-rule-evidence-row span:nth-last-child(-n+2) {
    border-right: 0 !important;
    border-bottom: 1px solid #e1e8f1 !important;
  }

  body.analysis-refresh .rc-rule-evidence-row span:last-child {
    border-bottom: 0 !important;
  }
}

/* Final command control language: analysis actions are product controls, not generic pills. */
/* Specificity lock for product command controls; later page rules must not flatten them back to pills. */
body.analysis-refresh .import-btn,
body.analysis-refresh .data-basis-action,
body.analysis-refresh .setup-action,
body.analysis-refresh .scope-modal-btn,
body.analysis-refresh .rc-btn,
body.analysis-refresh .rc-report-btn,
body.analysis-refresh .rc-show-more,
body.mot-refresh .execute-btn,
body.mot-refresh .btn-abort,
body.mot-refresh .btn-proceed,
body.mot-refresh .btn-reset {
  position: relative !important;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  max-width: 100% !important;
  padding: 8px 13px 8px 20px !important;
  border: 1px solid #b6c7da !important;
  border-radius: 7px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94)) !important;
  color: #172033 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow: hidden !important;
  box-shadow: 0 9px 20px rgba(15,23,42,.07), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

body.analysis-refresh .import-btn::before,
body.analysis-refresh .data-basis-action::before,
body.analysis-refresh .setup-action::before,
body.analysis-refresh .scope-modal-btn::before,
body.analysis-refresh .rc-btn::before,
body.analysis-refresh .rc-report-btn::before,
body.analysis-refresh .rc-show-more::before,
body.mot-refresh .execute-btn::before,
body.mot-refresh .btn-abort::before,
body.mot-refresh .btn-proceed::before,
body.mot-refresh .btn-reset::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 7px 0 0 7px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  opacity: .92;
  pointer-events: none;
}

body.analysis-refresh .data-basis-action.primary,
body.analysis-refresh .data-basis-manage-btn.active,
body.analysis-refresh .setup-action.primary,
body.analysis-refresh .scope-modal-btn.primary,
body.analysis-refresh .rc-btn.primary,
body.mot-refresh .execute-btn {
  border-color: #1d4ed8 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0)),
    linear-gradient(180deg, #2f6df1, #1f56d6) !important;
  color: #ffffff !important;
  box-shadow: 0 13px 28px rgba(37,99,235,.22), 0 1px 0 rgba(255,255,255,.22) inset !important;
}

body.analysis-refresh .data-basis-action.primary::before,
body.analysis-refresh .data-basis-manage-btn.active::before,
body.analysis-refresh .setup-action.primary::before,
body.analysis-refresh .scope-modal-btn.primary::before,
body.analysis-refresh .rc-btn.primary::before,
body.mot-refresh .execute-btn::before {
  background: linear-gradient(180deg, #bfdbfe, #22d3ee);
  opacity: 1;
}

body.analysis-refresh .rc-btn.mot {
  border-color: #8fb1e8 !important;
  background: linear-gradient(180deg, #f8fbff, #eff6ff) !important;
  color: #1d4ed8 !important;
}

body.analysis-refresh .rc-btn.mot::before {
  background: linear-gradient(180deg, #2563eb, #0ea5e9);
}

body.analysis-refresh .setup-action.safe,
body.mot-refresh .btn-abort {
  border-color: #8fd8bb !important;
  background: linear-gradient(180deg, #f8fffc, #ecfdf5) !important;
  color: #047857 !important;
}

body.analysis-refresh .setup-action.safe::before,
body.mot-refresh .btn-abort::before {
  background: linear-gradient(180deg, #34d399, #0f9f6e);
}

body.analysis-refresh .data-basis-action.danger,
body.mot-refresh .btn-proceed {
  border-color: #f0b4b0 !important;
  background: linear-gradient(180deg, #fffafa, #fff1f2) !important;
  color: #a51d2d !important;
}

body.mot-refresh .btn-proceed:disabled {
  border-color: #f0b4b0 !important;
  background: linear-gradient(180deg, #fffafa, #fff1f2) !important;
  color: #a51d2d !important;
  opacity: .62 !important;
}

body.analysis-refresh .data-basis-action.danger::before,
body.mot-refresh .btn-proceed::before {
  background: linear-gradient(180deg, #fb7185, #c2413a);
}

body.analysis-refresh .import-btn:hover,
body.analysis-refresh .data-basis-action:hover,
body.analysis-refresh .setup-action:hover,
body.analysis-refresh .scope-modal-btn:hover,
body.analysis-refresh .rc-btn:hover,
body.analysis-refresh .rc-report-btn:hover,
body.analysis-refresh .rc-show-more:hover,
body.mot-refresh .execute-btn:hover,
body.mot-refresh .btn-abort:hover,
body.mot-refresh .btn-proceed:not(:disabled):hover,
body.mot-refresh .btn-reset:hover {
  transform: translateY(-1px);
  border-color: #7da8ea !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(239,246,255,.98)) !important;
  color: #0f2a55 !important;
  box-shadow: 0 14px 30px rgba(37,99,235,.13), 0 1px 0 rgba(255,255,255,.94) inset !important;
}

body.analysis-refresh .import-btn:focus-visible,
body.analysis-refresh .data-basis-action:focus-visible,
body.analysis-refresh .setup-action:focus-visible,
body.analysis-refresh .scope-modal-btn:focus-visible,
body.analysis-refresh .rc-btn:focus-visible,
body.analysis-refresh .rc-report-btn:focus-visible,
body.analysis-refresh .rc-show-more:focus-visible,
body.mot-refresh .execute-btn:focus-visible,
body.mot-refresh .btn-abort:focus-visible,
body.mot-refresh .btn-proceed:focus-visible,
body.mot-refresh .btn-reset:focus-visible {
  outline: 2px solid rgba(37,99,235,.42) !important;
  outline-offset: 2px !important;
}

body.analysis-refresh .setup-action:disabled,
body.analysis-refresh .scope-modal-btn:disabled,
body.analysis-refresh .rc-btn:disabled,
body.analysis-refresh .rc-report-btn:disabled,
body.mot-refresh .btn-proceed:disabled {
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  body.analysis-refresh .import-btn,
  body.analysis-refresh .data-basis-action,
  body.analysis-refresh .setup-action,
  body.analysis-refresh .scope-modal-btn,
  body.analysis-refresh .rc-btn,
  body.analysis-refresh .rc-report-btn,
  body.analysis-refresh .rc-show-more,
  body.mot-refresh .execute-btn,
  body.mot-refresh .btn-abort,
  body.mot-refresh .btn-proceed,
  body.mot-refresh .btn-reset {
    min-height: 36px !important;
    flex: 1 1 150px;
  }
}

/* Final cascade enforcement for compact density toggles */
body.analysis-refresh .mode-switch,
body.prediction-refresh .mode-switch,
body.mot-refresh .mode-switch,
.cs-mode-switch,
.alpha-workbar-density {
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px !important;
  gap: 2px !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(17, 24, 39, .92)) !important;
}

body.analysis-refresh .mode-switch button,
body.prediction-refresh .mode-switch button,
body.mot-refresh .mode-switch button,
.cs-mode-switch button,
.alpha-workbar-density button {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  border-radius: 6px !important;
  letter-spacing: 0 !important;
}

body.analysis-refresh .alpha-workbar .alpha-workbar-density button:not(.active),
body.prediction-refresh .alpha-workbar .alpha-workbar-density button:not(.active),
body.mot-refresh .alpha-workbar .alpha-workbar-density button:not(.active) {
  color: #cbd5e1 !important;
  background: transparent !important;
}

body.analysis-refresh .mode-switch button.active,
body.prediction-refresh .mode-switch button.active,
body.mot-refresh .mode-switch button.active,
.cs-mode-switch button[aria-pressed="true"],
.alpha-workbar-density button.active {
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
}

/* Paper intent 5-minute review: setup/watchlist filters and print-safe management summary. */
.cs-paper-review-panel[hidden] {
  display: none !important;
}

.cs-paper-review-panel {
  border-left: 3px solid #14b8a6 !important;
  border-color: #b8e4d7 !important;
  background:
    linear-gradient(90deg, rgba(20,184,166,.08), transparent 38%),
    #ffffff !important;
}

.cs-paper-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8e5ef;
  border-radius: 8px;
  background: #d8e5ef;
  margin: 12px 0;
}

.cs-paper-review-summary div {
  min-width: 0;
  background: #f8fbff;
  padding: 10px 12px;
}

.cs-paper-review-summary small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.cs-paper-review-summary strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.analysis-refresh .rc-intent-review {
  margin-bottom: 12px !important;
  border: 1px solid #cfe0ed !important;
  border-left: 3px solid #14b8a6 !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(20,184,166,.08), rgba(37,99,235,.04)),
    #ffffff !important;
  padding: 14px !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.045) !important;
}

body.analysis-refresh .rc-intent-review[hidden] {
  display: none !important;
}

body.analysis-refresh .rc-intent-review-head,
body.analysis-refresh .rc-intent-summary-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

body.analysis-refresh .rc-intent-kicker {
  color: #0f766e !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 1.3px !important;
  text-transform: uppercase !important;
}

body.analysis-refresh .rc-intent-title,
body.analysis-refresh .rc-intent-summary-head strong {
  color: #172033 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

body.analysis-refresh .rc-intent-review-head p,
body.analysis-refresh .rc-intent-summary-head span,
body.analysis-refresh .rc-intent-boundary,
body.analysis-refresh .rc-intent-count-line,
body.analysis-refresh .rc-intent-copy,
body.analysis-refresh .rc-intent-meta {
  color: #475569 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

body.analysis-refresh .rc-intent-filters {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

body.analysis-refresh .rc-intent-filters label {
  display: grid !important;
  gap: 5px !important;
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
}

body.analysis-refresh .rc-intent-filters select {
  width: 100% !important;
  min-height: 34px !important;
  border: 1px solid #cdd9e8 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #172033 !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  outline: none !important;
}

body.analysis-refresh .rc-intent-filters select:focus {
  border-color: rgba(37,99,235,.54) !important;
  box-shadow: 0 0 0 2px rgba(37,99,235,.11) !important;
}

body.analysis-refresh .rc-intent-management-summary {
  margin: 10px 0 12px !important;
  border: 1px solid #cfe0ed !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  padding: 12px !important;
}

body.analysis-refresh .rc-intent-management-summary ol {
  display: grid !important;
  gap: 8px !important;
  margin: 10px 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.analysis-refresh .rc-intent-management-summary li {
  display: grid !important;
  grid-template-columns: 3px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: start !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  padding: 9px 10px !important;
}

body.analysis-refresh .rc-intent-management-summary li::before {
  content: "" !important;
  width: 3px !important;
  height: 100% !important;
  min-height: 34px !important;
  border-radius: 99px !important;
  background: #2563eb !important;
}

body.analysis-refresh .rc-intent-management-summary li.risk::before {
  background: #dc2626 !important;
}

body.analysis-refresh .rc-intent-management-summary li.check::before,
body.analysis-refresh .rc-intent-management-summary li.scope::before {
  background: #d97706 !important;
}

body.analysis-refresh .rc-intent-management-summary li.ok::before {
  background: #0f9f6e !important;
}

body.analysis-refresh .rc-intent-management-summary li strong,
body.analysis-refresh .rc-intent-management-summary li span {
  grid-column: 2 !important;
}

body.analysis-refresh .rc-intent-management-summary li strong {
  color: #172033 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.analysis-refresh .rc-intent-management-summary li span {
  color: #475569 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body.analysis-refresh .rc-intent-list {
  display: grid !important;
  gap: 8px !important;
}

body.analysis-refresh .rc-intent-item {
  border: 1px solid #d8e4f0 !important;
  border-left: 3px solid #2563eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 10px 12px !important;
}

@media (max-width: 820px) {
  .cs-paper-review-summary,
  body.analysis-refresh .rc-intent-filters {
    grid-template-columns: 1fr !important;
  }

  body.analysis-refresh .rc-intent-review-head,
  body.analysis-refresh .rc-intent-summary-head {
    display: grid !important;
  }
}

@media print {
  body.rc-print-intent-review {
    background: #ffffff !important;
    color: #111827 !important;
  }

  body.rc-print-intent-review .header,
  body.rc-print-intent-review .alpha-workbar,
  body.rc-print-intent-review .sidebar,
  body.rc-print-intent-review .workflow-nav,
  body.rc-print-intent-review .analysis-mode-rail,
  body.rc-print-intent-review .lite-question-strip,
  body.rc-print-intent-review .rc-acc-head,
  body.rc-print-intent-review .rc-report-btn,
  body.rc-print-intent-review #ai-insights-panel,
  body.rc-print-intent-review #rcAiReportPanel {
    display: none !important;
  }

  body.rc-print-intent-review .main,
  body.rc-print-intent-review .content,
  body.rc-print-intent-review .tab-content,
  body.rc-print-intent-review .panel,
  body.rc-print-intent-review .rc-acc,
  body.rc-print-intent-review .rc-acc-body,
  body.rc-print-intent-review .rc-report-body,
  body.rc-print-intent-review .rc-report-main,
  body.rc-print-intent-review #rcIntentReviewPanel,
  body.rc-print-intent-review .rc-intent-management-summary {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  body.rc-print-intent-review .rc-intent-management-summary,
  body.rc-print-intent-review #rcIntentReviewPanel {
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid !important;
  }
}
