:root {
  --bg: #eef5fb;
  --paper: rgba(255, 255, 255, 0.84);
  --paper-strong: #ffffff;
  --ink: #10396c;
  --muted: #6d7b89;
  --line: rgba(16, 57, 108, 0.12);
  --accent: #17c1dd;
  --accent-soft: rgba(23, 193, 221, 0.12);
  --warm: #1e83d7;
  --danger: #b9382f;
  --warning: #1899cc;
  --success: #2c7a4b;
  --shadow: 0 20px 56px rgba(16, 57, 108, 0.12);
  --button-radius: 12px;
  --button-border: rgba(16, 57, 108, 0.13);
  --button-surface: rgba(255, 255, 255, 0.64);
  --button-surface-hover: rgba(255, 255, 255, 0.86);
  --button-shadow: 0 10px 24px rgba(16, 57, 108, 0.08);
  --button-shadow-soft: 0 6px 16px rgba(16, 57, 108, 0.055);
  --button-primary: #0d79bd;
  --button-primary-soft: rgba(13, 121, 189, 0.12);
  --button-success: #119461;
  --button-success-soft: rgba(17, 148, 97, 0.12);
  --button-danger: #b65b55;
  --button-danger-soft: rgba(182, 91, 85, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --report-nav-radius-saved: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(23, 193, 221, 0.15), transparent 28%),
    radial-gradient(circle at top left, rgba(30, 131, 215, 0.16), transparent 26%),
    linear-gradient(180deg, #f9fcff 0%, var(--bg) 100%);
  min-height: 100vh;
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1.08fr) repeat(3, minmax(130px, 0.5fr));
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 34px;
  padding: 26px 16px 16px;
  color: var(--muted);
  border-top: 1px solid rgba(16, 57, 108, 0.12);
  background: transparent;
  box-shadow: none;
}

.site-footer > span,
.site-footer > .site-footer__links {
  display: none;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer__brand img {
  width: 112px;
  height: auto;
  display: block;
}

.site-footer__brand p {
  max-width: 260px;
  margin: 0;
  color: #536a82;
  line-height: 1.35;
  font-size: 0.91rem;
  font-weight: 650;
}

.site-footer__bottom a {
  width: fit-content;
  color: var(--button-primary);
  font-weight: 900;
  text-decoration: none;
}

.site-footer__bottom a:hover,
.site-footer__group a:hover {
  color: #13a7c4;
  text-decoration: underline;
}

.site-footer__group {
  display: grid;
  align-content: start;
  gap: 9px;
  padding-top: 6px;
}

.site-footer__group strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.site-footer__group a {
  position: relative;
  width: fit-content;
  color: #64758a;
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 750;
  padding-left: 16px;
}

.site-footer__group a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.82;
}

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 57, 108, 0.1);
  color: #6f7f90;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 2px;
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.site-footer__links a:hover {
  color: var(--button-primary);
  border-color: rgba(23, 193, 221, 0.42);
  background: rgba(236, 250, 254, 0.82);
}

.public-page {
  display: grid;
  gap: 26px;
}

.public-hero {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(23, 193, 221, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 249, 253, 0.62)),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.public-hero h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 600;
}

.public-updated {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(23, 193, 221, 0.28);
  border-radius: 999px;
  background: rgba(236, 250, 254, 0.72);
  color: #075f80;
  font-size: 0.84rem;
  font-weight: 800;
}

.public-content {
  display: grid;
  gap: 18px;
  padding: clamp(8px, 2vw, 18px) 0;
}

.public-section {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(16, 57, 108, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(16, 57, 108, 0.07);
}

.public-section h2,
.public-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: 0;
}

.public-section p,
.public-section li {
  color: #52687e;
  line-height: 1.72;
  font-weight: 600;
}

.public-section p {
  margin: 0;
}

.public-section p + p,
.public-section ul + p,
.public-section p + ul {
  margin-top: 12px;
}

.public-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 760px;
  padding: 24px;
  border: 1px solid rgba(16, 57, 108, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 253, 0.72)),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(16, 57, 108, 0.085);
  overflow: hidden;
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(23, 193, 221, 0.16), transparent 68%);
  pointer-events: none;
}

.pricing-card--featured {
  border-color: rgba(23, 193, 221, 0.45);
  background:
    linear-gradient(180deg, rgba(236, 250, 254, 0.96), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: 0 22px 54px rgba(23, 193, 221, 0.18);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #17c1dd, #0d79bd, #23c77f);
}

.pricing-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #17c1dd, #0d79bd);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.pricing-card__top {
  position: relative;
  display: grid;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 57, 108, 0.1);
}

.pricing-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border: 1px solid rgba(23, 193, 221, 0.24);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(219, 247, 253, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(23, 193, 221, 0.14);
}

.pricing-card__icon svg {
  width: 24px;
  height: 24px;
  fill: #0d79bd;
}

.pricing-card__label {
  width: fit-content;
  color: #075f80;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card h2 {
  margin: 0;
  font-size: 1.58rem;
}

.pricing-card__price {
  color: var(--button-primary);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-card__price span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.pricing-card__price--custom {
  font-size: 1.68rem;
}

.pricing-card__top p {
  min-height: 74px;
  margin: 0;
  color: #5d7084;
  line-height: 1.55;
  font-weight: 650;
}

.pricing-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}

.pricing-card__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(23, 193, 221, 0.18);
  border-radius: 999px;
  background: rgba(236, 250, 254, 0.72);
  color: #075f80;
  font-size: 0.75rem;
  font-weight: 850;
}

.pricing-card ul {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 330px;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
  color: #52687e;
  line-height: 1.45;
  font-size: 0.94rem;
  font-weight: 650;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(23, 193, 221, 0.1);
}

.pricing-card__action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #18bdd6, #0d79bd);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(13, 121, 189, 0.2);
}

.pricing-card__action--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(16, 57, 108, 0.12);
  box-shadow: none;
}

.public-page--pricing {
  gap: 22px;
}

.public-hero--pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.public-hero--pricing h1 {
  max-width: 820px;
}

.pricing-hero-panel {
  padding: 24px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(16, 57, 108, 0.1);
}

.pricing-hero-panel__score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.pricing-hero-panel__score span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-hero-panel__score strong {
  color: #13b7d3;
  font-size: 2.4rem;
  line-height: 1;
}

.pricing-hero-panel__bar {
  height: 8px;
  margin: 16px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 57, 108, 0.12);
}

.pricing-hero-panel__bar span {
  display: block;
  width: 94.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18b7c3, #23c77f);
}

.pricing-hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-hero-panel li {
  color: #52687e;
  font-size: 0.94rem;
  font-weight: 750;
}

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

.pricing-summary article {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(16, 57, 108, 0.06);
}

.pricing-summary__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 193, 221, 0.18), rgba(13, 121, 189, 0.1));
}

.pricing-summary__icon svg {
  width: 22px;
  height: 22px;
  fill: #0d79bd;
}

.pricing-summary strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.05rem;
}

.pricing-summary p {
  margin: 0;
  color: #5d7084;
  line-height: 1.55;
  font-weight: 650;
}

.pricing-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(23, 193, 221, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 249, 253, 0.64)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(16, 57, 108, 0.075);
}

.pricing-note .solid-link {
  min-width: 170px;
  min-height: 48px;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
  border-radius: 999px;
  line-height: 1;
}

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

.pricing-trust article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(16, 57, 108, 0.055);
}

.pricing-trust span {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(236, 250, 254, 0.9);
}

.pricing-trust svg {
  width: 22px;
  height: 22px;
  fill: #0d79bd;
}

.pricing-trust strong {
  align-self: end;
  color: var(--ink);
  font-size: 1rem;
}

.pricing-trust p {
  margin: 0;
  color: #5d7084;
  line-height: 1.5;
  font-weight: 650;
}

.pricing-note h2 {
  margin: 0 0 6px;
}

.pricing-note p {
  margin: 0;
  color: #5d7084;
  line-height: 1.6;
  font-weight: 650;
}

.public-contact-link {
  color: var(--button-primary);
  font-weight: 850;
  text-decoration: none;
}

.public-contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .site-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .site-footer__brand {
    grid-column: span 2;
  }

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

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

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card {
    min-height: 700px;
  }
}

@media (max-width: 680px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 22px 20px 16px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .site-footer__brand img {
    width: 96px;
  }

  .site-footer__brand p {
    max-width: 280px;
    font-size: 0.88rem;
  }

  .site-footer__group {
    padding-top: 0;
    gap: 7px;
  }

  .site-footer__group[aria-label="Legal pages"] {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, max-content);
    align-items: center;
    gap: 8px 16px;
  }

  .site-footer__group[aria-label="Legal pages"] strong {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    display: grid;
    justify-content: stretch;
    gap: 6px;
    text-align: left;
    margin-top: 4px;
  }

  .public-hero,
  .public-section,
  .pricing-card {
    border-radius: 16px;
  }

  .public-hero {
    padding: 30px 22px;
  }

  .public-hero h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
    line-height: 1.06;
  }

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

  .pricing-summary {
    grid-template-columns: 1fr;
  }

  .pricing-trust {
    grid-template-columns: 1fr;
  }

  .pricing-note {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pricing-note .solid-link {
    width: 100%;
  }

  .pricing-card {
    min-height: auto;
    padding: 22px;
  }

  .pricing-card__top p,
  .pricing-card ul {
    min-height: auto;
  }

  .pricing-card__badge {
    position: static;
    width: fit-content;
    margin-bottom: -6px;
  }
}

@media (max-width: 340px) {
  .site-footer {
    grid-template-columns: 1fr;
    width: 100%;
    padding-inline: 20px;
  }

  .site-footer__group {
    justify-items: start;
    text-align: left;
  }

  .site-footer__group a {
    padding-left: 16px;
  }

  .site-footer__group a::before {
    display: block;
  }

  .site-footer__group[aria-label="Legal pages"] {
    grid-template-columns: 1fr;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(236, 250, 254, 0.36)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 6px 18px rgba(16, 57, 108, 0.045);
}

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

.brand-logo {
  width: 112px;
  height: auto;
  display: block;
  padding: 8px 4px;
}

.mobile-menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  line-height: 1;
}

.site-nav a,
.ghost-link,
.solid-link {
  text-decoration: none;
}

.site-nav a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 0;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-actions .ghost-link,
.site-actions .solid-link {
  font-weight: 850;
}

.ghost-link,
.solid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  line-height: 1;
}

.ghost-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.solid-link {
  color: white;
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  box-shadow: 0 14px 30px rgba(13, 111, 191, 0.18);
}

.site-actions .ghost-link,
.site-actions .solid-link {
  position: relative;
  gap: 6px;
  color: #173d63;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 9px 0;
  box-shadow: none;
}

.site-actions .solid-link {
  color: var(--ink);
}

.site-actions .solid-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: #c83f3f;
}

.site-nav a:hover,
.site-actions .ghost-link:hover,
.site-actions .solid-link:hover {
  color: var(--ink);
  background: transparent;
}

.site-nav-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 15px;
  color: currentColor;
  opacity: 0.78;
}

.site-nav-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.founder-page--editorial {
  display: grid;
  gap: 22px;
}

.founder-hero--signature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  padding: 54px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(23, 193, 221, 0.22);
  background:
    linear-gradient(90deg, rgba(13, 59, 102, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 59, 102, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 249, 252, 0.9) 58%, rgba(214, 239, 255, 0.78));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  animation: founder-rise 0.7s ease-out both;
}

.founder-hero--signature::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(16, 57, 108, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.founder-hero--signature::after {
  content: "";
  position: absolute;
  inset: auto 34px 34px auto;
  width: 44%;
  height: 58%;
  border: 1px solid rgba(23, 193, 221, 0.18);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: 0.8;
  pointer-events: none;
  animation: founder-panel-breathe 5.2s ease-in-out infinite;
}

.founder-hero__copy,
.founder-profile-panel {
  position: relative;
  z-index: 1;
}

.founder-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.founder-kicker {
  max-width: 620px;
  margin: 0 0 14px;
  color: #08799a;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 850;
  line-height: 1.35;
}

[dir="rtl"] .founder-kicker {
  margin-top: 28px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.founder-lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.founder-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.founder-action-link {
  min-height: 44px;
  gap: 9px;
  padding: 11px 18px;
  font-size: 0.98rem;
}

.founder-action-link__icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: currentColor;
}

.founder-action-link__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.founder-action-link.ghost-link .founder-action-link__icon {
  background: rgba(23, 193, 221, 0.12);
}

.founder-action-link--website {
  border-color: rgba(23, 193, 221, 0.28);
  background: rgba(236, 254, 255, 0.78);
  color: #075e8f;
}

.founder-action-link--website:hover {
  border-color: rgba(13, 111, 191, 0.28);
  background: rgba(224, 250, 255, 0.96);
  color: #064f78;
}

.founder-profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 0;
  min-height: 410px;
  justify-content: center;
}

.founder-portrait {
  margin: 0;
}

.founder-portrait--compact {
  position: relative;
  z-index: 2;
  width: min(100%, 275px);
  padding: 0;
  border-radius: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: -18px;
}

.founder-portrait--compact img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  filter: drop-shadow(0 28px 34px rgba(16, 57, 108, 0.24));
  mix-blend-mode: multiply;
}

.founder-profile-card {
  position: relative;
  z-index: 3;
  overflow: hidden;
  width: min(100%, 300px);
  padding: 16px;
  border-radius: 18px;
  background: #0d3b66;
  color: #fff;
  border: 1px solid rgba(128, 232, 245, 0.26);
  box-shadow: 0 18px 38px rgba(13, 59, 102, 0.22);
  transform: none;
}

.founder-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(128, 232, 245, 0.22);
  pointer-events: none;
}

.founder-profile-card__label,
.founder-profile-card strong,
.founder-profile-card p {
  position: relative;
  z-index: 2;
}

.founder-border-comet {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.founder-card-light {
  position: absolute;
  display: block;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(128, 232, 245, 0.9), transparent);
  box-shadow: 0 0 12px rgba(128, 232, 245, 0.75);
}

.founder-card-light--top,
.founder-card-light--bottom {
  width: 86px;
  height: 2px;
}

.founder-card-light--right,
.founder-card-light--left {
  width: 2px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), rgba(128, 232, 245, 0.9), transparent);
}

.founder-card-light--top {
  top: 0;
  left: -86px;
  animation: founder-card-light-top 4.8s linear infinite;
}

.founder-card-light--right {
  top: -58px;
  right: 0;
  animation: founder-card-light-right 4.8s linear infinite 1.2s;
}

.founder-card-light--bottom {
  right: -86px;
  bottom: 0;
  animation: founder-card-light-bottom 4.8s linear infinite 2.4s;
}

.founder-card-light--left {
  bottom: -58px;
  left: 0;
  animation: founder-card-light-left 4.8s linear infinite 3.6s;
}

.founder-data-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.founder-photo-halo,
.founder-photo-aura {
  position: absolute;
  pointer-events: none;
}

.founder-photo-halo {
  inset: 58px 20px auto auto;
  width: 292px;
  height: 292px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(23, 193, 221, 0.08)),
    repeating-linear-gradient(90deg, rgba(23, 193, 221, 0.12) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(23, 193, 221, 0.16);
  transform: perspective(600px) rotateY(-12deg) rotateX(4deg);
  animation: founder-halo-breathe 5.8s ease-in-out infinite;
}

.founder-photo-aura {
  inset: 88px 56px auto auto;
  width: 228px;
  height: 228px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 193, 221, 0.2), rgba(23, 193, 221, 0.05) 48%, transparent 68%);
  animation: founder-aura-pulse 4.8s ease-in-out infinite;
}

.founder-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(23, 193, 221, 0.1);
  animation: founder-chip-drift 5.8s ease-in-out infinite;
}

.founder-node--one {
  top: 92px;
  right: 46px;
}

.founder-node--two {
  top: 232px;
  left: 48px;
  animation-delay: -1.4s;
}

.founder-node--three {
  right: 34px;
  bottom: 154px;
  animation-delay: -2.6s;
}

.founder-signal-lines {
  position: absolute;
  inset: 92px 18px auto auto;
  display: grid;
  gap: 8px;
  width: 132px;
}

.founder-signal-lines span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 193, 221, 0.12), rgba(23, 193, 221, 0.78), rgba(13, 111, 191, 0.1));
  transform-origin: left center;
  animation: founder-line-scan 2.7s ease-in-out infinite;
}

.founder-signal-lines span:nth-child(2) {
  width: 78%;
  animation-delay: 0.4s;
}

.founder-signal-lines span:nth-child(3) {
  width: 58%;
  animation-delay: 0.8s;
}

.founder-profile-card__label {
  display: inline-flex;
  margin-bottom: 7px;
  color: #80e8f5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-profile-card strong {
  display: block;
  font-size: 1.25rem;
}

.founder-profile-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.founder-profile-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0d3b66;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(128, 232, 245, 0.4);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.founder-profile-link:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.founder-mission-band {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0d3b66, #0d83bf);
  color: #fff;
  box-shadow: 0 22px 45px rgba(13, 111, 191, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.founder-mission-band:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 55px rgba(13, 111, 191, 0.25);
}

.founder-mission-band blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.45;
}

.founder-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(23, 193, 221, 0.14);
  color: var(--accent);
  flex: 0 0 auto;
}

.founder-mission-band .founder-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.founder-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.founder-section {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 57, 108, 0.1);
  box-shadow: 0 14px 34px rgba(16, 57, 108, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.founder-section:hover,
.founder-capability:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 193, 221, 0.32);
  box-shadow: 0 22px 44px rgba(16, 57, 108, 0.12);
}

.founder-section--wide {
  grid-column: 1 / -1;
}

.founder-section h2,
.founder-capability h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.founder-section h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.78;
}

.founder-section p:last-child {
  margin-bottom: 0;
}

.founder-narrative {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
}

.founder-vision-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(232,249,252,0.82));
}

.founder-vision-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 28px solid rgba(23, 193, 221, 0.08);
}

.founder-vision-card__title,
.founder-vision-flow,
.founder-vision-card .founder-narrative__body {
  position: relative;
  z-index: 1;
}

.founder-vision-card__title {
  display: grid;
  gap: 10px;
}

.founder-vision-card .founder-icon {
  color: #fff;
  background: #0d3b66;
}

.founder-vision-flow {
  display: grid;
  gap: 10px;
}

.founder-vision-flow article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 193, 221, 0.18);
}

.founder-vision-flow span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0d3b66, #13a8c8);
  font-size: 0.78rem;
  font-weight: 900;
}

.founder-vision-flow strong {
  color: var(--ink);
}

.founder-vision-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.founder-vision-card .founder-narrative__body {
  columns: auto;
}

.founder-narrative__body {
  columns: 2 280px;
  column-gap: 32px;
}

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

.founder-capability {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 230px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 193, 221, 0.16);
  box-shadow: 0 16px 32px rgba(16, 57, 108, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.founder-capability h3 {
  font-size: 1.05rem;
  line-height: 1.28;
}

.founder-capability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.founder-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 18px;
}

.founder-experience-panel,
.founder-philosophy-panel {
  min-height: 100%;
}

.founder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.founder-list--icons li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(23, 193, 221, 0.08);
  border: 1px solid rgba(23, 193, 221, 0.16);
  color: #0f5f78;
  font-weight: 850;
  line-height: 1.25;
  transition: transform 160ms ease, background 160ms ease;
}

.founder-list--icons li:hover {
  transform: translateX(3px);
  background: rgba(23, 193, 221, 0.13);
}

.founder-list--icons li span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(23, 193, 221, 0.14);
  box-shadow: none;
  flex: 0 0 auto;
}

.founder-list--icons li span svg {
  width: 17px;
  height: 17px;
  fill: var(--accent);
}

.founder-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.founder-principles span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #0d3b66, #1189b8);
  transition: transform 160ms ease, filter 160ms ease;
}

.founder-principles span svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.founder-principles span:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

@keyframes founder-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes founder-panel-breathe {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: rotate(-4deg) translateY(-8px);
    opacity: 0.9;
  }
}

@keyframes founder-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes founder-chip-drift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes founder-halo-breathe {
  0%, 100% {
    transform: perspective(600px) rotateY(-12deg) rotateX(4deg) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: perspective(600px) rotateY(-8deg) rotateX(3deg) translateY(-7px);
    opacity: 0.86;
  }
}

@keyframes founder-aura-pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

@keyframes founder-card-light-top {
  0%, 16% {
    opacity: 0;
    transform: translateX(0);
  }
  20%, 42% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
    transform: translateX(386px);
  }
}

@keyframes founder-card-light-right {
  0%, 16% {
    opacity: 0;
    transform: translateY(0);
  }
  20%, 42% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(150px);
  }
}

@keyframes founder-card-light-bottom {
  0%, 16% {
    opacity: 0;
    transform: translateX(0);
  }
  20%, 42% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
    transform: translateX(-386px);
  }
}

@keyframes founder-card-light-left {
  0%, 16% {
    opacity: 0;
    transform: translateY(0);
  }
  20%, 42% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(-150px);
  }
}

@keyframes founder-line-scan {
  0%, 100% {
    transform: scaleX(0.45);
    opacity: 0.48;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-hero--signature,
  .founder-hero--signature::after,
  .founder-portrait--compact,
  .founder-photo-halo,
  .founder-photo-aura,
  .founder-card-light,
  .founder-node,
  .founder-signal-lines span {
    animation: none;
  }
}

.solid-link--hero,
.ghost-link--hero {
  gap: 10px;
  position: relative;
  isolation: isolate;
  min-height: 54px;
  padding: 14px 26px;
  white-space: nowrap;
  border-radius: 999px;
  overflow: hidden;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.2s ease, color 0.18s ease;
}

.solid-link--hero::before,
.ghost-link--hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.solid-link--hero > *,
.ghost-link--hero > * {
  position: relative;
  z-index: 1;
}

.solid-link--hero {
  font-size: 1.04rem;
  background: linear-gradient(135deg, #23c0df 0%, #2167b8 58%, #123f8e 100%);
  border: 1px solid rgba(22, 116, 217, 0.22);
  box-shadow: 0 18px 34px rgba(18, 63, 142, 0.24), 0 8px 18px rgba(35, 192, 223, 0.16);
}

.solid-link--hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 42%, rgba(35, 192, 223, 0.2));
}

.solid-link--hero:hover,
.solid-link--hero:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2fd2ee 0%, #2473c6 56%, #174aa2 100%);
  box-shadow: 0 24px 44px rgba(18, 63, 142, 0.30), 0 12px 24px rgba(35, 192, 223, 0.22);
}

.solid-link--hero:hover::before,
.solid-link--hero:focus-visible::before,
.ghost-link--hero:hover::before,
.ghost-link--hero:focus-visible::before {
  opacity: 1;
}

.ghost-link--hero {
  color: #123f8e;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 250, 255, 0.88));
  border: 1px solid rgba(35, 192, 223, 0.24);
  box-shadow: 0 14px 28px rgba(18, 63, 142, 0.10);
}

.ghost-link--hero::before {
  background: linear-gradient(135deg, rgba(35, 192, 223, 0.13), rgba(33, 103, 184, 0.06));
}

.ghost-link--hero:hover,
.ghost-link--hero:focus-visible {
  color: #0e3a81;
  transform: translateY(-2px);
  border-color: rgba(35, 192, 223, 0.46);
  box-shadow: 0 20px 38px rgba(18, 63, 142, 0.16), 0 8px 18px rgba(35, 192, 223, 0.14);
}

.solid-link--hero.hero-primary--file-ready {
  background: linear-gradient(135deg, #23c0df, #2167b8 55%, #123f8e);
  box-shadow: 0 22px 44px rgba(13, 111, 191, 0.42), 0 0 0 3px rgba(13, 111, 191, 0.18);
  transform: translateY(-2px) scale(1.02);
  animation: hero-btn-pulse 2s ease-in-out infinite;
}

@keyframes hero-btn-pulse {
  0%, 100% { box-shadow: 0 22px 44px rgba(13, 111, 191, 0.42), 0 0 0 3px rgba(13, 111, 191, 0.18); }
  50%       { box-shadow: 0 26px 50px rgba(13, 111, 191, 0.55), 0 0 0 6px rgba(13, 111, 191, 0.10); }
}

.hero-action-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-action-icon--ghost {
  background: rgba(35, 192, 223, 0.14);
  color: #2167b8;
}

.hero-action-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.topbar__title {
  display: block;
  font-size: 1.5rem;
}

.topbar__subtitle {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  text-align: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

#account-shell:empty {
  display: none;
}

.hero__copy,
.hero__panel,
.panel,
.issue-card,
.column-card,
.empty-state {
  background: var(--paper);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero__copy {
  padding: 30px 34px 28px;
  position: relative;
  overflow: clip;
  min-height: 520px;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(242, 251, 255, 0.82) 62%, rgba(225, 247, 255, 0.68)),
    var(--paper);
}

.hero__copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(23, 193, 221, 0.22), transparent 70%);
}

.hero__copy > * {
  position: relative;
  z-index: 2;
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(330px, 1.08fr) minmax(240px, 0.92fr);
  gap: 20px;
  align-items: center;
}

.hero__message {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(225, 244, 255, 0.78);
  border: 1px solid rgba(121, 202, 246, 0.22);
  color: #116dca;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(13, 111, 191, 0.08);
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: inherit;
  font-size: clamp(1.9rem, 2.25vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title-accent {
  color: #1a79cf;
}

.hero-title-line {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.hero-title-line--keep {
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero__lead {
  margin: 14px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero__feature-grid,
.hero__side-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.hero-insights-shell:empty {
  display: none;
}

.hero-insights-shell {
  display: block;
}

.hero-insights-shell .empty-panel--hero-insights {
  padding: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.hero-insights-shell .empty-state--insight {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.hero-insights-shell .empty-state__shape--insight {
  width: 76px;
  height: 76px;
  margin: 0 0 14px;
}

.hero-insights-shell .empty-state__icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.hero-insights-shell .empty-state__icon svg {
  width: 20px;
  height: 20px;
}

.hero-insights-shell .empty-state__content {
  max-width: none;
  margin: 0;
}

.hero-insights-shell .empty-state__content h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.hero-insights-shell .empty-state__content > p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-insights-shell .empty-state__points {
  gap: 8px;
  margin-bottom: 12px;
}

.hero-insights-shell .empty-state__point {
  padding: 8px 10px;
  gap: 9px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 57, 108, 0.08);
}

.hero__feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(223, 245, 255, 0.95), rgba(241, 248, 255, 0.82));
  box-shadow: 0 12px 24px rgba(13, 111, 191, 0.08);
  color: #138eda;
}

.hero__feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero__feature strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
}

.hero__feature small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__visual-image {
  display: block;
  width: min(100%, 374px);
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(13, 111, 191, 0.16));
  opacity: 0.96;
  transform: translateY(18px);
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 430px);
  gap: 12px;
  margin-top: 18px;
}

.hero-upload-form {
  display: grid;
  width: min(100%, 560px);
  gap: 12px;
  margin-top: 22px;
}

.hero-source-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.hero__actions .solid-link,
.hero__actions .ghost-link {
  width: 100%;
}

.hero-upload-form .hero__actions {
  margin-top: 0;
}

.hero-upload-panel {
  display: grid;
  grid-column: 1 / 9;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed rgba(13, 111, 191, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px rgba(13, 111, 191, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-upload-panel:hover {
  border-color: rgba(49, 96, 163, 0.44);
  box-shadow: 0 20px 38px rgba(49, 96, 163, 0.14);
  transform: translateY(-1px);
}

.excel-sheet-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 5px;
  align-content: center;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(13, 111, 191, 0.06);
}

.excel-sheet-panel.is-hidden {
  display: none;
}

.scan-mode-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(13, 111, 191, 0.06);
}

.excel-sheet-panel:not(.is-hidden) + .scan-mode-panel:not(.is-hidden) {
  grid-column: 7 / 13;
  grid-row: 2;
}

.hero-source-grid:has(.excel-sheet-panel:not(.is-hidden) + .scan-mode-panel:not(.is-hidden)) .excel-sheet-panel {
  grid-column: 1 / 7;
}

.scan-mode-panel.is-hidden {
  display: none;
}

.scan-mode-panel__title {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

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

.scan-mode-option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,255,0.92));
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.scan-mode-option:has(input:checked) {
  border-color: rgba(13, 111, 191, 0.46);
  background: linear-gradient(180deg, rgba(240, 251, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.12), 0 12px 24px rgba(13, 111, 191, 0.08);
}

.scan-mode-option:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 111, 191, 0.32);
}

.scan-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.scan-mode-option__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  justify-self: center;
  border-radius: 999px;
  border: 2px solid rgba(16, 57, 108, 0.24);
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.scan-mode-option__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: transparent;
}

.scan-mode-option:has(input:checked) .scan-mode-option__mark {
  border-color: #0d6fbf;
}

.scan-mode-option:has(input:checked) .scan-mode-option__mark::after {
  background: #0d6fbf;
}

.scan-mode-option__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.12;
}

.scan-mode-option__copy strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.scan-mode-option__copy small {
  color: var(--muted);
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.excel-sheet-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.excel-sheet-status--error {
  color: #b42318;
}

.excel-sheet-picker {
  position: relative;
  display: grid;
  gap: 5px;
}

.excel-sheet-picker__label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.excel-sheet-picker__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  width: 100%;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(13, 111, 191, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: start;
  box-shadow: 0 8px 18px rgba(13, 111, 191, 0.06);
}

.excel-sheet-picker__button:hover,
.excel-sheet-picker__button:focus-visible {
  border-color: rgba(13, 111, 191, 0.42);
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.12), 0 10px 20px rgba(13, 111, 191, 0.1);
  outline: none;
}

.excel-sheet-picker__button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-sheet-picker__chevron {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(23, 193, 221, 0.12);
  color: #0d5faa;
}

.excel-sheet-picker__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.excel-sheet-picker__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  max-height: 190px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(16, 57, 108, 0.16);
}

.excel-sheet-picker__menu.is-hidden {
  display: none;
}

.excel-sheet-picker__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: start;
}

.excel-sheet-picker__option.is-selected::after {
  content: "✓";
  color: #0d7e65;
  font-weight: 900;
}

.excel-sheet-picker__option:hover,
.excel-sheet-picker__option:focus-visible,
.excel-sheet-picker__option.is-selected {
  background: linear-gradient(135deg, rgba(23, 193, 221, 0.14), rgba(13, 111, 191, 0.1));
  color: #0d3b66;
  outline: none;
}

.hero-postgres-card {
  display: grid;
  grid-column: 9 / 13;
  grid-row: 1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 96, 163, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(49, 96, 163, 0.12), rgba(23, 193, 221, 0.09)),
    rgba(255, 255, 255, 0.82);
  color: #143d73;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(13, 111, 191, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-postgres-card:hover,
.hero-postgres-card:focus-visible {
  border-color: rgba(49, 96, 163, 0.44);
  box-shadow: 0 20px 38px rgba(49, 96, 163, 0.14);
  transform: translateY(-1px);
}

.hero-postgres-card__icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  /* border: 1px solid rgba(49, 96, 163, 0.18); */
  /* border-radius: 16px; */
  /* background: #fff; */
  /* box-shadow: 0 12px 22px rgba(49, 96, 163, 0.12); */
}

.hero-postgres-card__icon svg {
  width: 32px;
  height: 32px;
}

.postgres-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mysql-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-postgres-card__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-mysql-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero-postgres-card__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-postgres-card__text strong {
  color: #113c70;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-mysql-label {
  color: #00758F !important;
  font-size: 0.88rem !important;
}

.hero-postgres-card__text small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.hero-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.hero-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-height: 46px;
  cursor: pointer;
  color: var(--ink);
}

.hero-file-picker__icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.hero-file-picker__text {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.28;
}

.hero-file-picker__name {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-upload-hint {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero__trustbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  gap: 10px;
  margin-top: 28px;
}

.hero__trustbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero__trustbar span::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(135deg, #19c0e9, #1674d9);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.62);
}

.hero__ai-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(132, 207, 244, 0.24);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.hero__ai-note strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero__ai-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero__ai-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #1399dd;
  flex: 0 0 auto;
}

@media (max-width: 1320px) {
  .hero {
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.78fr);
  }

  .hero__main {
    grid-template-columns: minmax(430px, 1.22fr) minmax(200px, 0.78fr);
    gap: 14px;
  }

  .hero__visual {
    min-height: 330px;
    display: flex;
  }

  .hero__visual-image {
    width: min(100%, 330px);
    max-height: 360px;
  }

  .hero h1,
  .hero__lead {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 2.2vw, 2.45rem);
  }
}

.hero__panel {
  padding: 22px;
  min-height: 0;
  height: auto;
}

.hero__panel--stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 248, 254, 0.92));
  border: 1px solid rgba(16, 57, 108, 0.08);
}

.hero-logo-image {
  width: min(100%, 260px);
  height: auto;
  display: block;
}

/* ── Hero Product Preview ─────────────────── */
.hero-product-preview {
  background: var(--paper-strong);
  border: 1px solid rgba(16, 57, 108, 0.10);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 8px 32px rgba(16, 57, 108, 0.10);
  font-size: 0.84rem;
}
.hpp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hpp-filename {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  flex: 1;
  min-width: 150px;
}
.hpp-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}
.hpp-confidence-badge {
  color: #0d3b66;
  background: rgba(13, 59, 102, 0.09);
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}
.hpp-score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.hpp-score-label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.hpp-score-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  animation: hpp-pop 0.24s 0.08s both;
}
@keyframes hpp-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hpp-bar-track {
  height: 7px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hpp-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
  border-radius: 6px;
  animation: hpp-fill 0.55s 0.08s cubic-bezier(0.34, 1.08, 0.64, 1) forwards;
}
@keyframes hpp-fill {
  from { width: 0; }
  to   { width: var(--hpp-score-width, 94.5%); }
}
.hpp-issues {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.hpp-issue {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
}
.hpp-issue:nth-child(1) { animation: hpp-slide 0.22s 0.18s forwards; }
.hpp-issue:nth-child(2) { animation: hpp-slide 0.22s 0.26s forwards; }
.hpp-issue:nth-child(3) { animation: hpp-slide 0.22s 0.34s forwards; }
.hpp-issue:nth-child(4) { animation: hpp-slide 0.22s 0.42s forwards; }
@keyframes hpp-slide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hpp-issue-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hpp-issue--error .hpp-issue-dot { background: #ef4444; }
.hpp-issue--warn  .hpp-issue-dot { background: #f59e0b; }
.hpp-issue--info  .hpp-issue-dot { background: #3b82f6; }
.hpp-issue--strong .hpp-issue-dot { background: #14b8a6; }
.hpp-issue-name {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  line-height: 1.25;
}
.hpp-issue-count {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.82rem;
}
.hpp-issue--empty {
  color: var(--muted);
  font-weight: 700;
}
.hpp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: hpp-slide 0.22s 0.5s forwards;
}
.hpp-cols-tag { color: var(--muted); font-size: 0.75rem; }
.hpp-status {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  color: #0d9467;
}

.upload-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  justify-content: center;
  padding: 10px 4px 0;
}

.upload-card--dashboard {
  padding: 0 0 14px;
}

.upload-panel-top {
  border: 1px solid rgba(13, 111, 191, 0.14);
  padding-bottom: 4px;
}

.upload-card__label {
  font-size: 1.1rem;
  font-weight: 700;
}

.analyze-cta-button {
  width: 100%;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 36px rgba(13, 111, 191, 0.24);
  margin-top: -6px;
  margin-bottom: 5px;
}

.analyze-cta-button__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analyze-cta-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.analyze-cta-button.is-loading {
  opacity: 0.88;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

[data-edit-custom-rule] .button-icon {
  color: #0d6fbf;
}

[data-remove-custom-rule] .button-icon {
  color: #c96f68;
}

.rule-action-button--remove .button-icon,
[data-dismiss-discovered-rule].rule-action-button--remove .button-icon {
  color: #c96f68;
}

input[type="file"] {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(13, 111, 191, 0.36);
  background: rgba(255, 255, 255, 0.66);
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  color: var(--ink);
}

select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #0d3b73 50%),
    linear-gradient(135deg, #0d3b73 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select optgroup {
  color: #0d3b73;
  font-weight: 800;
  font-size: 0.88rem;
}

select option {
  color: var(--ink);
  font-weight: 500;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  color: white;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 30px rgba(13, 111, 191, 0.22);
}

button:hover {
  transform: translateY(-1px);
}

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

.upload-card__hint,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.upload-panel-note {
  margin-top: 6px;
}

.upload-login-required {
  margin: 16px 0 4px;
}

.dashboard {
  margin-top: 22px;
  display: grid;
  gap: 20px;
}

body.reports-page #hero {
  display: none;
}

body.reports-page .dashboard {
  margin-top: 22px;
}

body.reports-page #saved-reports-panel {
  min-height: calc(100vh - 260px);
}

.marketing-panel {
  padding: 26px;
}

.panel--tonal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.88));
}

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

.marketing-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.rule-builder-form {
  display: grid;
  gap: 14px;
}

.rule-builder-field {
  padding: 14px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(16, 57, 108, 0.1);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rule-builder-field span {
  display: inline-flex;
  margin-bottom: 8px;
}

.rule-builder-field select,
.rule-builder-field input,
.rule-builder-field textarea {
  background-color: rgba(255, 255, 255, 0.92);
}

.rule-builder-field--wide {
  grid-column: span 2;
}

.rule-builder-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

.rule-type-select {
  border-color: rgba(13, 111, 191, 0.22);
  background-color: rgba(255, 255, 255, 0.96);
  font-weight: 650;
}

.allowed-values-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(13, 111, 191, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.allowed-values-editor:focus-within {
  border-color: rgba(23, 193, 221, 0.45);
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.12);
}

.allowed-values-editor__tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.allowed-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  background: rgba(224, 247, 252, 0.72);
  color: #0e4f66;
  font-size: 0.86rem;
  font-weight: 800;
}

.allowed-value-chip button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: auto;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(14, 116, 144, 0.12);
  color: #075e6b;
  font-size: 0.9rem;
  line-height: 1;
}

.allowed-value-chip button:hover {
  background: rgba(239, 68, 68, 0.13);
  color: #b42323;
}

.allowed-values-editor input[data-allowed-values-input] {
  flex: 1 1 140px;
  min-width: 100px;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.allowed-values-editor input[data-allowed-values-input]:focus {
  outline: none;
}

.rule-builder-options {
  grid-column: span 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(13, 111, 191, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rule-builder-options__title {
  color: var(--ink, #0f172a);
  font-size: 0.9rem;
  font-weight: 850;
  margin-inline-end: 4px;
}

.rule-builder-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 193, 221, 0.18);
  background: rgba(224, 247, 252, 0.62);
  color: #0e4f66;
  font-size: 0.88rem;
  font-weight: 750;
}

.rule-builder-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.rule-builder-option-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.rule-builder-helper {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(13, 111, 191, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.rule-builder-actions {
  align-items: end;
}

.rule-builder-actions--top {
  justify-content: flex-start;
  margin: 2px 0 16px;
}

.rule-builder-validation-message {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(255, 247, 237, 0.8);
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 800;
}

.rule-helper-note {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(23, 193, 221, 0.08);
  border: 1px solid rgba(23, 193, 221, 0.16);
  scroll-margin-top: 24px;
}

.rule-definition-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.rule-definition {
  display: grid;
  gap: 10px;
}

.rule-definition__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(13, 111, 191, 0.11);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(16, 57, 108, 0.04);
}

.rule-definition__item strong {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--ink, #0f172a);
}

.rule-definition__item strong span {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.88);
  border: 1px solid rgba(13, 111, 191, 0.1);
  color: var(--ink, #0f172a);
  font-size: 0.86rem;
  font-weight: 850;
}

.rule-definition__body {
  display: grid;
  gap: 6px;
  min-height: 46px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(16, 57, 108, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  line-height: 1.45;
}

.rule-definition__inline-output {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.rule-definition__item--description,
.rule-definition__item--violation {
  border-color: rgba(13, 111, 191, 0.11);
  background: rgba(255, 255, 255, 0.68);
}

.severity-select {
  border-width: 1px;
  font-weight: 800;
}

.severity-select--low {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
  background-color: rgba(236, 253, 245, 0.96);
}

.severity-select--medium {
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.3);
  background-color: rgba(239, 246, 255, 0.96);
}

.severity-select--high {
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.38);
  background-color: rgba(255, 247, 237, 0.96);
}

.severity-select--critical {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.4);
  background-color: rgba(254, 242, 242, 0.96);
}

.rule-builder-primary-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(13, 111, 191, 0.18);
  font-size: 0.94rem;
}

.rule-suggested-note {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30, 131, 215, 0.06);
  border: 1px dashed rgba(30, 131, 215, 0.22);
}

.rule-card {
  border: 1px solid rgba(23, 193, 221, 0.12);
}

.rule-card--default {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 251, 255, 0.82));
}

.rule-card--allowed-values {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(233, 250, 244, 0.9));
  border-color: rgba(34, 197, 94, 0.16);
}

.rule-card--numeric-range {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92), rgba(254, 243, 199, 0.82));
  border-color: rgba(245, 158, 11, 0.18);
}

.rule-card--date-order {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(224, 242, 254, 0.84));
  border-color: rgba(56, 189, 248, 0.18);
}

.rule-card--conditional-required {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.92), rgba(243, 232, 255, 0.84));
  border-color: rgba(168, 85, 247, 0.16);
}

.rule-card--column-match {
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.92), rgba(224, 231, 255, 0.84));
  border-color: rgba(99, 102, 241, 0.18);
}

.rule-card--formula-check {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(254, 215, 170, 0.78));
  border-color: rgba(249, 115, 22, 0.18);
}

.rule-card--dependency {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.92), rgba(224, 242, 254, 0.82));
  border-color: rgba(14, 165, 233, 0.18);
}

.rule-card--uniqueness {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(209, 250, 229, 0.82));
  border-color: rgba(16, 185, 129, 0.18);
}

.rule-card--required {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.92), rgba(255, 228, 230, 0.82));
  border-color: rgba(244, 63, 94, 0.18);
}

.rule-builder-panel--editing {
  border: 1px solid rgba(23, 193, 221, 0.24);
  box-shadow: 0 18px 48px rgba(13, 71, 136, 0.12);
}

.rule-builder-panel--spotlight {
  animation: ruleBuilderSpotlight 1.8s ease;
}

.rule-card--spotlight {
  border-color: rgba(23, 193, 221, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.14), 0 18px 48px rgba(13, 71, 136, 0.12);
}

@keyframes ruleBuilderSpotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 193, 221, 0.42);
  }
  45% {
    box-shadow: 0 0 0 10px rgba(23, 193, 221, 0.12);
  }
  100% {
    box-shadow: 0 18px 48px rgba(13, 71, 136, 0.12);
  }
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 111, 191, 0.12);
  font-size: 0.92rem;
}

.choice-pill input {
  margin: 0;
  width: auto;
  padding: 0;
  flex: 0 0 auto;
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 40px;
  border-radius: var(--button-radius);
}

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

.section-intro--tight {
  margin-bottom: 14px;
}

.section-intro__copy {
  max-width: 60ch;
}

.section-intro__copy h2,
.section-intro__copy h3 {
  margin-bottom: 8px;
}

.section-intro__accent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.proof-panel {
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(236, 250, 254, 0.38)),
    rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 22px rgba(16, 57, 108, 0.045);
}

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

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

.before-card,
.after-card {
  padding: 22px;
}

.before-card {
  border: 1px solid rgba(185, 56, 47, 0.18);
}

.after-card {
  border: 1px solid rgba(23, 193, 221, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 250, 255, 0.88));
}

.proof-card {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(13, 111, 191, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.proof-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.proof-card strong {
  font-size: 1.34rem;
  font-weight: 800;
}

.workflow-panel {
  padding: 28px;
  border: 1px solid rgba(23, 193, 221, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 252, 255, 0.9));
}

.workflow-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 0;
}

.workflow-panel--expanded .workflow-panel__header {
  margin-bottom: 22px;
}

.workflow-panel__header h2 {
  margin-bottom: 8px;
}

.workflow-panel__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.workflow-run-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  color: #0b3c68;
  background: rgba(219, 241, 250, 0.92);
  border: 1px solid rgba(23, 193, 221, 0.26);
  box-shadow: 0 14px 36px rgba(13, 71, 136, 0.08);
}

.workflow-run-note span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.workflow-run-note svg,
.workflow-step__icon svg,
.workflow-run-pulse svg {
  fill: currentColor;
}

.workflow-run-note svg {
  width: 16px;
  height: 16px;
}

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

.workflow-step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 292px;
  border-radius: 22px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(13, 71, 136, 0.08);
}

.workflow-step--run {
  border-color: rgba(23, 193, 221, 0.34);
  box-shadow: 0 20px 46px rgba(23, 193, 221, 0.14);
}

.workflow-step__media {
  padding: 14px 14px 0;
}

.workflow-step__content {
  position: relative;
  padding: 14px 16px 16px;
}

.workflow-step__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(226, 246, 252, 0.92);
  border: 1px solid rgba(23, 193, 221, 0.22);
}

.workflow-step__icon svg {
  width: 16px;
  height: 16px;
}

.workflow-step__number {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 900;
  font-size: 0.8rem;
}

.workflow-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.workflow-shot {
  min-height: 108px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.96), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(16, 57, 108, 0.09);
}

.workflow-shot__top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.workflow-shot__top span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 193, 221, 0.38);
}

.workflow-shot__top strong {
  margin-inline-start: auto;
  color: rgba(13, 71, 136, 0.42);
  font-size: 0.72rem;
}

.workflow-shot__body,
.workflow-form-mini,
.workflow-suggestions-mini {
  display: grid;
  gap: 8px;
}

.workflow-file-drop,
.workflow-button-mini,
.workflow-rule-card-mini,
.workflow-form-mini span,
.workflow-suggestions-mini span {
  border-radius: 10px;
}

.workflow-file-drop {
  height: 36px;
  border: 1px dashed rgba(23, 193, 221, 0.45);
  background: rgba(226, 246, 252, 0.74);
}

.workflow-button-mini,
.workflow-toggle-mini {
  height: 16px;
  width: 58%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.workflow-score-ring,
.workflow-run-pulse {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(23, 193, 221, 0.2);
}

.workflow-run-pulse {
  animation: workflowPulse 1.8s ease-in-out infinite;
}

.workflow-run-pulse svg {
  width: 20px;
  height: 20px;
}

.workflow-bars span {
  display: block;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(13, 111, 191, 0.16);
}

.workflow-bars span:first-child {
  width: 92%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.workflow-bars span:nth-child(2) {
  width: 74%;
}

.workflow-bars span:nth-child(3) {
  width: 54%;
}

.workflow-table-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.workflow-table-mini span {
  height: 18px;
  border-radius: 7px;
  background: rgba(13, 111, 191, 0.1);
}

.workflow-table-mini span:nth-child(odd) {
  background: rgba(244, 63, 94, 0.1);
}

.workflow-rule-card-mini {
  height: 30px;
  border: 1px solid rgba(23, 193, 221, 0.22);
  background: rgba(226, 246, 252, 0.86);
}

.workflow-rule-card-mini--soft {
  width: 82%;
  background: rgba(255, 255, 255, 0.9);
}

.workflow-form-mini span {
  height: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.workflow-toggle-mini {
  width: 64px;
  border-radius: 999px;
  position: relative;
}

.workflow-toggle-mini::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-end: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.workflow-suggestions-mini span {
  height: 22px;
  background: rgba(255, 245, 229, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.workflow-panel__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@keyframes workflowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(23, 193, 221, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 32px rgba(23, 193, 221, 0.32);
  }
}

.marketing-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.marketing-card--spotlight {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 247, 255, 0.88));
  border-color: rgba(23, 193, 221, 0.22);
}

.marketing-card h3 {
  margin: 0 0 8px;
}

.marketing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list,
.trust-stack {
  display: grid;
  gap: 12px;
}

.trust-badges {
  justify-content: center;
}

.feature-row {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.workspace-nav {
  padding: 18px 22px;
}

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

.workspace-nav__header h2 {
  margin-bottom: 0;
}

.workspace-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-tab {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
  padding: 12px 18px;
}

.workspace-tab--active {
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(13, 111, 191, 0.18);
}

.empty-panel {
  padding: 18px;
}

.empty-state {
  padding: 44px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.empty-state__shape {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background:
    radial-gradient(circle at 40% 35%, rgba(13, 111, 191, 0.35), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(199, 107, 41, 0.28), transparent 38%),
    #f9f2e5;
}

.empty-state__shape--insight {
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.empty-state__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 193, 221, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(16, 57, 108, 0.08);
}

.empty-state__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.analysis-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(244, 249, 255, 0.78);
  backdrop-filter: blur(5px);
}

.analysis-overlay__card {
  width: min(520px, 100%);
  padding: 28px 26px;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(23, 193, 221, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 255, 0.94));
  box-shadow: 0 30px 80px rgba(16, 57, 108, 0.18);
  text-align: center;
}

.analysis-overlay__card h3 {
  margin: 10px 0 10px;
}

.analysis-overlay__card p {
  margin: 0;
  color: var(--muted);
}

.floating-scroll-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #1a79cf, #17c1dd);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px rgba(13, 111, 191, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.floating-scroll-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-scroll-button:hover {
  box-shadow: 0 18px 38px rgba(13, 111, 191, 0.32);
  transform: translateY(-2px);
}

.floating-scroll-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
}

.analysis-progress {
  margin: 18px 0 6px;
}

.analysis-progress__bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(23, 193, 221, 0.12);
  overflow: hidden;
}

.analysis-progress__bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #17c1dd, #1a56db);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.analysis-progress__stage {
  font-weight: 500;
}

.analysis-progress__pct {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
}

.panel {
  padding: 22px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.accordion-panel {
  padding: 0;
  overflow: hidden;
}

.analysis-accordion {
  background: transparent;
}

.analysis-accordion > summary {
  list-style: none;
}

.analysis-accordion > summary::-webkit-details-marker {
  display: none;
}

.analysis-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(231, 250, 254, 0.96) 0%, rgba(244, 252, 255, 0.94) 100%);
  border-left: 5px solid var(--accent);
  box-shadow: inset 0 -1px 0 rgba(23, 193, 221, 0.12);
  transition: background 180ms;
}
.analysis-accordion__summary:hover {
  background: linear-gradient(135deg, rgba(221, 247, 253, 0.98) 0%, rgba(238, 251, 255, 0.97) 100%);
}

.analysis-accordion__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.analysis-accordion__titleline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.analysis-accordion__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.15);
  border: 1px solid rgba(23, 193, 221, 0.2);
}

.analysis-accordion__icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.analysis-accordion__copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

.analysis-accordion__copy .muted {
  margin: 0;
}

.analysis-accordion__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.analysis-accordion__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(16, 57, 108, 0.45);
  border-bottom: 2px solid rgba(16, 57, 108, 0.45);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: 0;
}

.analysis-accordion[open] .analysis-accordion__chevron {
  transform: rotate(225deg);
}

.analysis-accordion__content {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.analysis-accordion__content > .panel,
.analysis-accordion__content > .section-grid > .panel {
  background: rgba(255, 255, 255, 0.62);
}

.report-map-panel {
  border: 1px solid rgba(23, 193, 221, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 250, 255, 0.9));
}

.report-map-sticky {
  position: sticky;
  top: 10px;
  z-index: 16;
  border: 1px solid rgba(23, 193, 221, 0.18);
  padding: 8px 12px;
  background:
    linear-gradient(135deg, rgba(219, 244, 255, 0.98), rgba(239, 251, 255, 0.96) 50%, rgba(226, 247, 252, 0.96));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(13, 111, 191, 0.16);
}

.report-quick-nav-bar {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.report-nav-dataset-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #0f766e;
  white-space: nowrap;
  max-width: 260px;
  padding: 5px 11px 5px 7px;
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.92), rgba(204, 251, 241, 0.72));
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.report-nav-dataset-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
  flex: 0 0 auto;
}

.report-nav-dataset-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.report-nav-dataset-copy {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.report-nav-dataset-label {
  color: #47746f;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-nav-dataset-file {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 850;
}

.report-map-dataset-name {
  margin: 3px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink, #0f172a);
  line-height: 1.3;
}

.report-map-panel__top {
  align-items: center;
  margin-bottom: 10px;
}

.report-map-panel--compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.report-quick-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
}

.report-quick-nav::-webkit-scrollbar {
  display: none;
}

.report-quick-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(13, 111, 191, 0.08);
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 14px;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.report-quick-nav__icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  opacity: 0.82;
  flex: 0 0 auto;
}

.report-quick-nav__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.report-quick-nav__item.is-active {
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(13, 111, 191, 0.22);
}

.report-quick-nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.report-quick-nav__item--more {
  border-color: rgba(13, 111, 191, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 247, 252, 0.76));
  color: #075985;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.report-quick-nav-more__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 2px;
  width: 14px;
  height: 14px;
  line-height: 1;
  transform-origin: center;
}

.report-quick-nav-more__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.report-quick-nav-more.is-open .report-quick-nav-more__chevron {
  transform: rotate(180deg);
}

.report-quick-nav-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: none;
  min-width: 240px;
  padding: 8px;
  border: 1px solid rgba(13, 111, 191, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(13, 111, 191, 0.18);
}

.report-quick-nav-more.is-open .report-quick-nav-more__menu {
  display: block;
}

.report-quick-nav-more__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  background: transparent;
  color: #0f3f73;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: start;
}

.report-quick-nav-more__item:hover,
.report-quick-nav-more__item.is-active {
  background: rgba(23, 193, 221, 0.12);
  color: #075985;
}

.report-quick-nav-more__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  flex: 0 0 auto;
}

.report-quick-nav-more__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.report-quick-nav__item--error-table:not(.is-active),
.report-quick-nav__item--custom-rules:not(.is-active) {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.78), rgba(255, 250, 250, 0.66));
  color: #b42323;
}

.report-quick-nav__item--error-table:not(.is-active) .report-quick-nav__icon,
.report-quick-nav__item--custom-rules:not(.is-active) .report-quick-nav__icon {
  color: #ef4444;
  opacity: 1;
}

.report-quick-nav__item--error-table.is-active,
.report-quick-nav__item--custom-rules.is-active {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

.report-quick-nav__item--custom-rules:not(.is-active) {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.9), rgba(254, 243, 199, 0.72));
  color: #92400e;
}

.report-quick-nav__item--custom-rules:not(.is-active) .report-quick-nav__icon {
  color: #d97706;
}

.report-quick-nav__item--custom-rules.is-active {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.2);
}

.report-quick-nav__item--unique-rule:not(.is-active) {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(220, 252, 231, 0.78));
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.report-quick-nav__item--unique-rule:not(.is-active) .report-quick-nav__icon {
  color: #059669;
  opacity: 1;
}

.report-quick-nav__item--unique-rule.is-active {
  background: linear-gradient(135deg, #34d399, #0f766e);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
}

.report-quick-nav__item--important:not(.is-active) {
  border-color: rgba(13, 111, 191, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(219, 244, 255, 0.88));
  color: #075985;
  box-shadow: inset 0 0 0 1px rgba(23, 193, 221, 0.1), 0 8px 18px rgba(13, 111, 191, 0.08);
}

.report-quick-nav__item--rule-builder:not(.is-active) .report-quick-nav__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(23, 193, 221, 0.24);
  color: #06738a;
  opacity: 1;
}

.panel.report-map-sticky--refined {
  top: 0;
  display: block;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-map-sticky--refined .report-quick-nav-bar {
  gap: 8px;
  border: 1px solid rgba(18, 63, 104, 0.22);
  border-top: 1px solid rgba(18, 63, 104, 0.28);
  border-bottom: 1px solid rgba(18, 63, 104, 0.36);
  border-radius: 6px;
  padding: 5px;
  background: linear-gradient(180deg, rgba(224, 244, 250, 0.98), rgba(210, 236, 244, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(16, 57, 108, 0.045);
}

.report-map-sticky--refined .report-nav-dataset-name {
  max-width: 230px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #0f3f73;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.report-map-sticky--refined .report-nav-dataset-icon {
  width: 16px;
  height: 16px;
  color: #0d6fbf;
  background: transparent;
}

.report-map-sticky--refined .report-nav-dataset-icon svg {
  width: 14px;
  height: 14px;
}

.report-map-sticky--refined .report-nav-dataset-file {
  color: #0f3f73;
  font-size: 0.84rem;
  font-weight: 900;
}

.report-map-sticky--refined .report-quick-nav {
  gap: 4px;
  overflow-x: auto;
}

.report-map-sticky--refined .report-quick-nav__item {
  position: relative;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #35536f;
  background: transparent;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 850;
}

.report-map-sticky--refined .report-quick-nav__item:hover {
  color: #0f3f73;
  background: rgba(255, 255, 255, 0.24);
}

.report-map-sticky--refined .report-quick-nav__item--more {
  border: 0;
  color: #35536f;
  background: transparent;
  box-shadow: none;
}

.report-map-sticky--refined .report-quick-nav__item--more:hover,
.report-map-sticky--refined .report-quick-nav__item--more.is-active {
  color: #063b63;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.report-map-sticky--refined .report-quick-nav__item.is-active,
.report-map-sticky--refined .report-quick-nav__item--error-table.is-active,
.report-map-sticky--refined .report-quick-nav__item--custom-rules.is-active,
.report-map-sticky--refined .report-quick-nav__item--unique-rule.is-active {
  color: #063b63;
  background: transparent;
  box-shadow: none;
}

.report-map-sticky--refined .report-quick-nav__item.is-active::after {
  content: "";
  position: absolute;
  inset: auto 9px 4px;
  height: 3px;
  border-radius: 999px;
  background: #c83f3f;
}

.report-map-sticky--refined .report-quick-nav__item--error-table:not(.is-active) {
  color: #8a2d2d;
}

.report-map-sticky--refined .report-quick-nav__item--custom-rules:not(.is-active) {
  color: #7a4a10;
}

.report-map-sticky--refined .report-quick-nav__item--unique-rule:not(.is-active) {
  color: #0f695b;
}

.report-map-sticky--refined .report-quick-nav__item--important:not(.is-active) {
  color: #075985;
}

.report-map-sticky--refined .report-quick-nav__icon,
.report-map-sticky--refined .report-quick-nav__item--error-table:not(.is-active) .report-quick-nav__icon,
.report-map-sticky--refined .report-quick-nav__item--custom-rules:not(.is-active) .report-quick-nav__icon,
.report-map-sticky--refined .report-quick-nav__item--unique-rule:not(.is-active) .report-quick-nav__icon,
.report-map-sticky--refined .report-quick-nav__item--rule-builder:not(.is-active) .report-quick-nav__icon {
  width: 15px;
  height: 15px;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  opacity: 0.78;
}

.report-map-sticky--refined .report-quick-nav-more__menu {
  padding: 6px;
  border-color: rgba(13, 111, 191, 0.12);
  border-radius: var(--button-radius);
  background: rgba(245, 251, 253, 0.98);
  box-shadow: 0 16px 34px rgba(16, 57, 108, 0.14);
}

.report-map-sticky--refined .report-quick-nav-more__item {
  min-height: 38px;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  box-shadow: none;
}

.report-map-sticky--refined .report-quick-nav-more__item + .report-quick-nav-more__item {
  border-top: 1px solid rgba(13, 111, 191, 0.08);
}

.report-map-sticky--refined .report-quick-nav-more__item:hover,
.report-map-sticky--refined .report-quick-nav-more__item.is-active {
  color: #063b63;
  background: rgba(23, 193, 221, 0.08);
}

.report-journey {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 57, 108, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.report-journey__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.report-journey__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(23, 193, 221, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  transition: background 140ms ease, transform 100ms ease, border-color 140ms ease;
}

.report-journey__step:hover {
  background: rgba(23, 193, 221, 0.14);
  transform: translateY(-1px);
}

.report-journey__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 193, 221, 0.18);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-journey__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.report-journey__step--important {
  background: linear-gradient(135deg, rgba(23, 193, 221, 0.16), rgba(13, 111, 191, 0.1));
  border: 1px solid rgba(23, 193, 221, 0.22);
}

.report-journey__step--error-table,
.report-journey__step--custom-rules {
  border: 1px solid rgba(239, 68, 68, 0.14);
  background: rgba(255, 245, 245, 0.64);
}

.report-journey__step--error-table .report-journey__icon,
.report-journey__step--custom-rules .report-journey__icon {
  background: rgba(254, 226, 226, 0.68);
  color: #ef4444;
}

.report-journey__step--rule-builder {
  border: 1px solid rgba(13, 111, 191, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 247, 252, 0.9));
  box-shadow: 0 8px 20px rgba(13, 111, 191, 0.08);
}

.report-journey__step--unique-rule {
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.9), rgba(204, 251, 241, 0.78));
}

.report-journey__step--unique-rule .report-journey__icon {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.report-journey__step--important .report-journey__icon {
  background: var(--accent);
  color: #fff;
}

.report-journey__arrow {
  color: rgba(16, 57, 108, 0.5);
  font-weight: 800;
}

.report-journey__note {
  margin-top: 12px;
}

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

.score-surface {
  border: 1px solid rgba(16, 57, 108, 0.08);
  box-shadow:
    0 14px 34px rgba(16, 57, 108, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.analyzed-file-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(23, 193, 221, 0.07) 0%, rgba(16, 57, 108, 0.04) 100%);
  border: 1px solid rgba(23, 193, 221, 0.22);
  border-radius: 14px;
}

.analyzed-file-header__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(23, 193, 221, 0.13);
  border: 1px solid rgba(23, 193, 221, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #17c1dd;
}

.analyzed-file-header__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.analyzed-file-header__info {
  flex: 1;
  min-width: 0;
}

.analyzed-file-header__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.analyzed-file-header__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  margin-top: 3px;
}

.analyzed-file-header__badge {
  flex-shrink: 0;
  align-self: center;
}

.score-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.score-hero__main {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(23, 193, 221, 0.24);
  background:
    radial-gradient(circle at 86% 18%, rgba(23, 193, 221, 0.16), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.09), transparent 38%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(229, 248, 253, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(13, 111, 191, 0.075);
  overflow: hidden;
  position: relative;
}

.score-hero__main::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -78px;
  bottom: -86px;
  border-radius: 50%;
  border: 24px solid rgba(23, 193, 221, 0.075);
  pointer-events: none;
}

.score-hero__badge-row,
.score-hero__value-row,
.score-hero__footer,
.score-hero__issues,
.score-hero__mini-track {
  position: relative;
  z-index: 1;
}

.score-hero__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 248, 255, 0.86);
  border: 1px solid rgba(23, 193, 221, 0.16);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-hero__eyebrow svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.score-hero__out-of {
  flex: 0 0 auto;
  color: #0f3f73;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 57, 108, 0.09);
}

.score-hero__value-row {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.score-hero__value {
  color: var(--ink);
  font-size: clamp(3.8rem, 7.4vw, 6.4rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.score-hero__status {
  color: #166534;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.score-hero__mini-track {
  width: min(100%, 340px);
  height: 9px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(219, 84, 79, 0.16) 0 24%, rgba(242, 186, 79, 0.18) 24% 58%, rgba(64, 159, 101, 0.18) 58% 100%);
  box-shadow: inset 0 1px 2px rgba(16, 57, 108, 0.08);
}

.score-hero__mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #db5450 0 31%, #f2ba4f 31% 58%, #409f65 58% 100%);
}

.score-hero__issues {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.score-hero__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.score-hero__footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f3f73;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 57, 108, 0.08);
  font-size: 0.8rem;
  font-weight: 760;
}

.score-hero__insights {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.score-brief {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 57, 108, 0.075);
  box-shadow: 0 6px 16px rgba(16, 57, 108, 0.035);
}

.score-brief__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.14);
  border: 1px solid rgba(23, 193, 221, 0.18);
  flex: 0 0 auto;
}

.score-brief__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.score-brief__icon--health {
  color: #2f8f5c;
  background: rgba(76, 175, 118, 0.14);
  border-color: rgba(76, 175, 118, 0.2);
}

.score-brief__body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.score-brief__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.score-ai-note,
.score-opportunity-card {
  display: flex;
  gap: 12px;
  min-height: 78px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 193, 221, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 251, 253, 0.72));
  box-shadow: 0 6px 16px rgba(16, 57, 108, 0.03);
}

.score-ai-note__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.13);
  border: 1px solid rgba(23, 193, 221, 0.18);
}

.score-ai-note__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.score-ai-note p,
.score-opportunity-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 720;
}

.score-opportunity-card {
  display: block;
  border-color: rgba(235, 178, 74, 0.18);
  background:
    radial-gradient(circle at top left, rgba(235, 178, 74, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(255, 255, 255, 0.76));
}

.score-opportunity-card__label {
  display: block;
  margin-bottom: 5px;
  color: #9a5f05;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-meter {
  margin-bottom: 20px;
}

.score-meter__track {
  position: relative;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      #d65a50 0%,
      #d65a50 24%,
      #ebb24a 24%,
      #ebb24a 58%,
      #44a36c 58%,
      #2f8f5c 100%
    );
  box-shadow:
    inset 0 0 0 1px rgba(16, 57, 108, 0.08),
    inset 0 4px 10px rgba(255, 255, 255, 0.18);
}

.score-meter__mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(247, 250, 252, 0.28), rgba(247, 250, 252, 0.8));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.72);
}

.score-meter__marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 28px;
  width: 28px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #fff;
  border: 4px solid #0f3f73;
  box-shadow:
    0 8px 20px rgba(16, 57, 108, 0.24),
    0 0 0 5px rgba(255, 255, 255, 0.5);
}

.score-meter__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-surface--excellent {
  background:
    radial-gradient(circle at top left, rgba(76, 175, 118, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(244, 252, 247, 0.98), rgba(255, 255, 255, 0.96));
}

.score-surface--good {
  background:
    radial-gradient(circle at top left, rgba(23, 193, 221, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(244, 251, 248, 0.98), rgba(255, 255, 255, 0.96));
}

.score-surface--fair {
  background:
    radial-gradient(circle at top left, rgba(235, 178, 74, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 255, 255, 0.96));
}

.score-surface--poor {
  background:
    radial-gradient(circle at top left, rgba(214, 90, 80, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(254, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.stat-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  min-height: 150px;
  box-shadow: 0 7px 18px rgba(16, 57, 108, 0.035);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.stat-card:hover,
.score-dimension-card:hover {
  border-color: rgba(23, 193, 221, 0.22);
  box-shadow: 0 9px 22px rgba(16, 57, 108, 0.05);
}

.stat-card--primary {
  background: linear-gradient(180deg, rgba(237, 250, 255, 0.9), rgba(255, 255, 255, 0.9));
  border-color: rgba(23, 193, 221, 0.3);
  box-shadow:
    0 10px 26px rgba(13, 111, 191, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat-card--primary .stat-card__value {
  font-size: 2.18rem;
}

.stat-card__value--shape {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-card__value--shape span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.stat-card__subvalue {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
}

.stat-card--issues,
.stat-card--issues-rate {
  background:
    radial-gradient(circle at top left, rgba(214, 90, 80, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 247, 0.92), rgba(255, 255, 255, 0.86));
  border-color: rgba(214, 90, 80, 0.16);
}

.stat-card--issues .stat-card__icon,
.stat-card--issues-rate .stat-card__icon {
  color: #b23b35;
  background: rgba(214, 90, 80, 0.12);
  border-color: rgba(214, 90, 80, 0.18);
}

.stat-card__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 12px;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.12);
  border: 1px solid rgba(23, 193, 221, 0.18);
}

.stat-card__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 760;
}

.stat-card__value {
  font-size: 1.8rem;
  font-weight: 800;
}

.score-mini-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 2px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(219, 84, 79, 0.18) 0 24%, rgba(242, 186, 79, 0.18) 24% 58%, rgba(64, 159, 101, 0.18) 58% 100%);
  box-shadow: inset 0 1px 2px rgba(16, 57, 108, 0.08);
}

.score-mini-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #db5450 0 31%, #f2ba4f 31% 58%, #409f65 58% 100%);
  box-shadow: 0 0 10px rgba(64, 159, 101, 0.18);
}

.score-mini-progress--dimension {
  height: 5px;
  margin: 5px 0 4px;
}

.score-dimension-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.score-dimension-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(23, 193, 221, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 16px rgba(16, 57, 108, 0.025);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.score-dimension-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.12);
  border: 1px solid rgba(23, 193, 221, 0.16);
}

.score-dimension-card__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.score-dimension-card div {
  display: grid;
  align-content: center;
  min-width: 0;
  width: 100%;
}

.score-dimension-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-dimension-card__value {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
}

.score-dimension-card--strong {
  background: linear-gradient(180deg, rgba(240, 253, 247, 0.76), rgba(255, 255, 255, 0.68));
  border-color: rgba(76, 175, 118, 0.18);
}

.score-dimension-card--watch {
  background: linear-gradient(180deg, rgba(239, 248, 255, 0.78), rgba(255, 255, 255, 0.68));
  border-color: rgba(13, 111, 191, 0.16);
}

.score-dimension-card--risk {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.8), rgba(255, 255, 255, 0.68));
  border-color: rgba(235, 178, 74, 0.2);
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.quality-pill--excellent,
.quality-pill--good {
  color: var(--success);
  background: rgba(44, 122, 75, 0.12);
  border: 1px solid rgba(44, 122, 75, 0.16);
}

.quality-pill--fair {
  color: var(--warning);
  background: rgba(211, 139, 16, 0.14);
  border: 1px solid rgba(211, 139, 16, 0.18);
}

.quality-pill--poor,
.quality-pill--critical {
  color: var(--danger);
  background: rgba(185, 56, 47, 0.12);
  border: 1px solid rgba(185, 56, 47, 0.18);
}

.list {
  display: grid;
  gap: 12px;
}

.column-card,
.issue-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.column-card__top,
.issue-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.column-card h4,
.issue-card h4 {
  margin: 0;
  font-size: 1rem;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 193, 221, 0.09);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag--danger {
  background: rgba(185, 56, 47, 0.1);
  color: var(--danger);
}

.tag--warm {
  background: rgba(199, 107, 41, 0.12);
  color: var(--warm);
}

.mini-score {
  min-width: 72px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f9f3e8;
  font-weight: 800;
}

.issue-message,
.column-meta {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.analysis-section-note {
  margin: 0 0 12px;
  padding-inline: 4px;
}

.rule-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  color: var(--muted);
  font-weight: 800;
}

.rule-mapping-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  unicode-bidi: isolate;
}

.rule-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
  align-content: start;
}

.rule-mapping-column {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.rule-mapping-more {
  justify-self: start;
}

.rule-mapping-row .rule-chip {
  direction: auto;
  unicode-bidi: isolate;
}

.loading {
  padding: 18px 0;
  color: var(--accent);
  font-weight: 700;
}

.error-box {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(185, 56, 47, 0.1);
  color: var(--danger);
  border: 1px solid rgba(185, 56, 47, 0.18);
}

.success-box {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(44, 122, 75, 0.1);
  color: #166534;
  border: 1px solid rgba(44, 122, 75, 0.18);
}

.rule-panel-actions {
  margin-top: 12px;
}

.rule-panel-actions--footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 57, 108, 0.08);
}

.rule-panel-actions__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rule-detection-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 310px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 111, 191, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
}

.rule-detection-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1a79cf;
}

.rule-detection-toggle span {
  display: grid;
  gap: 2px;
}

.rule-detection-toggle strong {
  font-size: 0.84rem;
}

.rule-detection-toggle small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.rule-example-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.rule-example-grid--editing {
  margin-top: 10px;
}

.rule-card__preview {
  margin-top: 14px;
}

.rule-card__preview .rule-example-block {
  background: rgba(246, 251, 255, 0.84);
}

.rule-builder-panel {
  border: 1px solid rgba(23, 193, 221, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 255, 0.92));
}

.rule-builder-spotlight {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 111, 191, 0.22);
  background:
    radial-gradient(circle at top left, rgba(23, 193, 221, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(236, 253, 250, 0.96), rgba(239, 246, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 28px rgba(16, 57, 108, 0.06);
}

.rule-builder-headline {
  display: block;
  min-width: 0;
}

.section-heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-heading-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.14);
  border: 1px solid rgba(23, 193, 221, 0.2);
}

.section-heading-icon--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0d6fbf);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(13, 111, 191, 0.18);
}

.section-heading-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ready-rules-list {
  margin-top: 18px;
}

.rule-bundle-panel {
  margin: 20px 0 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 193, 221, 0.18);
  background:
    radial-gradient(circle at top right, rgba(23, 193, 221, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(238, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 26px rgba(16, 57, 108, 0.06);
}

.rule-bundle-headline {
  display: block;
  min-width: 0;
}

.rule-bundle-summary {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 57, 108, 0.06);
}

.rule-bundle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.rule-bundle-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-bundle-actions {
  margin-top: 0;
}

.rule-bundle-actions--manage-col {
  flex-wrap: wrap;
}

.rule-bundle-action {
  border-width: 1px;
  border-radius: var(--button-radius);
  box-shadow: none;
}

.rule-bundle-action.rule-bundle-action--save {
  color: #075985 !important;
  background: var(--button-primary-soft) !important;
  border-color: rgba(13, 121, 189, 0.2) !important;
}

.rule-bundle-action.rule-bundle-action--load {
  color: #075985 !important;
  background: rgba(255, 255, 255, 0.64) !important;
  border-color: rgba(13, 121, 189, 0.16) !important;
}

.rule-bundle-action.rule-bundle-action--delete {
  color: #9b4d49 !important;
  background: var(--button-danger-soft) !important;
  border-color: rgba(182, 91, 85, 0.18) !important;
}

.rule-bundle-action.rule-bundle-action--export {
  color: #40566f !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(16, 57, 108, 0.12) !important;
}

.rule-bundle-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-soft);
}

.rule-bundle-action:disabled {
  color: #8793a3;
  background: rgba(226, 232, 240, 0.54);
  border-color: rgba(203, 213, 225, 0.66);
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.rule-example-block {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 57, 108, 0.08);
}

.rule-example-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.rule-chip--bad {
  color: #9f2a22;
  background: rgba(185, 56, 47, 0.11);
  border-color: rgba(185, 56, 47, 0.18);
}

.rule-chip--good {
  color: #17603c;
  background: rgba(44, 122, 75, 0.12);
  border-color: rgba(44, 122, 75, 0.18);
}

.rule-chip--unmapped {
  color: #8a3d0a;
  background: #fff4e6;
  border-color: #f7c27a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dimension-list {
  display: grid;
  gap: 10px;
}

.dimension-insights-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.dimension-dashboard,
.quick-read-panel {
  border: 1px solid rgba(23, 193, 221, 0.18);
  background:
    radial-gradient(circle at top left, rgba(23, 193, 221, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.98), rgba(241, 250, 253, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 34px rgba(16, 57, 108, 0.07);
}

.dimension-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dimension-dashboard__header h3 {
  margin: 0;
}

.dimension-dashboard__weakest {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  color: #0e7280;
  background: rgba(23, 193, 221, 0.14);
  border: 1px solid rgba(23, 193, 221, 0.2);
}

.dimension-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.dimension-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 193, 221, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 255, 0.9));
  box-shadow: 0 10px 24px rgba(16, 57, 108, 0.06);
}

.dimension-card__top,
.dimension-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dimension-card__top {
  margin-bottom: 12px;
}

.dimension-card__icon,
.quick-read-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
  background: rgba(23, 193, 221, 0.14);
  border: 1px solid rgba(23, 193, 221, 0.18);
}

.dimension-card__icon svg,
.quick-read-card__icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.dimension-card__status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.dimension-card__body strong {
  color: var(--ink);
  font-size: 1rem;
}

.dimension-card__body span {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dimension-card__bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(16, 57, 108, 0.08);
  overflow: hidden;
}

.dimension-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e83d7, var(--accent));
}

.dimension-card--strong {
  border-color: rgba(23, 193, 221, 0.2);
}

.dimension-card--strong .dimension-card__status {
  color: #075b78;
  background: rgba(23, 193, 221, 0.14);
}

.dimension-card--watch {
  border-color: rgba(13, 111, 191, 0.18);
}

.dimension-card--watch .dimension-card__status {
  color: #0d4f8b;
  background: rgba(13, 111, 191, 0.1);
}

.dimension-card--risk {
  border-color: rgba(16, 57, 108, 0.16);
}

.dimension-card--risk .dimension-card__status {
  color: var(--ink);
  background: rgba(16, 57, 108, 0.08);
}

.dimension-dashboard__note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
  background: rgba(23, 193, 221, 0.08);
  border: 1px solid rgba(23, 193, 221, 0.14);
}

.quick-read-grid {
  display: grid;
  gap: 12px;
}

.quick-read-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 193, 221, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 255, 0.9));
  box-shadow: 0 12px 26px rgba(16, 57, 108, 0.06);
}

.quick-read-card h4 {
  margin: 0 0 6px;
  color: var(--ink);
}

.quick-read-card .issue-message {
  margin: 0;
}

.quick-read-card--risk .quick-read-card__icon {
  color: #a52820;
  background: rgba(185, 56, 47, 0.1);
  border-color: rgba(185, 56, 47, 0.18);
}

.quick-read-card--noise .quick-read-card__icon {
  color: #8a4b00;
  background: rgba(217, 119, 6, 0.13);
  border-color: rgba(217, 119, 6, 0.22);
}

.quick-read-card--info .quick-read-card__icon {
  color: #0e7280;
  background: rgba(23, 193, 221, 0.14);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.issues-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.issues-table th,
.issues-table td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid rgba(13, 111, 191, 0.08);
  vertical-align: middle;
}

.issues-table th:last-child,
.issues-table td:last-child {
  border-inline-end: 0;
}

.issues-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #e8f9fd 0%, #d8f3fb 100%);
  color: #0f3b63;
  font-size: 0.85rem;
  font-weight: 900;
  z-index: 2;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 rgba(13, 111, 191, 0.16), 0 4px 18px rgba(13, 111, 191, 0.08);
}

.issues-table thead th:first-child {
  border-start-start-radius: 14px;
}

.issues-table thead th:last-child {
  border-start-end-radius: 14px;
}

.issues-table-sort {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.issues-table-sort:hover,
.issues-table-sort:focus-visible {
  color: #075e6b;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 193, 221, 0.28);
  outline: none;
}

.issues-table-sort.is-active {
  color: #075e6b;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 193, 221, 0.38);
  box-shadow: 0 6px 16px rgba(13, 111, 191, 0.10);
}

.issues-table-sort__icon {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  color: #075e6b;
  background: rgba(23, 193, 221, 0.14);
  font-size: 0.72rem;
  font-weight: 950;
}

.issues-table tbody tr {
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.issues-table tbody tr:nth-child(even) {
  background: rgba(13, 111, 191, 0.018);
}

.issues-table tbody tr:hover {
  background: rgba(23, 193, 221, 0.08);
  box-shadow: inset 0 0 0 1px rgba(23, 193, 221, 0.1);
}

.issues-table tbody tr:hover td {
  color: var(--ink);
}

.all-columns-table {
  min-width: 960px;
}

.all-columns-table th,
.all-columns-table td {
  padding: 14px 16px;
  white-space: nowrap;
}

.all-columns-table__name {
  text-align: start !important;
  color: var(--ink);
  font-weight: 850;
  min-width: 180px;
  max-width: 320px;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.mini-score--table {
  display: inline-flex;
  min-width: 68px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  border-radius: 999px;
}

.issue-table-controls {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  overflow: visible;
}

.issue-quick-filter {
  display: block;
  min-width: 280px;
  width: 100%;
  position: relative;
  z-index: 4;
}

.issue-quick-filter.is-active {
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.9);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.issue-source-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  width: max-content;
  min-height: 42px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(13, 111, 191, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.issue-source-filter__label {
  padding: 0 5px 0 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.issue-source-filter__item {
  display: inline-grid;
  grid-template-columns: 30px max-content;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 32px;
}

.issue-source-filter__item--all {
  grid-template-columns: 1fr;
  width: 76px;
}

.issue-source-filter__item--nexa {
  width: auto;
}

.issue-source-filter__item--user {
  width: auto;
  min-width: 120px;
}

.issue-source-filter__item--user .issue-source-filter__button {
  width: 100%;
}

.issue-source-filter__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #10396c;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 850;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.issue-source-filter__item--all .issue-source-filter__button {
  width: 100%;
}

.issue-source-filter__button > span {
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
}

.issue-source-filter__button strong {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #087f93;
  background: rgba(23, 193, 221, 0.12);
  text-align: center;
}

.issue-source-filter__button:hover,
.issue-source-filter__button.is-active {
  border-color: rgba(13, 121, 189, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.issue-source-filter__button.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    var(--button-primary-soft);
  color: #063f5f;
  border-color: rgba(13, 121, 189, 0.24);
  box-shadow: var(--button-shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.issue-source-filter__button.is-active strong {
  color: #075985;
  background: rgba(255, 255, 255, 0.78);
}

.issue-source-filter__button:disabled {
  color: #7b8794;
  background: rgba(226, 232, 240, 0.36);
  border-color: rgba(148, 163, 184, 0.18);
  cursor: default;
}

.issue-source-filter__item.is-deleted .issue-source-filter__button strong {
  color: #64748b;
  background: rgba(226, 232, 240, 0.72);
}

.issue-source-filter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.issue-source-filter__icon-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.issue-source-filter__icon--delete {
  color: #9f1239;
  background: rgba(255, 241, 242, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.issue-source-filter__icon--delete:hover {
  background: rgba(255, 228, 230, 0.94);
  border-color: rgba(244, 63, 94, 0.34);
}

.issue-source-filter__icon--restore {
  color: #075e6b;
  background: rgba(236, 254, 255, 0.86);
  border: 1px solid rgba(23, 193, 221, 0.22);
}

.issue-source-filter__icon--restore:hover {
  background: rgba(207, 250, 254, 0.9);
}

.issue-quick-filter select,
.issue-quick-filter input {
  width: 100%;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

.issue-quick-filter.is-active input {
  padding-inline-end: 42px;
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 251, 235, 0.94));
  color: #7c2d12;
  font-weight: 850;
}

.issue-column-filter-clear {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  background: rgba(255, 241, 242, 0.95);
  color: #be123c;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.issue-column-filter-clear:hover {
  background: rgba(255, 228, 230, 0.98);
  border-color: rgba(244, 63, 94, 0.34);
  transform: translateY(-50%);
}

.issue-quick-filter input:focus {
  border-color: rgba(23, 193, 221, 0.45);
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.12);
  outline: none;
}

.issue-column-filter-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  inset-inline: 0;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(13, 111, 191, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(16, 57, 108, 0.16);
  overscroll-behavior: contain;
}

.issue-quick-filter:focus-within .issue-column-filter-menu,
.issue-column-filter-menu.is-open {
  display: grid;
  gap: 4px;
}

.issue-column-filter-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}

.issue-column-filter-menu button:hover {
  background: rgba(236, 254, 255, 0.86);
  color: #075e6b;
}

.issue-column-filter-menu button:disabled {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.78);
  cursor: default;
  opacity: 0.72;
}

.issue-column-filter-menu button span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #075e6b;
  background: rgba(23, 193, 221, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
}

.confidence-summary--inline {
  margin: 0;
  justify-self: end;
  min-height: 42px;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1180px) {
  .issue-table-controls {
    grid-template-columns: max-content minmax(280px, 1fr);
  }

  .confidence-summary--inline {
    grid-column: 1 / -1;
  }
}

.issues-table__empty-row td {
  height: 76px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none !important;
}

.issue-row--suppressed {
  background: rgba(226, 232, 240, 0.28) !important;
}

.issue-row--suppressed td:not(.cell-actions) {
  opacity: 0.54;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(100, 116, 139, 0.65);
}

.issue-row--suppressed [data-correct-key],
.issue-row--suppressed [data-ignore-key] {
  display: none;
}

.issue-type-stack {
  display: grid;
  gap: 6px;
  min-width: 180px;
  justify-items: center;
}

.issue-rule-trace {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.issue-rule-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075e6b;
  background: rgba(23, 193, 221, 0.12);
  border: 1px solid rgba(23, 193, 221, 0.22);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: normal;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

.issue-rule-chip--source {
  color: #114a8d;
  background: rgba(26, 121, 207, 0.1);
  border-color: rgba(26, 121, 207, 0.22);
}

.issue-rule-chip--rule {
  min-width: 148px;
  max-width: 210px;
  justify-content: center;
  color: #334155;
  background: rgba(241, 245, 249, 0.94);
  border-color: rgba(148, 163, 184, 0.38);
  line-height: 1.25;
  text-align: center;
}

.issue-rule-chip--approved {
  color: #166534;
  background: rgba(187, 247, 208, 0.72);
  border-color: rgba(34, 197, 94, 0.28);
}

.issue-rule-chip--explanation {
  max-width: 320px;
  justify-content: center;
  line-height: 1.35;
}

.issue-explanation-trigger {
  width: fit-content;
  min-width: 96px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(23, 193, 221, 0.2);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  background: rgba(236, 254, 255, 0.72);
  color: #075e6b;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
  white-space: nowrap;
}

.issue-explanation-trigger__icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #075e6b;
  background: rgba(23, 193, 221, 0.16);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

[dir="rtl"] .issue-explanation-trigger {
  flex-direction: row-reverse;
  min-width: 108px;
  padding: 8px 12px 8px 16px;
}

.issue-explanation-trigger:hover,
.issue-explanation-trigger:focus-visible {
  background: rgba(207, 250, 254, 0.86);
  outline: 2px solid rgba(23, 193, 221, 0.28);
  outline-offset: 2px;
}

.issue-explanation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(8, 28, 54, 0.28);
  backdrop-filter: blur(3px);
}

.issue-explanation-panel {
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(16, 57, 108, 0.14);
  background: rgba(248, 253, 255, 0.98);
  box-shadow: 0 24px 70px rgba(16, 57, 108, 0.26);
  color: var(--ink);
}

.issue-explanation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(16, 57, 108, 0.1);
}

.issue-explanation-header h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.issue-explanation-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid rgba(16, 57, 108, 0.14);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.issue-explanation-body {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
}

.issue-explanation-section {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 57, 108, 0.08);
}

.issue-explanation-section h4,
.issue-context-details summary {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.issue-explanation-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.issue-explanation-section--related {
  background: rgba(244, 250, 253, 0.62);
  border-style: dashed;
}

.issue-explanation-section--related h4 {
  color: #2f5f85;
}

.issue-explanation-section--related li {
  opacity: 0.86;
}

.mini-method-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-inline-start: 0.35rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(35, 190, 215, 0.28);
  border-radius: 999px;
  background: rgba(224, 250, 255, 0.78);
  color: #075b6c;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.issue-explanation-section--canonical dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
}

.issue-explanation-section--canonical dl > div {
  display: grid;
  gap: 0.2rem;
}

.issue-explanation-section--canonical dt {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
}

.issue-explanation-section--canonical dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.issue-explanation-section ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.canonical-decision-card {
  gap: 10px;
  background: linear-gradient(135deg, rgba(231, 252, 255, 0.94), rgba(255, 255, 255, 0.88));
  border-color: rgba(23, 193, 221, 0.22);
}

.canonical-decision-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.canonical-value {
  min-width: 0;
  max-width: 44%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 57, 108, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.canonical-value--suggested {
  color: #067a46;
  background: rgba(224, 255, 241, 0.9);
  border-color: rgba(6, 122, 70, 0.14);
}

.canonical-arrow {
  flex: 0 0 auto;
  color: #0ea5e9;
  font-weight: 900;
}

.canonical-decision-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.canonical-confidence-chip,
.canonical-safety-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
}

.canonical-confidence-chip {
  color: #075e6b;
  background: rgba(207, 250, 254, 0.85);
  border: 1px solid rgba(23, 193, 221, 0.24);
}

.canonical-safety-badge--high {
  color: #067a46;
  background: rgba(220, 252, 231, 0.9);
  border: 1px solid rgba(6, 122, 70, 0.18);
}

.canonical-safety-badge--medium {
  color: #9a5a00;
  background: rgba(255, 247, 214, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.canonical-safety-badge--low {
  color: #9f1239;
  background: rgba(255, 228, 230, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.18);
}

.canonical-confidence-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 57, 108, 0.09);
}

.canonical-confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c1dd, #16a34a);
}

.canonical-safety-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.canonical-collapsible {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(16, 57, 108, 0.08);
}

.canonical-collapsible summary {
  list-style: none;
}

.canonical-collapsible summary::-webkit-details-marker {
  display: none;
}

.canonical-collapsible summary::before {
  content: "▸";
  display: inline-block;
  margin-inline-end: 7px;
  color: #0ea5e9;
  transition: transform 0.16s ease;
}

.canonical-collapsible[open] summary::before {
  transform: rotate(90deg);
}

.canonical-evidence-group {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.canonical-evidence-group strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.canonical-advanced-list,
.canonical-advanced-context {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.canonical-advanced-list div {
  display: grid;
  gap: 2px;
}

.issue-context-details {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 57, 108, 0.08);
  background: rgba(248, 253, 255, 0.62);
}

.issue-context-details summary {
  cursor: pointer;
}

.issue-context-details dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.issue-context-details dl div {
  display: grid;
  gap: 2px;
}

.issue-context-details dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.issue-context-details dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.issue-rule-details {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.82rem;
}

.issue-rule-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-weight: 850;
  list-style: disclosure-closed;
}

.issue-rule-details[open] summary {
  list-style: disclosure-open;
}

.issue-rule-details dl {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 57, 108, 0.1);
}

.issue-rule-details dl div {
  display: grid;
  gap: 2px;
}

.issue-rule-details dt {
  color: var(--ink);
  font-weight: 850;
}

.issue-rule-details dd {
  margin: 0;
  line-height: 1.45;
}

.cell-secondary-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.issue-row--suppressed .cell-actions {
  cursor: pointer;
  opacity: 1;
}

.issue-row--suppressed .cell-actions::before {
  content: attr(data-restore-icon) " " attr(data-restore-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: rgba(236, 254, 255, 0.74);
  color: #075e6b;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.issue-row--suppressed .cell-actions:hover::before {
  background: rgba(207, 250, 254, 0.92);
  border-color: rgba(14, 116, 144, 0.34);
  color: #064e5a;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .filter-group-chips {
    grid-template-columns: 1fr;
  }

  .issue-filter-pill {
    max-width: none;
  }

  .issue-table-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .confidence-summary--inline,
  .issue-source-filter,
  .issue-quick-filter {
    width: 100%;
  }

  .issue-source-filter {
    flex-wrap: wrap;
  }

  .issue-explanation-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
  }

  .issue-explanation-panel {
    width: 100%;
    max-height: 82vh;
    border-radius: 18px 18px 12px 12px;
  }
}

.code-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-all;
  white-space: normal;
  max-width: 100%;
}

.issue-filter-container {
  background: #f8fbff;
  border: 1px solid #ddecf6;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: all 200ms ease;
}

.issue-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -12px -14px 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23, 193, 221, 0.16);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(135deg, rgba(23, 193, 221, 0.13) 0%, rgba(30, 131, 215, 0.08) 100%),
    rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.issue-filter-header h4 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
}

.issue-filter-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(23, 193, 221, 0.16);
  color: var(--accent);
}

.issue-filter-title__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.issue-filter-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.issue-filter-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(13, 121, 189, 0.16);
  background: rgba(255, 255, 255, 0.66);
  color: #075985;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

.issue-filter-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 121, 189, 0.24);
  color: var(--ink);
  box-shadow: var(--button-shadow-soft);
}

.issue-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  transition: all 150ms ease;
  padding: 0;
  font-size: 0.75rem;
}

.issue-filter-toggle:hover {
  background: rgba(23, 193, 221, 0.12);
  color: var(--accent);
}

.toggle-icon {
  display: inline-block;
  transition: transform 200ms ease;
}

.issue-filter-toggle[aria-expanded="false"] .toggle-icon {
  transform: rotate(-90deg);
}

.issue-filter-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow: visible;
  transition: max-height 200ms ease, opacity 200ms ease;
}

.issue-filter-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.issue-filter-search {
  height: 38px;
  padding: 7px 12px;
  border: 1px solid #dfeaf5;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transition: all 150ms ease;
}

.issue-filter-search:focus {
  outline: none;
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.1);
}

.issue-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-filter-compact {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.issue-filter-combobox {
  min-width: 0;
}

.issue-filter-combobox input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dfeaf5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
}

.issue-filter-combobox input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 193, 221, 0.1);
}

.issue-filter-active-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.issue-filter-active-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  padding: 7px 9px 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(180, 83, 9, 0.36);
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 46%, #ea580c 100%);
  color: #431407;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.issue-filter-active-card--all {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(23, 193, 221, 0.2);
  color: var(--muted);
  box-shadow: none;
}

.issue-filter-active-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.88);
  color: #dc2626;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
}

.issue-filter-active-remove:hover {
  background: #dc2626;
  border-color: transparent;
  color: #fff;
}

.issue-filter-compact .ignored-filter-panel {
  grid-column: 1 / -1;
}

.issue-filter-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(207, 224, 238, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.78rem;
}

.issue-filter-summary .issue-filter-pill--all {
  width: auto;
  min-width: 132px;
  min-height: 30px;
  padding-inline: 10px;
}

.issue-filter-summary .issue-filter-pill-wrap {
  flex: 0 1 220px;
  min-width: 180px;
  max-width: 260px;
}

.issue-filter-summary strong {
  color: var(--ink);
  font-weight: 800;
}

.issue-filter-summary__dot {
  color: rgba(102, 112, 128, 0.55);
}

.issue-filter-clear {
  margin-inline-start: auto;
  border: 1px solid rgba(23, 193, 221, 0.28);
  background: rgba(224, 247, 252, 0.74);
  color: #087c93;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.issue-filter-clear:hover {
  background: rgba(23, 193, 221, 0.16);
}

.filter-group {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 5px 0;
  border-bottom: 1px solid rgba(23, 193, 221, 0.12);
  min-width: 0;
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.6px;
  padding: 8px 2px 0;
  margin-bottom: 0;
}

.filter-group-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

[dir="rtl"] .filter-group-label {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .filter-group {
  grid-template-columns: 108px minmax(0, 1fr);
}

.issue-filter-pill-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  max-width: none;
}

.issue-filter-pill-wrap[style*="display: none"] {
  display: none !important;
}

.issue-filter-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 220px;
  max-width: 360px;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(16, 57, 108, 0.1);
  background: rgba(255, 255, 255, 0.66);
  color: #667080;
  transition: all 150ms ease;
  white-space: normal;
  box-shadow: 0 1px 4px rgba(16, 57, 108, 0.035);
}

.issue-filter-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 121, 189, 0.18);
  color: var(--ink);
  box-shadow: var(--button-shadow-soft);
}

.issue-filter-pill.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    var(--button-primary-soft);
  border-color: rgba(13, 121, 189, 0.24);
  color: #063f5f;
  box-shadow: var(--button-shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pill-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.pill-icon {
  font-size: 0.88em;
  display: inline-block;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  min-width: 1ch;
  text-align: center;
  transition: color 150ms ease;
}

.issue-filter-pill:hover:not(.is-active) .pill-icon,
.issue-filter-pill.is-active .pill-icon {
  color: inherit;
}

.pill-label {
  display: inline-block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.18;
  min-width: 0;
}

.issue-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(16, 57, 108, 0.08);
  color: var(--ink);
  padding: 0 5px;
  flex-shrink: 0;
}

.issue-filter-pill.is-active .issue-filter-count {
  background: rgba(255, 255, 255, 0.78);
  color: #075985;
}

.issue-filter-dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease, transform 150ms ease;
  opacity: 0;
  pointer-events: none;
}

[dir="rtl"] .issue-filter-dismiss {
  right: auto;
  left: -6px;
}

.issue-filter-dismiss:hover {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border-color: transparent;
  transform: scale(1.15);
}

.issue-filter-dismiss.show-dismiss,
.issue-filter-pill-wrap:hover .issue-filter-dismiss {
  opacity: 1;
  pointer-events: auto;
  display: inline-flex;
}

.issue-filter-pill--detected-draft {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.34);
  border-style: dashed;
  color: #a95308;
}

.issue-filter-draft-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  color: #075e6b;
  background: rgba(23, 193, 221, 0.12);
  border: 1px dashed rgba(23, 193, 221, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.ignored-filter-panel {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(16, 57, 108, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.ignored-filter-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.ignored-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ignored-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 7px 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
}

.ignored-filter-chip--draft {
  border-style: dashed;
}

.ignored-filter-chip button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: none;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.ignored-filter-chip button:hover {
  background: rgba(204, 251, 241, 0.7);
  border-color: rgba(15, 118, 110, 0.22);
}

.issue-filter-pill--detected-draft .pill-icon {
  color: #d97706;
}

.issue-filter-pill--detected-draft:hover:not(.is-active) {
  background: rgba(217, 119, 6, 0.16);
  border-color: rgba(217, 119, 6, 0.48);
  color: #92400e;
}

.issue-filter-pill--detected-draft.is-active {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 48%, #ea580c 100%);
  color: #431407;
  border-color: rgba(180, 83, 9, 0.36);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.issue-filter-pill--detected-draft .issue-filter-count {
  background: rgba(217, 119, 6, 0.15);
  color: #92400e;
}

.issue-filter-pill--detected-draft.is-active .issue-filter-count {
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
}

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

.issue-table-toolbar__meta,
.issue-table-toolbar__actions {
  align-items: center;
}

.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 148, 97, 0.22);
  border-radius: var(--button-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    var(--button-success-soft);
  color: #08704d;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--button-shadow-soft);
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.export-button:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(17, 148, 97, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--button-success);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 148, 97, 0.18);
}

.repair-button {
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(13, 121, 189, 0.22);
  border-radius: var(--button-radius);
  font-size: 0.9rem;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(23, 193, 221, 0.18), rgba(30, 131, 215, 0.14));
  color: #075985;
  box-shadow: var(--button-shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 180ms ease;
}

.repair-button:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(13, 121, 189, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #18b7d2, var(--button-primary));
  box-shadow: 0 10px 22px rgba(13, 121, 189, 0.18);
  transform: translateY(-1px);
}

.repair-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(13, 111, 191, 0.25);
}

.repair-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ghost-button {
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  background: var(--button-surface);
  color: #17466f;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ghost-button:hover:not(:disabled) {
  background: var(--button-surface-hover);
  border-color: rgba(13, 121, 189, 0.22);
  color: #063b63;
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-soft);
}

.ghost-button--sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.85rem;
}

.dashboard .solid-link.button-like:not(.solid-link--hero),
.panel .solid-link.button-like:not(.solid-link--hero) {
  color: #075985;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    var(--button-primary-soft);
  border: 1px solid rgba(13, 121, 189, 0.2);
  box-shadow: var(--button-shadow-soft);
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard .solid-link.button-like:not(.solid-link--hero):hover:not(:disabled),
.panel .solid-link.button-like:not(.solid-link--hero):hover:not(:disabled) {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--button-primary);
  border-color: rgba(13, 121, 189, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 121, 189, 0.18);
}

.rule-title-with-column {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-column-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.rule-action-button {
  border-width: 1px;
  border-radius: var(--button-radius);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.rule-action-button--run {
  color: #08704d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    var(--button-success-soft);
  border-color: rgba(17, 148, 97, 0.22);
  box-shadow: var(--button-shadow-soft);
}

.rule-action-button--run:hover:not(:disabled) {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--button-success);
  border-color: rgba(17, 148, 97, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 148, 97, 0.18);
}

.rule-action-button--stop {
  color: #8a4a08;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: none;
}

.rule-action-button--stop:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

.rule-action-button--edit {
  color: #40566f;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(16, 57, 108, 0.12);
  box-shadow: none;
}

.rule-action-button--edit:hover:not(:disabled) {
  color: #0f3f73;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 121, 189, 0.2);
}

.rule-action-button--remove {
  color: #9b4d49;
  background: var(--button-danger-soft);
  border-color: rgba(182, 91, 85, 0.18);
  box-shadow: none;
}

.rule-action-button--remove:hover:not(:disabled) {
  color: #8f3f3a;
  background: rgba(182, 91, 85, 0.18);
  border-color: rgba(182, 91, 85, 0.28);
}

.rule-action-button--edit .button-icon {
  color: #607085;
}

.rule-action-button:disabled {
  color: #8793a3;
  background: rgba(226, 232, 240, 0.54);
  border-color: rgba(203, 213, 225, 0.66);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.auth-shell,
.stack {
  display: grid;
  gap: 14px;
}

.rules-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.rules-stack > .panel {
  width: 100%;
}

.rules-stack > .panel:first-child {
  border-bottom: 1px solid rgba(16, 57, 108, 0.08);
  padding-bottom: 6px;
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(13, 111, 191, 0.07);
  padding: 6px;
  border-radius: 999px;
}

.auth-tab {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.auth-tab--active {
  background: white;
  color: var(--accent);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

.panel--nested {
  background: rgba(255, 255, 255, 0.44);
  box-shadow: none;
}

.identity-key-panel {
  display: grid;
  gap: 16px;
  padding: 26px 30px;
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.34), rgba(255, 255, 255, 0.48));
}

.identity-key-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.identity-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-mode-card {
  justify-content: center;
  min-width: 160px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  line-height: 1.25;
}

.identity-mode-card span {
  font-weight: 700;
}

.identity-mode-card--active {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(220, 252, 231, 0.74);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
}

.identity-key-panel__controls {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}

.identity-key-panel__controls--auto {
  align-items: stretch;
}

.identity-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  max-height: 178px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.identity-checkbox-list--single {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.identity-checkbox-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 111, 191, 0.08);
}

.identity-checkbox-option input {
  width: auto;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.identity-checkbox-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 700;
}

.identity-auto-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(240, 253, 244, 0.78);
}

.identity-auto-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.identity-auto-card strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.identity-auto-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.identity-key-panel__apply {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(13, 111, 191, 0.14);
  background: linear-gradient(135deg, rgba(246, 251, 255, 0.96), rgba(232, 249, 252, 0.86));
}

.identity-key-panel__apply .ghost-button {
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.identity-apply-button {
  background: linear-gradient(135deg, rgba(23, 193, 221, 0.18), rgba(13, 111, 191, 0.14));
  border: 1px solid rgba(23, 193, 221, 0.28);
  color: var(--accent);
  font-weight: 800;
}

.identity-key-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 193, 221, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.identity-key-chip-card {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(23, 193, 221, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.identity-key-chip-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.identity-key-chip-card strong {
  color: var(--accent);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

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

.mini-metric {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.compact-list {
  gap: 8px;
}

.compact-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.compact-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.db-connector-panel {
  padding-block: 24px;
  background:
    radial-gradient(circle at top right, rgba(49, 96, 163, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 253, 255, 0.9));
}

.db-connector-header {
  align-items: center;
  margin-bottom: 14px;
}

.db-connector-panel .issue-message {
  margin: 10px 0;
}

.db-connector-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.db-connector-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(49, 96, 163, 0.18);
  background: #fff;
  box-shadow: 0 18px 34px rgba(49, 96, 163, 0.18);
}

.db-connector-icon svg {
  width: 36px;
  height: 36px;
}

.db-connector-icon .postgres-logo {
  width: 38px;
  height: 38px;
}

.db-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 2px solid rgba(49, 96, 163, 0.2);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.db-type-btn:hover {
  border-color: rgba(49, 96, 163, 0.4);
  background: rgba(49, 96, 163, 0.04);
}

.db-type-btn--active {
  border-color: #1a6eb5;
  background: rgba(26, 110, 181, 0.07);
  color: #113c70;
}

.db-type-btn__radio {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.db-type-btn img,
.db-type-btn svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.db-connector-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.db-connector-grid--table.form-grid {
  grid-template-columns: minmax(260px, 520px);
}

.db-connector-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.field-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.db-connector-form input,
.db-connector-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.db-action-row.rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.db-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(13, 111, 191, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.db-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.db-action-btn--test {
  border-color: rgba(15, 118, 110, 0.18);
  background: #e8f7f4;
  color: #0f766e;
}

.db-action-btn--load {
  border-color: rgba(49, 96, 163, 0.18);
  background: #eaf3ff;
  color: #255d9d;
}

.db-action-btn--preview {
  border-color: rgba(23, 193, 221, 0.22);
  background: #e9f9fc;
  color: #0b7f96;
}

.db-action-btn--analyze {
  min-height: 46px;
  padding: 11px 26px;
  font-size: 1.04rem;
  font-weight: 700;
  border-color: #0d5faa;
  background: linear-gradient(135deg, #1a7fd4, #0d5faa);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(13, 111, 191, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.22s ease;
}

.db-action-btn--analyze:not(:disabled):hover,
.db-action-btn--analyze:not(:disabled):focus-visible {
  background: linear-gradient(135deg, #1572c0, #0a4d96);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(13, 111, 191, 0.32);
}

.db-action-btn--analyze.db-analyze--table-ready {
  background: linear-gradient(135deg, #0f6bbf, #0a4d9c);
  box-shadow: 0 22px 44px rgba(13, 111, 191, 0.42), 0 0 0 3px rgba(13, 111, 191, 0.18);
  transform: translateY(-2px) scale(1.02);
  animation: hero-btn-pulse 2s ease-in-out infinite;
}

.db-action-btn:hover,
.db-action-btn:focus-visible {
  box-shadow: 0 12px 24px rgba(13, 111, 191, 0.1);
  transform: translateY(-1px);
}

.db-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
  filter: saturate(0.65);
}

.account-settings-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 24px;
}

.account-profile-panel,
.account-security-panel,
.account-usage-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 253, 255, 0.9));
}

.account-profile-panel,
.account-security-panel {
  padding: 26px;
}

.account-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-section-icon,
.account-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent);
}

.account-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(23, 193, 221, 0.12);
  border: 1px solid rgba(23, 193, 221, 0.24);
}

.account-section-icon svg {
  width: 17px;
  height: 17px;
}

.account-card-icon {
  width: 28px;
  height: 28px;
  margin-inline-end: 8px;
  border-radius: 10px;
  background: rgba(226, 246, 252, 0.84);
  vertical-align: middle;
}

.account-card-icon svg {
  width: 14px;
  height: 14px;
}

.account-profile-panel .list {
  gap: 14px;
}

.account-profile-panel .column-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 255, 0.86));
}

.account-profile-panel .column-card h4 {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.account-security-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(243, 252, 255, 0.78));
  box-shadow: 0 16px 38px rgba(13, 71, 136, 0.06);
}

.account-password-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin: 8px 0 0;
}

.account-password-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.account-password-form input {
  min-height: 46px;
}

.account-password-form label:first-child {
  grid-column: 1 / -1;
}

.account-password-form button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 190px;
  white-space: nowrap;
  margin-top: 2px;
}

.account-usage-panel {
  grid-column: 1 / -1;
  padding: 26px;
}

.success-box--compact,
.account-usage-panel .muted {
  margin-bottom: 14px;
}

.admin-table select {
  min-width: 120px;
}

.empty-state--compact {
  padding: 24px 18px;
  box-shadow: none;
  background: transparent;
  border: none;
}

.empty-state--insight {
  padding: 34px 26px;
  text-align: start;
  border: 1px solid rgba(23, 193, 221, 0.16);
  background:
    linear-gradient(135deg, rgba(245, 252, 255, 0.96), rgba(255, 250, 243, 0.96));
}

.empty-state__content {
  max-width: 860px;
  margin: 0 auto;
}

.empty-state__content h2 {
  margin-bottom: 10px;
}

.empty-state__content > p {
  margin: 0 0 18px;
}

.empty-state__points {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.empty-state__point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 57, 108, 0.08);
}

.empty-state__point-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.empty-state__point-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.empty-state__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.issues-table__group-a {
  background: rgba(23, 193, 221, 0.035);
}

.issues-table__group-b {
  background: rgba(30, 131, 215, 0.05);
}

.issues-table__cross td:first-child {
  font-weight: 800;
}

.issues-table__pattern-row {
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.14), rgba(23, 193, 221, 0.08)) !important;
}

.issues-table__pattern-row td {
  border-top: 1px solid rgba(232, 168, 30, 0.25);
  border-bottom: 1px solid rgba(23, 193, 221, 0.18);
}

.issues-table__pattern-row .cell-error {
  background: rgba(255, 193, 7, 0.10);
  color: #7c4a03;
}

.issues-table__pattern-row .cell-fix {
  background: rgba(23, 193, 221, 0.11);
}

.issues-table__pattern-row--spotlight {
  animation: issuePatternSpotlight 2.2s ease;
}

@keyframes issuePatternSpotlight {
  0% {
    box-shadow: inset 4px 0 0 rgba(23, 193, 221, 0.85), 0 0 0 0 rgba(23, 193, 221, 0.34);
  }
  45% {
    box-shadow: inset 4px 0 0 rgba(23, 193, 221, 0.95), 0 0 0 8px rgba(23, 193, 221, 0.12);
  }
  100% {
    box-shadow: inset 0 0 0 rgba(23, 193, 221, 0), 0 0 0 0 rgba(23, 193, 221, 0);
  }
}

.cell-error {
  background: rgba(185, 56, 47, 0.09);
  color: #7f1d1d;
}

.cell-fix {
  background: rgba(44, 122, 75, 0.11);
  color: #166534;
}

/* ── Actions Column ─────────────────────────────────────────────────── */
.th-actions {
  width: 132px;
  text-align: center !important;
}

.cell-actions {
  text-align: center;
  white-space: nowrap;
  padding: 10px 8px !important;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(16, 57, 108, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  color: #7c8b9b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  vertical-align: middle;
}
.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-soft);
}

.action-btn:disabled,
.action-btn[aria-disabled="true"] {
  color: #b8c1cb;
  background: rgba(226, 232, 240, 0.24);
  border-color: rgba(226, 232, 240, 0.42);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.action-btn:disabled:hover,
.action-btn[aria-disabled="true"]:hover {
  color: #b8c1cb;
  background: rgba(226, 232, 240, 0.24);
  border-color: rgba(226, 232, 240, 0.42);
  transform: none;
}

.action-btn--correct:hover {
  background: var(--button-primary-soft);
  border-color: rgba(13, 121, 189, 0.24);
  color: #075985;
}
.action-btn--ignore:hover {
  background: var(--button-danger-soft);
  border-color: rgba(182, 91, 85, 0.28);
  color: #9b4d49;
}

.action-btn--view-rows,
.action-btn--dismiss-pattern {
  width: auto;
  min-width: 82px;
  padding: 0 10px;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.action-btn--view-rows {
  color: #075985;
  background: var(--button-primary-soft);
  border-color: rgba(13, 121, 189, 0.2);
}

.action-btn--view-rows:hover {
  background: rgba(13, 121, 189, 0.16);
  border-color: rgba(13, 121, 189, 0.3);
  color: #063f5f;
}

.action-btn--dismiss-pattern {
  min-width: 72px;
}

.issue-row--ignored {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.28s ease !important;
}

/* ── Inline Correction Edit ─────────────────────────────────────────── */
.correction-edit-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.correction-input {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border: 1.5px solid rgba(23, 193, 221, 0.45);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 120ms;
}
.correction-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,193,221,0.12); }

.correction-save,
.correction-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 120ms;
}
.correction-save   { background: rgba(23,193,221,0.18); color: #0ea5cc; }
.correction-save:hover { background: rgba(23,193,221,0.35); }
.correction-cancel { background: rgba(109,123,137,0.14); color: var(--muted); }
.correction-cancel:hover { background: rgba(109,123,137,0.28); }

.correction-manual {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-edited {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(23,193,221,0.14);
  color: #0ea5cc;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.confidence-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}

.confidence-badge--filter {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.confidence-badge--filter:hover,
.confidence-badge--filter.is-active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.38);
}

.confidence-badge--filter.is-active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(249, 115, 22, 0.86));
  color: #7c2d12;
}

.confidence-badge--filter.is-muted {
  opacity: 0.42;
  filter: grayscale(1);
  box-shadow: none;
}

.confidence-badge--filter.is-muted:hover {
  opacity: 0.68;
  filter: grayscale(0.45);
}

.confidence-badge--filter:disabled {
  opacity: 0.48;
  filter: grayscale(0.85);
  cursor: default;
  box-shadow: none;
}

.confidence-badge--filter:disabled:hover {
  transform: none;
  opacity: 0.48;
  filter: grayscale(0.85);
}

.issue-filter-clear--confidence {
  border-color: rgba(14, 116, 144, 0.38);
  background: #e6fbff;
  color: #075e6b;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.12);
  font-weight: 900;
}

.issue-filter-clear--confidence:hover {
  background: #d9f7ff;
  border-color: rgba(14, 116, 144, 0.56);
}

.ai-panel {
  border: 1px solid rgba(23, 193, 221, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 250, 255, 0.92));
}

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

.ai-health-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-secondary-grid {
  margin-top: 16px;
}

.ai-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.ai-card--compact {
  padding: 18px;
}

.ai-health-details .compact-item {
  align-items: center;
}

.ai-card h4 {
  margin: 0 0 12px;
}

.identity-impact-note {
  margin: 16px 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 193, 221, 0.22);
  background: linear-gradient(180deg, rgba(230, 249, 255, 0.82), rgba(255, 255, 255, 0.9));
}

.identity-impact-note__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.identity-impact-note__top h4 {
  margin: 0 0 6px;
}

.identity-impact-note .column-meta {
  margin: 10px 0 0;
}

.confidence-note {
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .issue-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .issue-table-toolbar__actions .export-button,
  .issue-table-toolbar__actions .repair-button {
    flex: 1 1 180px;
  }

  .issue-filter-header {
    align-items: flex-start;
    gap: 10px;
  }

  .issue-filter-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .issue-filter-compact {
    grid-template-columns: 1fr;
  }
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.confidence-badge--confirmed {
  background: rgba(185, 56, 47, 0.12);
  color: #8f231c;
}

.confidence-badge--review {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
}

.confidence-badge--suggestion {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}

.contact-suggestions-panel {
  border-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.contact-suggestions-panel__count {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}

.contact-suggestion-groups,
.contact-suggestion-list {
  display: grid;
  gap: 12px;
}

.contact-suggestion-group {
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.contact-suggestion-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.14);
}

.contact-suggestion-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-suggestion-item:last-child {
  border-bottom: none;
}

.contact-suggestion-item__main,
.contact-suggestion-item__meta,
.contact-suggestion-item__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-suggestion-item__main code {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9);
  color: #0f3b63;
}

.contact-suggestion-item__suggestion {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

.contact-suggestion-arrow {
  color: #64748b;
  font-weight: 800;
}

.contact-suggestion-item__meta {
  color: #64748b;
  font-size: 0.84rem;
}

.contact-suggestion-item__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
}

.suggested-domain-rules-panel {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.98));
}

.suggested-domain-rules-panel__domain {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
}

.suggested-domain-rules-list {
  display: grid;
  gap: 12px;
}

.suggested-domain-rule-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.suggested-domain-rule-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.suggested-domain-rule-card h4 {
  margin: 0 0 6px;
}

.suggested-domain-rule-card .issue-message {
  margin: 0;
}

.suggested-domain-rule-card__column {
  color: #0f3b63;
  background: rgba(14, 165, 233, 0.12);
}

.suggested-domain-rule-card__actions {
  align-items: center;
  padding-top: 2px;
}

.suggested-domain-rule-card__actions .column-meta {
  margin: 0;
}

.suggested-domain-rules-panel__coming-soon {
  color: #64748b;
  background: rgba(226, 232, 240, 0.72);
}

.approved-rules-panel {
  border-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.98));
}

.approved-rules-panel__count {
  color: #3730a3;
  background: rgba(99, 102, 241, 0.12);
}

.approved-rules-list {
  display: grid;
  gap: 12px;
}

.approved-rule-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.approved-rule-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.approved-rule-card h4 {
  margin: 0 0 4px;
}

.approved-rule-card__column {
  color: #312e81;
  background: rgba(99, 102, 241, 0.1);
}

.approved-rule-card--active {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.94));
}

.dry-run-results-panel {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.14);
}

.dry-run-result-card {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

.dry-run-samples {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.approved-rule-validation-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.82), rgba(255, 255, 255, 0.96));
}

.approved-rule-validation-summary__header,
.approved-rule-validation-summary__stats,
.approved-rule-validation-summary__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.approved-rule-validation-summary__stats span {
  padding: 8px 12px;
  border-radius: 8px;
  color: #166534;
  background: rgba(220, 252, 231, 0.74);
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.approved-rule-validation-summary__rules {
  display: grid;
  gap: 10px;
}

.approved-rule-validation-summary__rule {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(187, 247, 208, 0.86);
}

.approved-rule-validation-summary__rule span:not(.tag) {
  color: #64748b;
  font-weight: 750;
}

@media (max-width: 760px) {
  .suggested-domain-rule-card__top,
  .approved-rule-card__top {
    flex-direction: column;
  }

  .approved-rule-validation-summary__header,
  .approved-rule-validation-summary__stats,
  .approved-rule-validation-summary__rule {
    align-items: stretch;
  }
}

.confidence-badge--clickable {
  cursor: pointer;
  border: none;
  transition: background 150ms ease, transform 100ms ease;
  text-decoration: none;
  font-family: inherit;
}

.confidence-badge--clickable:hover {
  background: rgba(217, 119, 6, 0.28);
  transform: scale(1.04);
}

.confidence-badge--rule-jump {
  gap: 6px;
}

.confidence-badge__arrow {
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-1px);
}

.confidence-badge--suppressed {
  background: rgba(23, 193, 221, 0.13);
  color: #0e7280;
}

.dimension-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  gap: 12px;
  align-items: center;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e83d7, var(--accent));
}

details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

/* Optional badge in journey map steps */
.journey-optional-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.report-journey__step--optional .report-journey__icon {
  background: rgba(109, 123, 137, 0.12);
  color: var(--muted);
  border: 1.5px dashed rgba(109, 123, 137, 0.4);
}

/* Optional badge on nav items */
.nav-optional-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.75;
}

/* Apply Auto-Detected Rules button */
.apply-detected-rules-btn {
  min-height: 42px;
  color: #075985 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    var(--button-primary-soft) !important;
  border: 1px solid rgba(13, 121, 189, 0.2) !important;
  border-radius: var(--button-radius);
  box-shadow: var(--button-shadow-soft) !important;
  font-size: 0.92rem;
  font-weight: 850;
  padding: 8px 16px 8px 10px;
  gap: 8px;
  letter-spacing: 0;
}

.apply-detected-rules-btn:hover:not(:disabled) {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--button-primary) !important;
  border-color: rgba(13, 121, 189, 0.28) !important;
  box-shadow: 0 10px 22px rgba(13, 121, 189, 0.18) !important;
  transform: translateY(-1px);
}

.apply-detected-rules-btn .button-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(13, 121, 189, 0.08);
}

.apply-detected-rules-btn .button-icon svg {
  width: 14px;
  height: 14px;
}

.apply-detected-rules-btn:disabled {
  color: #5f7287 !important;
  background: rgba(226, 232, 240, 0.54) !important;
  border-color: rgba(13, 111, 191, 0.1) !important;
  box-shadow: 0 10px 22px rgba(16, 57, 108, 0.1) !important;
  opacity: 1;
  cursor: not-allowed;
}

.apply-detected-rules-btn:disabled .button-icon {
  color: #6b879d;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .hero__panel {
    min-height: auto;
  }

  .hero__visual {
    min-height: 300px;
  }

  .hero h1,
  .hero__lead {
    max-width: none;
  }

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

  .rule-builder-grid {
    grid-template-columns: 1fr;
  }

  .rule-builder-options {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .rule-definition {
    grid-template-columns: 1fr;
  }

  .rule-definition__item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rule-panel-actions--footer {
    flex-direction: column;
    align-items: stretch;
  }

  .rule-panel-actions__meta {
    align-items: flex-start;
  }

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

  .workflow-panel__header {
    flex-direction: column;
  }

  .workflow-run-note {
    max-width: none;
  }

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

  .report-journey__flow {
    flex-direction: column;
    align-items: stretch;
  }

  .report-journey__arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .section-intro,
  .marketing-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-grid,
  .ai-secondary-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero,
  .workspace-nav__header,
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav,
  .site-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .score-hero__main {
    min-height: 190px;
  }

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

  .mini-metrics,
  .user-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .identity-mode-card {
    flex: 1 1 180px;
  }

  .identity-key-panel__controls {
    grid-template-columns: 1fr;
  }

  .identity-key-panel__apply {
    grid-template-columns: 1fr;
  }

  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .rule-builder-panel,
  .rule-builder-spotlight,
  .rule-bundle-panel {
    padding: 18px;
  }

  .ready-rules-list .column-card__top,
  .rule-builder-headline,
  .rule-bundle-headline {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
    padding: 8px 8px 28px;
  }

  .hero__copy,
  .hero__panel,
  .panel,
  .empty-state {
    padding: 18px;
  }

  input,
  select {
    min-height: 48px;
    padding: 12px 40px 12px 12px;
    font-size: 0.95rem;
  }

  button,
  .button-like,
  .solid-link,
  .ghost-link {
    min-height: 42px;
    white-space: normal;
  }

  .hero__copy,
  .hero__panel {
    min-height: auto;
    height: auto;
  }

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

  .hero-upload-panel,
  .hero-postgres-card,
  .excel-sheet-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .excel-sheet-panel:not(.is-hidden) + .scan-mode-panel:not(.is-hidden) {
    grid-column: auto;
    grid-row: auto;
  }

  .hero__visual {
    min-height: 260px;
  }

  .hero__visual-image {
    width: min(100%, 300px);
    max-height: 310px;
  }

  .hero__copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.25rem);
    line-height: 1.08;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__feature-grid,
  .hero__side-features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .hero__feature {
    min-height: 48px;
  }

  .hero__actions,
  .site-actions,
  .site-nav,
  .tag-row {
    align-items: stretch;
  }

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

  .score-hero__main {
    min-height: auto;
    padding: 22px;
  }

  .score-hero__value {
    font-size: 3.4rem;
  }

  .score-ai-note,
  .score-opportunity-card,
  .score-brief {
    min-height: auto;
  }

  .score-dimension-grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-step {
    min-height: auto;
  }

  .dimension-row {
    grid-template-columns: 1fr;
  }

  .site-header,
  .compact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .brand-lockup {
    width: auto;
    justify-content: flex-start;
    min-width: 0;
  }

  .brand-logo {
    width: min(116px, 34vw);
    max-height: 48px;
    padding: 0 !important;
    object-fit: contain;
  }

  .mobile-menu-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 57, 108, 0.12);
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 850;
  }

  .mobile-menu-toggle__icon,
  .mobile-menu-toggle__icon::before,
  .mobile-menu-toggle__icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-toggle__icon {
    position: relative;
  }

  .mobile-menu-toggle__icon::before,
  .mobile-menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-menu-toggle__icon::before {
    top: -5px;
  }

  .mobile-menu-toggle__icon::after {
    top: 5px;
  }

  .site-nav {
    width: 100%;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .site-actions {
    width: 100%;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 7px;
  }

  .site-header.is-menu-open .site-nav,
  .site-header.is-menu-open .site-actions {
    display: grid;
  }

  .site-nav a,
  .site-actions a,
  .site-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
    gap: 4px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 2px;
    border-radius: 6px;
    background: transparent;
    border: 0;
    font-size: 0.74rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .site-actions .ghost-link,
  .site-actions .solid-link {
    min-height: 32px;
    padding: 6px 6px;
    font-size: 0.79rem;
    line-height: 1.1;
  }

  .solid-link--hero,
  .ghost-link--hero,
  .analyze-cta-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero__trustbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero__trustbar span {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
  }

  .hero__ai-note {
    margin-top: 18px;
    align-items: flex-start;
  }

  .auth-shell {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
  }

  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .auth-tab {
    min-width: 0;
    padding-inline: 10px;
  }

  .upload-card {
    gap: 12px;
    padding-top: 4px;
  }

  .upload-card__label {
    font-size: 1rem;
    line-height: 1.35;
  }

  input[type="file"] {
    padding: 14px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .ai-panel,
  .ai-card {
    border-radius: 16px;
  }

  .ai-card {
    padding: 14px;
  }

  .mini-metrics,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .rule-builder-panel,
  .rule-builder-spotlight,
  .rule-bundle-panel,
  .panel--nested {
    padding: 14px;
    border-radius: 14px;
  }

  .rule-builder-grid,
  .rule-bundle-grid,
  .rule-example-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rule-builder-field {
    padding: 12px;
    border-radius: 12px;
  }

  .rule-builder-field span {
    font-size: 0.84rem;
  }

  .rule-type-select {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .rule-builder-options {
    padding: 12px;
    border-radius: 12px;
  }

  .rule-builder-option {
    width: 100%;
    align-items: flex-start;
  }

  .rule-builder-actions,
  .rule-panel-actions,
  .rule-panel-actions--footer,
  .rule-bundle-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .rule-builder-actions button,
  .rule-panel-actions button,
  .rule-bundle-actions button {
    width: 100%;
  }

  .column-card__top,
  .rule-builder-headline,
  .rule-bundle-headline,
  .dimension-dashboard__header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ready-rules-list .column-card {
    padding: 14px;
  }

  .ready-rules-list .tag-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rule-definition-shell,
  .rule-definition {
    min-width: 0;
  }

  .rule-mapping-grid {
    grid-template-columns: 1fr;
  }

  .rule-definition__body,
  .column-meta,
  .muted {
    overflow-wrap: anywhere;
  }

  .analysis-accordion__summary {
    align-items: flex-start;
  }

  .identity-key-panel {
    padding: 18px;
  }

  .identity-mode-card {
    flex-basis: 100%;
  }

  .identity-key-panel__apply {
    grid-template-columns: 1fr;
  }

  .account-password-form label:first-child,
  .account-password-form button {
    grid-column: auto;
  }

  .rule-type-select {
    max-width: 100%;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: 100%;
  }

  .site-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .site-actions {
    grid-template-columns: 0.58fr 1.22fr 1.22fr;
  }

  .hero__copy,
  .hero__panel,
  .panel,
  .empty-state {
    border-radius: 14px;
  }

  .rule-builder-panel,
  .rule-builder-spotlight,
  .rule-bundle-panel {
    border-radius: 12px;
  }

  .tag,
  .rule-chip,
  .code-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ── Rule Queued Toast ──────────────────────────────────────────────── */
.rule-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f2d54;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(10, 20, 40, 0.32);
  z-index: 9998;
  min-width: 320px;
  max-width: calc(100vw - 48px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.rule-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.rule-toast__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 193, 221, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rule-toast__msg {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.rule-toast__apply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms, transform 100ms;
  flex-shrink: 0;
}
.rule-toast__apply:hover {
  background: #13aec8;
  transform: scale(1.04);
}
.rule-toast__dismiss {
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 130ms;
  flex-shrink: 0;
}
.rule-toast__dismiss:hover { background: rgba(255,255,255,0.2); color: #fff; }

[dir="rtl"] .rule-toast {
  left: 50%;
  right: auto;
}

/* ── Repair Strategy Modal ──────────────────────────────────────────── */
.repair-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 24px;
  animation: fadeIn 180ms ease;
  overflow-y: auto;
}

.repair-strategy-card {
  background: #ffffff;
  border-radius: 20px;
  width: 620px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10, 20, 40, 0.28);
  animation: slideUp 220ms ease;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.repair-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef2f7;
}

.repair-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.repair-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f0f4f8;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.repair-modal-close:hover { background: #e0e8f0; color: var(--ink); }

.repair-auto-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(23, 193, 221, 0.07);
  border-bottom: 1px solid rgba(23, 193, 221, 0.15);
  font-size: 0.9rem;
  color: var(--ink);
}
.repair-auto-check { color: #16a34a; font-weight: 800; font-size: 1rem; }

.repair-strategy-group {
  padding: 24px 28px;
  border-bottom: 1px solid #eef2f7;
}

.repair-strategy-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.repair-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.repair-type-badge--numeric { background: rgba(13, 111, 191, 0.12); color: #0d6fbf; }
.repair-type-badge--text    { background: rgba(139, 92, 246, 0.12);  color: #7c3aed; }

.repair-options { display: flex; flex-direction: column; gap: 10px; }

.repair-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 130ms, border-color 130ms;
}
.repair-option:hover { background: #f6f9fc; border-color: #d8e8f4; }
.repair-option input[type=radio] { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.repair-option:has(input:checked) {
  background: rgba(23, 193, 221, 0.08);
  border-color: rgba(23, 193, 221, 0.35);
}
.repair-option-body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 0; min-width: 0; width: 100%; }
.repair-option-title { font-size: 0.97rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.repair-option-note  { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

.repair-preview-section {
  margin: 16px 24px 0;
  padding: 16px;
  background: #f6f9fc;
  border-radius: 14px;
  border: 1px solid #e5eef7;
}

.repair-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.repair-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.repair-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: white;
  border-radius: 10px;
  padding: 10px 8px;
  border: 1px solid #e5eef7;
  text-align: center;
}
.repair-metric-value { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.repair-metric-label { font-size: 0.7rem; color: var(--muted); }

.repair-preview-impact { font-size: 0.85rem; }
.repair-preview-impact-label { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.repair-preview-impact ul { margin: 0; padding-inline-start: 18px; color: var(--muted); line-height: 1.8; }

.repair-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid #eef2f7;
  margin-top: 16px;
}

.repair-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid rgba(13, 121, 189, 0.22);
  border-radius: var(--button-radius);
  font-size: 0.9rem;
  font-weight: 800;
  color: #075985;
  background: var(--button-primary-soft);
  box-shadow: var(--button-shadow-soft);
}

@media (max-width: 860px) {
  .founder-hero--signature {
    grid-template-columns: 1fr;
    padding: 28px;
    min-height: auto;
  }

  .founder-portrait--compact {
    width: min(100%, 260px);
  }

  .founder-narrative,
  .founder-vision-card,
  .founder-capabilities,
  .founder-content,
  .founder-list {
    grid-template-columns: 1fr;
  }

  .founder-narrative__body {
    columns: auto;
  }
}

@media (max-width: 620px) {
  .founder-hero--signature,
  .founder-section {
    padding: 22px;
  }

  .founder-hero__copy {
    display: contents;
  }

  .founder-hero__copy .eyebrow {
    order: 1;
    margin-top: 14px;
  }

  .founder-hero__copy h1 {
    order: 2;
  }

  .founder-kicker {
    order: 3;
  }

  .founder-lead {
    order: 4;
  }

  .founder-profile-panel {
    order: 5;
    min-height: auto;
    margin-top: -18px;
    margin-bottom: -10px;
  }

  .founder-hero__actions {
    order: 6;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .founder-hero h1 {
    font-size: 2.4rem;
  }

  .founder-portrait--compact {
    width: min(100%, 230px);
  }

  .founder-action-link {
    width: min(100%, 245px);
    justify-content: center;
  }

  .founder-mission-band,
  .founder-principles {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Saved Reports — table, toolbar, pagination, compare
   ============================================================ */

/* Panel header with actions on the right */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header h2 { margin: 0; }
.panel-header-actions { display: flex; gap: 8px; }

#saved-reports-panel .panel-header {
  align-items: flex-end;
  margin-bottom: 2px;
}

#sr-compare-btn,
#sr-compare-back {
  border-color: rgba(14, 165, 233, 0.62);
  background: linear-gradient(135deg, #bdefff, #8fe0f6);
  color: #064f78;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
  font-weight: 900;
}

#sr-compare-btn {
  padding: 11px 18px;
  transform: translateY(14px);
}

#sr-compare-back {
  padding: 10px 16px;
}

#sr-compare-btn:hover,
#sr-compare-back:hover {
  border-color: rgba(2, 132, 199, 0.78);
  background: linear-gradient(135deg, #a8e9fb, #73d4ef);
  color: #053f63;
}

/* Toolbar: search + count */
.saved-reports-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.saved-reports-search {
  flex: 1;
  max-width: 320px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}
.saved-reports-search:focus { border-color: var(--accent); }
.saved-reports-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Table wrapper — horizontal scroll on small screens */
.saved-reports-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  padding: 3px;
}

/* Main table */
.saved-reports-table,
.compare-table {
  width: 100%;
  font-size: 0.9rem;
}

.saved-reports-table {
  border-collapse: separate;
  border-spacing: 0 4px;
}

.compare-table {
  border-collapse: collapse;
  border-spacing: 0;
}

.saved-reports-table th,
.compare-table th {
  padding: 11px 14px;
  background: rgba(16, 57, 108, 0.045);
  color: var(--muted);
  font-weight: 700;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.saved-reports-table td,
.compare-table td {
  padding: 10px 14px;
  vertical-align: middle;
}

.saved-reports-table td {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.compare-table td {
  border-bottom: 1px solid var(--line);
}

.saved-reports-table td:first-child {
  border-inline-start: 1px solid transparent;
  border-radius: 8px 0 0 8px;
}

.saved-reports-table td:last-child {
  border-inline-end: 1px solid transparent;
  border-radius: 0 8px 8px 0;
}

.saved-reports-table tbody tr:last-child td,
.compare-table tbody tr:last-child td { border-bottom: none; }

.saved-reports-table tbody tr:hover {
  cursor: default;
  filter: drop-shadow(0 10px 18px rgba(13, 111, 191, 0.10));
}

.saved-reports-table tbody tr:hover td {
  background: rgba(238, 250, 255, 0.92);
  border-color: rgba(14, 165, 233, 0.22);
}

.compare-table tbody tr:hover td {
  background: rgba(23, 193, 221, 0.04);
}

.compare-table tbody tr:hover {
  cursor: default;
}

.saved-reports-table__row--selected {
  background: rgba(23, 193, 221, 0.07) !important;
}

.saved-reports-table__row--selected td {
  background: rgba(225, 247, 255, 0.8);
  border-color: rgba(14, 165, 233, 0.34);
}

.saved-reports-table__row--latest td {
  background: rgba(240, 253, 250, 0.72);
  border-color: rgba(16, 185, 129, 0.24);
}

/* Column widths */
/* All headers centered */
.saved-reports-table th,
.saved-reports-table td {
  text-align: center;
}

.saved-reports-table__th--check,
.saved-reports-table__td--check  { width: 36px; padding-inline-end: 0; text-align: center; }
.saved-reports-table__th--num,
.saved-reports-table__td--num    { text-align: center; white-space: nowrap; }
.saved-reports-table__th--score,
.saved-reports-table__td--score  { text-align: center; width: 80px; }
.saved-reports-table__th--date,
.saved-reports-table__td--date   { text-align: center; white-space: nowrap; color: var(--muted); font-size: 0.83rem; }
.saved-reports-table__td--date small { display: block; font-size: 0.76rem; opacity: 0.75; }
.saved-reports-table__th--actions,
.saved-reports-table__td--actions { white-space: nowrap; text-align: center; }
.saved-reports-table__td--name   { font-weight: 600; text-align: start !important; min-width: 210px; }

.saved-reports-name-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.saved-reports-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-reports-latest {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #087f5b !important;
}

.saved-reports-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #0ea5d8;
  cursor: pointer;
  vertical-align: middle;
}

/* Save Report button — matches export/repair button height */
.save-report-btn {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: var(--button-radius);
  white-space: nowrap;
  border-color: rgba(13, 121, 189, 0.2);
  background: var(--button-primary-soft);
  color: #075985;
  box-shadow: var(--button-shadow-soft);
}

.save-report-btn:hover {
  border-color: rgba(13, 121, 189, 0.28);
  background: var(--button-primary);
  color: #fff;
}

/* Report label + shared badge inline */
.saved-reports-label { margin-inline-end: 6px; }
.tag--xs { padding: 2px 7px !important; font-size: 0.72rem !important; }

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.score-mini-bar {
  display: block;
  width: 62px;
  height: 5px;
  margin: 6px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 57, 108, 0.10);
}

.score-mini-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #17c1dd);
}

.saved-report-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.saved-report-action {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(13, 111, 191, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 850;
}

.saved-report-action:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(232, 249, 255, 0.95);
  box-shadow: 0 8px 18px rgba(13, 111, 191, 0.10);
}

.saved-report-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.saved-report-action--open {
  background: linear-gradient(135deg, #17c1dd, #0d6fbf);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 111, 191, 0.18);
}

.saved-report-action--danger {
  color: var(--danger);
  background: rgba(185, 56, 47, 0.08);
  border-color: rgba(185, 56, 47, 0.16);
}

.saved-report-action--danger:hover {
  background: rgba(185, 56, 47, 0.14);
}

.saved-reports-selection-hint {
  width: fit-content;
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #8a4b03;
  font-size: 0.84rem;
  font-weight: 800;
}

.saved-reports-selection-bar {
  position: fixed;
  inset: auto 50% 22px auto;
  z-index: 40;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.32);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(13, 111, 191, 0.20);
  backdrop-filter: blur(16px);
}

.saved-reports-selection-bar strong {
  padding-inline: 6px;
  color: var(--ink);
  white-space: nowrap;
}

/* ghost-button micro size */
.ghost-button--xs {
  padding: 5px 9px;
  font-size: 0.78rem;
  margin-inline-start: 4px;
}
.ghost-button--danger {
  color: var(--danger);
  background: rgba(185, 56, 47, 0.07);
}
.ghost-button--danger:hover { background: rgba(185, 56, 47, 0.14); }

/* Pagination */
.saved-reports-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 4px;
}
.saved-reports-page-info { font-size: 0.88rem; color: var(--muted); }

/* Empty / loading / error notes */
.empty-note, .loading-note, .error-note {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.error-note { color: var(--danger); }

/* ── Compare panel ── */
.compare-header-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr) 120px;
  gap: 0;
  background: linear-gradient(180deg, rgba(16, 57, 108, 0.06), rgba(16, 57, 108, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
  overflow: hidden;
}
.compare-header-cell {
  min-height: 74px;
  padding: 14px 16px;
  font-size: 0.88rem;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-header-cell:last-child { border-inline-end: none; }
.compare-header-cell--label,
.compare-header-cell--delta {
  color: var(--ink);
  font-weight: 800;
}
.compare-header-cell--label {
  align-items: flex-start;
  text-align: start;
}
.compare-header-cell strong { display: block; font-size: 0.95rem; color: var(--ink); }
.compare-date { font-size: 0.78rem; color: var(--muted); }
.compare-age-label {
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(23, 193, 221, 0.12);
  color: #087a8f;
  font-size: 0.72rem;
  font-weight: 800;
}

.compare-section-title {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-section-title--columns {
  margin-top: 48px !important;
  margin-bottom: 18px;
  padding-top: 0;
}

/* Compare table column widths */
.compare-table {
  table-layout: fixed;
}

.compare-table th {
  background: linear-gradient(180deg, rgba(16, 57, 108, 0.06), rgba(16, 57, 108, 0.035));
  text-align: center;
}

.compare-table td {
  text-align: center;
}

.compare-table__label        { width: 220px; font-weight: 700; color: var(--ink); text-align: start !important; }
.compare-table__label--dim   { color: var(--muted); font-size: 0.85rem; padding-inline-start: 28px; }
.compare-table__v1,
.compare-table__v2           { width: calc((100% - 340px) / 2); }
.compare-table__delta        { width: 150px; text-align: center; }

.compare-table--metrics tbody td {
  height: 46px;
}

.compare-table--metrics .compare-table__label {
  color: var(--ink);
}

.compare-table--columns th,
.compare-table--columns td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.compare-table--columns tbody tr:nth-child(even) {
  background: rgba(23, 193, 221, 0.025);
}

.compare-table--columns .compare-table__label {
  font-weight: 800;
}

.compare-table--columns .compare-table__v1,
.compare-table--columns .compare-table__v2 {
  font-weight: 700;
}

.compare-table--columns .compare-table__delta {
  width: 140px;
}

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

.compare-metric-card {
  display: grid;
  gap: 9px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.compare-metric-card strong {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-metric-card__values {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

/* Delta indicators — up=good (scores), down=bad */
.compare-delta { font-size: 0.83rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.compare-delta--up      { color: var(--success); background: rgba(44, 122, 75, 0.1); }
.compare-delta--down    { color: var(--danger);  background: rgba(185, 56, 47, 0.1); }
.compare-delta--eq      { color: var(--muted);   background: rgba(16, 57, 108, 0.07); }
/* Inverted: up=bad (issues/errors), down=good */
.compare-delta--inv-up   { color: var(--danger);  background: rgba(185, 56, 47, 0.1); }
.compare-delta--inv-down { color: var(--success); background: rgba(44, 122, 75, 0.1); }

/* Rows only in one report */
.compare-table__row--added td:first-child::after  { content: " ✦"; color: var(--success); font-size: 0.7rem; }
.compare-table__row--removed td:first-child::after { content: " ✕"; color: var(--danger);  font-size: 0.7rem; }

.compare-issues {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}
.compare-na     { color: var(--muted); }

.compare-issue-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  white-space: nowrap;
}

/* ── Compare overview cards ── */
.compare-overview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.compare-overview-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coc-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.coc-values {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.coc-arrow {
  color: var(--muted);
  font-size: 0.8rem;
}
.coc-subtle {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.coc-delta { display: flex; }

/* Responsive */
@media (max-width: 900px) {
  .hero-source-grid,
  .db-connector-grid.form-grid,
  .db-connector-grid--table.form-grid {
    grid-template-columns: 1fr;
  }

  .scan-mode-options {
    grid-template-columns: 1fr;
  }

  .compare-overview-cards { grid-template-columns: repeat(2, 1fr); }
  .compare-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-header {
  border-radius: 10px;
}

.site-actions .ghost-link,
.site-actions .solid-link {
  border-radius: 6px;
}
@media (max-width: 768px) {
  .db-connector-heading {
    align-items: flex-start;
  }

  .db-action-row.rule-actions,
  .db-action-btn {
    width: 100%;
  }

  .compare-overview-cards { grid-template-columns: 1fr 1fr; }
  .compare-metric-grid { grid-template-columns: 1fr; }
  .compare-header-row { grid-template-columns: 1fr 1fr; }
  .compare-header-cell--label,
  .compare-header-cell--delta { display: none; }
  .saved-reports-table__td--date,
  .saved-reports-table__th--date { display: none; }
  .saved-reports-selection-bar {
    inset: auto 12px 14px 12px;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px;
  }
}
