:root {
  --bg: #0b1018;
  --panel: #111927;
  --panel-2: #192336;
  --stroke: rgba(255,255,255,0.075);
  --stroke-strong: rgba(255,255,255,0.14);
  --text: #f5f7fb;
  --muted: #94a3b8;
  --accent: #d58b31;
  --danger: #ef4444;
  --warn: #f59e0b;
  --low: #eab308;
  --success: #10b981;
  --chip: #182131;
  --paper: rgba(255,255,255,0.03);
  --accent-2: #6fa6c8;
  --brand-bg: #0f1520;
  --shadow: 0 24px 80px rgba(0,0,0,0.34);
  --shadow-soft: 0 10px 36px rgba(0,0,0,0.22);
  --glow: radial-gradient(circle at top left, rgba(213,139,49,0.16), transparent 34%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213,139,49,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(111,166,200,0.12), transparent 24%),
    linear-gradient(180deg, rgba(213,139,49,0.05), transparent 220px),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,139,49,0.12), transparent 66%);
  filter: blur(16px);
}

body::after {
  bottom: -140px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,166,200,0.10), transparent 68%);
  filter: blur(18px);
}

.app-shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 24px 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 30px;
  border: 1px solid var(--stroke-strong);
  border-radius: 30px;
  background:
    var(--glow),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    linear-gradient(90deg, rgba(213,139,49,0.06), transparent 28%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.04) 18%, transparent 38%),
    linear-gradient(180deg, transparent 70%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

/* Header stats chips */
.header-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.stat-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Quick screen bar on homepage */
.quick-screen-bar {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--stroke-strong);
  border-radius: 16px;
  margin-bottom: 8px;
}
.quick-screen-bar input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 10px 16px;
}
.quick-screen-bar input:focus { outline: none; border-color: var(--accent); }
.quick-screen-bar input::placeholder { color: var(--muted); }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(213,139,49,0.28), rgba(111,166,200,0.16));
  border: 1px solid rgba(255,255,255,0.16);
  color: #f3efe7;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 30px rgba(0,0,0,0.24);
}

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

.brand-name {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f7f8fb;
}

.brand-descriptor {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

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

.eyebrow, .section-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
}

.topbar h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 980px;
}

.subline {
  margin: 0;
  color: #b2bdcd;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.55;
}

.status-panel {
  min-width: 220px;
  padding: 16px 20px;
  border-radius: 20px;
  background:
  min-width: 290px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(12,18,28,0.84);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
}

.lang-btn {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), #f43f5e);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.status-label {
  color: var(--muted);
  font-size: 13px;
}

.status-value {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.status-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.status-freshness {
  margin-top: 10px;
  color: #c7d2e2;
  font-size: 12px;
  line-height: 1.4;
}

.primary-nav {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}


.mobile-nav {
  display: none;
}

.mobile-nav-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 8px 4px 6px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color 0.15s, background 0.15s;
}
.mnav-icon { font-size: 18px; line-height: 1; }
.mnav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.01em; }
.mobile-nav-btn.active {
  background: rgba(213,139,49,0.14);
  color: var(--accent);
}

/* Compact news cards */
.news-card-title { margin: 6px 0 5px; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.summary-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.news-meta-line { font-size: 11px; color: var(--muted); font-weight: 600; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; }
.news-source { font-size: 11px; color: var(--muted); font-weight: 600; }
.news-open-hint { font-size: 11px; color: var(--accent); font-weight: 700; }

.nav-chip,
.mini-filter,
.action-btn,
.inline-tag,
.mobile-back-btn {
  border: 1px solid var(--stroke);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-chip {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}

.nav-chip:hover,
.mini-filter:hover,
.action-btn:hover,
.inline-tag:hover,
.mobile-back-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(213,139,49,0.35);
}

.nav-chip.active,
.mini-filter.active {
  background: linear-gradient(135deg, var(--accent), #f43f5e);
  color: white;
  border-color: transparent;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.content-column,
.detail-column {
  min-width: 0;
}

.detail-column {
  display: none;
}

body.show-desktop-detail .content-column {
  display: none;
}

body.show-desktop-detail .detail-column {
  display: block;
}

.screen { display: none; }
.screen.active { display: block; }

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.mini-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.search-hero,
.watch-section {
  margin-bottom: 18px;
}

.search-hero {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--stroke-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(111,166,200,0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    linear-gradient(90deg, rgba(111,166,200,0.08), rgba(213,139,49,0.08));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.search-hero::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,139,49,0.12), transparent 70%);
  pointer-events: none;
}

.search-copy h2 {
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.search-subline,
.search-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.search-shell {
  display: grid;
  gap: 10px;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border-radius: 20px;
  border: 1px solid var(--stroke-strong);
  background: rgba(9, 14, 22, 0.92);
  color: var(--text);
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.search-bar input::placeholder {
  color: #7f899a;
}

.search-bar input:focus {
  border-color: rgba(213,139,49,0.45);
  box-shadow: 0 0 0 4px rgba(213,139,49,0.08);
}

.search-btn {
  height: 56px;
  padding: 0 20px;
  font-weight: 800;
}

.search-results,
.watch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-result-card,
.watch-card {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(16,23,35,0.82);
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.search-result-card::before,
.watch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(213,139,49,0.85), rgba(111,166,200,0.0));
  opacity: .78;
}

.search-result-card:hover,
.watch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213,139,49,0.42);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.search-result-card h3,
.watch-card h3 {
  margin: 12px 0 9px;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.search-result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.entity-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(200,138,61,0.12);
  border: 1px solid rgba(200,138,61,0.2);
  font-size: 12px;
  color: #f3d6a9;
}

.compact-head {
  margin-bottom: 12px;
}

.empty-block {
  border: 1px dashed var(--stroke-strong);
  border-radius: 22px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.022);
}

.mini-filter {
  padding: 10px 14px;
  font-size: 13px;
}

.card-list,
.package-stack,
.case-list,
.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.news-card,
.package-card,
.case-card,
.risk-card,
.country-card,
.detail-card {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(16,23,35,0.84);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.news-card { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(213,139,49,0.4); box-shadow: 0 18px 44px rgba(0,0,0,0.28); }




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

.priority-pill,
.type-pill,
.score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.priority-pill.high { background: rgba(239,68,68,.15); color: #fecaca; }
.priority-pill.medium { background: rgba(245,158,11,.16); color: #fde68a; }
.priority-pill.low { background: rgba(234,179,8,.16); color: #fef08a; }
.type-pill { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.score-pill { background: rgba(16,185,129,.16); color: #ccfbf1; }
.status-pill { background: rgba(59,130,246,.16); color: #dbeafe; }
.package-pill { background: rgba(213,139,49,0.15); color: #fcd38d; border: 1px solid rgba(213,139,49,0.2); }
.package-number-badge { background: var(--accent); color: #1a0e00; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.pkg-status { font-size: 11px; }
.sanction-tag { background: rgba(239,68,68,0.12); color: #fca5a5; font-size: 11px; }
.country-tag { background: rgba(111,166,200,0.12); color: #bae0f7; font-size: 11px; }
.card-entity-name { margin: 8px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

.news-card h3,
.package-card h3,
.case-card h3,
.risk-card h3,
.country-card h3,
.detail-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.card-summary,
.card-meta,
.card-note,
.detail-text,
li,
p {
  color: #d2d8e3;
}

.card-summary {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.action-btn {
  padding: 10px 15px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
}

.mobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--accent), #f43f5e);
  border-color: transparent;
}

.detail-card {
  min-height: auto;
  padding: 28px 32px;
  border-radius: 32px;
  border-color: var(--stroke-strong);
  background:
    radial-gradient(circle at top right, rgba(111,166,200,0.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(10,13,20,0.84);
}

.detail-placeholder {
  padding: 14px;
}

.detail-scroll {
  display: grid;
  gap: 14px;
}

.detail-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--stroke);
}

.detail-header h3 {
  margin-top: 12px;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 980px;
}

.detail-block {
  padding: 20px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
}

.detail-block h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f8fafc;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.inline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-tag {
  padding: 7px 11px;
  font-size: 12px;
}

.country-card .country-meta,
.risk-card .risk-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.country-card ul,
.package-card ul,
.case-card ul,
.risk-card ul { margin: 14px 0 0; padding-left: 18px; line-height: 1.55; }


.compact-list-card {
  padding: 16px 18px;
}

.compact-list-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.compact-topline {
  margin-bottom: 10px;
}

.compact-topline > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.compact-tag {
  background: rgba(255,255,255,0.04);
}

.summary-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.muted-preview {
  color: var(--muted);
}

.list-open-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
  .detail-card { max-height: none; overflow: visible; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .sanctions-grid,
  .card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .app-shell {
    padding: 0 0 86px;
  }

  .topbar {
    margin: 0 12px;
    padding: 18px;
    border-radius: 0 0 24px 24px;
  }

  .topbar-main {
    gap: 14px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 15px;
  }

  .brand-name {
    font-size: 22px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .status-freshness {
    font-size: 11px;
  }

  .status-panel,
  .primary-nav,
  .mini-filters {
    display: none;
  }

  .feed-toolbar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(12, 16, 24, 0.94);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .content-column,
  .detail-column {
    width: 100%;
  }

  .screen {
    padding: 0 12px 12px;
  }

  .section-head {
    flex-direction: column;
    margin: 18px 0 14px;
  }

  .section-head h2,
  .news-card h3,
  .detail-header h3 {
    font-size: 24px;
  }

  .search-hero {
    padding: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .search-hero::before {
    display: none;
  }

  .search-copy {
    display: none;
  }

  .search-shell {
    margin-top: 0;
  }

  .search-bar {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .search-bar input {
    font-size: 16px;
    padding: 14px 16px;
  }

  .search-btn {
    white-space: nowrap;
    padding: 0 18px;
  }

  .mobile-search-btn {
    font-size: 11px;
  }

  .search-results,
  .watch-grid,
  .card-list,
  .sanctions-grid {
    grid-template-columns: 1fr;
  }


  .detail-column {
    display: none;
  }

  body.show-mobile-detail .content-column {
    display: none;
  }

  body.show-mobile-detail .detail-column {
    display: block;
    padding: 12px;
  }

  body.show-mobile-detail .detail-card {
    max-height: none;
    overflow: visible;
    min-height: calc(100vh - 120px);
    border-radius: 26px;
    padding: 20px 18px;
  }

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

  .detail-block {
    padding: 14px;
  }

  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}


.clickable-card { cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.clickable-card:hover { transform: translateY(-3px); border-color: rgba(213,139,49,0.4); }
.muted-note { color: var(--muted); margin-top: 10px; }
.active-lang { background: linear-gradient(135deg, var(--accent), #f43f5e); border-color: transparent; color: #fff; }


.issuer-stack {
  display: grid;
  gap: 12px;
}

.issuer-card {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--paper);
}

.issuer-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: #f8fafc;
}

.issuer-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}


.package-section-stack {
  display: grid;
  gap: 12px;
}

/* Screening verdict banner */
.screen-hit-banner,
.screen-clear-banner {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.screen-hit-banner {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.screen-clear-banner {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.screen-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.screen-result {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.screen-result.hit { color: #f87171; }
.screen-result.clear { color: #4ade80; }
.screen-confidence {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.screen-recommendation {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 4px;
}
.screen-match-count {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.screen-possible-banner {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
}
.screen-result.possible { color: #fbbf24; }

.screen-result.pep-result { color: #fb923c; }

/* ── Bulk Screening ──────────────────────────────────────────────────────── */
.bulk-screen-shell { display: flex; flex-direction: column; gap: 1.5rem; }
.bulk-input-area { background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.bulk-hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.bulk-textarea { background: var(--bg); border: 1px solid var(--stroke-strong); border-radius: 8px; color: var(--text); font-size: 0.9rem; font-family: monospace; min-height: 160px; padding: 0.75rem 1rem; resize: vertical; width: 100%; box-sizing: border-box; }
.bulk-textarea:focus { outline: none; border-color: var(--accent); }
.bulk-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.bulk-drop-zone { border: 2px dashed var(--stroke-strong); border-radius: 8px; color: var(--muted); font-size: 0.85rem; padding: 1rem; text-align: center; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.bulk-drop-zone.dragover { border-color: var(--accent); background: rgba(213,139,49,0.08); color: var(--text); }
.bulk-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--stroke); border-radius: 10px; padding: 0.75rem 1rem; }
.bulk-stat { font-size: 0.9rem; font-weight: 600; }
.bulk-stat.hits { color: #ef4444; }
.bulk-stat.clear { color: #22c55e; }
.bulk-stat.total { color: var(--muted); }
.bulk-info { color: var(--muted); font-size: 0.85rem; }
.bulk-warn { color: #fbbf24; font-size: 0.85rem; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.bulk-table th { background: var(--panel-2); color: var(--muted); font-weight: 600; padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--stroke); }
.bulk-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--stroke); }
.bulk-row-hit td { background: rgba(239,68,68,0.06); }
.bulk-row-possible_match td { background: rgba(251,191,36,0.05); }
.bulk-row-pep td { background: rgba(251,146,60,0.05); }
.bulk-name { font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-match { color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── Screening results ───────────────────────────────────────────────────── */
.screen-matches-section { margin-bottom: 20px; }
.screen-matches-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--stroke); }
.screen-match-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform 0.15s, border-color 0.15s; margin-bottom: 10px; }
.screen-match-card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }
.screen-match-sanctions { border-left: 3px solid rgba(239,68,68,0.5); }
.screen-match-pep { border-left: 3px solid rgba(251,146,60,0.5); }
.match-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.match-entity-type { font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.06); padding: 3px 10px; border-radius: 999px; }
.match-country { font-size: 12px; color: var(--muted); font-weight: 600; }
.match-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
.match-aliases { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.match-source { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.match-packages { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.match-listed { font-size: 12px; color: #22c55e; font-weight: 600; margin-bottom: 6px; }
.match-open-hint { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 8px; }
.match-score-bar { width: 60px; height: 4px; background: var(--stroke); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.match-score-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ── Screen Hero ─────────────────────────────────────────────────────────── */
.screen-hero-shell { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; }
.screen-hero-head { display: flex; flex-direction: column; gap: 6px; }
.screen-hero-head h2 { margin: 4px 0 0; font-size: clamp(22px,3vw,34px); letter-spacing: -0.03em; line-height: 1.1; }
.screen-hero-sub { color: var(--muted); font-size: 14px; margin: 0; }
.screen-hero-bar { display: flex; gap: 10px; }
.screen-hero-input { flex: 1; background: var(--panel); border: 1px solid var(--stroke-strong); border-radius: 14px; color: var(--text); font-size: 16px; font-weight: 500; padding: 14px 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.screen-hero-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213,139,49,0.12); }
.screen-hero-input::placeholder { color: var(--muted); }
.screen-hero-btn { height: 54px; padding: 0 28px; font-size: 15px; font-weight: 800; border-radius: 14px; }
.screen-hero-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.screen-hero-divider::before, .screen-hero-divider::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }

/* ── Data tabs (inside База данных screen) ─────────────────────────────── */
.data-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--stroke); padding-bottom: 12px; }
.data-tab-btn { background: transparent; border: 1px solid var(--stroke); border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 16px; transition: all 0.15s; }
.data-tab-btn.active { background: var(--accent); color: #1a0e00; border-color: var(--accent); }
.data-tab-btn:hover:not(.active) { border-color: var(--accent); color: var(--text); }
.data-panel { display: none; }
.data-panel.active { display: block; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar-recent { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sidebar-check-item { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; }
.sidebar-check-item .check-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sidebar-check-item .check-result { font-size: 11px; font-weight: 700; margin-top: 2px; }
.check-result.hit { color: #ef4444; }
.check-result.clear { color: #22c55e; }
.check-result.pep { color: #fb923c; }
.sidebar-divider { height: 1px; background: var(--stroke); margin: 16px 0 0; }
.sidebar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sidebar-stat { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; }
.sidebar-stat-value { font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.sidebar-stat-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ── Investigation ───────────────────────────────────────────────────────── */
.invest-shell { display: flex; flex-direction: column; gap: 1.5rem; }
.invest-input-area { background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.invest-search-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.invest-input { background: var(--bg); border: 1px solid var(--stroke-strong); border-radius: 8px; color: var(--text); font-size: 0.9rem; padding: 0.6rem 1rem; flex: 1; min-width: 200px; }
.invest-input:focus { outline: none; border-color: var(--accent); }
.invest-depth { background: var(--panel-2); border: 1px solid var(--stroke-strong); border-radius: 8px; color: var(--text); padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.invest-examples { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.invest-ex-label { color: var(--muted); font-size: 0.8rem; }
.invest-example { background: var(--panel-2); border: 1px solid var(--stroke); border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 0.8rem; padding: 0.25rem 0.6rem; transition: color 0.15s, border-color 0.15s; }
.invest-example:hover { color: var(--text); border-color: var(--accent); }
.invest-verdict { border: 1px solid; border-radius: 10px; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.invest-verdict-badge { font-size: 1rem; font-weight: 700; }
.invest-risk-level { font-size: 0.85rem; color: var(--muted); }
.invest-section { background: var(--panel); border: 1px solid var(--stroke); border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.invest-section-title { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.invest-chain { display: flex; flex-direction: column; gap: 0.5rem; }
.invest-chain-step { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.invest-hop { color: var(--accent); font-weight: 600; min-width: 40px; }

.bulk-audit-section { border-top: 1px solid var(--stroke); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.bulk-audit-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.audit-log { overflow-x: auto; }
