:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --card: #ffffff;
  --surface-soft: #f7f9f7;
  --ink: #13241d;
  --muted: #728078;
  --line: #e3e9e5;
  --green: #12664f;
  --green-2: #1f8a6b;
  --green-soft: #e6f3ed;
  --red: #b4484b;
  --red-soft: #f9eaea;
  --amber: #b17918;
  --amber-soft: #fbf2dc;
  --navy: #163128;
  --sidebar: #10261f;
  --brand-accent: #67d2a9;
  --shadow: 0 1px 2px rgba(16, 40, 31, 0.04), 0 10px 35px rgba(16, 40, 31, 0.06);
  --radius: 18px;
  --motion-fast: 140ms;
  --motion-medium: 260ms;
  --motion-slow: 430ms;
}

/* Motywy kolorystyczne (personalizacja w Ustawieniach) */
[data-theme="ocean"] {
  --green: #1763d6;
  --green-2: #2f80ed;
  --green-soft: #e7eefb;
  --navy: #0e1f3a;
  --sidebar: #0e1f3a;
  --brand-accent: #6aa6f5;
}

[data-theme="fiolet"] {
  --green: #6d4bd1;
  --green-2: #8b5cf6;
  --green-soft: #efeafe;
  --navy: #241646;
  --sidebar: #1e1340;
  --brand-accent: #b79bf6;
}

[data-theme="bursztyn"] {
  --green: #c2410c;
  --green-2: #ea7317;
  --green-soft: #fdeede;
  --navy: #2a1c10;
  --sidebar: #24180e;
  --brand-accent: #f6b04e;
}

[data-theme="dark"] {
  --bg: #0e1512;
  --surface: #161f1b;
  --card: #18221d;
  --surface-soft: #1e2925;
  --ink: #e9efea;
  --muted: #97a8a0;
  --line: #2b3631;
  --green: #2a9b76;
  --green-2: #3cc497;
  --green-soft: #173a2c;
  --red: #e36e71;
  --red-soft: #3a2123;
  --amber: #e0a93c;
  --amber-soft: #39301a;
  --navy: #0c1813;
  --sidebar: #0b1310;
  --brand-accent: #67d2a9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 34px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 244px;
  flex-direction: column;
  padding: 28px 18px 20px;
  background: var(--sidebar);
  color: #fff;
  transition: background 240ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 30px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand strong {
  color: var(--brand-accent);
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 19px;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(132, 227, 190, 0.25);
  border-radius: 11px;
  background: rgba(90, 205, 160, 0.1);
}

.brand-mark svg {
  width: 24px;
  fill: none;
  stroke: #77d9b3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aabcb5;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: #1e4336;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(143, 229, 196, 0.08);
}

.nav-item svg,
.icon-button svg,
.global-search svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.nav-item:first-child svg {
  fill: currentColor;
  stroke: none;
}

.nav-item span:nth-child(2) {
  flex: 1;
}

.nav-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 20px;
  background: rgba(118, 218, 180, 0.13);
  color: #83dbb9;
  font-size: 11px;
  font-weight: 750;
}

.sidebar-bottom {
  margin-top: auto;
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 4px 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.demo-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #e3b454;
  box-shadow: 0 0 0 4px rgba(227, 180, 84, 0.12);
}

.demo-note strong,
.demo-note small {
  display: block;
}

.demo-note strong {
  margin-bottom: 4px;
  color: #dbe7e2;
  font-size: 11px;
}

.demo-note small {
  color: #82968e;
  font-size: 9px;
  line-height: 1.4;
}

.profile-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 9px 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #7e928a;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #2b5c4b;
  color: #dff8ee;
  font-size: 11px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  color: #dae6e1;
  font-size: 11px;
}

.profile-copy small {
  margin-top: 2px;
  color: #72877f;
  font-size: 9px;
}

.main-area {
  min-height: 100vh;
  margin-left: 244px;
}

body.home-view {
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 210, 169, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(31, 138, 107, 0.14), transparent 30%),
    var(--bg);
}

body.home-view .sidebar,
body.home-view .topbar {
  display: none;
}

body.home-view .main-area {
  margin-left: 0;
}

body.home-view .content {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home-view .view-loader {
  top: 24px;
  left: 50%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 72px;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  backdrop-filter: blur(14px);
}

.mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mobile-menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.global-search {
  display: flex;
  width: min(420px, 40vw);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #829088;
  transition: 160ms ease;
}

.global-search:focus-within {
  border-color: #d5ded9;
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(25, 122, 92, 0.06);
}

.global-search input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.global-search input::placeholder {
  color: var(--muted);
}

kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: #87938c;
  font-family: inherit;
  font-size: 11px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green-soft) 54%, var(--card));
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.feedback-chip:hover {
  border-color: color-mix(in srgb, var(--green) 44%, var(--line));
  background: var(--green-soft);
  transform: translateY(-1px);
}

.feedback-chip span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.market-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 6px;
  padding: 5px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6e7d75;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.market-state:hover {
  background: var(--surface-soft);
}

.market-state strong,
.market-state small {
  display: block;
}

.market-state strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
}

.market-state small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.market-state i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #28a37a;
  box-shadow: 0 0 0 4px rgba(40, 163, 122, 0.11);
}

.market-state.closed i {
  background: #c55456;
  box-shadow: 0 0 0 4px rgba(197, 84, 86, 0.11);
}

.market-state-select {
  position: relative;
  min-width: 260px;
  padding-right: 88px;
  cursor: default;
}

.market-state-select select {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 74px;
  height: 30px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  outline: 0;
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: #53635b;
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #c45452;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  border: 1px solid #125a47;
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(18, 102, 79, 0.16);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #0d5a45;
  box-shadow: 0 8px 18px rgba(18, 102, 79, 0.2);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  font-size: 12px;
}

.content {
  position: relative;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 31px 30px 50px;
  transform-origin: 50% 16px;
  transition: opacity var(--motion-medium) ease, transform var(--motion-medium) ease, filter var(--motion-medium) ease;
  will-change: opacity, transform;
}

.content.view-leave {
  opacity: 0.42;
  transform: translateY(10px) scale(0.997);
  filter: blur(1px);
}

.content.view-enter {
  animation: content-enter var(--motion-slow) cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.992);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.view-loader {
  position: fixed;
  z-index: 65;
  top: 104px;
  left: calc(244px + (100vw - 244px) / 2);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.98);
  transition: opacity var(--motion-medium) ease, transform var(--motion-medium) ease;
}

.view-loader.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.loader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 18px 45px rgba(12, 41, 29, 0.18);
  backdrop-filter: blur(14px);
}

.loader-card strong,
.loader-card small {
  display: block;
}

.loader-card strong {
  font-size: 12px;
}

.loader-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.loader-ring {
  width: 22px;
  height: 22px;
  border: 3px solid var(--green-soft);
  border-top-color: var(--green-2);
  border-radius: 50%;
  animation: loader-spin 0.72s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 32px);
  font-weight: 750;
  letter-spacing: -1.2px;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.data-stamp {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.data-stamp span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.data-stamp strong,
.data-stamp small {
  display: block;
}

.data-stamp small {
  margin-top: 2px;
  color: inherit;
  font-size: 8px;
  font-weight: 750;
  opacity: 0.72;
  text-transform: none;
}

.data-stamp.live {
  border-color: rgba(31, 138, 107, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.data-stamp.delayed {
  border-color: rgba(47, 128, 237, 0.22);
  background: #eaf2ff;
  color: #2765b5;
}

.data-stamp.proxy,
.data-stamp.mixed {
  border-color: rgba(177, 121, 24, 0.24);
  background: var(--amber-soft);
  color: var(--amber);
}

.data-stamp.demo,
.data-stamp.missing {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  vertical-align: middle;
}

.quality-badge i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.quality-badge strong {
  font-size: 9px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.quality-badge small {
  overflow: hidden;
  max-width: 190px;
  color: inherit;
  font-size: 8px;
  font-weight: 700;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-badge.live {
  border-color: rgba(31, 138, 107, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.quality-badge.delayed {
  border-color: rgba(47, 128, 237, 0.24);
  background: #eaf2ff;
  color: #2765b5;
}

.quality-badge.proxy,
.quality-badge.mixed {
  border-color: rgba(177, 121, 24, 0.26);
  background: var(--amber-soft);
  color: var(--amber);
}

.quality-badge.demo,
.quality-badge.missing {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

[data-theme="dark"] .data-stamp.delayed,
[data-theme="dark"] .quality-badge.delayed {
  border-color: rgba(106, 166, 245, 0.28);
  background: #16243a;
  color: #8ab4ff;
}

[data-theme="dark"] .source-mini.delayed {
  color: #8ab4ff;
}

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

.stat-card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
}

.stat-card::after {
  position: absolute;
  right: -25px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 135, 105, 0.06), rgba(39, 135, 105, 0));
  content: "";
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.stat-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
}

.stat-value {
  display: block;
  margin-top: 13px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 770;
  letter-spacing: -1px;
}

.stat-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.trend-up,
.trend-down {
  font-weight: 750;
}

.trend-up {
  color: var(--green-2);
}

.trend-down {
  color: var(--red);
}

.landing-page {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  min-height: 100vh;
  padding: 18px clamp(16px, 3vw, 46px) 44px;
}

.public-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 18px 42px rgba(12, 35, 27, 0.1);
  backdrop-filter: blur(18px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.public-brand .brand-mark {
  width: 40px;
  height: 40px;
  background: var(--green-soft);
}

.public-brand .brand-mark svg {
  stroke: var(--green-2);
}

.public-brand strong,
.public-brand small {
  display: block;
  line-height: 1.08;
}

.public-brand strong {
  color: var(--green);
  font-size: 18px;
  letter-spacing: -0.4px;
}

.public-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.public-nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.public-nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.public-nav-links a:hover {
  background: var(--surface-soft);
  color: var(--green);
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-ticker {
  position: relative;
  overflow: hidden;
  width: min(1320px, 100%);
  margin: -2px 0 4px;
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 102, 79, 0.08), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow);
}

.landing-ticker::before,
.landing-ticker::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
  content: "";
}

.landing-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.landing-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.landing-ticker-track {
  display: flex;
  width: max-content;
  animation: landing-ticker-run 42s linear infinite;
}

.landing-ticker:hover .landing-ticker-track {
  animation-play-state: paused;
}

.landing-ticker-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.landing-ticker-item {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 8px 18px rgba(15, 35, 27, 0.06);
}

.landing-ticker-item span:not(.ticker-mark):not(.index-logo) {
  display: grid;
  gap: 1px;
}

.landing-ticker-item strong {
  font-size: 11px;
}

.landing-ticker-item small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-ticker-item > b {
  font-size: 12px;
}

.landing-ticker-item em {
  color: var(--green-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.landing-ticker-item.down em {
  color: var(--red);
}

.landing-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  width: min(1320px, 100%);
  justify-self: center;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(103, 210, 169, 0.23), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(31, 138, 107, 0.24), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--navy) 96%, #000 4%), #0f2d24 54%, color-mix(in srgb, var(--green) 60%, #06110d 40%));
  color: #fff;
  box-shadow: 0 28px 70px rgba(12, 35, 27, 0.22);
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(110deg, rgba(0, 0, 0, 0.9), transparent 75%);
  content: "";
}

.landing-hero::after {
  position: absolute;
  inset: auto -15% -44% 35%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 210, 169, 0.42), transparent 62%);
  filter: blur(18px);
  opacity: 0.72;
  content: "";
  animation: landing-glow 7s ease-in-out infinite alternate;
}

.landing-hero-copy,
.landing-visual {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(164, 255, 219, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 255, 247, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.landing-eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #67d2a9;
  box-shadow: 0 0 0 0 rgba(103, 210, 169, 0.7);
  animation: landing-dot-pulse 1.6s ease-out infinite;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 22px 0 14px;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 0.96;
  letter-spacing: -3.4px;
}

.landing-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(236, 255, 247, 0.76);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.landing-primary {
  min-height: 48px;
  padding-inline: 22px;
  background: #67d2a9;
  color: #0d241c;
  box-shadow: 0 16px 34px rgba(103, 210, 169, 0.28);
}

.landing-secondary {
  min-height: 48px;
  padding-inline: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.landing-link {
  color: #9af0ca;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.landing-link:hover {
  text-decoration: underline;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.landing-trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(236, 255, 247, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.landing-visual {
  min-height: 450px;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.78;
  animation: landing-float 7s ease-in-out infinite;
}

.landing-orb.one {
  top: 28px;
  right: 48px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(103, 210, 169, 0.72), transparent 64%);
}

.landing-orb.two {
  right: 230px;
  bottom: 26px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 66%);
  animation-delay: -2.4s;
}

.landing-glass-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.landing-glass-card.main {
  position: absolute;
  inset: 64px 10px auto 28px;
  padding: 18px;
  animation: landing-card-rise 5.8s ease-in-out infinite alternate;
}

.landing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.landing-card-head span {
  color: rgba(236, 255, 247, 0.65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.landing-card-head strong {
  color: #67d2a9;
  font-size: 28px;
}

.landing-wave {
  height: 210px;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(5, 21, 15, 0.2);
}

.landing-wave .chart-svg {
  width: 100%;
  height: 185px;
  margin-top: 14px;
}

.landing-wave .chart-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
}

.landing-wave .chart-line-area {
  fill: rgba(103, 210, 169, 0.16);
}

.landing-wave .chart-line {
  stroke: #67d2a9;
  filter: drop-shadow(0 0 12px rgba(103, 210, 169, 0.45));
}

.landing-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.landing-mini-grid span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.landing-mini-grid b {
  color: #fff;
  font-size: 22px;
}

.landing-mini-grid small {
  color: rgba(236, 255, 247, 0.62);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-glass-card.floating {
  position: absolute;
  z-index: 2;
  padding: 14px;
}

.landing-glass-card.floating.score {
  right: 0;
  bottom: 54px;
  width: min(260px, 54%);
  animation: landing-float 6.8s ease-in-out infinite;
}

.landing-glass-card.floating.score > small {
  display: block;
  margin-bottom: 9px;
  color: rgba(236, 255, 247, 0.68);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.landing-glass-card.floating.score > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  cursor: pointer;
}

.landing-glass-card.floating.score > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-glass-card.floating.score strong {
  color: #fff;
}

.landing-glass-card.floating.score small {
  color: rgba(236, 255, 247, 0.58);
}

.landing-glass-card.floating.status {
  top: 18px;
  right: 70px;
  width: min(310px, 72%);
  animation: landing-float 7.4s ease-in-out infinite reverse;
}

.landing-status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.landing-status-card + .landing-status-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(180, 72, 75, 0.16);
}

.landing-status-dot.open {
  background: #67d2a9;
  box-shadow: 0 0 0 5px rgba(103, 210, 169, 0.18);
}

.landing-status-card strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.landing-status-card small {
  color: rgba(236, 255, 247, 0.62);
  font-size: 10px;
}

.landing-status-card em {
  color: #9af0ca;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-test-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1320px, 100%);
  justify-self: center;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  border-radius: 24px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--amber-soft) 74%, var(--card)), var(--card)),
    radial-gradient(circle at 10% 10%, rgba(177, 121, 24, 0.2), transparent 34%);
  box-shadow: var(--shadow);
}

.landing-test-banner span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.35px;
}

.landing-test-banner h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.35px;
}

.landing-test-banner p {
  max-width: 860px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-section {
  display: grid;
  gap: 16px;
  width: min(1320px, 100%);
  justify-self: center;
}

.landing-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.landing-audience {
  padding: 8px 0;
}

.landing-audience-grid,
.landing-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-audience-grid article,
.landing-data-tile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.landing-audience-grid article::after,
.landing-data-tile::after {
  position: absolute;
  inset: auto -45px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 14%, transparent), transparent 68%);
  content: "";
}

.landing-audience-grid span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.landing-audience-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -0.45px;
}

.landing-audience-grid p,
.landing-data-tile p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-data-section {
  padding: 8px 0;
}

.landing-data-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-data-tile > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.landing-data-tile strong {
  font-size: 14px;
}

.landing-product-preview {
  position: relative;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid color-mix(in srgb, var(--green) 34%, rgba(255, 255, 255, 0.08));
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 12%, rgba(103, 210, 169, 0.24), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--navy) 94%, #000 6%), #123328 58%, #0a1d17);
  color: #fff;
  box-shadow: 0 28px 70px rgba(12, 35, 27, 0.24);
}

.landing-product-preview::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.85), transparent 82%);
  content: "";
}

.landing-product-preview::after {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 210, 169, 0.34), transparent 68%);
  filter: blur(7px);
  content: "";
  animation: landing-glow 7s ease-in-out infinite alternate;
}

.landing-preview-copy,
.landing-terminal-preview {
  position: relative;
  z-index: 1;
}

.landing-preview-copy h2 {
  max-width: 680px;
  margin: 9px 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -2.15px;
}

.landing-preview-copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(236, 255, 247, 0.72);
  line-height: 1.7;
}

.landing-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.landing-preview-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.landing-workflow-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.landing-workflow-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.landing-workflow-list article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: rgba(103, 210, 169, 0.16);
  color: #9af0ca;
  font-size: 11px;
  font-weight: 900;
}

.landing-workflow-list strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.landing-workflow-list p {
  margin: 4px 0 0;
  color: rgba(236, 255, 247, 0.62);
  line-height: 1.5;
}

.landing-terminal-preview {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.065));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  transform: rotate(1deg);
}

.landing-terminal-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 13px;
  color: rgba(236, 255, 247, 0.72);
}

.landing-terminal-top > span {
  display: flex;
  gap: 5px;
}

.landing-terminal-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.landing-terminal-top i:nth-child(1) {
  background: #ff6f70;
}

.landing-terminal-top i:nth-child(2) {
  background: #ffc95d;
}

.landing-terminal-top i:nth-child(3) {
  background: #67d2a9;
}

.landing-terminal-top strong {
  color: #fff;
  font-size: 12px;
}

.landing-terminal-top small {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
  gap: 12px;
}

.landing-terminal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(5, 21, 15, 0.26);
}

.landing-terminal-chart {
  display: grid;
  min-height: 332px;
  padding: 16px;
}

.landing-terminal-chart > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.landing-terminal-chart small,
.landing-terminal-watch > small,
.landing-terminal-feed > small {
  color: rgba(236, 255, 247, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.landing-terminal-chart strong {
  color: #67d2a9;
  font-size: 28px;
}

.landing-terminal-chart .chart-svg {
  width: 100%;
  height: 235px;
  align-self: end;
}

.landing-terminal-chart .chart-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
}

.landing-terminal-chart .chart-line-area {
  fill: rgba(103, 210, 169, 0.18);
}

.landing-terminal-chart .chart-line {
  stroke: #67d2a9;
}

.landing-terminal-status {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-terminal-status div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  padding: 12px;
  background: rgba(5, 21, 15, 0.34);
}

.landing-terminal-status span {
  grid-row: span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d96b6d;
  box-shadow: 0 0 0 5px rgba(217, 107, 109, 0.12);
}

.landing-terminal-status span.open {
  background: #67d2a9;
  box-shadow: 0 0 0 5px rgba(103, 210, 169, 0.14);
}

.landing-terminal-status strong {
  color: #fff;
  font-size: 12px;
}

.landing-terminal-status small {
  color: rgba(236, 255, 247, 0.56);
  font-size: 10px;
}

.landing-terminal-watch {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-terminal-watch > small,
.landing-terminal-feed > small {
  padding: 12px 12px 4px;
  background: rgba(5, 21, 15, 0.34);
}

.landing-terminal-watch > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(5, 21, 15, 0.34);
  cursor: pointer;
}

.landing-terminal-watch strong,
.landing-terminal-watch small {
  display: block;
}

.landing-terminal-watch strong {
  color: #fff;
  font-size: 12px;
}

.landing-terminal-watch small {
  color: rgba(236, 255, 247, 0.52);
  font-size: 9px;
}

.landing-move {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(103, 210, 169, 0.12);
  color: #9af0ca;
  font-size: 10px;
  font-weight: 900;
}

.landing-move.down {
  background: rgba(217, 107, 109, 0.12);
  color: #ffaaaa;
}

.landing-terminal-feed {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-terminal-feed div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  background: rgba(5, 21, 15, 0.34);
}

.landing-terminal-feed b {
  color: #9af0ca;
  font-size: 10px;
}

.landing-terminal-feed span {
  overflow: hidden;
  color: rgba(236, 255, 247, 0.68);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-trust-center,
.landing-roadmap {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--green-2) 18%, transparent), transparent 30%),
    linear-gradient(135deg, var(--card), color-mix(in srgb, var(--green-soft) 32%, var(--surface-soft)));
  box-shadow: var(--shadow);
}

.landing-trust-center::after,
.landing-roadmap::after {
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 14%, transparent), transparent 68%);
  content: "";
  pointer-events: none;
}

.landing-trust-center > *,
.landing-roadmap > * {
  position: relative;
  z-index: 1;
}

.landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-trust-card {
  display: grid;
  gap: 10px;
  min-height: 185px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 14px 32px rgba(15, 35, 27, 0.06);
  transition: transform var(--motion-medium) ease, border-color var(--motion-medium) ease;
}

.landing-trust-card:hover {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  transform: translateY(-3px);
}

.landing-trust-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.landing-trust-card strong,
.landing-roadmap-card strong,
.landing-faq-item strong,
.landing-feedback-strip strong {
  color: var(--ink);
}

.landing-trust-card p,
.landing-faq-item p,
.landing-roadmap-card li,
.landing-feedback-strip small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-faq-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.landing-faq-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.landing-faq-item a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.landing-faq-item a:hover {
  text-decoration: underline;
}

.landing-roadmap {
  background:
    radial-gradient(circle at 90% 0%, rgba(103, 210, 169, 0.22), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--navy) 96%, #000 4%), #123328);
  color: #fff;
}

.landing-roadmap .landing-section-head h2 {
  color: #fff;
}

.landing-roadmap .landing-section-head p {
  color: rgba(236, 255, 247, 0.68);
}

.landing-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-roadmap-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.landing-roadmap-card > span {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(103, 210, 169, 0.13);
  color: #9af0ca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.landing-roadmap-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.35px;
}

.landing-roadmap-card ul {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.landing-roadmap-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(236, 255, 247, 0.72);
}

.landing-roadmap-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67d2a9;
  box-shadow: 0 0 0 4px rgba(103, 210, 169, 0.12);
  content: "";
  transform: translateY(-50%);
}

.landing-feedback-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-feedback-strip strong,
.landing-feedback-strip small {
  display: block;
}

.landing-feedback-strip strong {
  color: #fff;
}

.landing-feedback-strip small {
  margin-top: 4px;
  color: rgba(236, 255, 247, 0.66);
}

.landing-hot-list,
.landing-news-stack {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.landing-hot-row {
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.landing-hot-row:hover {
  border-color: color-mix(in srgb, var(--green) 36%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 38%, var(--card));
  transform: translateY(-2px);
}

.landing-hot-row > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.landing-hot-row strong,
.landing-hot-row b {
  font-size: 12px;
}

.landing-hot-row small {
  color: var(--muted);
  font-size: 10px;
}

.landing-news-item {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.landing-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 35, 27, 0.08);
}

.landing-news-item .badge {
  width: fit-content;
}

.landing-news-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.landing-news-item small {
  color: var(--muted);
  font-size: 10px;
}

.landing-section-head {
  max-width: 760px;
}

.landing-section-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -1.25px;
}

.landing-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform var(--motion-medium) ease, border-color var(--motion-medium) ease;
}

.landing-feature-card::after {
  position: absolute;
  inset: auto -35px -50px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 18%, transparent), transparent 68%);
  content: "";
}

.landing-feature-card:hover {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  transform: translateY(-4px);
}

.landing-feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 21px;
}

.landing-feature-card h3 {
  margin: 15px 0 8px;
  font-size: 16px;
}

.landing-feature-card p {
  min-height: 62px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.landing-flow {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--card), var(--surface-soft));
  box-shadow: var(--shadow);
}

.landing-flow::before {
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-2), transparent);
  content: "";
  transform: translateY(-50%);
  animation: landing-scan 2.8s ease-in-out infinite;
}

.landing-flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
}

.landing-flow-step span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.landing-flow-step strong {
  font-size: 16px;
}

.landing-flow-step small {
  color: var(--muted);
  line-height: 1.4;
}

.landing-disclaimer {
  width: min(1320px, 100%);
  justify-self: center;
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.landing-footer {
  display: flex;
  width: min(1320px, 100%);
  align-items: center;
  justify-self: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

.landing-footer strong,
.landing-footer small {
  display: block;
}

.landing-footer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.landing-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.landing-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--green);
}

.onboarding-panel {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  margin: -8px 0 18px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--line));
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--green-2) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--card) 94%, transparent), color-mix(in srgb, var(--green-soft) 44%, var(--card)));
  box-shadow: 0 22px 55px rgba(12, 35, 27, 0.11);
}

.onboarding-glow {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 22%, transparent), transparent 68%);
  pointer-events: none;
  animation: landing-glow 8s ease-in-out infinite alternate;
}

.onboarding-head,
.onboarding-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.onboarding-head h2 {
  margin: 6px 0;
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: -1.2px;
}

.onboarding-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-progress {
  display: grid;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--card) 0 58%, transparent 60%),
    conic-gradient(var(--green-2) var(--value), var(--line) 0);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 28px rgba(15, 35, 27, 0.08);
}

.onboarding-progress strong,
.onboarding-progress small {
  grid-area: 1 / 1;
}

.onboarding-progress strong {
  margin-top: -10px;
  font-size: 26px;
}

.onboarding-progress small {
  margin-top: 34px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.onboarding-market-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-market-row button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.onboarding-market-row button.active,
.onboarding-market-row button:hover {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: var(--green);
  color: #fff;
}

.onboarding-step-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-step-grid article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
}

.onboarding-step-grid article > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-step-grid article.done > span {
  background: var(--green);
  color: #fff;
}

.onboarding-step-grid strong,
.onboarding-step-grid small {
  display: block;
}

.onboarding-step-grid strong {
  font-size: 13px;
}

.onboarding-step-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.onboarding-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

@keyframes landing-ticker-run {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes landing-glow {
  from { transform: translate3d(-4%, 0, 0) scale(0.96); opacity: 0.55; }
  to { transform: translate3d(4%, -6%, 0) scale(1.08); opacity: 0.9; }
}

@keyframes landing-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 210, 169, 0.65); }
  72%, 100% { box-shadow: 0 0 0 11px rgba(103, 210, 169, 0); }
}

@keyframes landing-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes landing-card-rise {
  from { transform: translate3d(0, 8px, 0) rotate(-0.25deg); }
  to { transform: translate3d(0, -8px, 0) rotate(0.25deg); }
}

@keyframes landing-scan {
  0%, 100% { opacity: 0.25; transform: translateY(-50%) scaleX(0.72); }
  50% { opacity: 0.88; transform: translateY(-50%) scaleX(1); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-grid.stock-only {
  align-items: start;
}

.panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.panel-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header.no-border {
  border-bottom: 0;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.2px;
}

.panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.range-tabs,
.view-tabs,
.interval-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.range-tabs button,
.view-tabs button,
.interval-tabs button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.range-tabs button.active,
.view-tabs button.active,
.interval-tabs button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 35, 27, 0.08);
}

/* Aktywny tryb wykresu (Linia/Świece) w kolorze motywu — jasne „albo to, albo to" */
.view-tabs button.active {
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

.chart-wrap {
  position: relative;
  height: 255px;
  padding: 6px 14px 12px;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 4px 6px 0;
}

.chart-summary strong {
  font-size: 22px;
  letter-spacing: -0.7px;
}

.chart-svg {
  width: 100%;
  height: 205px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e9eeeb;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #97a29c;
  font-size: 9px;
}

.signals-list {
  padding: 2px 0;
}

.signal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 140ms ease;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row:hover,
.table-row-clickable:hover {
  background: var(--surface-soft);
}

.ticker-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e0e9e4;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.company-copy {
  min-width: 0;
}

.company-copy strong,
.company-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-copy strong {
  font-size: 12px;
}

.company-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.company-copy-rich {
  max-width: min(250px, 28vw);
}

.company-copy-rich em {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  margin-top: 5px;
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.score-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.score-chip.positive,
.badge.positive {
  background: var(--green-soft);
  color: var(--green);
}

.score-chip.neutral,
.badge.neutral {
  background: var(--amber-soft);
  color: #94691e;
}

.score-chip.negative,
.badge.negative {
  background: var(--red-soft);
  color: var(--red);
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: #8a968f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.45px;
  text-align: right;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  text-align: left;
}

td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  text-align: right;
}

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

.table-company {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.table-company .ticker-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.table-company .watch-star {
  flex-shrink: 0;
}

.company-copy strong .name-flag {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: -1px;
}

.company-copy strong .name-flag .flag {
  width: 17px;
  height: 11.9px;
}

.value-strong {
  color: var(--ink);
  font-weight: 750;
}

.dividend-list,
.news-list {
  padding: 2px 18px;
}

.dividend-item,
.news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.dividend-item:last-child,
.news-item:last-child {
  border-bottom: 0;
}

.rich-news-item {
  align-items: start;
}

.rich-news-item .company-copy strong,
.rich-news-item .company-copy small {
  overflow: visible;
  white-space: normal;
}

.rich-news-item .company-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.date-tile {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.date-tile small {
  margin-top: -9px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.dividend-copy strong,
.dividend-copy small {
  display: block;
}

.dividend-copy strong {
  font-size: 11px;
}

.dividend-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.dividend-amount {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.local-search {
  display: flex;
  min-width: 260px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
}

.local-search input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-select {
  min-width: 145px;
  padding: 11px 34px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--card);
  color: var(--muted);
}

.company-table .ticker-mark {
  width: 36px;
  height: 36px;
}

.company-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.catalog-radar-panel {
  display: grid;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(46, 156, 118, 0.12), transparent 28%),
    linear-gradient(135deg, var(--card), var(--surface-soft));
  box-shadow: var(--shadow);
}

.catalog-radar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.catalog-radar-head h2 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.catalog-radar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.catalog-market-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.catalog-market-chips button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.catalog-market-chips button.active,
.catalog-market-chips button:hover {
  border-color: #a9d6c5;
  background: var(--green-soft);
  color: var(--green);
}

.catalog-market-chips strong {
  color: inherit;
  font-size: 11px;
}

.catalog-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.catalog-stat-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(154, 174, 165, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.catalog-stat-grid article.data-fresh {
  border-color: rgba(46, 156, 118, 0.28);
  background: rgba(232, 247, 240, 0.78);
}

.catalog-stat-grid article.data-proxy {
  border-color: rgba(199, 148, 58, 0.24);
  background: rgba(255, 247, 225, 0.74);
}

.catalog-stat-grid article.data-demo {
  border-color: rgba(203, 88, 83, 0.22);
  background: rgba(255, 240, 238, 0.68);
}

.catalog-stat-grid span,
.catalog-stat-grid strong,
.catalog-stat-grid small {
  display: block;
}

.catalog-stat-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-stat-grid strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.catalog-stat-grid small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-hot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.catalog-hot-strip > div:first-child strong,
.catalog-hot-strip > div:first-child small {
  display: block;
}

.catalog-hot-strip > div:first-child strong {
  font-size: 12px;
}

.catalog-hot-strip > div:first-child small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.catalog-hot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.catalog-hot-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 34, 28, 0.04);
}

.catalog-hot-list button:hover {
  border-color: #a9d6c5;
  transform: translateY(-1px);
}

.catalog-hot-list button > span:first-child {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}

.catalog-hot-list strong {
  font-size: 10px;
}

.catalog-hot-list small {
  color: var(--muted);
  font-size: 8px;
}

.catalog-groups-panel {
  display: grid;
  gap: 11px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.catalog-groups-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-groups-head h2 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.catalog-groups-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.catalog-group-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.catalog-group-card {
  position: relative;
  display: grid;
  min-height: 82px;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--green) 9%, transparent), transparent 46%),
    var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.catalog-group-card:hover,
.catalog-group-card.active {
  border-color: color-mix(in srgb, var(--green) 36%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 54%, var(--card));
  box-shadow: 0 14px 30px rgba(19, 80, 58, 0.08);
  transform: translateY(-1px);
}

.catalog-group-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: var(--card);
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px var(--line);
}

.catalog-group-card strong,
.catalog-group-card small,
.catalog-group-card em {
  display: block;
}

.catalog-group-card strong {
  margin-top: 4px;
  font-size: 11px;
}

.catalog-group-card small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.catalog-group-card em {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.ticker-mark.tiny {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 6px;
}

.index-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.index-overview-strip article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 160ms ease;
}

.index-overview-strip article:hover,
.index-overview-strip article.active {
  border-color: #b8d8cb;
  background: #eff8f4;
  transform: translateY(-1px);
}

.index-overview-strip strong,
.index-overview-strip span,
.index-overview-strip small {
  display: block;
}

.index-overview-strip strong {
  font-size: 13px;
}

.index-overview-strip span {
  margin-top: 6px;
  color: var(--green);
  font-size: 16px;
  font-weight: 850;
}

.index-overview-strip small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.index-overview-strip.compact {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.index-overview-strip.grouped {
  display: block;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.index-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.index-strip-head strong,
.index-strip-head small {
  display: block;
}

.index-strip-head strong {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.index-strip-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.compact-toggle {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
}

.compact-toggle.active {
  border-color: var(--green-2);
  background: var(--green-soft);
  color: var(--green);
}

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

.index-market-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.index-market-card.active {
  border-color: #a9d6c5;
  background: var(--surface-soft);
}

.index-market-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.index-market-card-head strong,
.index-market-card-head small {
  display: block;
}

.index-market-card-head strong {
  font-size: 12px;
}

.index-market-card-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.market-mini-logo,
.index-logo {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.market-mini-logo {
  background: var(--surface-soft);
  font-size: 17px;
}

.index-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: var(--card);
}

.index-logo b {
  z-index: 1;
}

.index-picker {
  width: 100%;
  min-width: 0;
}

.index-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.index-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.index-preview-pill .index-logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.index-preview-pill strong,
.index-preview-pill small {
  display: block;
}

.index-preview-pill strong {
  max-width: 88px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-preview-pill small {
  color: var(--muted);
  font-size: 8px;
}

.index-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.index-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 34, 28, 0.04);
  transition: 160ms ease;
}

.index-pill:hover,
.index-pill.active {
  border-color: #a9d6c5;
  background: #eff8f4;
  transform: translateY(-1px);
}

.index-pill strong,
.index-pill span,
.index-pill small {
  display: inline;
}

.index-pill strong {
  font-size: 11px;
}

.index-pill span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.index-pill small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.index-chip-list {
  display: flex;
  max-width: 188px;
  flex-wrap: wrap;
  gap: 4px;
}

.index-chip-list span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.index-chip-list span.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 3px;
}

.index-chip-list span.index-chip.muted {
  padding: 3px 6px;
  opacity: 0.85;
}

.index-chip-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: contain;
  background: var(--card);
}

.index-chip-list span.market-chip {
  background: #e7eef9;
  color: #2f5aa8;
  letter-spacing: 0.4px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 0 rgba(31, 138, 107, 0.5);
  animation: live-pulse 1.8s infinite;
  vertical-align: middle;
}

.source-mini {
  display: inline-block;
  max-width: 160px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.source-mini.live {
  color: var(--green);
}

.source-mini.delayed {
  color: #2765b5;
}

.source-mini.proxy,
.source-mini.mixed {
  color: var(--amber);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 138, 107, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(31, 138, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 107, 0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}

.badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.score-bar {
  display: inline-flex;
  width: 70px;
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8eeea;
  vertical-align: middle;
}

.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-2);
}

.score-bar i.neutral {
  background: #c79234;
}

.score-bar i.negative {
  background: #c15c5d;
}

.company-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid #28493d;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(125deg, #102b22, #173a2f);
  color: #fff;
  box-shadow: 0 18px 45px rgba(16, 43, 34, 0.14);
}

.company-hero::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 185, 145, 0.16), rgba(79, 185, 145, 0));
  content: "";
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8fa69d;
  cursor: pointer;
  font-size: 11px;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-identity .ticker-mark {
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #a7eed2;
  font-size: 12px;
}

.company-identity h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.company-identity p {
  margin: 5px 0 0;
  color: #9eb3ab;
  font-size: 11px;
}

.company-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 23px;
}

.company-price strong {
  font-size: 28px;
  letter-spacing: -1px;
}

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

.data-passport article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.data-passport strong,
.data-passport small {
  display: block;
}

.data-passport > article > strong {
  margin-top: 10px;
  font-size: 12px;
}

.data-passport > article > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.company-data-gaps {
  display: grid;
  gap: 12px;
  margin: -2px 0 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--amber) 26%, var(--line));
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(214, 151, 55, 0.12), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.company-data-gaps.positive {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
}

.company-data-gaps.negative {
  border-color: color-mix(in srgb, var(--red) 24%, var(--line));
}

.company-data-gaps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-data-gaps-head h2 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.04em;
}

.company-data-gaps-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.data-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.data-gap-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.data-gap-grid article.positive {
  border-left-color: var(--green);
}

.data-gap-grid article.negative {
  border-left-color: var(--red);
}

.data-gap-grid article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
}

.data-gap-grid strong,
.data-gap-grid em,
.data-gap-grid p,
.data-gap-grid small {
  display: block;
}

.data-gap-grid strong {
  color: var(--ink);
  font-size: 12px;
}

.data-gap-grid em {
  grid-column: 2;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-gap-grid p {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.data-gap-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.analyst-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.72fr) minmax(220px, 0.78fr) minmax(220px, 0.78fr);
  gap: 12px;
  margin-bottom: 16px;
}

.analyst-brief > article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.analyst-verdict-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--surface);
  background: linear-gradient(135deg, color-mix(in srgb, var(--green-soft) 55%, var(--surface)), var(--surface));
}

.analyst-verdict-card::after {
  position: absolute;
  right: -48px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green-2) 24%, transparent), transparent 68%);
  content: "";
}

.analyst-brief.negative .analyst-verdict-card::after {
  background: radial-gradient(circle, rgba(180, 72, 75, 0.18), transparent 68%);
}

.analyst-brief.neutral .analyst-verdict-card::after {
  background: radial-gradient(circle, rgba(177, 121, 24, 0.2), transparent 68%);
}

.analyst-verdict-card h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 9px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -1.2px;
}

.analyst-verdict-card p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.analyst-pill-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.analyst-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.analyst-pill.positive {
  background: var(--green-soft);
  color: var(--green);
}

.analyst-pill.neutral {
  background: var(--amber-soft);
  color: var(--amber);
}

.analyst-pill.negative {
  background: var(--red-soft);
  color: var(--red);
}

.analyst-score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 16px;
}

.analyst-ring {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-2) calc(var(--value) * 1%), #e8eeea 0);
  text-align: center;
}

.analyst-brief.negative .analyst-ring {
  background: conic-gradient(var(--red) calc(var(--value) * 1%), #f0dddf 0);
}

.analyst-brief.neutral .analyst-ring {
  background: conic-gradient(var(--amber) calc(var(--value) * 1%), #f2e7cf 0);
}

.analyst-ring::before {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.analyst-ring strong,
.analyst-ring small {
  position: relative;
  display: block;
}

.analyst-ring strong {
  font-size: 21px;
  letter-spacing: -0.7px;
}

.analyst-ring small {
  max-width: 66px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.analyst-mini-grid {
  display: grid;
  gap: 8px;
}

.analyst-mini-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.analyst-mini-grid div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.analyst-mini-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.analyst-mini-grid strong {
  font-size: 11px;
  text-align: right;
}

.analyst-list-card {
  padding: 16px;
}

.analyst-list-card h3,
.analyst-actions-card h3 {
  margin: 0 0 12px;
  font-size: 12px;
}

.analyst-list-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analyst-list-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.analyst-list-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-2);
  content: "";
}

.analyst-brief.negative .analyst-list-card:nth-of-type(4) li::before,
.analyst-list-card:nth-of-type(4) li::before {
  background: var(--amber);
}

.analyst-actions-card {
  grid-column: 1 / -1;
  padding: 16px;
}

.analyst-actions-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analyst-actions-card span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.analyst-actions-card b {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 9px;
}

[data-theme="dark"] .analyst-ring {
  background: conic-gradient(var(--green-2) calc(var(--value) * 1%), var(--line) 0);
}

[data-theme="dark"] .analyst-brief.negative .analyst-ring {
  background: conic-gradient(var(--red) calc(var(--value) * 1%), var(--line) 0);
}

[data-theme="dark"] .analyst-brief.neutral .analyst-ring {
  background: conic-gradient(var(--amber) calc(var(--value) * 1%), var(--line) 0);
}

.business-profile-panel {
  overflow: hidden;
  margin-bottom: 16px;
}

.business-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) repeat(2, minmax(220px, 0.86fr));
  gap: 12px;
  padding: 16px;
}

.business-profile-lead,
.business-profile-fact,
.business-profile-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.business-profile-lead {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  overflow: hidden;
  padding: 18px;
}

.business-profile-lead::after {
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 16%, transparent), transparent 68%);
  content: "";
}

.business-profile-logo {
  position: relative;
  z-index: 1;
}

.business-profile-logo .ticker-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.business-profile-lead > div:last-child {
  position: relative;
  z-index: 1;
}

.business-profile-lead h3 {
  margin: 6px 0 9px;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.9px;
}

.business-profile-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.business-profile-fact {
  padding: 16px;
}

.business-profile-fact span,
.business-profile-list span {
  display: block;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.business-profile-fact strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.business-profile-list {
  padding: 16px;
}

.business-profile-list ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.business-profile-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.business-profile-list li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
  content: "";
  transform: translateY(-50%);
}

.business-profile-list.risk li::before {
  background: var(--amber);
}

.business-profile-note {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.score-gauge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  align-self: center;
  border-radius: 50%;
  background: conic-gradient(#62d2a7 calc(var(--score) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.score-gauge::before {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #16372c;
  content: "";
}

.score-gauge div {
  position: relative;
  text-align: center;
}

.score-gauge strong,
.score-gauge small {
  display: block;
}

.score-gauge strong {
  font-size: 31px;
  letter-spacing: -1px;
}

.score-gauge small {
  margin-top: 2px;
  color: #9fb7ae;
  font-size: 9px;
  text-transform: uppercase;
}

.score-subnote {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 156px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 34, 27, 0.92);
  color: #b7cbc2;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.company-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 17px;
  background: var(--card);
}

.metric span,
.metric strong,
.metric small {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 8px;
  font-size: 17px;
}

.metric small {
  margin-top: 4px;
  color: #98a39d;
  font-size: 8px;
}

.crypto-metric {
  position: relative;
}

.crypto-metric::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b8c9c1;
}

.crypto-metric.flow-watch::before {
  background: linear-gradient(135deg, var(--red) 0 48%, var(--green-2) 52% 100%);
}

.crypto-metric-note {
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f6fbf8, #fff);
  color: #56665f;
  font-size: 10px;
  line-height: 1.55;
}

.crypto-metric-note strong {
  color: var(--green);
}

.factor-list {
  padding: 15px 20px 20px;
}

.factor-item {
  display: grid;
  grid-template-columns: 92px 1fr 32px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 10px;
}

.factor-track {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-soft);
}

.factor-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b9b76, #65c4a0);
}

.factor-item strong {
  text-align: right;
}

.score-explainer {
  margin: 0 20px 20px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--green) 12%, transparent), transparent 34%),
    var(--surface-soft);
}

.score-explainer-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.score-explainer p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: 10px;
  line-height: 1.55;
}

.score-explainer p strong {
  color: var(--ink);
}

.score-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-band-grid div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.score-band-grid span,
.score-band-grid strong,
.score-band-grid small {
  display: block;
}

.score-band-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.score-band-grid strong {
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
}

.score-band-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.score-audit-panel {
  display: grid;
  gap: 12px;
  margin: 0 20px 20px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--amber) 26%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(214, 151, 55, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 247, 0.88));
}

.score-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.score-audit-head h3 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.score-audit-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.score-formula-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.score-formula-strip article {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.score-formula-strip article.positive {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
}

.score-formula-strip article.negative {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
}

.score-formula-strip span,
.score-formula-strip strong,
.score-formula-strip small {
  display: block;
}

.score-formula-strip span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.score-formula-strip strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.score-formula-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
}

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

.score-audit-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.score-audit-grid article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.score-audit-grid strong,
.score-audit-grid span,
.score-audit-grid small {
  display: block;
}

.score-audit-grid strong {
  color: var(--ink);
  font-size: 11px;
}

.score-audit-grid span {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.score-audit-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
}

.score-audit-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.score-audit-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-2));
}

.score-adjustment-list {
  display: grid;
  gap: 7px;
}

.score-adjustment-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  background: var(--card);
}

.score-adjustment-list article.positive {
  border-left-color: var(--green);
}

.score-adjustment-list article.negative {
  border-left-color: var(--red);
}

.score-adjustment-list > article > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.score-adjustment-list article.negative > span {
  color: var(--red);
}

.score-adjustment-list strong,
.score-adjustment-list small {
  display: block;
}

.score-adjustment-list strong {
  color: var(--ink);
  font-size: 11px;
}

.score-adjustment-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.reason-list {
  padding: 7px 20px 18px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #516159;
  font-size: 10px;
  line-height: 1.5;
}

.reason-item:last-child {
  border-bottom: 0;
}

.reason-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.reason-icon.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.decision-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.decision-main span,
.decision-main strong,
.decision-main p {
  display: block;
}

.decision-main span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.decision-main strong {
  margin-top: 7px;
  font-size: 27px;
  letter-spacing: -0.9px;
}

.decision-main p {
  margin: 10px 0 0;
  color: #607067;
  font-size: 11px;
  line-height: 1.55;
}

.decision-meter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--green-2) calc(var(--confidence) * 1%), #e8eeea 0);
}

.decision-card.negative .decision-meter {
  background: conic-gradient(var(--red) calc(var(--confidence) * 1%), #f0dddf 0);
}

.decision-card.neutral .decision-meter {
  background: conic-gradient(var(--amber) calc(var(--confidence) * 1%), #f2e7cf 0);
}

.decision-meter::before {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--card);
  content: "";
}

.decision-meter strong,
.decision-meter small {
  position: relative;
  display: block;
  text-align: center;
}

.decision-meter strong {
  font-size: 22px;
  letter-spacing: -0.6px;
}

.decision-meter small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.scenario-list {
  display: grid;
  gap: 9px;
}

.scenario-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.scenario-list span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.scenario-list strong {
  font-size: 12px;
}

.financial-results {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.financial-bars-wrap {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 255px;
}

.financial-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.financial-chart-head span,
.financial-chart-head strong,
.financial-chart-head small {
  display: block;
}

.financial-chart-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.financial-chart-head strong {
  margin-top: 3px;
  font-size: 13px;
}

.financial-chart-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.compact-tabs {
  flex-shrink: 0;
}

.compact-tabs button {
  min-width: 68px;
}

.financial-trend-note {
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.financial-trend-note span,
.financial-trend-note strong,
.financial-trend-note small {
  display: block;
}

.financial-trend-note span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.financial-trend-note strong {
  margin-top: 4px;
  font-size: 12px;
}

.financial-trend-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.report-source-strip {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.25fr;
  gap: 10px;
  padding: 0 20px 16px;
}

.report-source-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.report-source-strip span,
.report-source-strip strong,
.report-source-strip small {
  display: block;
}

.report-source-strip span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.report-source-strip strong {
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.report-source-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.financial-data-passport {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}

.financial-data-passport article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(19, 111, 86, 0.18);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 247, 0.86));
}

.financial-data-passport article.positive {
  border-left-color: var(--green);
}

.financial-data-passport article.neutral {
  border-left-color: var(--amber);
}

.financial-data-passport article.negative {
  border-left-color: var(--red);
}

.financial-data-passport span,
.financial-data-passport strong,
.financial-data-passport small {
  display: block;
}

.financial-data-passport span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.financial-data-passport strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.financial-data-passport small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.report-quality-panel {
  margin: 0 20px 16px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 4% 0%, rgba(101, 199, 162, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,250,247,0.9));
}

.report-quality-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.report-quality-head span,
.report-quality-head strong,
.report-quality-head small {
  display: block;
}

.report-quality-head > div > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-quality-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.2px;
}

.report-quality-head small {
  max-width: 720px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.report-quality-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 15px;
  background: var(--card);
}

.report-quality-grid article.positive { border-left-color: var(--green); }
.report-quality-grid article.neutral { border-left-color: var(--amber); }
.report-quality-grid article.negative { border-left-color: var(--red); }

.report-quality-grid span,
.report-quality-grid strong,
.report-quality-grid small {
  display: block;
}

.report-quality-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-quality-grid strong {
  margin-top: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-quality-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.report-sanity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.report-sanity-head,
.report-sanity-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(18, 102, 79, 0.16);
  border-radius: 14px;
  background: var(--card);
}

.report-sanity-head,
.report-sanity-list article.positive {
  border-left-color: var(--green);
}

.report-sanity-list article.neutral {
  border-left-color: var(--amber);
}

.report-sanity-list article.negative {
  border-left-color: var(--red);
}

.report-sanity-head span,
.report-sanity-list article span,
.report-sanity-head strong,
.report-sanity-list article strong,
.report-sanity-head small,
.report-sanity-list article small {
  display: block;
}

.report-sanity-head span,
.report-sanity-list article span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-sanity-head strong,
.report-sanity-list article strong {
  margin-top: 5px;
  color: var(--green);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-sanity-list article.neutral strong {
  color: var(--amber);
}

.report-sanity-list article.negative strong {
  color: var(--red);
}

.report-sanity-head small,
.report-sanity-list article small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-compare-panel {
  margin: 0 20px 16px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.16);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 190, 88, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(250,248,242,0.9));
}

.report-compare-panel.neutral,
.report-compare-panel.empty {
  border-left-color: var(--amber);
}

.report-compare-panel.negative {
  border-left-color: var(--red);
}

.report-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.report-compare-head span,
.report-compare-head strong,
.report-compare-head small {
  display: block;
}

.report-compare-head > div > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-compare-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.2px;
}

.report-compare-head small {
  max-width: 780px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-compare-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.report-compare-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 15px;
  background: var(--card);
}

.report-compare-grid article.positive { border-left-color: var(--green); }
.report-compare-grid article.neutral { border-left-color: var(--amber); }
.report-compare-grid article.negative { border-left-color: var(--red); }

.report-compare-grid span,
.report-compare-grid strong,
.report-compare-grid small {
  display: block;
}

.report-compare-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-compare-grid strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-compare-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.report-compare-grid article.positive > div:last-child strong {
  color: var(--green);
}

.report-compare-grid article.negative > div:last-child strong {
  color: var(--red);
}

.report-compare-grid article.neutral > div:last-child strong {
  color: var(--amber);
}

.expectation-prefill-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 190, 88, 0.34);
  border-left: 5px solid var(--amber);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 190, 88, 0.16), transparent 30%),
    rgba(255, 251, 242, 0.86);
}

.expectation-prefill-banner span,
.expectation-prefill-banner strong,
.expectation-prefill-banner small {
  display: block;
}

.expectation-prefill-banner span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expectation-prefill-banner strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.expectation-prefill-banner small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.expectation-import-preview {
  margin: 0 20px 16px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.18);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(101, 199, 162, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,248,0.94));
}

.expectation-import-preview.warning {
  border-left-color: var(--amber);
}

.expectation-import-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.expectation-import-preview-head span,
.expectation-import-preview-head strong,
.expectation-import-preview-head small {
  display: block;
}

.expectation-import-preview-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expectation-import-preview-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.expectation-import-preview-head small,
.expectation-import-more {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.expectation-import-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.expectation-import-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.expectation-import-stats article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.expectation-import-stats strong,
.expectation-import-stats small {
  display: block;
}

.expectation-import-stats strong {
  color: var(--green-dark);
  font-size: 20px;
}

.expectation-import-stats small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.expectation-worklist {
  margin: 0 20px 16px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 4%, rgba(101, 199, 162, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,250,248,0.92));
}

.expectation-worklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.expectation-worklist-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 190px;
}

.expectation-worklist-actions .ghost-button {
  padding: 10px 12px;
  white-space: nowrap;
}

.expectation-worklist-actions .ghost-button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.expectation-worklist-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.expectation-worklist-groups span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(19, 111, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.expectation-worklist-groups strong {
  color: var(--green-dark);
  font-size: 9px;
}

.expectation-worklist-head span,
.expectation-worklist-head strong,
.expectation-worklist-head small {
  display: block;
}

.expectation-worklist-title > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expectation-worklist-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.expectation-worklist-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.expectation-worklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.expectation-worklist-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 15px;
  background: var(--card);
}

.expectation-worklist-grid article.complete {
  border-left-color: var(--green);
}

.expectation-worklist-company {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.expectation-worklist-company strong,
.expectation-worklist-company small {
  display: block;
  overflow-wrap: anywhere;
}

.expectation-worklist-company strong {
  color: var(--ink);
  font-size: 12px;
}

.expectation-worklist-company small,
.expectation-worklist-grid p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.expectation-worklist-grid p {
  margin: 0;
}

.expectation-worklist-grid .ghost-button {
  justify-self: start;
}

.success-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.report-truth-panel {
  margin: 0 20px 16px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.16);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(27, 116, 90, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,248,0.92));
}

.report-truth-panel.neutral { border-left-color: var(--amber); }
.report-truth-panel.negative { border-left-color: var(--red); }

.report-truth-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.report-truth-main span,
.report-truth-main strong,
.report-truth-main p {
  display: block;
}

.report-truth-main span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-truth-main strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
}

.report-truth-main p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.report-truth-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 15px;
  background: var(--card);
}

.report-truth-grid article.positive { border-left-color: var(--green); }
.report-truth-grid article.neutral { border-left-color: var(--amber); }
.report-truth-grid article.negative { border-left-color: var(--red); }

.report-truth-grid span,
.report-truth-grid strong,
.report-truth-grid small {
  display: block;
}

.report-truth-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-truth-grid strong {
  margin-top: 5px;
  font-size: 12px;
}

.report-truth-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.compact-table table th,
.compact-table table td {
  padding: 11px 14px;
}

.event-list {
  padding: 8px 20px 18px;
}

.report-countdown {
  display: grid;
  gap: 14px;
  margin: 18px 20px 12px;
  padding: 16px;
  border: 1px solid #cbe6da;
  border-radius: 16px;
  background: linear-gradient(135deg, #effaf5, #ffffff);
}

.report-countdown.expired {
  border-color: #ead6b8;
  background: linear-gradient(135deg, #fff8eb, #ffffff);
}

.report-countdown.pending {
  border-color: #d8dcc6;
  background: linear-gradient(135deg, #fbfaf1, #ffffff);
}

.report-countdown.pending .countdown-grid span,
.mini-countdown.pending span {
  border: 1px dashed #d8dcc6;
  background: #fffdf5;
}

.report-countdown > div:first-child span,
.report-countdown > div:first-child strong,
.report-countdown > div:first-child small {
  display: block;
}

.report-countdown > div:first-child span {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.report-countdown > div:first-child strong {
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.report-countdown > div:first-child small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.countdown-grid span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 1px solid #dfe9e4;
  border-radius: 13px;
  background: var(--card);
}

.countdown-grid strong,
.countdown-grid small {
  display: block;
}

.countdown-grid strong {
  font-size: 20px;
  letter-spacing: -0.6px;
}

.countdown-grid small {
  margin-top: -6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-countdown p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}

.report-actions .ghost-button {
  flex: 1 1 130px;
  justify-content: center;
}

.report-data-panel {
  margin-bottom: 16px;
}

.report-automation-panel {
  display: grid;
  gap: 15px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(19, 111, 86, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(88, 230, 181, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-automation-copy {
  max-width: 980px;
}

.report-automation-copy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-automation-copy h2 {
  margin: 7px 0;
  color: var(--text);
  font-size: clamp(19px, 2vw, 28px);
  letter-spacing: -.04em;
}

.report-automation-copy p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.automation-step {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.automation-step > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.automation-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: rgba(19, 111, 86, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.automation-step strong,
.automation-step em {
  min-width: 0;
}

.automation-step strong {
  color: var(--text);
  font-size: 13px;
}

.automation-step em {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.automation-step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.automation-step.positive span {
  background: rgba(27, 158, 112, 0.12);
  color: #13825b;
}

.automation-step.negative span {
  background: rgba(211, 71, 71, 0.12);
  color: var(--red);
}

.automation-step.negative em {
  color: var(--red);
}

.report-automation-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-automation-footer span {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(19, 111, 86, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.report-robot-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.report-robot-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 0 20px 14px;
}

.report-robot-hero,
.report-robot-stat-grid article,
.report-robot-controls,
.report-robot-stages article,
.report-robot-tables article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.report-robot-hero {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(103, 210, 169, 0.25), transparent 42%),
    linear-gradient(145deg, #102c25, #0c241e);
  color: #fff;
}

.report-robot-hero span,
.report-robot-hero p,
.report-robot-hero small {
  color: rgba(218, 240, 231, 0.78);
}

.report-robot-hero span,
.report-robot-controls label span,
.report-robot-stat-grid span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-robot-hero strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.06em;
}

.report-robot-hero p,
.report-robot-hero small {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.report-robot-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-robot-stat-grid article {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 13px;
}

.report-robot-stat-grid span,
.report-robot-stat-grid small {
  color: var(--muted);
}

.report-robot-stat-grid strong {
  margin: 5px 0 2px;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.report-robot-stat-grid article.negative strong {
  color: var(--red);
}

.report-robot-stat-grid small {
  font-size: 10px;
  line-height: 1.4;
}

.report-robot-controls {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0 20px 14px;
  padding: 14px;
}

.report-robot-controls label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.report-robot-controls input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.report-robot-controls small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-robot-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 14px;
}

.report-robot-stages article {
  padding: 13px;
  border-left: 4px solid rgba(18, 102, 79, 0.18);
}

.report-robot-stages article.positive { border-left-color: var(--green); }
.report-robot-stages article.neutral { border-left-color: var(--amber); }
.report-robot-stages article.negative { border-left-color: var(--red); }

.report-robot-stages article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
}

.report-robot-stages span {
  display: inline-grid;
  min-width: 36px;
  height: 28px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(18, 102, 79, 0.1);
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-robot-stages strong {
  color: var(--ink);
  font-size: 12px;
}

.report-robot-stages em {
  grid-column: 2;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.report-robot-stages p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.report-robot-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}

.report-robot-alerts span {
  padding: 8px 10px;
  border: 1px solid rgba(211, 71, 71, 0.22);
  border-radius: 999px;
  background: rgba(211, 71, 71, 0.08);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.report-robot-tables {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  padding: 0 20px 20px;
}

.report-robot-tables article {
  min-width: 0;
  padding: 14px;
}

.report-robot-tables article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.report-robot-tables strong,
.report-robot-tables small {
  display: block;
}

.report-robot-tables strong {
  color: var(--ink);
  font-size: 13px;
}

.report-robot-tables small {
  color: var(--muted);
  font-size: 10px;
}

.report-robot-calendar-list {
  display: grid;
  gap: 9px;
}

.report-robot-calendar-list div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.report-robot-calendar-list span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.report-data-cockpit {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.report-data-hero {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 5%, color-mix(in srgb, var(--green) 16%, transparent), transparent 42%),
    linear-gradient(145deg, #123128, #0f2a23);
  color: #fff;
}

.report-data-hero span,
.report-data-hero p,
.report-data-meter small {
  color: #a8c5ba;
}

.report-data-hero span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.report-data-hero h2 {
  margin: 10px 0 8px;
  font-size: 42px;
  line-height: 1;
}

.report-data-hero p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.report-data-meter {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, #123128 0 54%, transparent 55%),
    conic-gradient(#5bcca0 var(--value), rgba(255, 255, 255, 0.16) 0);
}

.report-data-meter strong,
.report-data-meter small {
  grid-area: 1 / 1;
  display: block;
}

.report-data-meter strong {
  margin-top: -8px;
  font-size: 24px;
}

.report-data-meter small {
  margin-top: 42px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-parser-panel {
  min-width: 0;
}

.report-parser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.report-parser-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.report-parser-grid article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.report-parser-grid strong,
.report-parser-grid small,
.report-parser-grid p {
  display: block;
}

.report-parser-grid strong {
  font-size: 12px;
}

.report-parser-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.report-parser-grid p {
  margin: 11px 0 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.45;
}

.report-v2-panel {
  margin-bottom: 16px;
}

.report-v2-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.35fr;
  gap: 12px;
  padding: 0 20px 18px;
}

.report-v2-hero,
.report-v2-import,
.report-v2-form,
.report-v2-recent {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.report-v2-hero {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 8%, rgba(103, 210, 169, 0.24), transparent 42%),
    linear-gradient(145deg, #123128, #0f2a23);
  color: #fff;
}

.report-v2-hero span,
.report-v2-hero small,
.report-v2-hero p {
  color: #b7d1c7;
}

.report-v2-hero span,
.report-v2-form h3,
.report-v2-import h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-v2-hero strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 48px;
  line-height: 1;
}

.report-v2-hero p,
.report-v2-import p,
.report-v2-hero small {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.report-v2-import,
.report-v2-form {
  padding: 16px;
}

.report-v2-import h3,
.report-v2-form h3 {
  color: var(--green);
}

.report-v2-import p {
  margin: 10px 0 14px;
  color: var(--muted);
}

.report-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}

.report-v2-form-grid label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-v2-form-grid input,
.report-v2-form-grid select,
.report-v2-form-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.report-v2-form-grid textarea {
  min-height: 120px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.report-v2-parser {
  grid-column: span 2;
}

.report-v2-form-grid .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-v2-form-grid .checkbox-row input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
}

.file-drop {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(18, 102, 79, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.file-drop small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-v2-recent {
  margin: 0 20px 20px;
  padding: 15px;
}

.report-v2-recent > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.report-v2-recent strong,
.report-v2-recent small {
  display: block;
}

.report-v2-recent small {
  color: var(--muted);
  font-size: 10px;
}

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

.report-v2-table-wrap table {
  min-width: 780px;
}

.report-queue-panel {
  margin-bottom: 16px;
}

.report-queue-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
  padding: 0 20px 14px;
}

.report-queue-overview article,
.report-queue-form,
.report-queue-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.report-queue-overview article {
  padding: 17px;
}

.report-queue-overview article span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-queue-overview article strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.report-queue-overview article p,
.report-queue-overview article small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.report-queue-pill {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-queue-pill strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.report-queue-pill.approved strong { color: var(--green); }
.report-queue-pill.error strong { color: var(--red); }
.report-queue-pill.review strong { color: var(--amber); }

.report-queue-form {
  margin: 0 20px 14px;
  padding: 16px;
}

.report-queue-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.report-queue-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-left: 5px solid rgba(18, 102, 79, 0.16);
}

.report-queue-item.review { border-left-color: var(--amber); }
.report-queue-item.approved { border-left-color: var(--green); }
.report-queue-item.error { border-left-color: var(--red); }

.report-queue-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.report-queue-main > div {
  min-width: 0;
}

.report-queue-main strong,
.report-queue-main small,
.report-queue-main p,
.report-queue-main em {
  display: block;
}

.report-queue-main strong {
  color: var(--ink);
  font-size: 14px;
}

.report-queue-main small,
.report-queue-main p,
.report-queue-main em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-queue-main em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.report-queue-error {
  color: var(--red) !important;
}

.report-queue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-expectations-panel {
  margin-bottom: 16px;
}

.report-expectations-grid {
  display: grid;
  grid-template-columns: 0.78fr 0.95fr 1.28fr;
  gap: 12px;
  padding: 0 20px 18px;
}

.report-expectations-hero {
  display: grid;
  align-content: space-between;
  min-height: 246px;
  padding: 18px;
  border: 1px solid rgba(115, 86, 31, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 190, 88, 0.28), transparent 42%),
    linear-gradient(145deg, #2f2514, #113026);
  color: #fff;
}

.report-expectations-hero span,
.report-expectations-hero small,
.report-expectations-hero p {
  color: rgba(247, 238, 212, 0.78);
}

.report-expectations-hero span {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-expectations-hero strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 46px;
  line-height: 1;
}

.report-expectations-hero p,
.report-expectations-hero small {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.report-expectation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 150px minmax(280px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 20px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #cbd7d1;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,250,247,0.9));
}

.report-expectation-panel.positive { border-left-color: var(--green); }
.report-expectation-panel.neutral { border-left-color: var(--amber); }
.report-expectation-panel.negative { border-left-color: var(--red); }

.report-expectation-main span,
.report-expectation-main strong,
.report-expectation-main p {
  display: block;
}

.report-expectation-main > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-expectation-main strong {
  margin-top: 5px;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.report-expectation-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.report-expectation-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.report-expectation-flags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.report-expectation-score {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.18);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 10%, rgba(101, 199, 162, 0.26), transparent 48%), var(--card);
  text-align: center;
}

.report-expectation-score strong {
  color: var(--green);
  font-size: 30px;
  letter-spacing: -1px;
}

.report-expectation-score small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-expectation-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-expectation-reasons article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 13px;
  background: var(--card);
}

.report-expectation-reasons article.positive { border-left-color: var(--green); }
.report-expectation-reasons article.negative { border-left-color: var(--red); }

.report-expectation-reasons span,
.report-expectation-reasons strong,
.report-expectation-reasons small {
  display: block;
}

.report-expectation-reasons span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-expectation-reasons strong {
  margin-top: 4px;
  font-size: 12px;
}

.report-expectation-reasons small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.report-metric {
  min-height: 112px;
  padding: 17px;
  background: var(--card);
}

.report-metric span,
.report-metric strong,
.report-metric small {
  display: block;
}

.report-metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-metric strong {
  margin-top: 9px;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.report-metric small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.report-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 6px;
}

.report-why-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 14px;
  background: var(--surface-soft);
}

.report-why-grid > div.beat { border-left-color: var(--green-2, #1f8a6b); }
.report-why-grid > div.miss { border-left-color: var(--red, #bd5558); }

.report-why-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.report-why-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .report-why-grid { grid-template-columns: 1fr; }
}

.report-reading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 18px;
}

.report-reading-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 17px;
  background: var(--card);
}

.report-reading-grid article.positive {
  border-left-color: var(--green);
}

.report-reading-grid article.neutral {
  border-left-color: var(--amber);
}

.report-reading-grid article.negative {
  border-left-color: var(--red);
}

.report-reading-grid span,
.report-reading-grid strong {
  display: block;
}

.report-reading-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.report-reading-grid strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
}

.report-reading-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.report-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.report-highlights div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--surface-soft);
}

.report-highlights span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.report-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.model-weights {
  padding: 8px 20px 16px;
}

.model-note {
  display: grid;
  gap: 5px;
  margin: 0 20px 20px;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-soft);
}

.model-note strong {
  font-size: 11px;
}

.model-note span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.model-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.model-signal-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.model-signal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  background: var(--card);
  cursor: pointer;
  transition: background 150ms ease;
}

.model-signal-item:hover {
  background: var(--surface-soft);
}

.model-signal-item strong,
.model-signal-item small {
  display: block;
}

.model-signal-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.model-signal-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.risk-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.risk-card {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: var(--card);
  cursor: pointer;
}

.risk-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.risk-card > div:first-child strong,
.risk-card > div:first-child small {
  display: block;
}

.risk-card > div:first-child strong {
  font-size: 12px;
}

.risk-card > div:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.risk-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.risk-score strong {
  font-size: 24px;
  letter-spacing: -0.8px;
}

.risk-score span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-card.negative .risk-score {
  background: var(--red-soft);
  color: var(--red);
}

.risk-card.neutral .risk-score {
  background: var(--amber-soft);
  color: var(--amber);
}

.risk-card.positive .risk-score {
  background: var(--green-soft);
  color: var(--green);
}

.risk-card p {
  margin: 0;
  color: #596860;
  font-size: 10px;
  line-height: 1.5;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.report-coverage-panel {
  margin-bottom: 16px;
}

.report-coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-coverage-stats article {
  padding: 16px 18px;
  background: var(--card);
}

.report-coverage-stats strong,
.report-coverage-stats span,
.report-coverage-stats small {
  display: block;
}

.report-coverage-stats strong {
  color: var(--green);
  font-size: 22px;
  letter-spacing: -0.7px;
}

.report-coverage-stats span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-coverage-stats small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.report-coverage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px;
}

.report-coverage-list article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.report-coverage-list article.pending {
  border-color: #d8dcc6;
  background: #fffdf5;
}

.report-coverage-list article.estimated {
  border-color: #d9e3dd;
}

.report-coverage-list article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.report-coverage-list strong,
.report-coverage-list small,
.report-coverage-list p {
  display: block;
}

.report-coverage-list p {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 850;
}

.report-coverage-list small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.report-truth-coverage {
  margin-bottom: 16px;
  overflow: hidden;
}

.report-truth-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}

.report-truth-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(19, 111, 86, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(27, 116, 90, 0.12), transparent 32%),
    var(--surface-soft);
}

.report-truth-summary strong,
.report-truth-summary span,
.report-truth-summary small {
  display: block;
}

.report-truth-summary strong {
  color: var(--green);
  font-size: 24px;
  letter-spacing: -0.7px;
}

.report-truth-summary span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.report-truth-summary small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.report-truth-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 18px;
}

.report-truth-list article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd7d1;
  border-radius: 17px;
  background: var(--card);
}

.report-truth-list article.positive { border-left-color: var(--green); }
.report-truth-list article.neutral { border-left-color: var(--amber); }
.report-truth-list article.negative { border-left-color: var(--red); }

.report-truth-list article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.report-truth-list strong,
.report-truth-list small,
.report-truth-list p {
  display: block;
}

.report-truth-list strong {
  color: var(--ink);
  font-size: 12px;
}

.report-truth-list p {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.report-truth-list small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.report-main-card .report-countdown {
  margin-top: 4px;
}

.report-countdown.large .countdown-grid strong {
  font-size: 26px;
}

.integration-list {
  padding: 8px 20px 18px;
}

.integration-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.integration-row:last-child {
  border-bottom: 0;
}

.integration-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.integration-row.done > span {
  background: var(--green-soft);
  color: var(--green);
}

.integration-row strong,
.integration-row small {
  display: block;
}

.integration-row strong {
  font-size: 12px;
}

.integration-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.report-card-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.report-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.report-card:hover {
  border-color: #c8ded4;
  background: var(--card);
  box-shadow: var(--shadow);
}

.report-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.report-card-head strong,
.report-card-head small {
  display: block;
}

.report-card-head strong {
  font-size: 12px;
}

.report-card-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.mini-countdown {
  display: grid;
  grid-template-columns: repeat(3, 64px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.mini-countdown span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 11px;
  background: var(--card);
}

.mini-countdown b,
.mini-countdown small {
  display: block;
}

.mini-countdown b {
  font-size: 15px;
}

.mini-countdown small {
  margin-top: -5px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-countdown em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

.report-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.report-card-metrics span {
  padding: 10px;
  border-radius: 11px;
  background: var(--card);
}

.report-card-metrics b,
.report-card-metrics small {
  display: block;
}

.report-card-metrics b {
  font-size: 11px;
}

.report-card-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e2e9e5;
}

.report-card-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px;
  border-radius: 13px;
  background: var(--surface-soft);
}

.report-card-source small {
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.news-timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.news-timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  background: var(--card);
  cursor: pointer;
  transition: background 150ms ease;
}

.news-timeline-item:hover {
  background: var(--surface-soft);
}

.news-line-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.news-timeline-item h3 {
  margin: 8px 0 6px;
  font-size: 13px;
  line-height: 1.35;
}

.news-timeline-item p {
  margin: 0;
  color: #5b6961;
  font-size: 10px;
  line-height: 1.5;
}

.news-timeline-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.impact-chip {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
}

.impact-chip.positive {
  background: var(--green-soft);
  color: var(--green);
}

.impact-chip.negative {
  background: var(--red-soft);
  color: var(--red);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.next-steps-grid div {
  padding: 18px;
  background: var(--card);
}

.next-steps-grid strong,
.next-steps-grid small {
  display: block;
}

.next-steps-grid strong {
  font-size: 12px;
}

.next-steps-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.event-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

.event-date {
  display: grid;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.event-row strong,
.event-row small {
  display: block;
}

.event-row strong {
  font-size: 12px;
}

.event-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.allocation-grid {
  display: grid;
  grid-template-columns: 235px 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px;
}

.donut {
  position: relative;
  width: 190px;
  height: 190px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(#1b745a 0 23%, #4ca987 23% 40%, #8bcbb3 40% 54%, #d1a74b 54% 75%, #7a8f86 75% 91%, #bdc9c3 91% 100%);
}

.donut::after {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: var(--card);
  content: "";
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong,
.donut-center small {
  display: block;
}

.donut-center strong {
  font-size: 22px;
}

.donut-center small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.legend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.legend-item span:nth-child(2) {
  color: #57675f;
}

.legend-item strong {
  font-size: 11px;
}

.sector-exposure {
  padding: 0 24px 22px;
}

.sector-exposure h3 {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.progress-row {
  display: grid;
  gap: 8px;
  margin: 13px 0;
}

.progress-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.progress-row strong {
  font-size: 10px;
}

.progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-2);
}

.progress-track i.neutral {
  background: var(--amber);
}

.progress-track i.negative {
  background: var(--red);
}

.data-message {
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #cde8dc;
  border-radius: 14px;
  background: #effaf5;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.data-foundation-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.data-foundation-panel::before {
  position: absolute;
  top: -120px;
  right: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 16%, transparent), transparent 68%);
  pointer-events: none;
  content: "";
}

.data-foundation-panel > * {
  position: relative;
  z-index: 1;
}

.data-foundation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ghost-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.data-foundation-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 20px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--green) 14%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), var(--card));
}

.foundation-score {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, var(--card) 0 52%, transparent 54%),
    conic-gradient(var(--green-2) var(--score-angle, 252deg), #e5eee8 0);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px rgba(15, 35, 27, 0.08);
}

.foundation-score.positive { --score-angle: 302deg; }
.foundation-score.neutral { --score-angle: 223deg; }
.foundation-score.negative { --score-angle: 137deg; }

.foundation-score strong,
.foundation-score span,
.foundation-score small {
  grid-area: 1 / 1;
}

.foundation-score strong {
  margin-top: -18px;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.foundation-score span {
  margin: 9px 0 0 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.foundation-score small {
  margin-top: 52px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.foundation-score.neutral strong { color: var(--amber); }
.foundation-score.negative strong { color: var(--red); }

.data-foundation-hero h3 {
  margin: 2px 0 8px;
  font-size: 20px;
  letter-spacing: -0.55px;
}

.data-foundation-hero p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.data-foundation-hero small {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.data-refresh-error {
  margin: 0 20px 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 26%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--red) 8%, var(--card));
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.data-foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}

.data-foundation-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 12px 24px rgba(15, 35, 27, 0.04);
}

.data-foundation-card.live {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}

.data-foundation-card.delayed,
.data-foundation-card.mixed,
.data-foundation-card.proxy {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
}

.data-foundation-card.demo,
.data-foundation-card.missing {
  border-color: color-mix(in srgb, var(--red) 16%, var(--line));
}

.data-foundation-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.foundation-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -0.25px;
}

.data-foundation-card-head strong,
.data-foundation-card-head small {
  display: block;
}

.data-foundation-card-head strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.data-foundation-card-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.data-foundation-card > p {
  min-height: 48px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.data-foundation-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.data-foundation-meta span {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.data-foundation-meta small,
.data-foundation-meta b {
  display: block;
}

.data-foundation-meta small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.data-foundation-meta b {
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.data-foundation-cadence {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.data-contract-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.data-contract-strip div {
  padding: 13px;
  border: 1px dashed color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}

.data-contract-strip strong,
.data-contract-strip small {
  display: block;
}

.data-contract-strip strong {
  color: var(--green);
  font-size: 11px;
}

.data-contract-strip small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.feed-health-panel {
  margin-bottom: 16px;
}

.feed-health-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.feed-health-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.72), transparent 42%),
    var(--surface-soft);
}

.feed-health-summary article.positive {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  background-color: color-mix(in srgb, var(--green) 7%, var(--surface-soft));
}

.feed-health-summary article.neutral {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background-color: color-mix(in srgb, var(--amber) 8%, var(--surface-soft));
}

.feed-health-summary article.negative {
  border-color: color-mix(in srgb, var(--red) 22%, var(--line));
  background-color: color-mix(in srgb, var(--red) 6%, var(--surface-soft));
}

.feed-health-summary strong,
.feed-health-summary span,
.feed-health-summary small {
  display: block;
}

.feed-health-summary strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.feed-health-summary span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
}

.feed-health-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.feed-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feed-health-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--surface-soft) 82%, transparent));
  box-shadow: 0 12px 24px rgba(15, 35, 27, 0.04);
}

.feed-health-card.live,
.feed-health-card.delayed {
  border-left: 4px solid var(--green);
}

.feed-health-card.proxy,
.feed-health-card.mixed {
  border-left: 4px solid var(--amber);
}

.feed-health-card.demo,
.feed-health-card.missing {
  border-left: 4px solid var(--red);
}

.feed-health-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.feed-health-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.feed-health-head strong,
.feed-health-head small {
  display: block;
  overflow-wrap: anywhere;
}

.feed-health-head strong {
  font-size: 12px;
}

.feed-health-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.feed-health-card > p {
  min-height: 35px;
  margin: 13px 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.45;
}

.feed-health-impact,
.feed-health-next {
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.feed-health-next {
  margin-top: 8px;
  background: color-mix(in srgb, var(--green) 7%, var(--surface-soft));
}

.feed-health-impact strong,
.feed-health-impact small,
.feed-health-next strong,
.feed-health-next small {
  display: block;
}

.feed-health-impact strong,
.feed-health-next strong {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.feed-health-impact small,
.feed-health-next small {
  margin-top: 4px;
  color: var(--text);
  font-size: 9px;
  line-height: 1.45;
}

.api-preflight-panel {
  margin-bottom: 16px;
}

.api-preflight-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.api-preflight-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.api-preflight-summary article.positive {
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--surface-soft));
}

.api-preflight-summary article.neutral {
  border-color: color-mix(in srgb, var(--amber) 30%, var(--line));
  background: color-mix(in srgb, var(--amber) 9%, var(--surface-soft));
}

.api-preflight-summary article.negative {
  border-color: color-mix(in srgb, var(--red) 24%, var(--line));
  background: color-mix(in srgb, var(--red) 7%, var(--surface-soft));
}

.api-preflight-summary strong,
.api-preflight-summary span,
.api-preflight-summary small {
  display: block;
}

.api-preflight-summary strong {
  color: var(--green);
  font-size: 25px;
  line-height: 1;
}

.api-preflight-summary span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
}

.api-preflight-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.api-preflight-grid {
  display: grid;
  gap: 8px;
}

.api-preflight-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.9fr) 82px;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 15px;
  background: var(--card);
}

.api-preflight-row.positive {
  border-left-color: var(--green);
}

.api-preflight-row.negative {
  border-left-color: var(--red);
}

.api-preflight-row > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
}

.api-dot {
  grid-row: span 2;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 18%, transparent);
}

.api-preflight-row.positive .api-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}

.api-preflight-row.negative .api-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent);
}

.api-preflight-row strong,
.api-preflight-row b,
.api-preflight-row small,
.api-preflight-row em {
  display: block;
}

.api-preflight-row strong,
.api-preflight-row b {
  font-size: 11px;
}

.api-preflight-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-preflight-row em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.source-audit-panel {
  margin-bottom: 16px;
}

.source-audit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.source-audit-summary article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.source-audit-summary article.positive {
  border-color: rgba(46, 156, 118, 0.28);
  background: rgba(232, 247, 240, 0.78);
}

.source-audit-summary article.neutral {
  border-color: rgba(199, 148, 58, 0.24);
  background: rgba(255, 247, 225, 0.74);
}

.source-audit-summary article.negative {
  border-color: rgba(203, 88, 83, 0.22);
  background: rgba(255, 240, 238, 0.68);
}

.source-audit-summary strong,
.source-audit-summary span,
.source-audit-summary small {
  display: block;
}

.source-audit-summary strong {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.source-audit-summary span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 850;
}

.source-audit-summary small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-audit-grid {
  display: grid;
  gap: 8px;
}

.source-audit-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(112px, 0.6fr));
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.source-audit-row.live,
.source-audit-row.delayed {
  border-left: 4px solid var(--green);
}

.source-audit-row.proxy,
.source-audit-row.mixed {
  border-left: 4px solid #c7943a;
}

.source-audit-row.demo,
.source-audit-row.missing {
  border-left: 4px solid #cb5853;
}

.source-audit-row > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.source-audit-row .quality-badge {
  grid-row: span 2;
  width: fit-content;
}

.source-audit-row strong,
.source-audit-row b,
.source-audit-row small {
  display: block;
}

.source-audit-row strong {
  font-size: 11px;
}

.source-audit-row b {
  font-size: 11px;
}

.source-audit-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-blocker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.source-blocker-list article {
  padding: 13px;
  border: 1px dashed rgba(154, 174, 165, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.source-blocker-list span,
.source-blocker-list strong {
  display: block;
}

.source-blocker-list span {
  color: var(--amber);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-blocker-list strong {
  margin-top: 4px;
  font-size: 12px;
}

.source-blocker-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.data-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.data-quality-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.data-quality-card > div {
  display: grid;
  gap: 10px;
}

.data-quality-card strong {
  font-size: 13px;
}

.data-quality-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.data-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.upload-card,
.action-card {
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.upload-card:hover,
.action-card:hover {
  border-color: #bcd7cc;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.upload-card input {
  display: none;
}

.upload-card span,
.action-card span {
  color: var(--green-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.upload-card strong,
.action-card strong {
  font-size: 14px;
}

.upload-card small,
.action-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.action-card.danger span {
  color: var(--red);
}

.csv-example {
  margin: 0 20px 20px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.csv-example strong,
.csv-example code {
  display: block;
}

.csv-example strong {
  margin-bottom: 8px;
  font-size: 11px;
}

.csv-example code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.65;
}

.csv-example code + code {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e8e3;
}

.source-grid {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.source-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.source-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-card strong,
.source-card span,
.source-card p,
.source-card small {
  display: block;
}

.source-card strong {
  font-size: 12px;
}

.source-card span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.source-card p {
  margin: 8px 0 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}

.source-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.source-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.source-link:hover {
  color: var(--green-2);
  text-decoration: underline;
}

.source-link.compact {
  margin-top: 0;
  font-size: 9px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.source-link.inline {
  margin-top: 0;
  font-size: inherit;
  font-weight: 800;
}

.legal-rule-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.legal-rule-list div {
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.legal-rule-list span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.legal-rule-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hosting-note {
  margin: 0 20px 20px;
  padding: 14px;
  border: 1px solid #d9e8df;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hosting-note strong,
.hosting-note span,
.hosting-note small {
  display: block;
}

.hosting-note strong {
  color: var(--green);
}

.hosting-note span {
  font-weight: 850;
}

.hosting-note small {
  margin-top: 6px;
  color: var(--muted);
}

.readiness-list {
  padding: 8px 20px 18px;
}

.todo-list {
  padding: 8px 20px 18px;
}

.todo-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.todo-item:last-child {
  border-bottom: 0;
}

.todo-item > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.todo-item.done > span {
  background: var(--green-soft);
  color: var(--green);
}

.todo-item strong,
.todo-item small {
  display: block;
}

.todo-item strong {
  font-size: 12px;
}

.todo-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.transaction-type {
  display: inline-block;
  min-width: 60px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.transaction-type.sell {
  background: var(--red-soft);
  color: var(--red);
}

.transaction-type.dividend {
  background: var(--amber-soft);
  color: #94691e;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.text-button.danger {
  color: var(--red);
}

.dividend-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #294a3e;
  border-radius: 20px;
  background: #123128;
  color: #fff;
}

.dividend-hero::after {
  position: absolute;
  right: -80px;
  top: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 204, 160, 0.18), transparent 67%);
  content: "";
}

.dividend-hero p {
  margin: 0;
  color: #a4b9b1;
  font-size: 11px;
}

.dividend-hero h2 {
  margin: 10px 0 5px;
  font-size: 35px;
  letter-spacing: -1.5px;
}

.dividend-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.dividend-control-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 24px rgba(15, 35, 27, 0.04);
}

.dividend-control-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dividend-control-card strong,
.dividend-control-card p {
  display: block;
}

.dividend-control-card strong {
  font-size: 12px;
}

.dividend-control-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.mini-source-icon {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.hero-stat strong,
.hero-stat small {
  display: block;
}

.hero-stat strong {
  font-size: 16px;
}

.hero-stat small {
  margin-top: 5px;
  color: #8ea69d;
  font-size: 9px;
}

.bar-chart {
  display: flex;
  height: 245px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 13px;
  padding: 28px 22px 20px;
}

.bar-column {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bar-column strong {
  color: var(--muted);
  font-size: 9px;
}

.bar {
  width: min(42px, 72%);
  min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #43a981, #17684f);
}

.bar-column small {
  color: #8f9a94;
  font-size: 8px;
}

.alert-list {
  padding: 0 20px;
}

.alert-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.alert-row:last-child {
  border-bottom: 0;
}

.alert-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
}

.alert-copy strong,
.alert-copy small {
  display: block;
}

.alert-copy strong {
  font-size: 11px;
}

.alert-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 20px;
  background: #ccd6d0;
  cursor: pointer;
  transition: background 160ms ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  content: "";
  transition: transform 160ms ease;
}

.toggle.on {
  background: var(--green-2);
}

.toggle.on::after {
  transform: translateX(16px);
}

.alert-focus-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.alert-focus-card.positive {
  border-color: #c6e4d8;
  background: #effaf5;
}

.alert-focus-card.negative {
  border-color: #efd0d2;
  background: #fff3f3;
}

.alert-focus-card > div strong,
.alert-focus-card > div p,
.alert-focus-card > div small {
  display: block;
}

.alert-focus-card > div strong {
  font-size: 14px;
}

.alert-focus-card > div p {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.alert-focus-card > div small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.alert-focus-card .ghost-button {
  grid-column: 2;
  width: max-content;
}

.alert-event-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.alert-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  cursor: pointer;
  transition: background 150ms ease;
}

.alert-event:hover {
  background: var(--surface-soft);
}

.alert-event.high {
  box-shadow: inset 4px 0 0 var(--red);
}

.alert-event.medium {
  box-shadow: inset 4px 0 0 var(--amber);
}

.alert-event.low {
  box-shadow: inset 4px 0 0 var(--green-2);
}

.alert-event-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.alert-event-main strong,
.alert-event-main p,
.alert-event-main small {
  display: block;
}

.alert-event-main strong {
  font-size: 12px;
}

.alert-event-main p {
  margin: 6px 0 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.alert-event-main small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.alert-event-side {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
}

.priority-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.priority-chip.high {
  background: var(--red-soft);
  color: var(--red);
}

.priority-chip.medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.priority-chip.low {
  background: var(--green-soft);
  color: var(--green);
}

.alert-event-side small {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 25, 19, 0.48);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(5px);
  transition: 180ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 25px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(8, 31, 22, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: 180ms ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.modal-header h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.close-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

body.news-modal-open {
  overflow: hidden;
}

.news-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 20% 12%, rgba(94, 234, 212, 0.18), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(39, 174, 96, 0.18), transparent 26%),
    rgba(8, 23, 18, 0.68);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.news-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.news-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 245, 0.96)),
    var(--card);
  box-shadow: 0 34px 90px rgba(3, 20, 13, 0.34);
  transform: translateY(16px) scale(0.985);
  transition: transform 180ms ease;
}

.news-modal-backdrop.open .news-modal {
  transform: translateY(0) scale(1);
}

.news-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-modal-header h2 {
  max-width: 720px;
  margin: 7px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.news-modal-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.compact-icon {
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  border-radius: 11px;
  font-size: 17px;
}

.news-modal-counter {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.news-modal-content {
  margin-top: 20px;
}

.news-modal-content h3 {
  max-width: 860px;
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -1.1px;
}

.news-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-modal-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.news-modal-meta .badge,
.news-modal-meta .impact-chip {
  border: 0;
}

.news-modal-company {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.news-modal-company strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.news-modal-company small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.news-modal-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.news-modal-mini-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 248, 244, 0.68));
}

.news-modal-mini-card > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-modal-mini-card strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.news-modal-mini-card b {
  font-size: 17px;
  line-height: 1;
}

.news-modal-mini-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.news-modal-section {
  margin-top: 13px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.news-modal-section.source {
  border-color: rgba(7, 111, 83, 0.22);
  background: linear-gradient(180deg, rgba(225, 248, 240, 0.86), rgba(255, 255, 255, 0.72));
}

.news-modal-section.context {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.88), rgba(255, 255, 255, 0.74));
}

.news-modal-section.verdict {
  border-color: rgba(29, 111, 84, 0.22);
  background: linear-gradient(180deg, rgba(232, 249, 241, 0.94), rgba(255, 255, 255, 0.74));
}

.news-modal-section.legal {
  background: rgba(246, 249, 247, 0.86);
}

.news-modal-section > span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-modal-section p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.news-modal-section p + p {
  margin-top: 10px;
  color: var(--muted);
}

.news-modal-section small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.news-modal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.news-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 11px;
  background: #eff3f0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: block;
  padding: 9px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.segmented-control input:checked + span {
  background: var(--card);
  color: var(--green);
  box-shadow: 0 2px 7px rgba(18, 45, 34, 0.08);
}

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

.field {
  display: block;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: #64736b;
  font-size: 10px;
  font-weight: 700;
}

.full-width {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #dce4df;
  border-radius: 9px;
  outline: 0;
  background: var(--card);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: #68ab91;
  box-shadow: 0 0 0 3px rgba(45, 148, 110, 0.08);
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  padding-right: 48px;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  transform: translateY(-50%);
}

.form-hint {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.form-hint.error {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.demo-portfolio-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(209, 167, 75, 0.35);
  border-radius: 16px;
  background: rgba(209, 167, 75, 0.11);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* Watchlista — gwiazdka, filtr i pigułka */
.watch-star {
  border: 0;
  background: none;
  cursor: pointer;
  margin-right: 4px;
  padding: 2px;
  font-size: 16px;
  line-height: 1;
  color: #cdd6d0;
  transition: color 120ms ease, transform 120ms ease;
}

.watch-star:hover {
  color: var(--amber);
  transform: scale(1.18);
}

.watch-star.on {
  color: var(--amber);
}

.watch-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.watch-filter:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.watch-filter.active {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}

.watch-pill {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.watch-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.watch-pill.on {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.session-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.session-badge.open {
  background: var(--green-soft);
  color: var(--green);
}

.session-badge.open i {
  background: var(--green-2);
}

.session-badge.closed {
  background: var(--red-soft);
  color: var(--red);
}

.session-badge.closed i {
  background: var(--red);
}

/* Krypto: ukryj sekcje raportowe spółek */
.content.is-crypto .stock-only {
  display: none;
}

/* Fear & Greed Index */
.fng-gauge {
  padding: 6px 4px 2px;
}

.fng-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b4484b 0%, #d1a74b 50%, #1f8a6b 100%);
}

.fng-marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.fng-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.fng-value strong {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.fng-value small {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.fng-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Porównanie do oczekiwań w raporcie */
.report-legend {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.surprise-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: help;
}

.surprise-tag.beat {
  background: var(--green-soft);
  color: var(--green);
}

.surprise-tag.miss {
  background: var(--red-soft);
  color: var(--red);
}

.surprise-tag[data-tip] {
  position: relative;
  cursor: pointer;
}
/* Tooltip surprise-tag obsługuje teraz silnik JS (.evra-tip) — pinowanie na klik, bez migotania. */

.report-metric {
  position: relative;
}

.report-metric.beat {
  box-shadow: inset 3px 0 0 var(--green-2);
}

.report-metric.miss {
  box-shadow: inset 3px 0 0 var(--red);
}

.report-metric .surprise-tag {
  margin: 4px 0 2px;
}

.crypto-education {
  margin-top: 16px;
}

.crypto-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.crypto-flow-card {
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.crypto-flow-card strong,
.crypto-flow-card p {
  display: block;
}

.crypto-flow-card strong {
  margin-bottom: 9px;
  font-size: 13px;
}

.crypto-flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.crypto-flow-card.positive {
  border-color: #cfe8dd;
  background: linear-gradient(145deg, #f2fbf7, #fff);
}

.crypto-flow-card.positive strong {
  color: var(--green);
}

.crypto-flow-card.danger {
  border-color: #efd3d4;
  background: linear-gradient(145deg, #fff5f5, #fff);
}

.crypto-flow-card.danger strong {
  color: var(--red);
}

.crypto-flow-card.warning {
  border-color: #eadcb6;
  background: linear-gradient(145deg, #fff9eb, #fff);
}

.crypto-flow-card.warning strong {
  color: #9b7324;
}

.crypto-cheat-table {
  padding: 0 20px 20px;
}

.crypto-cheat-table table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.crypto-news-panel {
  margin-top: 16px;
}

.crypto-sentiment-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.crypto-sentiment-strip div {
  padding: 16px 18px;
  background: var(--card);
}

.crypto-sentiment-strip strong,
.crypto-sentiment-strip small {
  display: block;
}

.crypto-sentiment-strip strong {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.6px;
}

.crypto-sentiment-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.crypto-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 6px;
}

.crypto-source-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f8fbfa);
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.crypto-source-card:hover {
  border-color: #c8ded5;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.crypto-source-card strong {
  color: var(--green);
  font-size: 13px;
}

.crypto-source-card span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.crypto-source-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.crypto-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px 18px;
}

.crypto-news-item {
  min-height: 190px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 3px 0 0 #d7dedb;
}

.crypto-news-item.positive {
  box-shadow: inset 3px 0 0 var(--green-2);
}

.crypto-news-item.negative {
  box-shadow: inset 3px 0 0 var(--red);
}

.crypto-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-2);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.crypto-news-head small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.crypto-news-item h3 {
  margin: 13px 0 8px;
  font-size: 13px;
  line-height: 1.42;
}

.crypto-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.metric-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  color: #aab6af;
  cursor: help;
  vertical-align: middle;
  transition: color 120ms ease, transform 120ms ease;
}

.metric-help svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.metric-help:hover,
.metric-help:focus {
  color: var(--green-2);
  transform: scale(1.12);
  outline: none;
}

/* Pływający tooltip (pozycjonowany JS-em, klamrowany do okna — nie ucina się) */
.evra-tip {
  position: fixed;
  z-index: 200;
  max-width: 280px;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 10px 30px rgba(16, 40, 31, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.evra-tip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover-podświetlenie klikalnych elementów w kolorze wybranego motywu */
.table-row-clickable,
.news-item,
.event-row,
.signal-row,
.model-signal-item,
.news-timeline-item,
.report-card,
.risk-card,
.alert-event {
  transition: background 140ms ease, box-shadow 140ms ease;
}

.table-row-clickable:hover,
.news-item:hover,
.event-row:hover,
.signal-row:hover,
.model-signal-item:hover,
.news-timeline-item:hover,
.report-card:hover,
.risk-card:hover,
.alert-event:hover {
  background: var(--green-soft);
  cursor: pointer;
}

/* Animacja logo */
.session-hours {
  flex-basis: 100%;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.session-hours.warn {
  color: var(--amber);
}

.brand-tagline {
  margin: -18px 0 18px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.brand-mark {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-mark svg path {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: brand-draw 1.5s ease 0.2s forwards;
}

@keyframes brand-draw {
  to { stroke-dashoffset: 0; }
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 0 18px rgba(90, 205, 160, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) .brand-mark svg path { animation: none; stroke-dashoffset: 0; }
}

/* --- Polish / animacje --- */
/* (usunięto fade-in całej treści — migał przy każdym odświeżeniu; zostaje tylko animacja zmiany ceny) */

.stat-card,
.panel {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(16, 40, 31, 0.1);
}

.nav-item {
  transition: background 140ms ease, color 140ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* --- Selektor motywów (Ustawienia) --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease;
}

.theme-swatch:hover {
  transform: translateY(-2px);
}

.theme-swatch.active {
  border-color: var(--green-2);
}

.theme-swatch .swatch-dots {
  display: flex;
  gap: 4px;
}

.theme-swatch .swatch-dots i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

.theme-swatch strong {
  font-size: 13px;
}

.theme-swatch small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.motion-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  margin-top: 14px;
}

.motion-preview span {
  display: block;
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--brand-accent));
  opacity: 0.58;
  transform-origin: left center;
  animation: motion-preview-pulse 1.25s ease-in-out infinite;
}

.motion-preview span:nth-child(2) {
  animation-delay: 120ms;
}

.motion-preview span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes motion-preview-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Moduł podatkowy */
.tax-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.tax-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-2);
}

.tax-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tax-summary div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tax-summary span {
  color: var(--muted);
  font-size: 11px;
}

.tax-summary strong {
  font-size: 16px;
}

.tax-note {
  color: var(--amber);
  font-size: 10px;
}

.tax-disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #7a5512;
  font-size: 11px;
  line-height: 1.5;
}

/* Porównanie z indeksami */
.bench-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}

.bench-add-row .filter-select {
  min-width: 220px;
}

.bench-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bench-empty {
  color: var(--muted);
  font-size: 11px;
}

.bench-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.bench-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.bench-chip button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.bench-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 12px;
}

.bond-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bond-add-row .input-suffix {
  max-width: 160px;
}

.bond-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.bond-news-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.bond-news-item:last-child {
  border-bottom: 0;
}

.bond-news-item a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.bond-news-item a:hover {
  color: var(--brand-accent, var(--accent));
  text-decoration: underline;
}

.bond-news-meta {
  color: var(--muted);
  font-size: 11px;
}

.analyst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.analyst-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.analyst-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.analyst-grid strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

@media (max-width: 700px) {
  .analyst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.rolling-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rolling-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.rolling-chip strong {
  font-size: 12px;
}

.bench-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.bench-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--green-2);
}

.bench-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}

.bench-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.bench-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.bench-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.bench-whatif {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bench-whatif-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.bench-whatif-card.own {
  border-color: var(--green-2);
  background: var(--green-soft);
}

.bench-whatif-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.bench-whatif-card strong {
  font-size: 22px;
}

.bench-whatif-card small {
  color: var(--muted);
  font-size: 11px;
}

/* Spadające karteczki przy timerze raportu (jak na stadionie) */
.report-countdown {
  position: relative;
  overflow: hidden;
}

.falling-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.falling-cards span {
  position: absolute;
  top: -28px;
  font-size: 17px;
  animation: evra-fall 3.4s linear infinite;
}

.report-countdown > :not(.falling-cards) {
  position: relative;
  z-index: 1;
}

@keyframes evra-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  12% { opacity: 0.95; }
  100% { transform: translateY(260px) rotate(240deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) .falling-cards { display: none; }
}

/* Animacja zmiany ceny live (góra=zielony, dół=czerwony) */
@keyframes tick-flash-up {
  0% { background: rgba(31, 138, 107, 0.22); }
  100% { background: transparent; }
}

@keyframes tick-flash-down {
  0% { background: rgba(180, 72, 75, 0.22); }
  100% { background: transparent; }
}

@keyframes tick-slide-up {
  from { transform: translateY(9px); opacity: 0.35; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes tick-slide-down {
  from { transform: translateY(-9px); opacity: 0.35; }
  to { transform: translateY(0); opacity: 1; }
}

.tick-up { animation: tick-flash-up 1.1s ease; border-radius: 8px; }
.tick-down { animation: tick-flash-down 1.1s ease; border-radius: 8px; }

.tick-up strong { display: inline-block; animation: tick-slide-up 0.5s ease; color: var(--green-2); }
.tick-down strong { display: inline-block; animation: tick-slide-down 0.5s ease; color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) .tick-up,
  :root:not([data-motion="on"]) .tick-down,
  :root:not([data-motion="on"]) .tick-up strong,
  :root:not([data-motion="on"]) .tick-down strong { animation: none; }
}

:root[data-motion="off"] {
  scroll-behavior: auto;
}

:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

:root[data-motion="off"] .content.view-leave,
:root[data-motion="off"] .content.view-enter {
  opacity: 1;
  transform: none;
  filter: none;
}

:root[data-motion="off"] .view-loader {
  display: none;
}

/* Logo firm/krypto na tle inicjałów */
.ticker-mark {
  position: relative;
  overflow: hidden;
}

.ticker-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: var(--card);
  border-radius: inherit;
}

/* Animacja klikania (press) */
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.nav-item:active,
.watch-pill:active,
.watch-filter:active,
.theme-swatch:active,
.icon-button:active,
.market-state:active,
.watch-star:active {
  transform: scale(0.95);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-width: 290px;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid #d6e7df;
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(12, 41, 29, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 11px;
}

.toast small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.empty-state {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.market-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.market-hero {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #285345;
  border-radius: 20px;
  background: linear-gradient(130deg, #102d24, #174638);
  color: #fff;
  box-shadow: 0 18px 45px rgba(16, 43, 34, 0.15);
}

.market-hero.closed {
  border-color: #5b3537;
  background: linear-gradient(130deg, #321f20, #4b292b);
}

.market-hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 211, 164, 0.18), transparent 65%);
  content: "";
}

.market-hero.closed::after {
  background: radial-gradient(circle, rgba(235, 118, 121, 0.14), transparent 65%);
}

.live-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9ddd5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d3a5;
  box-shadow: 0 0 0 5px rgba(86, 211, 165, 0.12);
}

.closed .status-dot,
.status-dot.closed {
  background: #ef777a;
  box-shadow: 0 0 0 5px rgba(239, 119, 122, 0.12);
}

.market-hero h2 {
  position: relative;
  z-index: 1;
  margin: 22px 0 4px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1.6px;
}

.market-clock {
  position: relative;
  z-index: 1;
  color: #a9c0b7;
  font-size: 11px;
}

.market-next {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #dcebe5;
  font-size: 11px;
}

.market-next span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.session-card {
  padding: 22px;
}

.session-card h2 {
  margin: 0;
  font-size: 15px;
}

.session-card > p {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 10px;
}

.phase-timeline {
  display: grid;
  gap: 8px;
}

.phase-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.phase-item.active {
  border-color: #bcdccc;
  background: #edf8f3;
}

.phase-time {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.phase-copy strong,
.phase-copy small {
  display: block;
}

.phase-copy strong {
  font-size: 10px;
}

.phase-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.phase-state {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7d0cb;
}

.phase-item.active .phase-state {
  background: var(--green-2);
  box-shadow: 0 0 0 4px rgba(31, 138, 107, 0.1);
}

.market-index-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.index-card > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.index-card .card-logo {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}

.index-card strong,
.index-card small {
  display: block;
}

.index-card strong {
  font-size: 12px;
}

.index-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.index-card > span {
  text-align: right;
}

.index-card > span strong {
  font-size: 14px;
}

.market-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.activity-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.activity-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--card);
  cursor: pointer;
  transition: background 140ms ease;
}

.activity-row:hover {
  background: var(--surface-soft);
}

.activity-rank {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}

.ticker-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 7px;
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row div strong {
  font-size: 11px;
}

.activity-row div small {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row > span:last-child {
  text-align: right;
}

.activity-row > span:last-child strong {
  font-size: 11px;
}

.activity-row > span:last-child small {
  color: var(--muted);
  font-size: 8px;
}

.full-chart-wrap {
  min-height: 305px;
  padding: 6px 18px 13px;
}

.full-chart-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 3px 8px;
}

.full-chart-meta strong {
  font-size: 24px;
  letter-spacing: -0.8px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend b {
  color: #46564e;
  font-weight: 750;
}

.full-chart-svg {
  display: block;
  width: 100%;
  height: 255px;
  overflow: visible;
}

.candlestick-svg .candle {
  shape-rendering: crispEdges;
}

.candlestick-svg path {
  pointer-events: none;
}

.chart-y-label,
.chart-x-label {
  fill: #95a19a;
  font-size: 9px;
}

/* Interaktywny kursor wykresu (crosshair) */
.full-chart-svg,
.bench-chart-svg {
  cursor: crosshair;
}

.chart-cursor {
  pointer-events: none;
}

.chart-cursor .cursor-vline {
  stroke: var(--muted, #95a19a);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.7;
  vector-effect: non-scaling-stroke;
}

.chart-cursor .cursor-dot {
  fill: #fff;
  stroke: var(--green, #1d7b5e);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-cursor-tip {
  position: fixed;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(8, 22, 16, 0.28);
  pointer-events: none;
}

.chart-cursor-tip.show {
  display: flex;
}

.chart-cursor-tip b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.chart-cursor-tip span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-cursor-tip span.up { color: var(--green-2, #1f8a6b); }
.chart-cursor-tip span.down { color: var(--red, #bd5558); }

.chart-cursor-tip i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* Zaznaczony zakres na wykresie (drag) */
.chart-selection {
  pointer-events: none;
}

.chart-selection .selection-rect {
  fill: rgba(47, 128, 237, 0.16);
  stroke: rgba(47, 128, 237, 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-selection .selection-edge {
  stroke: rgba(47, 128, 237, 0.85);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.full-chart-wrap,
.bench-chart-wrap {
  position: relative;
}

.chart-range-label {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 128, 237, 0.45);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 6px 16px rgba(8, 22, 16, 0.22);
  pointer-events: none;
  white-space: nowrap;
}

.chart-range-label small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.chart-range-label strong {
  font-size: 13px;
  font-weight: 800;
}

.chart-range-label.up strong { color: var(--green-2, #1f8a6b); }
.chart-range-label.down strong { color: var(--red, #bd5558); }

.volume-bar {
  fill: #cfe2da;
}

.company-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.55fr);
  gap: 16px;
  margin-bottom: 16px;
}

.financial-bars {
  display: flex;
  height: 225px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  padding: 18px 16px 14px;
}

.financial-column {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.financial-column strong {
  font-size: 8px;
}

.financial-bar {
  width: min(44px, 78%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #65c7a2, #1c785b);
}

.financial-bar.profit {
  background: linear-gradient(180deg, #84b9ff, #2f80ed);
}

.financial-column small {
  color: var(--muted);
  font-size: 8px;
}

.calendar-source {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.calendar-source a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.holiday-name {
  color: var(--muted);
  font-size: 9px;
}

.news-panel {
  margin-top: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.news-card {
  min-height: 155px;
  padding: 18px;
  background: var(--card);
  cursor: pointer;
  transition: background 140ms ease;
}

.news-card:hover {
  background: var(--surface-soft);
}

.news-expandable {
  cursor: pointer;
}

.news-expandable.expanded {
  background: linear-gradient(180deg, var(--card), var(--surface-soft));
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-source {
  color: var(--green-2);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.source-flag {
  display: inline-flex;
  margin-right: 5px;
  filter: saturate(1.1);
}

.news-time {
  color: var(--muted);
  font-size: 8px;
}

.news-card h3 {
  margin: 15px 0 8px;
  font-size: 12px;
  line-height: 1.45;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card.expanded > p,
.news-timeline-item.expanded > div > p,
.rich-news-item.expanded .company-copy > p {
  display: block;
  -webkit-line-clamp: unset;
}

.news-expanded {
  display: none;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.68);
}

.news-expandable.expanded .news-expanded {
  display: block;
}

.news-expanded strong,
.news-expanded p {
  display: block;
}

.news-expanded strong {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-expanded p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
}

.rich-news-item .news-expanded p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.news-read-more {
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-label {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f4f1e8;
  color: #987432;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.4px;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .dashboard-lower,
  .landing-hero,
  .landing-split,
  .landing-product-preview,
  .company-detail-grid,
  .analyst-brief,
  .model-signal-grid,
  .market-overview,
  .market-activity-grid,
  .company-chart-grid,
  .report-data-cockpit,
  .report-robot-grid,
  .report-robot-tables,
  .report-v2-grid,
  .report-expectations-grid,
  .report-queue-overview,
  .reports-layout {
    grid-template-columns: 1fr;
  }

  .market-index-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .report-robot-stat-grid,
  .report-robot-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-overview-strip,
  .catalog-stat-grid,
  .report-metrics-grid,
  .risk-map,
  .crypto-flow-grid,
  .crypto-source-grid,
  .crypto-news-list,
  .business-profile-layout,
  .data-passport,
  .data-gap-grid,
  .data-foundation-grid,
  .data-contract-strip,
  .data-quality-grid,
  .api-preflight-summary,
  .score-band-grid,
  .score-formula-strip,
  .score-audit-grid,
  .report-reading-grid,
  .expectation-import-stats,
  .expectation-worklist-grid,
  .feed-health-summary,
  .feed-health-grid,
  .report-parser-grid,
  .report-source-strip,
  .financial-data-passport,
  .report-quality-grid,
  .report-compare-grid,
  .report-sanity-list,
  .report-truth-grid,
  .report-truth-summary,
  .report-truth-list,
  .dividend-control-grid,
  .source-audit-summary,
  .source-blocker-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-expectation-panel {
    grid-template-columns: 1fr;
  }

  .source-audit-row {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, 0.5fr));
  }

  .index-overview-strip.compact {
    display: block;
  }

  .index-group-grid {
    grid-template-columns: 1fr;
  }

  .catalog-radar-head,
  .catalog-hot-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-market-chips,
  .catalog-hot-list {
    justify-content: flex-start;
  }

  .report-highlights {
    grid-template-columns: 1fr;
  }

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

  .landing-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-audience-grid,
  .landing-data-grid,
  .landing-trust-grid,
  .landing-faq-list,
  .landing-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .onboarding-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-visual {
    min-height: 390px;
  }

  .landing-terminal-preview {
    transform: none;
  }

  .next-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-rule-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .signals-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .financial-results {
    grid-template-columns: 1fr;
  }

  .analyst-actions-card div {
    grid-template-columns: 1fr;
  }

  .signal-row:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 78px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .brand > span:last-child,
  .nav-item span:not(.nav-count),
  .demo-note,
  .profile-copy,
  .profile-button > span:last-child {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .nav-count {
    position: absolute;
    margin: -20px 0 0 22px;
  }

  .profile-button {
    justify-content: center;
  }

  .main-area {
    margin-left: 78px;
  }

  .view-loader {
    left: calc(78px + (100vw - 78px) / 2);
  }

  .market-state {
    display: none;
  }

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

  .landing-hero {
    min-height: auto;
    padding: 30px;
  }

  .landing-hero h1 {
    letter-spacing: -2.2px;
  }

  .landing-glass-card.main {
    right: 18px;
    left: 18px;
  }

  .landing-glass-card.floating.status {
    right: 24px;
  }

  .landing-test-banner {
    grid-template-columns: 1fr;
  }

  .onboarding-head {
    align-items: flex-start;
  }

  .public-nav {
    grid-template-columns: 1fr auto;
  }

  .public-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .news-modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .news-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 22px;
  }

  .news-modal-header {
    flex-direction: column;
    gap: 12px;
  }

  .news-modal-controls {
    width: 100%;
    justify-content: space-between;
  }

  .news-modal-brief-grid {
    grid-template-columns: 1fr;
  }

  .news-modal-mini-card {
    min-height: auto;
  }

  .news-modal-content h3 {
    font-size: 22px;
  }

  .news-modal-section p {
    font-size: 13px;
  }

  .news-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-v2-form-grid {
    grid-template-columns: 1fr;
  }

  .report-v2-grid,
  .report-robot-grid,
  .report-robot-tables,
  .report-expectations-grid,
  .report-v2-recent {
    padding-right: 14px;
    padding-left: 14px;
  }

  .report-robot-controls,
  .report-robot-stages,
  .report-queue-form,
  .report-queue-list,
  .report-queue-overview {
    margin-right: 14px;
    margin-left: 14px;
    padding-right: 0;
    padding-left: 0;
  }

  .report-queue-pills {
    grid-template-columns: 1fr;
  }

  .report-robot-controls,
  .report-robot-stat-grid,
  .report-robot-stages {
    grid-template-columns: 1fr;
  }

  .report-robot-controls {
    padding: 14px;
  }

  .report-queue-item,
  .report-queue-main,
  .report-queue-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-queue-actions {
    justify-content: flex-start;
  }

  .sidebar {
    width: 244px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .brand > span:last-child,
  .nav-item span:not(.nav-count),
  .demo-note,
  .profile-copy,
  .profile-button > span:last-child {
    display: block;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .nav-count {
    position: static;
    margin: 0;
  }

  .main-area {
    margin-left: 0;
  }

  .view-loader {
    top: 76px;
    left: 50%;
  }

  .loader-card {
    min-width: min(280px, calc(100vw - 28px));
  }

  .topbar {
    height: 64px;
    padding: 0 14px;
  }

  .mobile-menu {
    display: block;
  }

  .global-search {
    width: auto;
    flex: 1;
  }

  .global-search kbd,
  .topbar-actions .icon-button,
  .feedback-chip,
  .topbar-actions .primary-button span + span {
    display: none;
  }

  .topbar-actions .primary-button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions .primary-button > span {
    font-size: 18px;
  }

  .content {
    padding: 23px 14px 40px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

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

  .catalog-groups-head {
    align-items: stretch;
    flex-direction: column;
  }

  .company-data-gaps-head {
    align-items: stretch;
    flex-direction: column;
  }

  .score-audit-head {
    align-items: stretch;
    flex-direction: column;
  }

  .score-adjustment-list article {
    grid-template-columns: 1fr;
  }

  .catalog-group-grid {
    grid-template-columns: 1fr;
  }

  .report-automation-grid {
    grid-template-columns: 1fr;
  }

  .report-automation-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .market-index-strip,
  .catalog-stat-grid,
  .landing-feature-grid,
  .landing-audience-grid,
  .landing-data-grid,
  .landing-trust-grid,
  .landing-faq-list,
  .landing-roadmap-grid,
  .landing-terminal-grid,
  .business-profile-layout,
  .landing-flow,
  .onboarding-step-grid,
  .news-grid,
  .index-overview-strip,
  .report-metrics-grid,
  .risk-map,
  .crypto-flow-grid,
  .crypto-source-grid,
  .crypto-news-list,
  .data-passport,
  .data-gap-grid,
  .data-foundation-grid,
  .data-contract-strip,
  .data-quality-grid,
  .api-preflight-summary,
  .score-band-grid,
  .score-formula-strip,
  .score-audit-grid,
  .report-reading-grid,
  .feed-health-summary,
  .feed-health-grid,
  .report-parser-grid,
  .report-source-strip,
  .financial-data-passport,
  .report-compare-grid,
  .report-truth-grid,
  .report-truth-summary,
  .report-truth-list,
  .dividend-control-grid,
  .source-audit-summary,
  .source-blocker-list {
    grid-template-columns: 1fr;
  }

  .source-audit-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .api-preflight-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .api-preflight-row small {
    white-space: normal;
  }

  .api-preflight-row em {
    text-align: left;
  }

  .source-audit-row > span {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
    align-items: center;
  }

  .data-foundation-actions,
  .data-foundation-hero {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .data-foundation-actions {
    align-items: stretch;
  }

  .data-foundation-actions .ghost-button {
    justify-content: center;
  }

  .data-foundation-card-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .data-foundation-card-head .quality-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .data-foundation-hero,
  .data-refresh-error {
    margin-right: 14px;
    margin-left: 14px;
  }

  .data-foundation-grid,
  .data-contract-strip {
    padding-right: 14px;
    padding-left: 14px;
  }

  .business-profile-lead {
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .catalog-radar-panel {
    padding: 11px;
    border-radius: 16px;
  }

  .catalog-market-chips button,
  .catalog-hot-list button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .crypto-sentiment-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-ticker::before,
  .landing-ticker::after {
    width: 36px;
  }

  .public-nav {
    position: relative;
    top: 0;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .public-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-nav-links {
    justify-content: flex-start;
  }

  .public-brand small {
    display: none;
  }

  .landing-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .landing-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
    letter-spacing: -1.75px;
  }

  .landing-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-cta-row .primary-button,
  .landing-cta-row .ghost-button,
  .landing-test-banner .primary-button {
    width: 100%;
    justify-content: center;
  }

  .landing-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-visual {
    min-height: 520px;
  }

  .landing-glass-card.main,
  .landing-glass-card.floating.score,
  .landing-glass-card.floating.status {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 12px;
  }

  .landing-glass-card.main {
    animation: none;
  }

  .landing-wave {
    height: 170px;
  }

  .landing-wave .chart-svg {
    height: 150px;
  }

  .landing-hot-row {
    grid-template-columns: 24px auto 1fr;
  }

  .landing-hot-row > b {
    grid-column: 3;
  }

  .landing-feature-card {
    min-height: 0;
  }

  .landing-product-preview {
    padding: 20px;
    border-radius: 24px;
  }

  .landing-preview-copy h2 {
    letter-spacing: -1.45px;
  }

  .landing-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-preview-actions .primary-button,
  .landing-preview-actions .ghost-button {
    width: 100%;
  }

  .landing-terminal-chart {
    min-height: 250px;
  }

  .landing-terminal-chart .chart-svg {
    height: 170px;
  }

  .landing-terminal-feed div {
    grid-template-columns: 1fr;
  }

  .landing-terminal-feed span {
    white-space: normal;
  }

  .landing-trust-card {
    min-height: 0;
  }

  .landing-feedback-strip {
    grid-template-columns: 1fr;
  }

  .landing-feedback-strip .primary-button {
    width: 100%;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer > div:last-child {
    justify-content: flex-start;
  }

  .landing-flow::before {
    display: none;
  }

  .onboarding-panel {
    padding: 17px;
  }

  .onboarding-head {
    flex-direction: column;
  }

  .onboarding-progress {
    width: 92px;
    height: 92px;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-actions .primary-button,
  .onboarding-actions .secondary-button,
  .onboarding-actions .ghost-button {
    width: 100%;
  }

  .next-steps-grid {
    grid-template-columns: 1fr;
  }

  .legal-rule-list {
    grid-template-columns: 1fr;
  }

  .mini-countdown {
    grid-template-columns: repeat(3, 1fr);
  }

  .mini-countdown em {
    grid-column: 1 / -1;
  }

  .report-card-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .alert-event {
    grid-template-columns: 1fr;
  }

  .alert-event-side {
    justify-items: start;
  }

  .alert-focus-card {
    grid-template-columns: 1fr;
  }

  .alert-focus-card .ghost-button {
    grid-column: auto;
  }

  .market-hero {
    min-height: 220px;
    padding: 22px;
  }

  .session-card {
    padding: 17px;
  }

  .phase-item {
    grid-template-columns: 66px 1fr auto;
  }

  .full-chart-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-legend {
    flex-wrap: wrap;
  }

  .full-chart-wrap {
    overflow-x: auto;
  }

  .full-chart-svg {
    min-width: 670px;
  }

  .signals-list {
    display: block;
  }

  .signal-row:nth-child(odd) {
    border-right: 0;
  }

  .filters-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .local-search {
    min-width: 0;
  }

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

  .analyst-verdict-card,
  .analyst-score-card,
  .analyst-list-card,
  .analyst-actions-card {
    padding: 14px;
  }

  .analyst-score-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .analyst-ring {
    width: 92px;
    height: 92px;
  }

  .score-gauge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 94px;
    height: 94px;
  }

  .score-gauge::before {
    width: 78px;
    height: 78px;
  }

  .score-gauge strong {
    font-size: 23px;
  }

  .score-subnote {
    right: -6px;
    bottom: -28px;
    width: 132px;
    font-size: 7px;
  }

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

  .legend-list {
    grid-template-columns: 1fr;
  }

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

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

  .full-width {
    grid-column: auto;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Flagi rynków (SVG — działają na każdym systemie, nie tylko macOS) */
.flag {
  display: inline-block;
  width: 18px;
  height: 12.6px;
  border-radius: 2px;
  vertical-align: -2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
}

.market-chip .flag,
.badge .flag {
  vertical-align: -1px;
}

.market-mini-logo {
  overflow: visible;
}

.market-mini-logo .flag {
  width: 22px;
  height: 15.4px;
}

/* --- Optymalizacja mobilna tabeli spółek (esencja zamiast 10 kolumn) --- */
@media (max-width: 700px) {
  .financial-chart-head,
  .report-quality-head,
  .report-compare-head,
  .report-compare-actions,
  .expectation-prefill-banner,
  .expectation-import-preview-head,
  .expectation-import-actions,
  .expectation-worklist-head,
  .expectation-worklist-actions,
  .report-truth-main {
    align-items: stretch;
    flex-direction: column;
  }

  .expectation-worklist-actions {
    min-width: 0;
  }

  .report-quality-grid,
  .report-compare-grid,
  .expectation-import-stats,
  .expectation-worklist-grid,
  .report-truth-grid,
  .report-truth-summary,
  .report-truth-list,
  .report-expectation-reasons {
    grid-template-columns: 1fr;
  }

  .company-table th:nth-child(2), .company-table td:nth-child(2),
  .company-table th:nth-child(5), .company-table td:nth-child(5),
  .company-table th:nth-child(6), .company-table td:nth-child(6),
  .company-table th:nth-child(7), .company-table td:nth-child(7),
  .company-table th:nth-child(9), .company-table td:nth-child(9),
  .company-table th:nth-child(10), .company-table td:nth-child(10) {
    display: none;
  }

  .company-table td,
  .company-table th {
    padding: 11px 8px;
    font-size: 11px;
  }

  .company-table .table-company small {
    display: none;
  }

  .company-table .company-copy strong {
    font-size: 12px;
  }

  /* Szerokie tabele na mobile: pokazujemy tylko esencję, reszta poza ekranem */
  .tx-table th:nth-child(4), .tx-table td:nth-child(4),
  .tx-table th:nth-child(5), .tx-table td:nth-child(5),
  .tx-table th:nth-child(6), .tx-table td:nth-child(6) {
    display: none;
  }

  .div-table th:nth-child(4), .div-table td:nth-child(4),
  .div-table th:nth-child(5), .div-table td:nth-child(5),
  .div-table th:nth-child(6), .div-table td:nth-child(6) {
    display: none;
  }

  .tax-table th:nth-child(2), .tax-table td:nth-child(2),
  .tax-table th:nth-child(3), .tax-table td:nth-child(3),
  .tax-table th:nth-child(4), .tax-table td:nth-child(4) {
    display: none;
  }

  .bond-offer-table th:nth-child(4), .bond-offer-table td:nth-child(4) {
    display: none;
  }

  .tx-table td, .tx-table th,
  .div-table td, .div-table th,
  .tax-table td, .tax-table th,
  .bond-offer-table td, .bond-offer-table th {
    padding: 11px 10px;
    font-size: 11px;
  }
}

/* --- Konto: modal auth (login / rejestracja / kod / reset) --- */
.auth-modal [data-auth-body] { margin-top: 4px; }
.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-code-input {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 12px;
  padding-left: 12px;
}
.auth-modal .form-hint.error { color: #e2574c; }
