:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --border: #dfe6f1;
  --text: #111827;
  --muted: #64748b;
  --brand: #1f6feb;
  --brand-soft: #eaf2ff;
  --accent: #f97316;
  --good: #16a34a;
  --warn: #f59e0b;
  --bad: #dc2626;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

.site-hero {
  position: relative;
  min-height: 860px;
  margin: -14px calc(50% - 50vw) 0;
  padding: 0 max(56px, calc((100vw - 1440px) / 2 + 28px));
  overflow: hidden;
  color: #f4f8ff;
  background:
    linear-gradient(90deg, rgba(2, 6, 18, 0.88) 0%, rgba(4, 10, 24, 0.46) 42%, rgba(2, 6, 18, 0.12) 72%, rgba(2, 6, 18, 0.54) 100%),
    radial-gradient(circle at 68% 48%, rgba(48, 170, 255, 0.2), transparent 28%),
    url("/assets/assets/ifind-style-fintech-bg-v1.png") center / cover no-repeat,
    #020712;
}

.site-hero::before,
.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-hero::before {
  background:
    linear-gradient(180deg, rgba(2, 6, 18, 0.1), transparent 24%, rgba(2, 6, 18, 0.46)),
    linear-gradient(90deg, rgba(2, 6, 18, 0.38), transparent 34%, transparent 82%, rgba(2, 6, 18, 0.28));
}

.site-hero::after {
  background:
    linear-gradient(rgba(92, 153, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 153, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 62%);
}

.site-nav,
.site-hero-content,
.site-float-rail {
  position: relative;
  z-index: 1;
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  min-height: 78px;
  gap: 28px;
}

.site-logo,
.site-nav a,
.site-hero-actions a,
.site-float-rail a {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 19px;
  font-weight: 850;
}

.site-logo span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(128, 189, 255, 0.36);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, #4c8dff, #7d6cff);
  box-shadow: 0 0 26px rgba(69, 148, 255, 0.28);
  color: #fff;
  font-size: 13px;
}

.site-nav-links {
  display: inline-flex;
  justify-content: center;
  gap: 48px;
  color: rgba(244, 248, 255, 0.86);
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.site-nav-links a {
  position: relative;
  padding: 28px 0 23px;
}

.site-nav-links a:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.site-nav-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 13px;
  color: rgba(244, 248, 255, 0.88);
  font-size: 14px;
  font-weight: 760;
}

.site-nav-actions a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-nav-actions .site-search {
  min-height: 38px;
  border: 1px solid rgba(188, 216, 255, 0.28);
  border-radius: 999px;
  gap: 12px;
  padding: 0 14px 0 17px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(246, 250, 255, 0.92);
  backdrop-filter: blur(12px);
}

.site-nav-actions kbd {
  border: 0;
  border-radius: 5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
}

.site-nav-actions .site-language {
  padding: 0 2px;
}

.site-nav-actions .site-trial {
  min-height: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  padding-left: 16px;
}

.site-hero-content {
  width: min(780px, 48vw);
  padding-top: 214px;
}

.site-kicker {
  margin: 0 0 22px;
  color: #92cfff;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.site-hero-content h1 {
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(54px, 5.2vw, 86px);
  font-weight: 820;
  line-height: 1.12;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 26px rgba(65, 144, 255, 0.22);
}

.site-hero-copy {
  width: min(650px, 100%);
  margin: 28px 0 0;
  color: rgba(230, 240, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.site-hero-actions a {
  min-width: 168px;
  min-height: 56px;
  border: 1px solid rgba(188, 216, 255, 0.44);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-size: 17px;
  font-weight: 780;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.site-hero-actions a.primary {
  border-color: rgba(203, 221, 255, 0.68);
  background: linear-gradient(135deg, rgba(82, 122, 214, 0.92), rgba(160, 179, 236, 0.92));
  box-shadow: 0 18px 44px rgba(58, 105, 220, 0.32);
}

.site-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.site-hero-metrics span {
  border: 1px solid rgba(121, 183, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  background: rgba(3, 11, 28, 0.36);
  color: rgba(225, 238, 255, 0.82);
  font-size: 13px;
}

.site-hero-metrics b {
  color: #fff;
  font-size: 16px;
}

.site-float-rail {
  position: absolute;
  right: max(32px, calc((100vw - 1440px) / 2 + 16px));
  top: 57%;
  display: grid;
  width: 82px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
}

.site-float-rail a {
  min-height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  place-items: center;
  padding: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.site-float-rail a:last-child {
  border-bottom: 0;
}

.product-applications {
  margin: 0 calc(50% - 50vw);
  padding: 92px max(56px, calc((100vw - 1440px) / 2 + 28px)) 88px;
  background: #f6f7fa;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
}

.section-heading span {
  color: #426dff;
  font-size: 34px;
  font-weight: 760;
}

.section-heading h2 {
  color: #111827;
  font-size: 32px;
  font-weight: 820;
}

.section-copy {
  width: min(1060px, 100%);
  margin: 0 auto 62px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
  text-align: center;
}

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

.application-grid article {
  min-height: 358px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  padding: 0 30px 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.055);
}

.application-visual {
  position: relative;
  height: 150px;
  margin: 0 -30px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 38%, rgba(73, 176, 255, 0.58), transparent 18%),
    linear-gradient(135deg, rgba(5, 13, 34, 0.98), rgba(10, 24, 62, 0.96));
}

.application-visual::before,
.application-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.application-visual::before {
  inset: 20px 34px 28px;
  border: 1px solid rgba(103, 192, 255, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(rgba(92, 153, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 153, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: inset 0 0 30px rgba(45, 141, 255, 0.18), 0 0 34px rgba(22, 113, 255, 0.18);
}

.application-visual::after {
  width: 118px;
  height: 70px;
  right: 42px;
  bottom: 29px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 235, 255, 0.8), rgba(34, 122, 255, 0.28) 48%, transparent 70%);
  filter: blur(2px);
}

.visual-monitor {
  background:
    radial-gradient(circle at 24% 52%, rgba(57, 229, 200, 0.58), transparent 18%),
    linear-gradient(135deg, rgba(5, 13, 34, 0.98), rgba(9, 29, 72, 0.96));
}

.visual-monitor::after {
  box-shadow:
    -82px -18px 0 -31px rgba(89, 234, 215, 0.9),
    -42px 18px 0 -34px rgba(75, 143, 255, 0.9),
    34px -22px 0 -33px rgba(160, 111, 255, 0.9);
}

.visual-intel::before {
  border-radius: 50%;
  transform: perspective(460px) rotateX(56deg);
}

.visual-intel::after {
  right: 50%;
  bottom: 28px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.95), transparent 20%),
    radial-gradient(circle, rgba(72, 210, 255, 0.96), rgba(39, 104, 255, 0.85) 58%, transparent 72%);
  transform: translateX(50%);
  box-shadow:
    92px -28px 0 -26px rgba(88, 235, 221, 0.88),
    -98px -14px 0 -28px rgba(154, 113, 255, 0.82),
    54px 30px 0 -30px rgba(255, 92, 128, 0.86);
  filter: none;
}

.visual-risk {
  background:
    radial-gradient(circle at 74% 44%, rgba(255, 90, 120, 0.56), transparent 18%),
    linear-gradient(135deg, rgba(9, 12, 31, 0.98), rgba(24, 16, 50, 0.96));
}

.visual-risk::after {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 95, 119, 0.95), rgba(255, 177, 83, 0.86));
  box-shadow:
    -72px 16px 0 -24px rgba(255, 178, 77, 0.9),
    -22px -26px 0 -27px rgba(88, 235, 221, 0.82);
  filter: none;
}

.application-grid small {
  color: #426dff;
  font-weight: 820;
}

.application-grid h3 {
  margin-top: 18px;
  color: #111827;
  font-size: 23px;
}

.application-grid p {
  margin-top: 16px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.8;
}

.topbar {
  scroll-margin-top: 18px;
}

@media (max-width: 1120px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav-links {
    display: none;
  }

  .site-hero-content {
    width: min(720px, 74vw);
  }

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

@media (max-width: 760px) {
  .site-hero {
    min-height: 760px;
    padding: 0 22px;
  }

  .site-nav {
    min-height: 68px;
    gap: 12px;
  }

  .site-nav-actions {
    display: none;
  }

  .site-hero-content {
    width: 100%;
    padding-top: 160px;
  }

  .site-hero-content h1 {
    font-size: 42px;
  }

  .site-hero-copy {
    font-size: 16px;
  }

  .site-float-rail {
    display: none;
  }

  .product-applications {
    padding: 64px 22px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #edf7ff 0, #f7f9fc 260px, var(--bg) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 0 40px;
}

.topbar,
.panel-header,
.row-item,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  margin: 0 -16px 12px;
  padding: 8px 16px;
  border: 1px solid rgba(223, 230, 241, 0.95);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.console-brand-block {
  display: grid;
  grid-template-columns: 34px minmax(170px, 1fr);
  column-gap: 10px;
  align-items: center;
}

.console-logo {
  grid-row: span 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--accent);
  font-weight: 850;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.console-search {
  position: relative;
  display: block;
  width: min(520px, 34vw);
}

.console-search span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
}

.console-search input {
  height: 38px;
  padding-left: 48px;
  border-color: #d8e4f4;
  border-radius: 10px;
  background: #fbfdff;
}

.console-actions {
  display: inline-flex;
  gap: 6px;
}

.console-actions button,
.console-section-tabs button,
.console-right-rail button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
}

.console-actions button {
  height: 34px;
  padding: 0 10px;
}

.console-actions button:hover,
.console-section-tabs button:hover,
.console-right-rail button:hover {
  border-color: #bfdbfe;
  background: var(--brand-soft);
  color: var(--brand);
}

.console-section-tabs {
  display: flex;
  gap: 22px;
  margin: 4px 0 12px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.8);
}

.console-section-tabs button {
  height: 38px;
  border-radius: 0;
  padding: 0 2px;
  font-weight: 650;
}

.console-section-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

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

h1 {
  font-size: 22px;
}

h2 {
  font-size: 17px;
}

h3 {
  font-size: 15px;
}

.status {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 12px;
  color: var(--muted);
}

.dropzone {
  margin: 12px 0 14px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  padding: 16px;
  color: #1e3a8a;
  text-align: center;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dropzone.is-dragging {
  border-color: var(--brand);
  background: #dbeafe;
}

.status.is-ok {
  border-color: #bbf7d0;
  color: var(--good);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat,
.panel,
.side-nav,
.subpanel,
.report-card,
.mini-stats > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.stat {
  min-height: 78px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.stat span {
  display: block;
  font-size: 24px;
  font-weight: 750;
}

.stat:hover {
  border-color: #bfdbfe;
}

.stat label,
.panel p,
.list-item small,
label,
.mini-stats span {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

body.dashboard-mode .shell {
  width: min(1600px, calc(100vw - 28px));
}

body.dashboard-mode .stats-grid {
  display: none;
}

body.dashboard-mode .topbar {
  margin-left: 0;
  margin-right: 0;
}

body.dashboard-mode .workspace {
  grid-template-columns: 210px minmax(0, 1fr);
}

body.dashboard-mode .console-right-rail {
  display: none;
}

.views {
  min-width: 0;
}

.side-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.nav-group-label {
  display: block;
  margin: 12px 8px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.nav-group-label:first-child {
  margin-top: 2px;
}

.nav-item {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  margin-bottom: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
}

.nav-item.is-active {
  border-color: #bfdbfe;
  background: var(--brand-soft);
  color: var(--brand);
}

.console-right-rail {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.console-right-rail section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.rail-head,
.rail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rail-head {
  margin-bottom: 10px;
}

.rail-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0891b2;
  padding: 0 8px;
  font-size: 12px;
}

.rail-status-row {
  min-height: 40px;
  border-top: 1px solid #eef2f7;
  color: var(--muted);
}

.rail-status-row b {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.console-right-rail button {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  margin-top: 8px;
  border-color: var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 650;
}

.panel {
  display: none;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.panel-header {
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.75);
}

.panel p {
  margin-top: 6px;
  line-height: 1.55;
}

.upload-form {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: end;
  gap: 12px;
}

.author-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.author-form-actions {
  display: flex;
  gap: 8px;
}

.author-form small {
  align-self: center;
}

.author-manage-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.07);
}

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

.author-manage-head strong {
  display: block;
  font-size: 17px;
}

.author-manage-head small,
.author-manage-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.author-manage-actions,
.author-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-manage-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.author-manage-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.author-manage-card strong {
  display: block;
  font-size: 20px;
}

.author-manage-card span {
  display: block;
  margin-top: 3px;
  font-weight: 700;
}

.author-quick-filter {
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  padding: 0 12px;
}

.author-quick-filter.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.author-collector-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.author-collector-link strong,
.author-collector-link small {
  display: block;
}

.author-collector-link small {
  margin-top: 4px;
  color: var(--muted);
}

.author-collector-link > small {
  grid-column: 1 / -1;
  margin-top: 0;
  color: #1d4ed8;
}

.author-collector-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.author-curation-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
  padding: 14px;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.07);
}

.author-curation-head,
.author-curation-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.author-curation-head strong {
  display: block;
  font-size: 17px;
}

.author-curation-head small,
.author-curation-panel > small,
.author-curation-guide span,
.author-curation-row small {
  color: var(--muted);
}

.author-curation-actions,
.author-curation-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.author-curation-guide span {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 9px 10px;
  font-size: 12px;
}

.author-curation-guide b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

.author-curation-mode {
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  padding: 0 12px;
}

.author-curation-mode.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.author-curation-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.author-curation-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.author-curation-card strong {
  display: block;
  font-size: 20px;
}

.author-curation-card span,
.author-curation-card small {
  display: block;
}

.author-curation-card span {
  margin-top: 3px;
  font-weight: 700;
}

.author-curation-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.author-curation-list {
  display: grid;
  gap: 8px;
}

.author-curation-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.author-curation-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--brand);
  font-weight: 800;
}

.author-curation-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.author-curation-row > div:nth-child(2) strong,
.author-curation-row > div:nth-child(2) small {
  display: block;
}

.author-curation-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 4px 9px;
  font-size: 12px;
}

.author-curation-row > span[data-priority="T0"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--good);
}

.author-curation-row > span[data-priority="T1"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand);
}

.author-curation-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

.inline-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 22px;
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.inline-status span[data-configured="true"] {
  color: var(--good);
}

.inline-status span[data-configured="false"] {
  color: var(--warn);
}

.filter-form,
.api-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#view-authors .panel-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.6fr);
  gap: 16px;
}

#view-authors .filter-form {
  justify-content: flex-end;
  align-items: end;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
}

.filter-form select {
  width: 120px;
}

.filter-form #authorFollowerFilter,
.filter-form #authorActivityFilter,
.filter-form #authorCompletenessFilter,
.filter-form #authorSort {
  width: 150px;
}

.filter-form input,
.api-row input {
  width: 170px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

input,
select,
button,
textarea {
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 10px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  outline: 3px solid rgba(147, 197, 253, 0.24);
}

button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  filter: brightness(0.98);
}

button.secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

button.danger,
.link-button.danger {
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--bad);
}

button.danger:not(.ghost) {
  background: #dc2626;
  color: #fff;
}

button.ghost {
  background: #fff;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.result,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
}

.result {
  min-height: 150px;
  margin: 16px 0 0;
}

textarea {
  min-height: 320px;
  resize: vertical;
  line-height: 1.55;
}

.grid-two,
.report-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.subpanel {
  margin-top: 12px;
  padding: 14px;
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.author-list {
  gap: 10px;
}

.author-card {
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.author-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.08);
  transform: translateY(-1px);
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item p {
  margin-top: 8px;
  color: #374151;
}

.author-library-summary {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f0f7ff;
  padding: 12px;
  color: #1e3a8a;
}

.author-library-summary strong,
.author-library-summary span {
  display: block;
}

.author-library-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.author-bulk-tools {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.author-bulk-tools small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.author-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-score-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

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

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

.author-score-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.author-score-card strong {
  display: block;
  font-size: 18px;
}

.author-score-card span,
.author-score-head small,
.author-score-panel > small,
.author-score-row small {
  color: var(--muted);
}

.author-score-top {
  display: grid;
  gap: 8px;
}

.author-score-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
}

.author-score-row > span,
.author-score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.author-score-row > span[data-priority="T0"],
.author-score-badge[data-priority="T0"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--good);
}

.author-score-row > span[data-priority="T1"],
.author-score-badge[data-priority="T1"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand);
}

.author-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.author-recycle-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}

.author-recycle-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.author-recycle-head small,
.author-recycle-panel > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.author-card.is-deleted {
  background: #fff;
  border-color: #fed7aa;
}

.author-enrichment-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.author-enrichment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.author-enrichment-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.author-enrichment-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.author-enrichment-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.author-enrichment-card,
.author-enrichment-note {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.author-enrichment-card strong,
.author-enrichment-note strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.author-enrichment-card span,
.author-enrichment-note span {
  color: var(--muted);
  font-size: 12px;
}

.author-enrichment-note {
  grid-column: span 1;
}

.author-enrichment-note strong {
  font-size: 13px;
}

.enrichment-urls {
  width: 100%;
  min-height: 108px;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  padding: 10px;
  color: var(--text);
  resize: vertical;
}

#authorEnrichmentStatus {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.author-card-head small {
  color: var(--muted);
}

.author-card-select {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: inherit;
}

.author-card-select input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.author-freshness {
  align-self: flex-start;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.author-freshness[data-level="hot"],
.author-freshness[data-level="warm"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--good);
}

.author-freshness[data-level="active"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand);
}

.author-freshness[data-level="inactive"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--bad);
}

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

.author-metrics span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
}

.author-metrics b {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.author-url-row {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  color: var(--muted);
  font-size: 12px;
}

.author-url-row a {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.missing-value {
  color: var(--bad);
}

.author-gaps span {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.author-cleanup-presets {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.author-cleanup-presets label {
  min-width: 180px;
}

.author-cleanup-candidates {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
}

.danger-text {
  color: var(--bad);
}

.author-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.link-button {
  height: 28px;
  margin-top: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  padding: 0 10px;
  font-size: 12px;
}

.report-card {
  padding: 16px;
}

.pipeline-panel {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.pipeline-head,
.pipeline-controls,
.pipeline-status,
.pipeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pipeline-head {
  align-items: flex-start;
}

.pipeline-head p {
  margin-top: 6px;
}

.pipeline-controls {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pipeline-controls label {
  min-width: 180px;
}

.check-label {
  display: inline-flex;
  min-width: 0 !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  color: var(--text);
}

.check-label input {
  width: auto;
  height: auto;
}

.pipeline-status {
  justify-content: flex-start;
  margin-top: 12px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--brand);
  padding: 10px 12px;
  font-weight: 700;
}

.pipeline-status[data-status="data_insufficient"] {
  background: #fffbeb;
  color: #92400e;
}

.pipeline-rule-summary:empty {
  display: none;
}

.pipeline-rule-card {
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.pipeline-rule-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pipeline-rule-card__head strong {
  display: block;
  font-size: 14px;
}

.pipeline-rule-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.pipeline-rule-card__head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

.pipeline-rule-metrics div {
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.pipeline-rule-metrics strong,
.pipeline-rule-metrics span {
  display: block;
}

.pipeline-rule-metrics strong {
  font-size: 15px;
}

.pipeline-rule-metrics span,
.pipeline-rule-saving {
  color: var(--muted);
  font-size: 12px;
}

.pipeline-rule-saving {
  margin-top: 8px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  padding: 8px 10px;
  font-weight: 700;
}

.automation-rule-summary {
  margin-bottom: 16px;
}

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

.pipeline-step {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.pipeline-step strong,
.pipeline-step span,
.pipeline-step p {
  display: block;
}

.pipeline-step span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pipeline-step[data-status="warning"] span,
.pipeline-step[data-status="skipped"] span {
  color: #92400e;
}

.pipeline-step[data-status="failed"] span {
  color: var(--bad);
}

.pipeline-step[data-status="completed"] span,
.pipeline-step[data-status="generated"] span,
.pipeline-step[data-status="reused"] span,
.pipeline-step[data-status="passed"] span {
  color: var(--good);
}

.report-card p {
  margin-top: 10px;
  color: var(--text);
  font-size: 18px;
}

.reporting-guide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin-bottom: 12px;
}

.list-item code {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--brand);
}

.debug-details {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.debug-details summary {
  cursor: pointer;
  color: var(--brand);
}

.debug-details pre {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 6px;
  padding: 10px;
  background: #0f172a;
  color: #e5e7eb;
}

.compact-result {
  min-height: 120px;
  max-height: 260px;
  overflow: auto;
}

.diagnostic-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.diagnostic-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.diagnostic-summary > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.diagnostic-summary strong,
.diagnostic-summary span {
  display: block;
}

.diagnostic-summary strong {
  font-size: 20px;
}

.diagnostic-summary span {
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-warning {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px 12px;
}

.diagnostic-warning ul {
  margin: 0;
  padding-left: 18px;
}

.diagnostic-subpanel {
  margin-top: 0;
}

.diagnostic-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.diagnostic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 9px;
  font-size: 12px;
}

.diagnostic-chip strong {
  overflow-wrap: anywhere;
}

.diagnostic-chip span {
  color: var(--muted);
  white-space: nowrap;
}

.diagnostic-chip[data-kind="mapped"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.diagnostic-chip[data-kind="unmapped"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mini-stats > div {
  padding: 12px;
  text-align: center;
}

.mini-stats strong {
  display: block;
  font-size: 22px;
}

.quality-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
}

.quality-pill {
  margin-top: 12px;
}

.quality-pill[data-level="可发布"] {
  background: #dcfce7;
  color: #15803d;
}

.quality-pill[data-level="样本不足"] {
  background: #fef3c7;
  color: #92400e;
}

.markdown-box {
  margin-top: 12px;
}

.analysis-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.transcript-box {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.transcript-box[data-status="completed"] {
  border-color: #bbf7d0;
  color: var(--good);
}

.transcript-box[data-status="failed"] {
  border-color: #fecaca;
  color: var(--bad);
}

.transcript-box[data-status="blocked"] {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.analysis-box strong,
.analysis-box small {
  display: block;
}

.comment-insight-summary {
  min-height: 180px;
}

.comment-insight-summary p {
  margin: 10px 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.comment-insight-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.55;
}

.comment-temperature {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
}

.comment-temperature strong {
  font-size: 24px;
  line-height: 1;
}

.comment-cluster-item[data-tone="risk"],
.comment-cluster-item[data-tone="negative"] {
  border-color: #fecaca;
}

.comment-cluster-item[data-tone="positive"] {
  border-color: #bbf7d0;
}

.comment-cluster-item[data-tone="question"] {
  border-color: #fde68a;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analysis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.analysis-tags span {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 8px;
  font-size: 12px;
}

.creator-insight-card {
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  color: var(--text);
}

.creator-insight-card > p {
  margin: 10px 0;
  line-height: 1.6;
}

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

.creator-question-grid > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.creator-question-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-question-grid p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.creator-insight-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.creator-keywords span {
  background: #ecfeff;
  color: #0e7490;
}

.drilldown-item {
  border-color: #dbeafe;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dashboard-tile {
  min-height: 118px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.dashboard-tile.is-primary {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.dashboard-tile small,
.dashboard-tile span,
.dashboard-summary span,
.dashboard-empty {
  color: var(--muted);
}

.dashboard-tile strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 28px;
  line-height: 1;
}

.dashboard-summary {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.dashboard-summary p {
  margin-top: 6px;
  color: var(--text);
}

.network-buzz-panel {
  margin-top: 12px;
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.network-buzz-head,
.buzz-topic-head,
.network-buzz-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.network-buzz-head small,
.buzz-side h4,
.network-buzz-bottom h4,
.buzz-topic-card small,
.buzz-topic-card p,
.buzz-topic-card li,
.buzz-bubble small {
  color: var(--muted);
}

.buzz-live-dot {
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.network-buzz-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.buzz-map {
  min-height: 300px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(254, 226, 226, 0.45) 1px, transparent 1px),
    linear-gradient(0deg, rgba(254, 226, 226, 0.45) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
}

.buzz-bubble {
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
  text-align: center;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.12);
}

.buzz-bubble.is-hot {
  border-color: #ef4444;
  background: #dc2626;
  color: #fff;
}

.buzz-bubble.is-warm {
  border-color: #fdba74;
  background: #ffedd5;
  color: #9a3412;
}

.buzz-bubble.is-watch {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.buzz-bubble strong {
  max-width: 78%;
  font-size: 17px;
  line-height: 1.2;
}

.buzz-bubble span {
  font-weight: 850;
}

.buzz-bubble.is-hot small {
  color: rgba(255, 255, 255, 0.82);
}

.buzz-side {
  min-width: 0;
}

.buzz-topic-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.buzz-topic-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.buzz-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 850;
}

.buzz-topic-head div {
  flex: 1;
  min-width: 0;
}

.buzz-topic-head b {
  color: #dc2626;
  font-size: 20px;
}

.buzz-topic-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.buzz-topic-metrics span {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 7px;
  font-weight: 700;
}

.buzz-topic-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.network-buzz-bottom {
  align-items: stretch;
  margin-top: 12px;
}

.network-buzz-bottom > div {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.buzz-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.buzz-keyword {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 10px;
  font-weight: 700;
}

.buzz-keyword b {
  margin-left: 6px;
  color: var(--text);
}

.buzz-method {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}

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

.buzz-trend-card {
  min-width: 0;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.buzz-trend-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.buzz-trend-head strong,
.buzz-trend-head span {
  display: block;
}

.buzz-trend-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.buzz-trend-head b {
  flex: none;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  padding: 6px 8px;
}

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

.buzz-trend-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.buzz-trend-card li span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 12px;
}

.buzz-trend-card li strong,
.buzz-trend-card li small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buzz-trend-card li small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.buzz-trend-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.buzz-trend-keywords em {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 4px 8px;
  font-style: normal;
  font-size: 12px;
}

#view-dashboard {
  position: relative;
  overflow: hidden;
  border-color: rgba(105, 155, 232, 0.26);
  background:
    linear-gradient(90deg, rgba(72, 132, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(72, 132, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(234, 244, 255, 0.92) 48%, rgba(248, 246, 255, 0.96));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 22px 70px rgba(47, 128, 255, 0.12);
}

#view-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(47, 128, 255, 0.1) 19%, transparent 26% 100%),
    linear-gradient(250deg, transparent 0 68%, rgba(35, 211, 255, 0.12) 72%, transparent 80% 100%);
  pointer-events: none;
}

#view-dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-screen-head {
  align-items: center;
  border: 1px solid rgba(91, 154, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 14px 18px;
  text-align: center;
}

.dashboard-screen-head h2 {
  color: #102a5c;
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: 0;
  margin: 2px 0 4px;
}

.dashboard-screen-head p,
.dashboard-screen-head small {
  color: #4f6b9b;
  font-weight: 700;
}

.dashboard-screen-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-screen-actions select {
  min-height: 38px;
  border: 1px solid rgba(91, 154, 255, 0.38);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #102a5c;
  padding: 0 12px;
}

.dashboard-open-screen {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
  border: 1px solid rgba(47, 128, 255, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.95), rgba(141, 107, 255, 0.92));
  box-shadow: 0 12px 28px rgba(47, 128, 255, 0.2);
  color: #fff;
  font-weight: 850;
  padding: 0 14px;
  text-decoration: none;
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-command-grid .dashboard-tile,
.glass-panel,
.dashboard-ai-summary {
  border: 1px solid rgba(91, 154, 255, 0.28);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 44px rgba(47, 128, 255, 0.1);
}

.dashboard-command-grid .dashboard-tile {
  align-items: center;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 104px;
  overflow: hidden;
  padding-inline: 12px;
  position: relative;
}

.dashboard-command-grid .dashboard-tile::after,
.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 42%);
  pointer-events: none;
}

.dashboard-command-grid .dashboard-tile small,
.dashboard-command-grid .dashboard-tile strong,
.dashboard-command-grid .dashboard-tile span:not(.kpi-icon) {
  grid-column: 2;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-command-grid .dashboard-tile strong {
  color: #061c4e;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.kpi-icon {
  align-items: center;
  background: linear-gradient(135deg, #2f80ff, #23d3ff);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(47, 128, 255, 0.22), inset 0 0 16px rgba(255, 255, 255, 0.48);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  grid-column: 1;
  grid-row: 1 / span 3;
  height: 44px;
  justify-content: center;
  width: 44px;
  z-index: 1;
}

.kpi-icon.is-purple { background: linear-gradient(135deg, #8d6bff, #c084fc); }
.kpi-icon.is-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.kpi-icon.is-red { background: linear-gradient(135deg, #ff5a6d, #fb7185); }
.kpi-icon.is-orange { background: linear-gradient(135deg, #ff9f43, #fb923c); }
.kpi-icon.is-indigo { background: linear-gradient(135deg, #6366f1, #a78bfa); }

.dashboard-ai-summary {
  color: #18376b;
  margin-top: 12px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.42fr) minmax(280px, 0.92fr);
  gap: 12px;
  grid-template-areas:
    "account network risk"
    "signals network ranking"
    "trend abnormal feed";
  margin-top: 12px;
}

.account-profile-panel { grid-area: account; }
.content-signal-panel { grid-area: signals; }
.sentiment-trend-panel { grid-area: trend; }
.network-buzz-panel { grid-area: network; }
.abnormal-panel { grid-area: abnormal; }
.risk-panel { grid-area: risk; }
.stock-ranking-panel { grid-area: ranking; }
.realtime-feed-panel { grid-area: feed; }

.glass-panel {
  border-radius: 16px;
  min-width: 0;
  padding: 14px;
  position: relative;
}

.panel-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title-row h3,
.network-buzz-head h3,
.glass-panel h4 {
  color: #102a5c;
  margin: 0;
}

.panel-title-row span,
.network-buzz-head small,
.glass-panel h4 {
  color: #5f7196;
  font-size: 12px;
  font-weight: 800;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 12px;
}

.account-donut {
  align-content: center;
  display: grid;
  gap: 10px;
}

.donut-core {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--donut));
  border-radius: 50%;
  display: grid;
  justify-items: center;
  margin: 0 auto;
  max-width: 144px;
  padding: 28px;
  position: relative;
  width: 100%;
}

.donut-core::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 18px rgba(47, 128, 255, 0.12);
}

.donut-core strong,
.donut-core span {
  position: relative;
  z-index: 1;
}

.donut-core strong {
  color: #102a5c;
  font-size: 18px;
}

.donut-core span {
  color: #5f7196;
  font-size: 12px;
}

.donut-legend {
  display: grid;
  gap: 6px;
}

.donut-legend span {
  align-items: center;
  color: #4f6b9b;
  display: flex;
  font-size: 12px;
  gap: 6px;
}

.donut-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

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

.account-mini-metrics article {
  border: 1px solid rgba(91, 154, 255, 0.22);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.78);
  padding: 10px;
}

.account-mini-metrics strong {
  color: #102a5c;
  display: block;
  font-size: 20px;
}

.account-mini-metrics span {
  color: #5f7196;
  font-size: 12px;
}

.signal-word-cloud {
  align-items: center;
  border: 1px solid rgba(91, 154, 255, 0.18);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  min-height: 142px;
  padding: 12px;
}

.signal-word-cloud span {
  color: #1d4ed8;
  font-size: calc(14px * var(--scale));
  font-weight: 900;
}

.signal-word-cloud span:nth-child(3n) { color: #0891b2; }
.signal-word-cloud span:nth-child(4n) { color: #7c3aed; }
.signal-word-cloud span:nth-child(5n) { color: #ea580c; }

.content-signal-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.network-buzz-panel {
  min-height: 560px;
}

.buzz-map {
  display: block;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.intel-hub {
  align-items: center;
  background: radial-gradient(circle at 35% 30%, #ffffff, #2f80ff 62%, #102a5c);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(47, 128, 255, 0.1), 0 18px 60px rgba(47, 128, 255, 0.35);
  color: #ffffff;
  display: grid;
  height: 150px;
  justify-items: center;
  left: 50%;
  padding: 30px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  z-index: 3;
}

.intel-hub strong {
  font-size: 20px;
  line-height: 1.25;
}

.intel-hub span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.intel-link {
  background: linear-gradient(90deg, rgba(47, 128, 255, 0.18), rgba(141, 107, 255, 0.42));
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  width: 24%;
  z-index: 1;
}

.buzz-bubble {
  left: var(--x);
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.buzz-bubble.is-hot {
  background: radial-gradient(circle at 35% 30%, #fff, #2f80ff 72%);
  color: #fff;
}

.buzz-bubble.is-warm {
  background: radial-gradient(circle at 35% 30%, #fff, #8d6bff 72%);
  color: #fff;
}

.buzz-bubble.is-watch {
  background: radial-gradient(circle at 35% 30%, #fff, #23d3ff 76%);
  color: #0f3b78;
}

.risk-alert-list,
.stock-hot-list,
.realtime-feed,
.abnormal-table {
  display: grid;
  gap: 8px;
}

.risk-alert-item,
.realtime-feed-item,
.abnormal-row,
.stock-hot-row {
  align-items: center;
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 8px;
  min-height: 42px;
  padding: 9px;
}

.risk-alert-item {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.risk-alert-item > span {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.risk-alert-item[data-level="high"] > span { background: #ff5a6d; }
.risk-alert-item[data-level="medium"] > span { background: #ffae35; }

.risk-alert-item strong,
.stock-hot-row strong,
.realtime-feed-item strong,
.abnormal-row span {
  color: #102a5c;
}

.risk-alert-item p {
  color: #5f7196;
  font-size: 12px;
  margin: 3px 0 0;
}

.risk-radar-card {
  margin-top: 12px;
}

.risk-radar svg {
  display: block;
  margin: auto;
  max-width: 230px;
  width: 100%;
}

.radar-grid {
  fill: rgba(47, 128, 255, 0.08);
  stroke: rgba(47, 128, 255, 0.35);
}

.radar-grid.is-inner {
  fill: rgba(141, 107, 255, 0.06);
}

.radar-shape {
  fill: rgba(141, 107, 255, 0.24);
  stroke: #8d6bff;
  stroke-width: 2;
}

.risk-radar text {
  fill: #4f6b9b;
  font-size: 10px;
  font-weight: 800;
}

.stock-hot-row {
  grid-template-columns: 26px minmax(80px, 1fr) minmax(90px, 1.2fr) 58px 48px;
}

.stock-hot-row span {
  align-items: center;
  background: #eaf2ff;
  border-radius: 8px;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.stock-hot-row i {
  background: #e5eefb;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.stock-hot-row i b {
  background: linear-gradient(90deg, #2f80ff, #23d3ff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.stock-hot-row em,
.stock-hot-row small {
  color: #5f7196;
  font-style: normal;
  font-weight: 800;
}

.realtime-feed-item {
  grid-template-columns: 58px minmax(70px, 0.8fr) minmax(90px, 1fr) 66px 78px;
}

.realtime-feed-item time,
.realtime-feed-item span,
.realtime-feed-item b,
.realtime-feed-item em {
  color: #5f7196;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-feed-item em {
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 4px 7px;
  text-align: center;
}

.abnormal-row {
  grid-template-columns: minmax(110px, 1fr) 78px 64px 44px;
}

.abnormal-row.is-head {
  background: transparent;
  border-color: transparent;
  color: #5f7196;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
}

.abnormal-row b {
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 4px 6px;
  text-align: center;
}

.abnormal-row b[data-level="challenge"],
.abnormal-row b[data-level="login_required"] {
  background: #ffae35;
}

.abnormal-row b[data-level="failed"] {
  background: #ff5a6d;
}

.abnormal-row em {
  color: #2f80ff;
  font-style: normal;
  font-weight: 900;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compact-grid {
  margin-top: 12px;
}

.dashboard-bars,
.dashboard-rows {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-bar-label,
.dashboard-row,
.collector-bridge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.dashboard-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.dashboard-row {
  min-height: 34px;
  border-bottom: 1px solid var(--border);
}

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

.dashboard-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.collector-bridge {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.automation-hero {
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 14px;
}

.automation-hero strong {
  display: block;
  font-size: 16px;
}

.automation-hero small {
  display: block;
  margin-top: 6px;
  color: #475569;
}

.automation-audit {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

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

.audit-head h3 {
  margin: 0 0 4px;
}

.audit-head p {
  margin: 0;
  color: var(--muted);
}

.audit-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.audit-status[data-state="success"],
.audit-status[data-state="draft"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--good);
}

.audit-status[data-state="warning"],
.audit-status[data-state="partial"],
.audit-status[data-state="no_records"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.audit-status[data-state="blocked"],
.audit-status[data-state="failed"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--bad);
}

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

.audit-metrics div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.audit-metrics strong {
  display: block;
  font-size: 20px;
}

.audit-metrics span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.audit-notice {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}

.audit-notice[data-state="success"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.audit-notice[data-state="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.audit-notice[data-state="blocked"] {
  border-color: #fecaca;
  background: #fef2f2;
}

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

.audit-step {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.audit-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.audit-step[data-state="success"] > span,
.audit-step[data-state="draft"] > span {
  background: #dcfce7;
  color: var(--good);
}

.audit-step[data-state="warning"] > span,
.audit-step[data-state="partial"] > span,
.audit-step[data-state="no_records"] > span {
  background: #fef3c7;
  color: #b45309;
}

.audit-step[data-state="blocked"] > span,
.audit-step[data-state="failed"] > span {
  background: #fee2e2;
  color: var(--bad);
}

.audit-step strong {
  display: block;
  margin-bottom: 6px;
}

.audit-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.audit-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: var(--surface-soft);
}

.automation-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.collection-health-panel {
  margin-bottom: 16px;
}

.collection-health-panel .row-item {
  align-items: flex-start;
  margin-bottom: 12px;
}

.collection-health-panel p {
  margin-top: 4px;
  color: var(--muted);
}

.health-status {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
}

.health-status[data-state="healthy"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--good);
}

.health-status[data-state="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.health-status[data-state="critical"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--bad);
}

.health-summary {
  margin-bottom: 12px;
}

.health-alerts {
  margin-bottom: 12px;
}

.health-alert[data-level="healthy"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.health-alert[data-level="info"] {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.health-alert[data-level="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.health-alert[data-level="critical"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.health-recommendations h3 {
  margin-bottom: 8px;
}

.automation-run-item[data-status="failed"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.automation-run-item[data-status="success"],
.automation-run-item[data-status="generated"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.collector-bridge-head span {
  color: var(--muted);
  font-size: 12px;
}

.collector-bridge-head span[data-state="connected"] {
  color: var(--good);
}

.collector-bridge-head span[data-state="running"],
.collector-bridge-head span[data-state="checking"] {
  color: var(--warn);
}

.collector-bridge-head span[data-state="missing"] {
  color: var(--bad);
}

.collector-log {
  min-height: 96px;
  margin-top: 10px;
  font-size: 12px;
}

.collect-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.collect-filter-panel {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.collect-strategy-form {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.collect-guide {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.collect-smart-plan {
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 12px;
}

.collect-loop-panel {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.collect-issue-panel {
  margin-bottom: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}

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

.issue-summary-card {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.issue-summary-card strong {
  display: block;
  font-size: 20px;
}

.issue-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.collect-issue-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  align-items: center;
}

.collect-issue-toolbar select {
  min-width: 132px;
}

.collect-issue-count {
  background: #fff;
}

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

.smart-plan-grid > div {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.smart-plan-grid strong {
  display: block;
  font-size: 20px;
}

.smart-plan-grid span {
  color: var(--muted);
  font-size: 12px;
}

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

.loop-summary-grid > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.loop-summary-grid > div[data-state="ready"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.loop-summary-grid > div[data-state="blocked"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.loop-summary-grid > div[data-state="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.loop-summary-grid strong {
  display: block;
  font-size: 18px;
}

.loop-summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.loop-step-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.loop-step {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.loop-step[data-state="ready"] {
  border-color: #bbf7d0;
}

.loop-step[data-state="blocked"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.loop-step[data-state="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.loop-step[data-state="idle"] {
  background: var(--surface-soft);
}

.loop-step p {
  margin: 5px 0 0;
  color: var(--muted);
}

.loop-warning {
  display: grid;
  gap: 6px;
}

.loop-warning span {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  padding: 8px 10px;
  color: #92400e;
  font-size: 12px;
}

.smart-plan-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.smart-plan-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.collect-issue-list {
  margin-top: 10px;
}

.collect-issue-item[data-level="critical"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.collect-issue-item[data-level="warning"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.collect-issue-item[data-level="info"] {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.collect-issue-item[data-level="healthy"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.collect-issue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.collect-issue-select {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.collect-issue-select input {
  margin-top: 3px;
}

.collect-issue-select span {
  display: grid;
  gap: 2px;
}

.collect-issue-head > span {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}

.collect-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.collect-strategy-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.collect-strategy-head div {
  display: grid;
  gap: 4px;
}

.collect-strategy-head small {
  color: var(--muted);
}

.collect-strategy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.collect-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.collect-selection-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.collect-target-check {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.collect-target-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.collect-target-check span {
  min-width: 0;
}

.collect-target-item.is-disabled {
  background: #f9fafb;
  opacity: 0.72;
}

.transcript-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.transcript-stats > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  text-align: center;
}

.transcript-stats strong {
  display: block;
  font-size: 22px;
}

.transcript-stats span {
  color: var(--muted);
  font-size: 12px;
}

.transcript-task-item[data-status="completed"] {
  border-color: #bbf7d0;
}

.transcript-task-item[data-status="blocked"] {
  background: #fffbeb;
}

.transcript-full {
  max-height: 280px;
  margin: 8px 0 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.text-analysis-report {
  min-height: 540px;
}

/* Premium console skin: align the lower product and dashboard area with the hero visual language. */
body {
  background:
    radial-gradient(circle at 70% 12%, rgba(42, 136, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #050915 0, #070d1d 48%, #040711 100%);
}

.product-applications {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(80, 139, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 139, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(36, 211, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 72%, rgba(124, 92, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #071121 0%, #09142b 54%, #050915 100%);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
  color: #f5f8ff;
}

.product-applications::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 18, 0.1), transparent 34%, rgba(2, 6, 18, 0.5)),
    linear-gradient(120deg, transparent 0 16%, rgba(61, 153, 255, 0.1) 19%, transparent 28% 100%);
  pointer-events: none;
}

.product-applications > * {
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  color: #f8fbff;
  text-shadow: 0 0 28px rgba(64, 155, 255, 0.24);
}

.section-copy {
  color: rgba(220, 233, 255, 0.82);
}

.application-grid article {
  border-color: rgba(119, 178, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 24, 55, 0.92), rgba(5, 12, 29, 0.92)),
    rgba(7, 17, 38, 0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef6ff;
}

.application-grid article h3 {
  color: #ffffff;
}

.application-grid article p {
  color: rgba(220, 233, 255, 0.76);
}

.application-grid article small {
  color: #69c8ff;
}

.topbar,
.console-section-tabs,
.stats-grid,
.workspace {
  --surface: rgba(8, 18, 40, 0.86);
  --surface-soft: rgba(12, 28, 62, 0.72);
  --border: rgba(118, 177, 255, 0.22);
  --text: #eef6ff;
  --muted: #91a8cd;
  --brand: #69b9ff;
  --brand-soft: rgba(42, 136, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color: var(--text);
}

.topbar {
  margin: 0 0 12px;
  border-color: rgba(132, 190, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 27, 61, 0.94), rgba(5, 12, 28, 0.94)),
    rgba(8, 18, 40, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 176, 255, 0.86), transparent);
}

.console-logo {
  border: 1px solid rgba(132, 190, 255, 0.34);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(135deg, #416dff, #26d5ff);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(65, 145, 255, 0.32);
}

.eyebrow,
.console-search span,
.stat label,
.panel p,
.list-item small,
label,
.mini-stats span {
  color: var(--muted);
}

.console-search input,
.topbar input,
.workspace input,
.workspace select {
  border-color: rgba(132, 190, 255, 0.24);
  background: rgba(3, 10, 26, 0.62);
  color: #f5f9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.console-search input::placeholder,
.workspace input::placeholder,
.workspace textarea::placeholder {
  color: rgba(174, 194, 226, 0.58);
}

.console-actions button,
.console-section-tabs button,
.console-right-rail button,
.workspace button.secondary,
.workspace button.ghost,
.workspace .link-button {
  border-color: rgba(132, 190, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #dbeafe;
}

.workspace button,
.dashboard-open-screen {
  background: linear-gradient(135deg, rgba(55, 124, 255, 0.98), rgba(41, 210, 255, 0.88));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 111, 235, 0.22);
}

.console-actions button:hover,
.console-section-tabs button:hover,
.console-right-rail button:hover,
.workspace button.secondary:hover,
.workspace button.ghost:hover,
.workspace .link-button:hover {
  border-color: rgba(93, 185, 255, 0.58);
  background: rgba(55, 124, 255, 0.18);
  color: #ffffff;
  filter: none;
}

.console-status,
.status {
  border-color: rgba(109, 255, 199, 0.26);
  background: rgba(10, 38, 44, 0.74);
  color: #7fffd4;
}

.console-section-tabs {
  margin: 10px 0 14px;
  border-bottom-color: rgba(132, 190, 255, 0.16);
}

.console-section-tabs button {
  color: #9fb7db;
}

.console-section-tabs button.is-active {
  border-bottom-color: #69b9ff;
  color: #f8fbff;
}

.stats-grid {
  gap: 12px;
}

.stat,
.panel,
.side-nav,
.subpanel,
.report-card,
.mini-stats > div,
.console-right-rail section,
.author-manage-panel,
.author-form,
.pipeline-panel,
.collector-bridge,
.collect-filter-panel,
.collect-strategy-form,
.collect-guide,
.collect-loop-panel,
.automation-audit,
.automation-form,
.transcript-stats > div {
  border-color: rgba(132, 190, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(13, 30, 64, 0.9), rgba(6, 15, 35, 0.88)),
    rgba(7, 17, 38, 0.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.stat span,
.mini-stats strong,
.transcript-stats strong,
.pipeline-step strong,
.pipeline-rule-metrics strong,
.author-manage-card strong,
.smart-plan-grid strong,
.loop-summary-grid strong {
  color: #ffffff;
}

.stat:hover,
.author-card:hover {
  border-color: rgba(104, 198, 255, 0.58);
  box-shadow: 0 22px 58px rgba(21, 103, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-nav {
  scrollbar-color: rgba(105, 185, 255, 0.45) transparent;
}

.nav-group-label {
  color: #69b9ff;
}

.workspace .nav-item {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #b8c9e7;
}

.workspace .nav-item.is-active {
  border-color: rgba(104, 198, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(48, 119, 255, 0.26), rgba(35, 211, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #69b9ff;
}

.workspace .nav-item:not(.is-active):hover {
  border-color: rgba(132, 190, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #f5f9ff;
}

.panel-header {
  border-bottom-color: rgba(132, 190, 255, 0.16);
}

.list-item,
.pipeline-step,
.pipeline-rule-card,
.pipeline-rule-metrics div,
.author-manage-card,
.author-curation-card,
.author-score-card,
.author-card,
.author-enrichment-card,
.smart-plan-grid > div,
.loop-summary-grid > div,
.loop-step,
.audit-metrics div,
.audit-step,
.issue-summary-card {
  border-color: rgba(132, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.list-item p,
.report-card p,
.pipeline-step p,
.author-manage-head small,
.author-manage-card small,
.author-curation-card small,
.author-score-card span,
.author-enrichment-card span,
.author-enrichment-card small {
  color: #9fb7db;
}

.pipeline-status,
.automation-hero,
.collect-smart-plan,
.health-status,
.audit-status,
.audit-notice,
.dropzone {
  border-color: rgba(104, 198, 255, 0.28);
  background: rgba(42, 136, 255, 0.12);
  color: #9fdcff;
}

.collect-issue-panel {
  border-color: rgba(255, 190, 92, 0.28);
  background: rgba(80, 45, 18, 0.46);
}

.result,
.workspace textarea,
.transcript-full {
  border-color: rgba(132, 190, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(3, 10, 26, 0.92), rgba(4, 11, 27, 0.92));
  color: #dbeafe;
}

.console-right-rail section {
  background: rgba(7, 17, 38, 0.82);
}

.rail-status-row {
  border-top-color: rgba(132, 190, 255, 0.14);
  color: #91a8cd;
}

.rail-status-row b {
  color: #f5f9ff;
}

.rail-head span {
  background: rgba(35, 211, 255, 0.12);
  color: #69e8ff;
}

#view-dashboard {
  border-color: rgba(132, 190, 255, 0.28);
  background:
    linear-gradient(rgba(82, 144, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 144, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 51% 32%, rgba(35, 211, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(124, 92, 255, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(7, 17, 38, 0.98), rgba(3, 8, 20, 0.98));
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#view-dashboard::before {
  background:
    linear-gradient(120deg, transparent 0 16%, rgba(61, 153, 255, 0.16) 20%, transparent 30% 100%),
    linear-gradient(250deg, transparent 0 68%, rgba(35, 211, 255, 0.13) 72%, transparent 82% 100%);
}

#view-dashboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(71, 162, 255, 0.12), transparent 42%);
  pointer-events: none;
}

#view-dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-screen-head {
  border-color: rgba(132, 190, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 40, 84, 0.78), rgba(4, 13, 33, 0.74)),
    rgba(5, 14, 33, 0.84);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
}

.dashboard-screen-head h2 {
  color: #ffffff;
  font-size: clamp(26px, 2.2vw, 38px);
  text-shadow: 0 0 30px rgba(60, 164, 255, 0.24);
}

.dashboard-screen-head p,
.dashboard-screen-head small {
  color: #9fdcff;
}

.dashboard-screen-actions select {
  border-color: rgba(132, 190, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 10, 26, 0.62);
  color: #f5f9ff;
}

.dashboard-open-screen {
  border-color: rgba(105, 222, 255, 0.48);
  border-radius: 8px;
  text-decoration: none;
}

.dashboard-command-grid {
  gap: 14px;
}

.dashboard-command-grid .dashboard-tile,
.glass-panel,
.dashboard-ai-summary {
  border-color: rgba(132, 190, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 36, 75, 0.78), rgba(6, 16, 38, 0.74)),
    rgba(6, 16, 38, 0.78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-command-grid .dashboard-tile,
.glass-panel {
  border-radius: 8px;
}

.dashboard-command-grid .dashboard-tile::after,
.glass-panel::after {
  background: linear-gradient(135deg, rgba(95, 180, 255, 0.12), transparent 44%);
}

.dashboard-command-grid .dashboard-tile small,
.dashboard-command-grid .dashboard-tile span:not(.kpi-icon),
.dashboard-ai-summary,
.dashboard-empty {
  color: #9fb7db;
}

.dashboard-command-grid .dashboard-tile strong {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(74, 176, 255, 0.22);
}

.kpi-icon {
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(135deg, #3274ff, #24d3ff);
  box-shadow: 0 0 24px rgba(56, 145, 255, 0.3), inset 0 0 14px rgba(255, 255, 255, 0.24);
}

.kpi-icon.is-purple { background: linear-gradient(135deg, #7c5cff, #47d7ff); }
.kpi-icon.is-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.kpi-icon.is-red { background: linear-gradient(135deg, #ff536d, #ff9f43); }
.kpi-icon.is-orange { background: linear-gradient(135deg, #ff9f43, #f97316); }
.kpi-icon.is-indigo { background: linear-gradient(135deg, #536dfe, #8b5cf6); }

.panel-title-row h3,
.network-buzz-head h3,
.glass-panel h4 {
  color: #f8fbff;
}

.panel-title-row span,
.network-buzz-head small,
.glass-panel h4 {
  color: #8fa9d4;
}

.account-mini-metrics article,
.risk-alert-item,
.realtime-feed-item,
.abnormal-row,
.stock-hot-row,
.buzz-topic-card,
.network-buzz-bottom > div,
.buzz-trend-card {
  border-color: rgba(132, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.donut-core::after {
  background: rgba(4, 12, 29, 0.92);
  box-shadow: inset 0 0 18px rgba(47, 128, 255, 0.2);
}

.donut-core strong,
.account-mini-metrics strong,
.risk-alert-item strong,
.stock-hot-row strong,
.realtime-feed-item strong,
.abnormal-row span {
  color: #ffffff;
}

.donut-core span,
.donut-legend span,
.account-mini-metrics span,
.risk-alert-item p,
.stock-hot-row em,
.stock-hot-row small,
.realtime-feed-item time,
.realtime-feed-item span,
.realtime-feed-item b,
.realtime-feed-item em,
.abnormal-row.is-head,
.risk-radar text {
  color: #91a8cd;
}

.signal-word-cloud {
  border-color: rgba(132, 190, 255, 0.18);
  background:
    linear-gradient(rgba(80, 139, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 139, 255, 0.035) 1px, transparent 1px),
    rgba(3, 10, 26, 0.34);
  background-size: 28px 28px;
}

.signal-word-cloud span {
  color: #69d7ff;
  text-shadow: 0 0 18px rgba(77, 201, 255, 0.24);
}

.signal-word-cloud span:nth-child(3n) { color: #9bbcff; }
.signal-word-cloud span:nth-child(4n) { color: #c3a7ff; }
.signal-word-cloud span:nth-child(5n) { color: #ffbd78; }

.network-buzz-panel {
  border-color: rgba(105, 222, 255, 0.26);
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 211, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(11, 29, 62, 0.86), rgba(4, 12, 29, 0.86));
}

.buzz-live-dot {
  border-color: rgba(109, 255, 199, 0.28);
  background: rgba(9, 56, 57, 0.64);
  color: #72ffd4;
}

.buzz-map {
  border-color: rgba(132, 190, 255, 0.18);
  background:
    linear-gradient(rgba(80, 139, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 139, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(36, 211, 255, 0.14), transparent 46%),
    rgba(2, 8, 22, 0.48);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.intel-hub {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 35% 28%, #ffffff, #37a6ff 45%, #173f96 82%);
  box-shadow: 0 0 0 12px rgba(47, 128, 255, 0.12), 0 22px 70px rgba(47, 128, 255, 0.38);
}

.intel-link {
  background: linear-gradient(90deg, rgba(35, 211, 255, 0.08), rgba(105, 185, 255, 0.64), rgba(124, 92, 255, 0.08));
}

.buzz-bubble {
  border-color: rgba(132, 190, 255, 0.36);
  background: radial-gradient(circle at 35% 28%, #ffffff, #2f80ff 70%);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(47, 128, 255, 0.26), inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.buzz-bubble.is-hot {
  border-color: rgba(255, 142, 111, 0.6);
  background: radial-gradient(circle at 35% 28%, #fff5f5, #ff586f 70%);
}

.buzz-bubble.is-warm {
  border-color: rgba(255, 190, 92, 0.55);
  background: radial-gradient(circle at 35% 28%, #fff7ed, #ff9f43 72%);
  color: #ffffff;
}

.buzz-bubble.is-watch {
  border-color: rgba(117, 226, 255, 0.5);
  background: radial-gradient(circle at 35% 28%, #e0fbff, #23d3ff 74%);
  color: #06254d;
}

.buzz-bubble small,
.buzz-bubble.is-hot small {
  color: rgba(255, 255, 255, 0.78);
}

.buzz-keyword,
.stock-hot-row span,
.realtime-feed-item em {
  border-color: rgba(105, 185, 255, 0.24);
  background: rgba(42, 136, 255, 0.14);
  color: #9fdcff;
}

.stock-hot-row i,
.dashboard-bar-track {
  background: rgba(132, 190, 255, 0.16);
}

.dashboard-bar-track i,
.stock-hot-row i b {
  background: linear-gradient(90deg, #3274ff, #24d3ff);
}

.dashboard-row {
  border-bottom-color: rgba(132, 190, 255, 0.14);
}

.radar-grid {
  fill: rgba(47, 128, 255, 0.1);
  stroke: rgba(105, 185, 255, 0.36);
}

.radar-grid.is-inner {
  fill: rgba(141, 107, 255, 0.08);
}

.radar-shape {
  fill: rgba(105, 185, 255, 0.22);
  stroke: #69b9ff;
}

.abnormal-row b[data-level="challenge"],
.abnormal-row b[data-level="login_required"] {
  background: linear-gradient(135deg, #ff9f43, #f97316);
}

.abnormal-row b[data-level="failed"] {
  background: linear-gradient(135deg, #ff536d, #fb7185);
}

@media (max-width: 880px) {
  #view-authors .panel-header {
    display: block;
  }

  .shell {
    width: min(100vw - 24px, 1240px);
    padding-top: 18px;
  }

  .topbar,
  .workspace,
  .grid-two,
  .grid-three,
  .network-buzz-layout,
  .network-buzz-bottom,
  .buzz-trend-windows,
  .dashboard-command-grid,
  .intelligence-grid,
  .account-profile-grid,
  .content-signal-bottom,
  .author-metrics,
  .author-enrichment-summary,
  .author-score-summary,
  .author-curation-summary,
  .author-curation-guide,
  .dashboard-hero,
  .reporting-guide,
  .pipeline-head,
  .pipeline-steps,
  .report-layout {
    display: block;
  }

  .topbar {
    position: static;
    margin: 0 0 12px;
  }

  .console-brand-block,
  .console-search,
  .console-actions {
    width: 100%;
    margin-top: 8px;
  }

  .console-section-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .console-right-rail {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .nav-item {
    height: auto;
    min-height: 36px;
    justify-content: center;
    padding: 6px 8px;
    text-align: center;
    white-space: normal;
  }

  .nav-group-label {
    grid-column: 1 / -1;
    margin: 8px 4px 2px;
  }

  .stats-grid,
  .transcript-stats,
  .audit-metrics,
  .audit-steps,
  .upload-form,
  .author-form,
  .author-manage-summary,
  .diagnostic-summary,
  .collect-strategy-grid,
  .collect-guide-grid,
  .smart-plan-grid,
  .loop-summary-grid,
  .issue-summary-grid,
  .collect-filter-grid,
  .pipeline-rule-metrics,
  .automation-form,
  .filter-form,
  .api-row,
  .author-cleanup-presets,
  .author-collector-link,
  .author-bulk-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .panel-header,
  .row-item,
  .network-buzz-head,
  .author-card-head,
  .author-card-badges,
  .author-manage-head,
  .author-collector-actions,
  .author-score-head,
  .author-score-row,
  .author-curation-head,
  .author-curation-row,
  .author-enrichment-head,
  .author-recycle-head,
  .collect-issue-head {
    display: block;
  }

  .buzz-map {
    min-height: 240px;
  }

  .dashboard-screen-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .dashboard-screen-actions button,
  .dashboard-screen-actions select,
  .dashboard-open-screen {
    width: 100%;
  }

  .dashboard-command-grid .dashboard-tile,
  .stock-hot-row,
  .realtime-feed-item,
  .abnormal-row {
    grid-template-columns: 1fr;
  }

  .dashboard-command-grid .dashboard-tile small,
  .dashboard-command-grid .dashboard-tile strong,
  .dashboard-command-grid .dashboard-tile span:not(.kpi-icon) {
    grid-column: auto;
  }

  .kpi-icon {
    grid-column: auto;
    grid-row: auto;
  }

  .intel-hub {
    height: 118px;
    width: 118px;
  }

  .buzz-bubble {
    --size: 78px !important;
  }

  .buzz-topic-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-form input,
  .filter-form select,
  .api-row input {
    width: 100%;
  }

  .mini-stats {
    margin-top: 12px;
  }

  .status {
    margin-top: 12px;
  }
}
