/* ============================================================
   News Intelligence desk
   Scoped to #page-news and the news dialogs.  The panel already
   owns the violet BitGRoot palette; this page adds semantic
   impact colours without introducing a second design system.
   ============================================================ */

.news-shell,
.nw-dialog {
  --nw-bg: #0a0a0c;
  --nw-surface: #141418;
  --nw-surface-2: #1a1a21;
  --nw-surface-3: #1f1f27;
  --nw-line: rgba(255, 255, 255, 0.09);
  --nw-line-strong: rgba(255, 255, 255, 0.16);
  --nw-text: #f5f3ff;
  --nw-muted: #9a94ab;
  --nw-muted-2: #c9c4d8;
  --nw-accent: #b79cff;
  --nw-accent-soft: rgba(167, 139, 250, 0.14);
  --nw-accent-line: rgba(167, 139, 250, 0.28);
  --nw-gold: #f5c451;
  --nw-euro: #7aa7ff;
  --nw-pound: #5eead4;
  --nw-btc: #f7931a;
  --nw-critical: #fb7185;
  --nw-high: #fbbf24;
  --nw-medium: #60a5fa;
  --nw-low: #94a3b8;
  --nw-up: #34d399;
  --nw-down: #fb7185;
  --nw-radius: 20px;
  --nw-radius-sm: 14px;
  --nw-radius-xs: 10px;
  --nw-shadow: 0 28px 70px -42px rgba(0, 0, 0, 0.95);
}

.news-shell {
  position: relative;
  min-width: 0;
  padding-bottom: 28px;
  background:
    radial-gradient(980px 460px at 92% -8%, rgba(183, 156, 255, 0.12), transparent 62%),
    radial-gradient(720px 380px at 0% 14%, rgba(245, 196, 81, 0.045), transparent 66%);
  border-radius: 28px;
}

.news-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image: linear-gradient(rgba(183, 156, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 68px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.news-shell h2,
.news-shell h3,
.nw-dialog h3 {
  color: var(--nw-text);
}

/* ---------- Hero ---------- */
.nw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: end;
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--nw-line);
}

.nw-hero__copy {
  min-width: 0;
}

.nw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nw-accent);
  box-shadow: 0 0 0 4px rgba(183, 156, 255, 0.14);
  animation: nw-pulse 2.4s ease-in-out infinite;
}

@keyframes nw-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(183, 156, 255, 0.12);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(183, 156, 255, 0.03);
    opacity: 1;
  }
}

.nw-hero h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.nw-hero p {
  max-width: 64ch;
  color: var(--nw-muted-2);
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.95;
}

.nw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.nw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: var(--nw-surface-2);
  color: var(--nw-text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nw-btn:hover {
  border-color: var(--nw-line-strong);
  background: var(--nw-surface-3);
  transform: translateY(-1px);
}

.nw-btn:active {
  transform: translateY(0) scale(0.985);
}

.nw-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.nw-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed 0%, #6025bf 78%);
  color: #fff;
  box-shadow: 0 14px 34px -18px rgba(96, 37, 191, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nw-btn--primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 78%);
}

.nw-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--nw-accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nw-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-source-line {
  margin-top: 12px;
  color: var(--nw-muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* ---------- Next event ---------- */
.nw-next {
  position: relative;
  min-width: 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--nw-accent-line);
  border-radius: var(--nw-radius);
  background:
    radial-gradient(280px 160px at 88% 0%, rgba(183, 156, 255, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(31, 31, 39, 0.95), rgba(20, 20, 24, 0.96));
  box-shadow: var(--nw-shadow);
  overflow: hidden;
}

.nw-next::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  inset-block-start: -40px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(183, 156, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.nw-next__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nw-next__label {
  color: var(--nw-muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nw-next__time {
  margin-top: 10px;
  color: var(--nw-text);
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nw-next__countdown {
  margin-top: 7px;
  color: var(--nw-accent);
  font-size: 12.5px;
  font-weight: 800;
}

.nw-next__title {
  margin-top: 14px;
  color: var(--nw-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.nw-next__meta {
  margin-top: 6px;
  color: var(--nw-muted);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.nw-next__bar {
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.nw-next__bar span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nw-critical), var(--nw-high), var(--nw-accent));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Symbol rail ---------- */
.nw-symbols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.nw-symbol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 88px;
  padding: 13px 14px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(20, 20, 24, 0.7);
  color: var(--nw-muted-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nw-symbol:hover {
  border-color: var(--nw-line-strong);
  background: var(--nw-surface-2);
  transform: translateY(-1px);
}

.nw-symbol.is-active {
  border-color: var(--nw-accent-line);
  background: linear-gradient(150deg, rgba(183, 156, 255, 0.13), rgba(20, 20, 24, 0.86));
  color: var(--nw-text);
}

.nw-symbol__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.nw-symbol[data-tone="gold"] .nw-symbol__mark {
  color: var(--nw-gold);
  background: rgba(245, 196, 81, 0.12);
}

.nw-symbol[data-tone="euro"] .nw-symbol__mark {
  color: var(--nw-euro);
  background: rgba(122, 167, 255, 0.12);
}

.nw-symbol[data-tone="pound"] .nw-symbol__mark {
  color: var(--nw-pound);
  background: rgba(94, 234, 212, 0.1);
}

.nw-symbol[data-tone="bitcoin"] .nw-symbol__mark {
  color: var(--nw-btc);
  background: rgba(247, 147, 26, 0.12);
}

.nw-symbol__name {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

.nw-symbol__meta {
  color: var(--nw-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------- KPI ---------- */
.nw-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.nw-kpi {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(20, 20, 24, 0.62);
}

.nw-kpi--alert {
  border-color: rgba(251, 113, 133, 0.24);
  background: linear-gradient(150deg, rgba(251, 113, 133, 0.08), rgba(20, 20, 24, 0.7));
}

.nw-kpi__label {
  display: block;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 700;
}

.nw-kpi__value {
  display: block;
  margin-top: 4px;
  color: var(--nw-text);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nw-kpi__value--small {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nw-kpi__sub {
  display: block;
  margin-top: 3px;
  color: var(--nw-muted);
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.nw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(250px, 0.38fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.nw-main {
  min-width: 0;
}

.nw-side {
  display: grid;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: 88px;
}

.nw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nw-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nw-status-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--nw-line);
  border-radius: 14px;
  background: rgba(20, 20, 24, 0.72);
}

.nw-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nw-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nw-status-tab b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--nw-muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
}

.nw-status-tab:hover {
  color: var(--nw-text);
}

.nw-status-tab.is-active {
  color: var(--nw-text);
  background: var(--nw-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(183, 156, 255, 0.2);
}

.nw-status-tab.is-active b {
  color: var(--nw-accent);
  background: rgba(183, 156, 255, 0.16);
}

.nw-list-meta {
  color: var(--nw-muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.nw-tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.7);
}

.nw-tab {
  min-height: 44px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nw-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nw-tab:hover {
  color: var(--nw-text);
}

.nw-tab.is-active {
  color: var(--nw-text);
  background: var(--nw-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(183, 156, 255, 0.2);
}

.nw-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nw-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--nw-muted-2);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.nw-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nw-check span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--nw-line-strong);
  border-radius: 5px;
  background: var(--nw-surface-2);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nw-check input:checked + span {
  border-color: var(--nw-accent);
  background: var(--nw-accent);
}

.nw-check input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.nw-check input:focus-visible + span {
  outline: 2px solid var(--nw-accent);
  outline-offset: 2px;
}

.nw-range {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nw-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.nw-select,
.nw-input {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-xs);
  background: var(--nw-surface-2);
  color: var(--nw-text);
  font: inherit;
  font-size: 12.5px;
}

.nw-select:hover,
.nw-input:hover {
  border-color: var(--nw-line-strong);
}

.nw-select option {
  background: var(--nw-surface-2);
  color: var(--nw-text);
}

/* ---------- Day groups and events ---------- */
.nw-day {
  margin-bottom: 18px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius);
  background: rgba(20, 20, 24, 0.58);
  overflow: hidden;
}

.nw-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nw-line);
  background: rgba(255, 255, 255, 0.018);
}

.nw-day__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-text);
  font-size: 12.5px;
  font-weight: 800;
}

.nw-day__title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nw-accent);
}

.nw-day__meta {
  color: var(--nw-muted);
  font-size: 11px;
}

.nw-event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--nw-line);
  min-width: 0;
  transition: background 0.18s ease;
}

.nw-event:last-child {
  border-bottom: 0;
}

.nw-event:hover {
  background: rgba(255, 255, 255, 0.022);
}

.nw-event--critical {
  box-shadow: inset 3px 0 0 var(--nw-critical);
}

.nw-event--high {
  box-shadow: inset 3px 0 0 var(--nw-high);
}

.nw-event__time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.nw-event__time strong {
  color: var(--nw-text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nw-event__time span {
  color: var(--nw-muted);
  font-size: 10px;
}

.nw-event__countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(183, 156, 255, 0.24);
  border-radius: 999px;
  background: rgba(183, 156, 255, 0.09);
  color: var(--nw-accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nw-event__countdown.is-urgent {
  color: var(--nw-critical);
}

.nw-event__progress {
  height: 3px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.nw-event__progress span {
  display: block;
  width: 2%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nw-accent), var(--nw-high));
  transition: width 0.6s linear;
}

.nw-event__progress.is-urgent span {
  background: linear-gradient(90deg, var(--nw-high), var(--nw-critical));
}

.nw-event--history {
  opacity: 0.95;
}

.nw-history-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.nw-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--nw-muted-2);
  font-size: 10.5px;
  font-weight: 700;
}

.nw-result-chip.is-up {
  color: var(--nw-up);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.nw-result-chip.is-down {
  color: var(--nw-down);
  border-color: rgba(251, 113, 133, 0.25);
  background: rgba(251, 113, 133, 0.08);
}

.nw-result-chip.is-flat {
  color: var(--nw-muted-2);
}

.nw-intel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(183, 156, 255, 0.25);
  border-radius: 999px;
  background: rgba(183, 156, 255, 0.1);
  color: var(--nw-accent);
  font-size: 10px;
  font-weight: 800;
}

.nw-intel-card {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(183, 156, 255, 0.24);
  border-radius: var(--nw-radius-sm);
  background: linear-gradient(150deg, rgba(183, 156, 255, 0.1), rgba(20, 20, 24, 0.55));
}

.nw-intel-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--nw-text);
  font-size: 12.5px;
  font-weight: 800;
}

.nw-intel-card p {
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.9;
}

.nw-evidence {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-evidence li {
  display: grid;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px solid var(--nw-line);
  color: var(--nw-muted-2);
  font-size: 11px;
  line-height: 1.7;
}

.nw-evidence li:first-child {
  border-top: 0;
}

.nw-evidence a {
  color: var(--nw-text);
  text-decoration: none;
}

.nw-evidence a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-evidence small {
  color: var(--nw-muted);
  font-size: 10px;
}

.nw-event__body {
  min-width: 0;
}

.nw-event__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.nw-ccy {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nw-muted-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  direction: ltr;
}

.nw-grade {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.nw-grade--critical {
  color: #ffe1e6;
  background: rgba(251, 113, 133, 0.18);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.3);
}

.nw-grade--high {
  color: #fff1c9;
  background: rgba(251, 191, 36, 0.15);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.nw-grade--medium {
  color: #d8e9ff;
  background: rgba(96, 165, 250, 0.14);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.26);
}

.nw-grade--low {
  color: var(--nw-muted-2);
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.nw-cat {
  color: var(--nw-muted);
  font-size: 10.5px;
}

.nw-event__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.nw-event__title b {
  color: var(--nw-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.nw-event__title i {
  color: var(--nw-muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.7;
}

.nw-event__why {
  margin-top: 4px;
  color: var(--nw-muted-2);
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.nw-event__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: var(--nw-muted);
  font-size: 11px;
}

.nw-event__numbers b {
  color: var(--nw-text);
  font-family: var(--mono);
  font-weight: 800;
  direction: ltr;
}

.nw-event__symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.nw-sym-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--nw-muted-2);
  font-size: 10px;
  font-weight: 700;
}

.nw-sym-chip[data-tone="gold"] {
  color: var(--nw-gold);
  border-color: rgba(245, 196, 81, 0.22);
}

.nw-sym-chip[data-tone="euro"] {
  color: var(--nw-euro);
  border-color: rgba(122, 167, 255, 0.22);
}

.nw-sym-chip[data-tone="pound"] {
  color: var(--nw-pound);
  border-color: rgba(94, 234, 212, 0.2);
}

.nw-sym-chip[data-tone="bitcoin"] {
  color: var(--nw-btc);
  border-color: rgba(247, 147, 26, 0.22);
}

.nw-event__open {
  align-self: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--nw-muted-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nw-event__open:hover {
  color: var(--nw-text);
  border-color: var(--nw-accent-line);
  background: var(--nw-accent-soft);
}

.nw-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed var(--nw-line-strong);
  border-radius: var(--nw-radius);
  color: var(--nw-muted);
  text-align: center;
}

.nw-empty strong {
  color: var(--nw-text);
  font-size: 14px;
}

.nw-empty span {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.9;
}

/* ---------- Headlines ---------- */
.nw-headlines {
  display: grid;
  gap: 10px;
}

.nw-headline {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(20, 20, 24, 0.6);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.nw-headline:hover {
  border-color: var(--nw-line-strong);
  background: rgba(26, 26, 33, 0.8);
}

.nw-headline__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.nw-headline__source {
  color: var(--nw-accent);
  font-size: 10.5px;
  font-weight: 800;
}

.nw-headline__time {
  color: var(--nw-muted);
  font-size: 10.5px;
}

.nw-headline__title {
  color: var(--nw-text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.nw-headline__title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-headline__note {
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.85;
}

.nw-headline__symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ---------- Side cards ---------- */
.nw-side-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(20, 20, 24, 0.64);
}

.nw-side-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--nw-text);
  font-size: 12px;
  font-weight: 800;
}

.nw-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nw-muted-2);
  font-size: 10px;
  font-weight: 800;
}

.nw-chip--warn {
  color: #ffe6c2;
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.24);
}

.nw-risk-card {
  background:
    linear-gradient(160deg, rgba(251, 191, 36, 0.055), transparent 60%),
    rgba(20, 20, 24, 0.66);
  border-color: rgba(251, 191, 36, 0.16);
}

.nw-risk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-risk-list li {
  position: relative;
  padding-inline-start: 17px;
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.nw-risk-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nw-high);
}

.nw-alert-summary {
  display: grid;
  gap: 7px;
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.nw-tg-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--nw-muted);
  font-size: 11px;
}

.nw-tg-quick {
  display: grid;
  gap: 8px;
}

.nw-switch--compact {
  min-height: 36px;
  font-size: 11.5px;
}

.nw-tg-title {
  margin-top: 2px;
  color: var(--nw-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nw-tg-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}

.nw-tg-checks label,
.nw-tg-symbols label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  color: var(--nw-muted-2);
  font-size: 10.5px;
  cursor: pointer;
}

.nw-tg-checks input,
.nw-tg-symbols input {
  width: 15px;
  height: 15px;
  accent-color: var(--nw-accent-solid);
}

.nw-tg-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--nw-muted);
  font-size: 11px;
}

.nw-tg-field .nw-select {
  flex: 1;
  min-height: 36px;
}

.nw-tg-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nw-tg-symbols label {
  min-height: 30px;
  padding: 2px 7px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nw-tg-times {
  color: var(--nw-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.nw-btn--block {
  width: 100%;
}

.nw-alert-summary b {
  color: var(--nw-text);
}

.nw-alert-summary .nw-alert-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.nw-alert-summary .nw-alert-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nw-up);
}

.nw-alert-summary .nw-alert-state.is-off::before {
  background: var(--nw-low);
}

.nw-source-detail {
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.9;
}

/* ---------- Skeleton ---------- */
.nw-skeleton {
  border-radius: var(--nw-radius);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.035) 20%,
    rgba(255, 255, 255, 0.075) 40%,
    rgba(255, 255, 255, 0.035) 60%
  );
  background-size: 220% 100%;
  animation: nw-shimmer 1.4s ease-in-out infinite;
}

.nw-skeleton--row {
  height: 112px;
  margin-bottom: 10px;
}

@keyframes nw-shimmer {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}

/* ---------- Dialog ---------- */
.nw-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 1px solid var(--nw-line-strong);
  border-radius: var(--nw-radius);
  background:
    radial-gradient(700px 300px at 88% -10%, rgba(183, 156, 255, 0.12), transparent 62%),
    var(--nw-surface);
  color: var(--nw-text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.nw-dialog::backdrop {
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(6px);
}

.nw-dialog[open] {
  display: flex;
  flex-direction: column;
}

.nw-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--nw-line);
  flex-shrink: 0;
}

.nw-dialog__kicker {
  display: block;
  color: var(--nw-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-dialog__head h3 {
  margin-top: 5px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.nw-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--nw-line);
  border-radius: 10px;
  background: var(--nw-surface-2);
  color: var(--nw-muted-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nw-icon-btn:hover {
  color: var(--nw-text);
  border-color: var(--nw-line-strong);
}

.nw-dialog__body {
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 18px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nw-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nw-line);
}

.nw-detail-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.nw-detail-hero__title strong {
  font-size: 1.2rem;
  line-height: 1.45;
}

.nw-detail-hero__title span {
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-detail-hero p {
  color: var(--nw-muted-2);
  font-size: 12.5px;
  line-height: 1.95;
}

.nw-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nw-detail-stat {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-xs);
  background: rgba(255, 255, 255, 0.03);
}

.nw-detail-stat span {
  display: block;
  color: var(--nw-muted);
  font-size: 10px;
}

.nw-detail-stat b {
  display: block;
  margin-top: 3px;
  color: var(--nw-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
  overflow-wrap: anywhere;
}

.nw-detail-section {
  padding-top: 16px;
}

.nw-detail-section h4 {
  margin: 0 0 8px;
  color: var(--nw-text);
  font-size: 12.5px;
  font-weight: 800;
}

.nw-detail-section p {
  color: var(--nw-muted-2);
  font-size: 12.5px;
  line-height: 2;
}

.nw-result-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.nw-result-banner__item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nw-result-banner__item span {
  color: var(--nw-muted);
  font-size: 10px;
}

.nw-result-banner__item b {
  color: var(--nw-text);
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.nw-result-banner__item b.is-up {
  color: var(--nw-up);
}

.nw-result-banner__item b.is-down {
  color: var(--nw-down);
}

.nw-verdict {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--nw-radius-sm);
  background: rgba(52, 211, 153, 0.055);
}

.nw-verdict b {
  color: var(--nw-up);
  font-size: 12px;
}

.nw-verdict span {
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.9;
}

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

.nw-scenario {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.nw-scenario__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--nw-text);
  font-size: 12px;
  font-weight: 800;
}

.nw-scenario__row {
  display: grid;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px solid var(--nw-line);
  color: var(--nw-muted-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.nw-scenario__row:first-of-type {
  border-top: 0;
}

.nw-scenario__row b {
  font-size: 11px;
}

.nw-scenario__row.is-up b {
  color: var(--nw-up);
}

.nw-scenario__row.is-down b {
  color: var(--nw-down);
}

.nw-scenario__row.is-flat b {
  color: var(--nw-muted);
}

.nw-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-list li {
  position: relative;
  padding-inline-start: 17px;
  color: var(--nw-muted-2);
  font-size: 12px;
  line-height: 1.9;
}

.nw-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nw-accent);
}

.nw-detail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--nw-line);
  color: var(--nw-muted);
  font-size: 10.5px;
}

/* ---------- Settings form ---------- */
.nw-dialog--settings {
  width: min(760px, calc(100vw - 28px));
}

.nw-form {
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 18px 20px 22px;
  overflow-y: auto;
}

.nw-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.nw-form__block {
  margin-bottom: 14px;
}

.nw-form__label {
  display: block;
  margin-bottom: 8px;
  color: var(--nw-text);
  font-size: 12px;
  font-weight: 800;
}

.nw-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nw-form__checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--nw-muted-2);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.nw-form__checks input {
  accent-color: var(--nw-accent);
  width: 16px;
  height: 16px;
}

.nw-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--nw-muted-2);
  font-size: 11.5px;
  cursor: pointer;
}

.nw-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nw-switch > span {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px var(--nw-line);
  transition: background 0.18s ease;
}

.nw-switch > span::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nw-muted-2);
  transition: transform 0.18s ease, background 0.18s ease;
}

.nw-switch input:checked + span {
  background: rgba(183, 156, 255, 0.3);
}

.nw-switch input:checked + span::after {
  background: var(--nw-accent);
  transform: translateX(16px);
}

.nw-switch input:focus-visible + span {
  outline: 2px solid var(--nw-accent);
  outline-offset: 2px;
}

.nw-switch b {
  font-weight: 700;
}

.nw-field {
  display: grid;
  gap: 6px;
  color: var(--nw-muted-2);
  font-size: 11.5px;
  font-weight: 700;
}

.nw-field--wide {
  grid-column: 1 / -1;
}

.nw-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.nw-form__status {
  margin-top: 12px;
  color: var(--nw-muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.nw-form__status.is-error {
  color: var(--nw-down);
}

.nw-form__status.is-ok {
  color: var(--nw-up);
}

.nw-preview {
  max-height: 280px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-xs);
  background: #0d0d11;
  color: var(--nw-muted-2);
  font-family: var(--font);
  font-size: 11.5px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nw-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  }

  .nw-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  }

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

@media (max-width: 980px) {
  .nw-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .nw-hero h2 {
    max-width: 20ch;
  }

  .nw-next {
    max-width: none;
  }

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

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

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

@media (max-width: 760px) {
  .nw-symbols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-symbol:first-child {
    grid-column: 1 / -1;
  }

  .nw-event {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .nw-event__open {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

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

  .nw-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .nw-dialog__body,
  .nw-form {
    padding-inline: 14px;
  }

  .nw-toolbar {
    align-items: flex-start;
  }

  .nw-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .news-shell {
    border-radius: 20px;
  }

  .nw-hero h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .nw-hero__actions .nw-btn {
    flex: 1 1 100%;
  }

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

  .nw-statusbar {
    align-items: stretch;
  }

  .nw-status-tabs {
    width: 100%;
  }

  .nw-status-tab {
    flex: 1;
    justify-content: center;
  }

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

  .nw-symbol:first-child {
    grid-column: auto;
  }

  .nw-symbol {
    min-height: 72px;
  }

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

  .nw-event__time {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .nw-event__open {
    grid-column: auto;
  }

  .nw-tabs {
    width: 100%;
  }

  .nw-tab {
    flex: 1;
    min-height: 44px;
  }

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

  .nw-form__actions .nw-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-kicker__dot,
  .nw-skeleton {
    animation: none;
  }

  .nw-btn,
  .nw-symbol,
  .nw-event,
  .nw-next__bar span {
    transition: none;
  }

  .nw-btn:hover,
  .nw-symbol:hover {
    transform: none;
  }
}

/* ---------- Light theme ---------- */
[data-theme-mode="light"] .news-shell,
[data-theme-mode="light"] .nw-dialog {
  --nw-bg: #f3f6fb;
  --nw-surface: #ffffff;
  --nw-surface-2: #eef2f8;
  --nw-surface-3: #e6edf6;
  --nw-line: #dbe3ee;
  --nw-line-strong: #c7d2e1;
  --nw-text: #101828;
  --nw-muted: #5b6b80;
  --nw-muted-2: #475569;
  --nw-accent: #6025bf;
  --nw-accent-soft: rgba(96, 37, 191, 0.1);
  --nw-accent-line: rgba(96, 37, 191, 0.24);
  --nw-gold: #9a6700;
  --nw-euro: #1d4ed8;
  --nw-pound: #0f766e;
  --nw-btc: #b45309;
  --nw-critical: #d92d20;
  --nw-high: #b54708;
  --nw-medium: #1d4ed8;
  --nw-low: #5b6b80;
  --nw-up: #0f9f6e;
  --nw-down: #d92d20;
  --nw-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 44px -34px rgba(16, 24, 40, 0.3);
}

[data-theme-mode="light"] .news-shell {
  background:
    radial-gradient(900px 420px at 92% -8%, rgba(96, 37, 191, 0.07), transparent 62%),
    radial-gradient(700px 360px at 0% 12%, rgba(180, 83, 9, 0.035), transparent 66%);
}

[data-theme-mode="light"] .news-shell::before {
  background-image: linear-gradient(rgba(96, 37, 191, 0.045) 1px, transparent 1px);
}

[data-theme-mode="light"] .nw-next {
  background:
    radial-gradient(260px 150px at 88% 0%, rgba(96, 37, 191, 0.12), transparent 70%),
    linear-gradient(160deg, #ffffff, #f5f7fc);
  box-shadow: var(--nw-shadow);
}

[data-theme-mode="light"] .nw-next::after {
  border-color: rgba(96, 37, 191, 0.12);
}

[data-theme-mode="light"] .nw-next__bar {
  background: rgba(16, 24, 40, 0.08);
}

[data-theme-mode="light"] .nw-symbol,
[data-theme-mode="light"] .nw-kpi,
[data-theme-mode="light"] .nw-day,
[data-theme-mode="light"] .nw-side-card,
[data-theme-mode="light"] .nw-headline {
  background: rgba(255, 255, 255, 0.82);
}

[data-theme-mode="light"] .nw-symbol.is-active {
  background: linear-gradient(150deg, rgba(96, 37, 191, 0.1), #ffffff);
}

[data-theme-mode="light"] .nw-kpi--alert {
  background: linear-gradient(150deg, rgba(217, 45, 32, 0.06), #ffffff);
}

[data-theme-mode="light"] .nw-risk-card {
  background:
    linear-gradient(160deg, rgba(181, 71, 8, 0.05), transparent 60%),
    rgba(255, 255, 255, 0.86);
}

[data-theme-mode="light"] .nw-symbol__mark,
[data-theme-mode="light"] .nw-ccy,
[data-theme-mode="light"] .nw-sym-chip,
[data-theme-mode="light"] .nw-btn,
[data-theme-mode="light"] .nw-tabs,
[data-theme-mode="light"] .nw-form__checks label {
  background: rgba(16, 24, 40, 0.035);
}

[data-theme-mode="light"] .nw-event:hover,
[data-theme-mode="light"] .nw-headline:hover {
  background: rgba(96, 37, 191, 0.04);
}

[data-theme-mode="light"] .nw-status-tabs {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme-mode="light"] .nw-status-tab b {
  background: rgba(16, 24, 40, 0.06);
  color: var(--nw-muted-2);
}

[data-theme-mode="light"] .nw-status-tab.is-active b {
  color: var(--nw-accent);
  background: rgba(96, 37, 191, 0.12);
}

[data-theme-mode="light"] .nw-event__progress {
  background: rgba(16, 24, 40, 0.08);
}

[data-theme-mode="light"] .nw-event__countdown {
  background: rgba(96, 37, 191, 0.08);
}

[data-theme-mode="light"] .nw-result-chip,
[data-theme-mode="light"] .nw-intel-card,
[data-theme-mode="light"] .nw-result-banner {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme-mode="light"] .nw-tg-symbols label {
  background: rgba(16, 24, 40, 0.03);
}

[data-theme-mode="light"] .nw-intel-card {
  background: linear-gradient(150deg, rgba(96, 37, 191, 0.08), #ffffff);
}

[data-theme-mode="light"] .nw-verdict {
  background: rgba(15, 159, 110, 0.055);
}

[data-theme-mode="light"] .nw-verdict b,
[data-theme-mode="light"] .nw-result-chip.is-up {
  color: #0f766e;
}

[data-theme-mode="light"] .nw-result-chip.is-down {
  color: #b42318;
}

[data-theme-mode="light"] .nw-day__head {
  background: rgba(16, 24, 40, 0.025);
}

[data-theme-mode="light"] .nw-tab.is-active {
  color: var(--nw-accent);
  background: var(--nw-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(96, 37, 191, 0.16);
}

[data-theme-mode="light"] .nw-grade--critical {
  color: #b42318;
  background: rgba(217, 45, 32, 0.1);
  box-shadow: inset 0 0 0 1px rgba(217, 45, 32, 0.2);
}

[data-theme-mode="light"] .nw-grade--high {
  color: #b54708;
  background: rgba(181, 71, 8, 0.1);
  box-shadow: inset 0 0 0 1px rgba(181, 71, 8, 0.2);
}

[data-theme-mode="light"] .nw-grade--medium {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.09);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18);
}

[data-theme-mode="light"] .nw-grade--low {
  color: #475569;
  background: rgba(71, 85, 105, 0.08);
  box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.14);
}

[data-theme-mode="light"] .nw-dialog {
  background:
    radial-gradient(700px 300px at 88% -10%, rgba(96, 37, 191, 0.09), transparent 62%),
    var(--nw-surface);
}

[data-theme-mode="light"] .nw-detail-stat,
[data-theme-mode="light"] .nw-scenario {
  background: rgba(16, 24, 40, 0.025);
}

[data-theme-mode="light"] .nw-preview {
  background: #f8fafc;
}

[data-theme-mode="light"] .nw-switch > span {
  background: rgba(16, 24, 40, 0.1);
}

[data-theme-mode="light"] .nw-switch > span::after {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
}

[data-theme-mode="light"] .nw-switch input:checked + span {
  background: rgba(96, 37, 191, 0.35);
}

[data-theme-mode="light"] .nw-switch input:checked + span::after {
  background: var(--nw-accent);
}

[data-theme-mode="light"] .nw-select,
[data-theme-mode="light"] .nw-input {
  background: #ffffff;
}

[data-theme-mode="light"] .nw-select option {
  background: #ffffff;
  color: var(--nw-text);
}
