:root {
  --sora-orange: #f39200;
  --sora-orange-soft: #f9c27a;
  --sora-charcoal: #46504d;
  --sora-charcoal-2: #5a6662;
  --sora-ink: #1f2725;
  --sora-muted: #667370;
  --sora-line: #d9dfdd;
  --sora-line-strong: #c8cfcc;
  --sora-bg: #eef1f0;
  --sora-panel: #ffffff;
  --sora-panel-alt: #f7f8f8;
  --sora-shadow: 0 18px 44px rgba(26, 33, 31, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-dashboard: 1240px;
  --max-report: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  color: var(--sora-ink);
  background:
    linear-gradient(180deg, #f4f6f5 0%, #ecefee 100%);
  font-family:
    Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--sora-charcoal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--sora-orange);
  border-color: rgba(243, 146, 0, 0.45);
}

hr {
  border: 0;
  border-top: 1px solid var(--sora-line);
  margin: 1.5rem 0;
}

.wrap {
  max-width: var(--max-dashboard);
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.report-wrap {
  max-width: var(--max-report);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.card,
.report-header,
.metric-card {
  background: var(--sora-panel);
  border: 1px solid var(--sora-line);
  box-shadow: var(--sora-shadow);
}

.card {
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  margin-bottom: 18px;
}

.wrap > .card {
  padding: 28px 30px;
}

.report-body {
  background:
    linear-gradient(180deg, #eff2f1 0%, #ebefed 100%);
}

.report-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-radius: 28px;
  padding: 28px 30px 24px;
  margin-bottom: 18px;
  overflow: hidden;
}

.report-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--sora-orange) 0%, #f7a126 100%);
}

.report-header::after {
  content: "";
  position: absolute;
  inset: auto -100px -130px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,146,0,0.13) 0%, rgba(243,146,0,0.00) 72%);
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.4rem 0;
  color: var(--sora-ink);
  line-height: 1.15;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.card h2 {
  display: inline-block;
  padding: 0 0 0.45rem 0;
  border-bottom: 4px solid rgba(243, 146, 0, 0.9);
}

h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

p {
  margin: 0 0 0.9rem 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--sora-muted);
  font-size: 0.96rem;
}

.report-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(243, 146, 0, 0.13);
  color: var(--sora-charcoal);
  border: 1px solid rgba(243, 146, 0, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 18px 0;
}

.metric-card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  min-height: 124px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfb 100%);
}

.metric-card h3 {
  color: var(--sora-charcoal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sora-ink);
}

svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--sora-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  margin-bottom: 0.85rem;
}

ul,
ol {
  margin: 0.45rem 0 1rem 1.15rem;
  padding: 0;
}

li {
  margin: 0.32rem 0;
}

#siteSearch {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sora-line-strong);
  background: #fff;
  color: var(--sora-ink);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(18, 24, 22, 0.03);
}

#siteSearch:focus {
  border-color: rgba(243, 146, 0, 0.8);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.12);
}

#siteList {
  columns: 2;
  column-gap: 28px;
  list-style: none;
  margin-left: 0;
}

#siteList li {
  break-inside: avoid;
  margin: 0 0 0.6rem 0;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(70, 80, 77, 0.12);
}

#siteList strong {
  color: var(--sora-charcoal);
}

.wrap h1 {
  font-size: 2.1rem;
}

.wrap > .card > p:first-of-type {
  font-size: 1.02rem;
  color: var(--sora-charcoal);
}

.wrap > .card > p:nth-of-type(2) {
  color: var(--sora-muted);
}

@media (max-width: 900px) {
  #siteList {
    columns: 1;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.45in;
  }

  html,
  body,
  .report-body {
    background: #ffffff !important;
  }

  body {
    font-size: 11pt;
    color: #111;
  }

  .wrap,
  .report-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .card,
  .report-header,
  .metric-card {
    box-shadow: none !important;
    border-color: #cdd3d1;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-header {
    padding: 18px 20px 16px;
    margin-bottom: 12pt;
    border-radius: 18px;
  }

  .report-header::before {
    height: 7px;
  }

  .report-header::after {
    display: none;
  }

  .card {
    padding: 16pt 16pt 14pt;
    margin-bottom: 12pt;
    border-radius: 14px;
  }

  .metric-card {
    min-height: auto;
    padding: 12pt;
    border-radius: 12px;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 14pt;
    margin-bottom: 8pt;
  }

  h3 {
    font-size: 9pt;
  }

  .muted {
    font-size: 9.5pt;
  }

  .metric-grid {
    gap: 9pt;
    margin-bottom: 12pt;
  }

  .metric-value {
    font-size: 18pt;
  }

  svg {
    margin-bottom: 8pt;
    border-radius: 10px;
  }

  #siteSearch,
  script {
    display: none !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
    border: 0 !important;
  }
}

.report-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.report-brand-logo {
  width: 150px;
  max-width: 28vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(26, 33, 31, 0.10));
}

.report-brand-copy {
  min-width: 0;
}

.report-kicker {
  margin: 0 0 0.55rem 0;
  color: var(--sora-orange);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-badge-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.report-badge-subtext {
  margin: 0;
  color: var(--sora-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 900px) {
  .report-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-brand-logo {
    width: 132px;
    max-width: 180px;
  }

  .report-badge-wrap {
    align-items: flex-start;
  }

  .report-badge-subtext {
    text-align: left;
  }
}

@media print {
  .report-brand {
    gap: 14pt;
  }

  .report-brand-logo {
    width: 110pt;
    max-width: none;
    filter: none;
  }

  .report-kicker {
    font-size: 8.5pt;
    margin-bottom: 5pt;
  }

  .report-badge-wrap {
    gap: 3pt;
  }

  .report-badge-subtext {
    font-size: 8.5pt;
  }
}

.report-meta-card {
  padding-top: 18px;
  padding-bottom: 18px;
}

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

.report-meta-grid h3 {
  margin-bottom: 0.35rem;
}

.report-meta-value {
  margin: 0;
  color: var(--sora-charcoal);
  font-weight: 700;
}

.report-footer {
  margin-top: 22px;
  padding-bottom: 8px;
}

.report-footer-line {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sora-orange) 0%, rgba(243, 146, 0, 0.15) 100%);
  margin-bottom: 10px;
}

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

.report-footer-grid p {
  margin: 0;
  color: var(--sora-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.report-footer-grid p:nth-child(2) {
  text-align: center;
}

.report-footer-grid p:nth-child(3) {
  text-align: right;
}

@media (max-width: 900px) {
  .report-meta-grid,
  .report-footer-grid {
    grid-template-columns: 1fr;
  }

  .report-footer-grid p:nth-child(2),
  .report-footer-grid p:nth-child(3) {
    text-align: left;
  }
}

@media print {
  .report-meta-card {
    padding-top: 10pt;
    padding-bottom: 10pt;
  }

  .report-meta-grid {
    gap: 10pt;
  }

  .report-footer {
    margin-top: 14pt;
    padding-bottom: 0;
  }

  .report-footer-line {
    height: 2pt;
    margin-bottom: 6pt;
  }

  .report-footer-grid p {
    font-size: 8.5pt;
  }
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.donut-wrap {
  display: flex;
  justify-content: center;
}

.donut-svg {
  width: 220px;
  max-width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
}

.donut-total-label {
  font-size: 12px;
  fill: #667370;
  font-weight: 700;
}

.donut-total-value {
  font-size: 24px;
  fill: #1f2725;
  font-weight: 800;
}

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

.donut-legend-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.donut-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 4px;
}

.donut-legend-title {
  margin: 0;
  color: var(--sora-ink);
  font-weight: 700;
}

.donut-legend-meta {
  margin: 2px 0 0 0;
  color: var(--sora-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .donut-layout {
    grid-template-columns: 1fr;
  }
}

@media print {
  .donut-layout {
    grid-template-columns: 190pt 1fr;
    gap: 12pt;
  }

  .donut-svg {
    width: 180pt;
  }

  .donut-legend-meta,
  .donut-legend-title {
    font-size: 9pt;
  }
}

.dashboard-wrap {
  max-width: 1320px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--sora-orange) 0%, #f7a126 100%);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,146,0,0.14) 0%, rgba(243,146,0,0.00) 72%);
  pointer-events: none;
}

.dashboard-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
}

.dashboard-brand {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.dashboard-brand-logo {
  width: 150px;
  max-width: 22vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.dashboard-brand-copy {
  min-width: 0;
}

.dashboard-brand-copy h1 {
  margin-bottom: 0.45rem;
}

.dashboard-subtitle {
  margin: 0 0 0.8rem 0;
  font-size: 1.05rem;
  color: var(--sora-charcoal);
  font-weight: 600;
}

.dashboard-logo-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dashboard-brand-logo-secondary {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.98;
}

.dashboard-action-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--sora-orange);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(243,146,0,0.92);
  box-shadow: 0 10px 24px rgba(243,146,0,0.16);
}

.dashboard-button:hover {
  color: #fff;
  border-color: rgba(243,146,0,0.92);
  filter: brightness(0.98);
}

.dashboard-button-secondary {
  background: #fff;
  color: var(--sora-charcoal);
  border: 1px solid var(--sora-line-strong);
  box-shadow: none;
}

.dashboard-button-secondary:hover {
  color: var(--sora-orange);
}

.dashboard-section {
  margin-top: 20px;
}

.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-section-head h2 {
  margin-bottom: 0;
}

.dashboard-eyebrow {
  margin: 0 0 0.35rem 0;
  color: var(--sora-orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid-groups {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card-body {
  min-height: 120px;
}

.dashboard-card-kicker {
  margin: 0 0 0.4rem 0;
  color: var(--sora-orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card h3 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.dashboard-card-actions,
.site-card-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-text-link {
  font-weight: 700;
  color: var(--sora-charcoal);
}

.dashboard-text-link:hover {
  color: var(--sora-orange);
}

.dashboard-sites-card {
  margin-top: 20px;
}

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dashboard-stat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sora-line-strong);
  color: var(--sora-charcoal);
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-count-pill-ready {
  background: rgba(52, 133, 82, 0.08);
  border-color: rgba(52, 133, 82, 0.22);
  color: #2f6f45;
}

.dashboard-count-pill-muted {
  background: rgba(98, 108, 105, 0.08);
  border-color: rgba(98, 108, 105, 0.18);
  color: #56615e;
}

.site-grid {
  display: grid;
  gap: 12px;
}

.site-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--sora-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfb 100%);
}

.site-card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-card-title {
  display: inline-block;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--sora-ink);
}

.site-card-title:hover {
  color: var(--sora-orange);
}

.site-card-meta {
  margin: 0.28rem 0 0 0;
  color: var(--sora-muted);
  font-size: 0.92rem;
}

.site-status-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-status-badge-ready {
  background: rgba(52, 133, 82, 0.1);
  color: #2f6f45;
  border-color: rgba(52, 133, 82, 0.22);
}

.site-status-badge-muted {
  background: rgba(98, 108, 105, 0.1);
  color: #56615e;
  border-color: rgba(98, 108, 105, 0.2);
}

@media (max-width: 980px) {
  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-logo-panel {
    justify-content: flex-start;
  }

  .dashboard-brand-logo-secondary {
    max-width: 240px;
  }

  .site-card {
    grid-template-columns: 1fr;
  }

  .site-card-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .dashboard-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-brand-logo {
    width: 136px;
    max-width: 180px;
  }
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.login-card {
  width: min(560px, 100%);
  padding: 32px;
}

.login-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.login-brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.login-brand-logo-secondary {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sora-charcoal);
}

.login-input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--sora-line-strong);
  background: #fff;
  color: var(--sora-ink);
  font: inherit;
  outline: none;
}

.login-input:focus {
  border-color: rgba(243, 146, 0, 0.85);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.12);
}

.login-button {
  margin-top: 6px;
}

.login-error {
  margin-top: 14px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(176, 40, 40, 0.08);
  border: 1px solid rgba(176, 40, 40, 0.18);
  color: #8e2222;
  font-weight: 700;
}

@media (max-width: 760px) {
  .login-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-brand-logo-secondary {
    width: 170px;
  }
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.login-card {
  width: min(620px, 100%);
  padding: 32px;
}

.login-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.login-brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.login-brand-logo-secondary {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sora-charcoal);
}

.login-input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--sora-line-strong);
  background: #fff;
  color: var(--sora-ink);
  font: inherit;
  outline: none;
}

.login-input:focus {
  border-color: rgba(243, 146, 0, 0.85);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.12);
}

.login-button {
  margin-top: 6px;
}

.login-error {
  margin-top: 14px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(176, 40, 40, 0.08);
  border: 1px solid rgba(176, 40, 40, 0.18);
  color: #8e2222;
  font-weight: 700;
}

.password-policy-box {
  margin-top: 16px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(70, 80, 77, 0.04);
  border: 1px solid var(--sora-line);
}

.password-policy-title {
  margin: 0 0 0.55rem 0;
  font-weight: 800;
  color: var(--sora-charcoal);
}

.password-policy-list {
  margin: 0;
  padding-left: 1.1rem;
}

.dashboard-session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(70, 80, 77, 0.08);
  border: 1px solid rgba(70, 80, 77, 0.14);
  color: var(--sora-charcoal);
  font-weight: 700;
}

@media (max-width: 760px) {
  .login-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-brand-logo-secondary {
    width: 170px;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.admin-form-card,
.admin-users-card {
  min-width: 0;
}

.admin-alert {
  margin-top: 20px;
  font-weight: 700;
}

.admin-alert-success {
  border-color: rgba(52, 133, 82, 0.24);
  background: rgba(52, 133, 82, 0.08);
  color: #2f6f45;
}

.admin-alert-error {
  border-color: rgba(176, 40, 40, 0.22);
  background: rgba(176, 40, 40, 0.08);
  color: #8e2222;
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--sora-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfb 100%);
}

.admin-user-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin-user-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-user-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-actions {
  display: flex;
  align-items: center;
}

.site-status-badge-admin {
  background: rgba(53, 101, 176, 0.10);
  color: #295798;
  border-color: rgba(53, 101, 176, 0.20);
}

.site-status-badge-warning {
  background: rgba(206, 128, 17, 0.10);
  color: #9a5d0d;
  border-color: rgba(206, 128, 17, 0.22);
}

.site-status-badge-current {
  background: rgba(70, 80, 77, 0.10);
  color: var(--sora-charcoal);
  border-color: rgba(70, 80, 77, 0.18);
}

.admin-danger-button {
  border-color: rgba(176, 40, 40, 0.22);
  color: #8e2222;
}

.admin-danger-button:hover {
  color: #8e2222;
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-badges {
    justify-content: flex-start;
  }
}

.admin-summary-card,
.dashboard-team-card {
  margin-top: 20px;
}

.admin-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.admin-note-card {
  padding: 18px;
  border: 1px solid var(--sora-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfb 100%);
}

.admin-note-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-team-card .admin-note-grid {
  margin-top: 8px;
}

/* Source-status banner for client report data-quality visibility */
.source-status-card {
  border: 1px solid #d8a63a;
  background: #fff8e5;
}

.source-status-card h2 {
  margin-bottom: 8px;
}

.source-status-warning {
  border-color: #d8a63a;
  background: #fff8e5;
}

.source-status-danger {
  border-color: #b42318;
  background: #fff1f0;
}

.source-status-manual {
  border-color: #6b7280;
  background: #f4f4f5;
}

.source-status-details {
  margin: 10px 0 0 18px;
  padding: 0;
  color: #374151;
  font-size: 0.92rem;
}

.source-status-details li {
  margin: 3px 0;
}

