:root {
  --bg: #f7faff;
  --panel: #101722;
  --panel-2: #151d2b;
  --text: #111926;
  --muted: #5f6d80;
  --line: #dce3ee;
  --cyan: #37d9f2;
  --blue: #2e7bff;
  --purple: #8b4dff;
  --green: #35d47d;
  --amber: #f0b84d;
  --red: #ff5d5d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html {
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(55, 217, 242, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 30%, rgba(139, 77, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f7faff 48%, #f5f8fb 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 0 44px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-size: 28px;
  font-weight: 760;
  width: max-content;
}

.brand img {
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.main-nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--blue);
}

.ghost-button,
.primary-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ghost-button {
  justify-self: end;
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
}

.ghost-button:hover {
  border-color: #9ec2ff;
  box-shadow: 0 10px 26px rgba(17, 25, 38, 0.08);
  color: #145ad4;
  transform: translateY(-1px);
}

.primary-button {
  background: #145ad4;
  box-shadow: 0 18px 38px rgba(20, 90, 212, 0.22);
  color: white;
  font-weight: 720;
}

.primary-button:hover {
  background: #0f4db9;
  box-shadow: 0 22px 44px rgba(20, 90, 212, 0.3);
  transform: translateY(-2px);
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.secondary-link:focus-visible,
.step-list button:focus-visible,
.asset-card:focus-within,
.topic-card:focus-within,
.channel-card:focus-within,
.search-row input:focus {
  outline: 3px solid rgba(55, 217, 242, 0.34);
  outline-offset: 3px;
}

.primary-button.compact {
  margin-top: 10px;
  width: max-content;
}

.hero {
  align-items: start;
  display: grid;
  gap: clamp(48px, 5vw, 92px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  margin: 0 auto;
  max-width: 1680px;
  min-height: auto;
  padding: 62px clamp(42px, 5vw, 92px) 36px;
}

.hero-copy {
  animation: hero-copy-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  padding-top: clamp(36px, 4vw, 76px);
  max-width: 680px;
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translate3d(-34px, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 4.8vw, 74px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-text {
  color: #536071;
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
}

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

.hero-actions .primary-button {
  min-width: 168px;
}

.secondary-link {
  color: #145ad4;
  font-weight: 680;
  transition: color 180ms ease;
}

.secondary-link:hover {
  color: var(--purple);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #15243a;
  font-size: 13px;
  padding: 9px 12px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.trust-row span:hover {
  border-color: #9ec2ff;
  box-shadow: 0 10px 24px rgba(17, 25, 38, 0.08);
  transform: translateY(-1px);
}

.hero-flow {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  padding-top: 24px;
}

.hero-flow div {
  min-width: 0;
}

.hero-flow strong {
  color: #111926;
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.hero-flow span {
  color: #536071;
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.flow-section,
.config-section {
  color: #111926;
  padding: 88px 44px;
}

.section-heading {
  max-width: 720px;
}

.flow-section .eyebrow,
.config-section .eyebrow {
  color: #145ad4;
}

.flow-section h2,
.config-section h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.phone-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone {
  align-self: start;
  align-items: center;
  animation: hero-phone-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) 130ms both;
  flex-direction: column;
  gap: 14px;
}

@keyframes hero-phone-enter {
  from {
    opacity: 0;
    transform: translate3d(42px, 18px, 0) scale(0.96);
  }

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

.phone-frame {
  background: #09101b;
  border: 1px solid rgba(17, 25, 38, 0.18);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(17, 25, 38, 0.22);
  padding: 12px;
  position: relative;
  width: min(100%, 330px);
}

.hero-phone .phone-frame {
  border-color: rgba(17, 25, 38, 0.1);
  box-shadow: 0 34px 80px rgba(17, 25, 38, 0.18);
  width: min(100%, 390px);
}

.phone-speaker {
  background: #1f2a3a;
  border-radius: 999px;
  height: 5px;
  left: 50%;
  position: absolute;
  top: 13px;
  transform: translateX(-50%);
  width: 66px;
  z-index: 2;
}

.phone-screen {
  background:
    linear-gradient(180deg, rgba(55, 217, 242, 0.08), transparent 28%),
    #f7faff;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  overflow: hidden;
  padding: 10px 14px 10px;
}

.app-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #dce3ee;
  margin: 0 -14px 10px;
  padding: 0 18px 6px;
}

.chat-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(46, 123, 255, 0.14);
  border-radius: 50%;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.chat-avatar img {
  height: 38px;
  object-fit: contain;
  transform: none;
  width: 38px;
}

.app-bar strong,
.app-bar span {
  display: block;
}

.app-bar strong {
  color: #111926;
}

.app-bar span {
  align-items: center;
  color: #667387;
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin-top: 2px;
}

.online-status i {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 212, 125, 0.14);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.chat-preview {
  display: grid;
  gap: 10px;
  flex: 1;
  margin-top: 0;
}

.message-time {
  color: #7a8799;
  font-size: 11px;
  font-weight: 680;
  justify-self: center;
  padding: 2px 0;
}

.chat-row {
  display: flex;
}

.chat-row p {
  border-radius: 8px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  max-width: 82%;
  padding: 10px 11px;
}

.telegram-bubble {
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  color: #536071;
  font-size: 13px;
  line-height: 1.42;
  max-width: 88%;
  padding: 12px;
}

.telegram-bubble strong {
  color: #111926;
  display: block;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 7px;
}

.telegram-bubble p {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #536071;
  margin: 0;
  max-width: none;
  padding: 0;
}

.telegram-bubble span {
  color: #536071;
  display: block;
  font-weight: 400;
  margin-top: 0;
}

.chat-row time,
.telegram-bubble time {
  color: #8a96a8;
  display: block;
  font-size: 10px;
  font-weight: 680;
  justify-self: end;
  line-height: 1;
  margin: 0;
}

.chat-row.user time {
  color: rgba(255, 255, 255, 0.72);
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.user p {
  background: #145ad4;
  border-bottom-right-radius: 2px;
  color: white;
}

.chat-row.bot {
  justify-content: flex-start;
}

.chat-row.bot p {
  background: white;
  border: 1px solid #dce3ee;
  border-bottom-left-radius: 2px;
  color: #536071;
}

.chat-row.bot .telegram-bubble p {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  max-width: none;
  padding: 0;
}

.chat-composer {
  align-items: center;
  align-self: end;
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  color: #8a96a8;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 10px 10px 12px;
  width: 100%;
}

.chat-composer strong {
  color: #145ad4;
  font-size: 12px;
}

.flow-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.flow-grid article,
.settings-preview {
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 25, 38, 0.08);
}

.flow-grid article {
  padding: 28px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.flow-grid article:hover {
  border-color: #9ec2ff;
  box-shadow: 0 24px 46px rgba(17, 25, 38, 0.12);
  transform: translateY(-5px) scale(1.018);
}

.flow-grid.is-revealing article {
  opacity: 0;
}

.flow-grid.is-revealing article.is-visible {
  animation: phase-reveal 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--phase-delay, 0ms) both;
}

@keyframes phase-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.flow-grid h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.flow-grid p,
.config-copy p {
  color: #536071;
  line-height: 1.65;
}

.step {
  color: #145ad4;
  display: block;
  font-weight: 800;
  margin-bottom: 24px;
}

.config-section {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
}

.config-section.is-revealing .config-copy,
.config-section.is-revealing .settings-preview {
  opacity: 0;
}

.config-section.is-revealing.is-visible .config-copy {
  animation: config-copy-reveal 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.config-section.is-revealing.is-visible .settings-preview {
  animation: config-preview-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

@keyframes config-copy-reveal {
  from {
    opacity: 0;
    transform: translate3d(-30px, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes config-preview-reveal {
  from {
    opacity: 0;
    transform: translate3d(34px, 16px, 0) scale(0.98);
  }

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

.settings-preview {
  padding: 28px 30px 30px;
}

.preview-radar-title {
  border-bottom: 1px solid #dce3ee;
  color: var(--text);
  font-size: 30px;
  font-weight: 780;
  line-height: 1.1;
  padding-bottom: 20px;
}

.preview-radar-section {
  padding-top: 23px;
}

.preview-radar-section h3 {
  color: #536071;
  font-size: 16px;
  margin: 0 0 13px;
}

.preview-stocks-section {
  border-top: 1px solid #e2e8f1;
  margin-top: 25px;
}

.preview-topic-chips,
.preview-stock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transition: opacity 190ms ease, transform 190ms ease;
}

.preview-topic-chips.is-refreshing,
.preview-stock-chips.is-refreshing {
  opacity: 0;
  transform: translateY(5px);
}

.preview-topic-chips span,
.preview-stock-chips span {
  background: #edf4ff;
  border: 1px solid #c7dcff;
  border-radius: 7px;
  color: #15243a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 14px;
}

.preview-stock-chips span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.preview-stock-chips img {
  background: white;
  border: 1px solid #d6e0ef;
  border-radius: 4px;
  height: 18px;
  object-fit: contain;
  padding: 2px;
  width: 18px;
}

.start-section {
  background: white;
  border-top: 1px solid var(--line);
  color: #111926;
  padding: 88px 44px;
  text-align: center;
}

.start-logo {
  display: block;
  height: 86px;
  margin: 0 auto 22px;
  object-fit: contain;
  transition: transform 600ms ease-out;
  width: 86px;
}

.start-logo.is-visible {
  animation: start-logo-spin 700ms ease-out both;
}

.start-logo:hover {
  transform: rotate(720deg) scale(1);
}

@keyframes start-logo-spin {
  from {
    transform: rotate(0deg) scale(0.88);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .config-section.is-revealing .config-copy,
  .config-section.is-revealing .settings-preview,
  .config-section.is-revealing.is-visible .config-copy,
  .config-section.is-revealing.is-visible .settings-preview {
    animation: none;
    opacity: 1;
  }

  .preview-topic-chips,
  .preview-stock-chips {
    transition: none;
  }

  .flow-grid.is-revealing article,
  .flow-grid.is-revealing article.is-visible {
    animation: none;
    opacity: 1;
  }

  .flow-grid article:hover {
    transform: none;
  }

  .hero-copy,
  .hero-phone {
    animation: none;
  }

  .start-logo {
    animation: none;
    transition: none;
  }

  .start-logo.is-visible {
    animation: none;
  }

}

.start-section .eyebrow {
  color: #145ad4;
  margin-bottom: 15px;
}

.start-section h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  margin: 0;
}

.start-section > p:not(.eyebrow) {
  color: #536071;
  line-height: 1.6;
  margin: 18px auto 28px;
  max-width: 540px;
}

.site-footer {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  color: #536071;
  display: flex;
  justify-content: space-between;
  padding: 30px 44px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 760;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .config-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 44px 22px 58px;
  }

  .flow-section,
  .config-section,
  .start-section {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .hero-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .brand span {
    font-size: 24px;
  }

  .brand img {
    height: 44px;
    width: 44px;
  }

  .ghost-button {
    padding: 0 12px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-flow {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 310px);
  }

  .phone-screen {
    min-height: 670px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 26px 22px;
  }
}

.app-body {
  background: #f7faff;
}

.configurator {
  display: grid;
  gap: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0;
  max-width: none;
  padding: 0;
}

.config-sidebar {
  align-self: start;
  background: white;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.sidebar-brand {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 86px;
  padding: 0 28px;
}

.sidebar-brand img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.sidebar-brand span {
  color: #111926;
  font-size: 27px;
  font-weight: 820;
}

.step-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.sidebar-account {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 18px 22px;
}

.sidebar-account span {
  align-items: center;
  background: #145ad4;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sidebar-account strong {
  color: #536071;
  font-size: 14px;
}

.step-list button {
  background: white;
  border: 0;
  border-radius: 0;
  color: #536071;
  cursor: pointer;
  font-size: 15px;
  font-weight: 720;
  text-align: left;
  padding: 18px 22px;
  transition:
    background 180ms ease,
    color 180ms ease,
    padding-left 180ms ease;
}

.step-list button.active {
  background: #11b8e8;
  color: white;
}

.step-list button:hover {
  background: #edf9ff;
  color: #145ad4;
  padding-left: 28px;
}

.step-list button.active:hover {
  background: #11b8e8;
  color: white;
}

.config-board {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(17, 25, 38, 0.08);
  margin: 32px;
  padding: 26px;
}

.config-panel {
  display: none;
}

.config-panel.active {
  display: block;
}

.save-changes {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 28px;
  box-shadow: 0 16px 36px rgba(17, 25, 38, 0.14);
  display: flex;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  position: fixed;
  right: 30px;
  z-index: 10;
}

.save-changes p {
  color: #111926;
  font-size: 14px;
  font-weight: 760;
  margin: 0;
}

.save-changes > div {
  display: flex;
  gap: 8px;
}

.save-changes button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #536071;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  min-height: 40px;
  padding: 0 13px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.save-changes .save-confirm {
  border-color: #145ad4;
  color: #145ad4;
}

.save-changes .save-discard:hover {
  background: #f7faff;
  border-color: #b9c9dc;
  color: #111926;
}

.save-changes .save-confirm:hover {
  background: #edf4ff;
}

.radar-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
}

.radar-overview div {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px;
}

.radar-overview span {
  color: #6b7789;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.radar-overview strong {
  color: #111926;
  font-size: 18px;
}

.radar-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.radar-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.assets-card {
  background: transparent;
  border: 0;
  grid-column: 1 / -1;
  order: 2;
  padding: 28px 0 0;
}

.topics-card {
  background: transparent;
  border: 0;
  grid-column: 1 / -1;
  order: 1;
  padding: 0;
}

.section-title {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title .eyebrow {
  margin-bottom: 6px;
}

.section-title h3 {
  color: #111926;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.radar-page-title,
.board-header {
  margin: 0 0 28px;
}

.radar-page-title h2,
.board-header h2 {
  color: #111926;
  font-size: 34px;
  font-weight: 820;
  line-height: 1.1;
  margin: 0;
}

.radar-rules {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0;
}

.alert-rules-layout {
  display: grid;
  gap: 34px;
}

.alert-section {
  display: grid;
  gap: 20px;
}

.confidence-section {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.alert-section + .alert-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.alert-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.alert-section h3 {
  color: #111926;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.alert-section output {
  color: #145ad4;
  font-size: 24px;
  font-weight: 820;
}

.confidence-control {
  margin-top: 22px;
}

.confidence-control .range-input {
  max-width: none;
}

.confidence-summary {
  align-items: center;
  display: flex;
  gap: 22px;
}

.confidence-volume {
  border-right: 3px solid #0f9f61;
  display: grid;
  gap: 3px;
  margin: 0;
  padding-right: 12px;
}

.confidence-volume strong {
  color: #0f9f61;
  font-size: 14px;
}

.confidence-volume span {
  color: #536071;
  font-size: 12px;
  line-height: 1.25;
}

.confidence-volume.moderate {
  border-color: #d28a00;
}

.confidence-volume.moderate strong {
  color: #b67500;
}

.confidence-volume.high {
  border-color: #dc4b42;
}

.confidence-volume.high strong {
  color: #c43d35;
}

.confidence-section output {
  color: #0f9f61;
}

.alert-section output.moderate {
  color: #b67500;
}

.alert-section output.high {
  color: #c43d35;
}

.alert-delivery-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert-field {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #536071;
  display: grid;
  font-size: 14px;
  font-weight: 760;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
}

.quiet-hours-field {
  gap: 16px;
}

.quiet-hours-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quiet-hours-toggle {
  align-items: center;
  color: #536071;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  gap: 7px;
}

.quiet-hours-toggle input {
  opacity: 0;
  position: absolute;
}

.quiet-hours-toggle > span {
  background: #cbd6e4;
  border-radius: 999px;
  height: 18px;
  position: relative;
  transition: background 180ms ease;
  width: 32px;
}

.quiet-hours-toggle > span::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(17, 25, 38, 0.2);
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 180ms ease;
  width: 14px;
}

.quiet-hours-toggle input:checked + span {
  background: #145ad4;
}

.quiet-hours-toggle input:checked + span::after {
  transform: translateX(14px);
}

.quiet-hours-range {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr;
}

.quiet-hours-range label {
  color: #536071;
  display: grid;
  font-size: 11px;
  gap: 4px;
}

.quiet-hours-range > span {
  color: #8a96a8;
  font-size: 12px;
  font-weight: 720;
  margin-top: 16px;
}

.quiet-hours-range input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #111926;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  min-height: 36px;
  padding: 0 8px;
}

.quiet-hours-field.is-disabled .quiet-hours-range {
  opacity: 0.45;
}

.setting-card {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 104px;
  padding: 14px;
}

.setting-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.setting-card label {
  color: #536071;
  font-size: 14px;
  font-weight: 760;
}

.setting-card output {
  color: #111926;
  font-size: 18px;
  font-weight: 820;
}

.setting-card select,
.alert-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #145ad4 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, #145ad4 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111926;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  min-height: 44px;
  padding: 0 42px 0 14px;
}

.board-header {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.board-header h2 {
  margin-bottom: 0;
}

.search-row {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.search-row label {
  color: #536071;
  font-size: 13px;
  font-weight: 760;
}

.search-row input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111926;
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search-row input:focus {
  border-color: #9ec2ff;
  box-shadow: 0 0 0 4px rgba(46, 123, 255, 0.08);
}

.empty-state {
  background: #f7faff;
  border: 1px dashed #cfe0ff;
  border-radius: 8px;
  color: #536071;
  margin: 18px 0 0;
  padding: 18px;
}

[hidden] {
  display: none !important;
}

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

.asset-card {
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 122px;
  padding: 16px;
  position: relative;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.asset-card.selected {
  background: #edf4ff;
  border-color: #9ec2ff;
}

.asset-card:not(.selected) {
  background: white;
}

.asset-card:hover {
  border-color: #9ec2ff;
  box-shadow: 0 10px 24px rgba(17, 25, 38, 0.08);
  opacity: 1;
  transform: translateY(-1px);
}

.asset-card input,
.topic-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asset-card-copy {
  display: grid;
  gap: 4px;
}

.asset-card-heading {
  align-items: center;
  display: flex;
  gap: 8px;
}

.asset-card .asset-icon {
  height: 34px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.asset-icon,
.selected-asset-icon {
  align-items: center;
  background: var(--asset-icon-background);
  border-radius: 6px;
  color: var(--asset-icon-foreground);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 820;
  height: 24px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 24px;
}

img.asset-icon,
img.selected-asset-icon {
  background: white;
  border: 1px solid #d9e3f0;
  object-fit: contain;
  padding: 3px;
}

.asset-card-copy > span:last-child {
  color: #536071;
  font-size: 14px;
}

.ticker {
  color: #111926;
  font-size: 22px;
  font-weight: 820;
}

.asset-card em {
  color: #145ad4;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  grid-column: 1 / -1;
}

.asset-check {
  align-items: center;
  border: 1px solid #aab7c8;
  border-radius: 3px;
  color: transparent;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.remove-mark {
  align-items: center;
  border: 1px solid #b9cdf0;
  border-radius: 50%;
  color: #536071;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.asset-card.selected .asset-check,
.topic-card.selected .asset-check {
  background: #1476ef;
  border-color: #1476ef;
  color: white;
}

.selected-assets {
  margin: 0;
  padding: 0;
}

.selected-assets-label {
  color: #536071;
  font-size: 13px;
  font-weight: 760;
  margin: 0 0 8px;
}

.selected-assets-label strong {
  color: #145ad4;
  margin-left: 4px;
}

.selected-asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-assets.is-empty + .asset-grid {
  padding-top: 4px;
}

.selected-asset {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #9ec2ff;
  border-radius: 8px;
  color: #111926;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px 0 34px;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.selected-asset svg {
  color: #536071;
  fill: none;
  height: 16px;
  left: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  transition: opacity 160ms ease;
  width: 16px;
}

.selected-asset .selected-asset-icon {
  height: 16px;
  left: 10px;
  opacity: 1;
  position: absolute;
  transition: opacity 160ms ease;
  width: 16px;
}

.selected-asset:hover svg,
.selected-asset:focus-visible svg {
  opacity: 1;
}

.selected-asset:hover .selected-asset-icon,
.selected-asset:focus-visible .selected-asset-icon {
  opacity: 0;
}

.selected-asset:hover {
  background: #fff4f3;
  border-color: #f2aaa2;
  transform: translateY(-1px);
}

.selected-asset:focus-visible {
  outline: 3px solid rgba(55, 217, 242, 0.34);
  outline-offset: 2px;
}

.preferences-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}

.preference-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.preference-panel.wide {
  margin-top: 0;
}

.preference-panel h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.toggle-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.toggle-grid.spacious {
  margin-top: 28px;
}

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

.topic-card {
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 122px;
  padding: 16px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.topic-card.selected {
  background: #edf4ff;
  border-color: #9ec2ff;
}

.topic-card:hover {
  border-color: #9ec2ff;
  box-shadow: 0 10px 24px rgba(17, 25, 38, 0.08);
  transform: translateY(-1px);
}

.topic-card-copy {
  display: grid;
  gap: 6px;
}

.topic-card strong {
  color: #111926;
  font-size: 19px;
}

.topic-card-copy > span {
  color: #536071;
  font-size: 14px;
  line-height: 1.35;
}

.selected-topics {
  margin: 0;
  padding: 0;
}

.selected-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-topics.is-empty + .topic-grid {
  padding-top: 4px;
}

.selected-topic {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #9ec2ff;
  border-radius: 8px;
  color: #111926;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px 0 34px;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.selected-topic svg {
  color: #536071;
  fill: none;
  height: 16px;
  left: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  transition: opacity 160ms ease;
  width: 16px;
}

.selected-topic:hover,
.selected-topic:focus-visible {
  background: #fff4f3;
  border-color: #f2aaa2;
  transform: translateY(-1px);
}

.selected-topic:hover svg,
.selected-topic:focus-visible svg {
  opacity: 1;
}

.catalog-load-more {
  background: white;
  border: 1px solid #9ec2ff;
  border-radius: 8px;
  color: #145ad4;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 14px;
  transition: background 180ms ease, border-color 180ms ease;
}

.catalog-load-more:hover {
  background: #edf4ff;
  border-color: #145ad4;
}

.channel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.channel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 18px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.channel-card.selected {
  background: #f4f8ff;
  border-color: #9ec2ff;
}

.channel-card:hover {
  border-color: #9ec2ff;
  box-shadow: 0 14px 34px rgba(17, 25, 38, 0.09);
  transform: translateY(-2px);
}

.channel-card input {
  height: 18px;
  width: 18px;
}

.channel-card strong {
  color: #111926;
  font-size: 24px;
}

.channel-card span {
  color: #536071;
  line-height: 1.45;
}

.toggle-grid label,
.rule-row,
.channel-row {
  align-items: center;
  color: #536071;
  display: flex;
  justify-content: space-between;
}

.toggle-grid label {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.toggle-grid label:hover {
  background: #f4f8ff;
  border-color: #cfe0ff;
  color: #145ad4;
}

.rule-row,
.channel-row {
  border-top: 1px solid #e2e8f1;
  padding: 14px 0;
}

.rule-control {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 0;
}

.rule-control label {
  color: #536071;
}

.rule-control strong,
.rule-control output {
  color: #111926;
  font-size: 18px;
  font-weight: 820;
}

.rule-control select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #145ad4 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, #145ad4 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111926;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  min-height: 44px;
  min-width: 170px;
  padding: 0 42px 0 14px;
}

.range-input {
  accent-color: var(--blue);
  cursor: pointer;
  display: block;
  margin: 0;
  width: 100%;
}

.rule-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rule-row strong,
.channel-row strong {
  color: #111926;
}

.range-track {
  background: #dce5f1;
  border-radius: 999px;
  height: 8px;
  margin: 0 0 14px;
  overflow: hidden;
}

.range-track i {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  display: block;
  height: 100%;
  width: 70%;
}

@media (max-width: 980px) {
  .configurator {
    padding-left: 22px;
    padding-right: 22px;
  }

  .configurator {
    gap: 22px;
    padding-bottom: 22px;
    padding-top: 22px;
  }

  .configurator,
  .preferences-layout {
    grid-template-columns: 1fr;
  }

  .config-sidebar {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    min-height: 0;
    position: static;
  }

  .config-board {
    margin: 0;
  }

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

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

  .radar-overview {
    grid-template-columns: 1fr 1fr;
  }

  .radar-workspace {
    grid-template-columns: 1fr;
  }

  .radar-rules {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .board-header {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-grid,
  .toggle-grid,
  .radar-overview,
  .topic-grid,
  .alert-delivery-fields,
  .confidence-control {
    grid-template-columns: 1fr;
  }

  .topic-card {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .alert-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .confidence-summary {
    justify-content: space-between;
    width: 100%;
  }
}
