html {
  font-size: 16px;
}

.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #122033;
  -webkit-font-smoothing: antialiased;
}

.site-body--admin {
  background:
    radial-gradient(circle at top left, rgba(36, 84, 166, 0.18), transparent 35%),
    linear-gradient(180deg, #09101c 0%, #10192c 42%, #f4f7fb 42%, #f4f7fb 100%);
}

.site-body--public {
  background:
    radial-gradient(circle at top center, rgba(45, 118, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #07101b 0%, #0d1725 36%, #0f1b2d 64%, #f3f6fb 64%, #f3f6fb 100%);
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: relative;
  z-index: 2;
}

.topbar--admin {
  padding: 1.5rem 0;
}

.topbar__inner,
.topbar__frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar__frame {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #eef4ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__text {
  font-family: "Space Grotesk", sans-serif;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #56cbf9, #1d8fe1);
  color: #06111e;
  font-size: 0.85rem;
}

.topbar__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.65rem;
  color: #b7c7e2;
  border: 1px solid rgba(183, 199, 226, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
}

.topbar--public .topbar__meta {
  gap: 0.9rem;
  background: rgba(7, 13, 22, 0.42);
  border-color: rgba(183, 199, 226, 0.2);
}

.topbar__meta form {
  margin: 0;
}

.topbar__anchor,
.topbar__link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #eef4ff;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.topbar__anchor:hover,
.topbar__link:hover {
  color: #ffffff;
}

.topbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b5de0, #3da0ff);
  color: #f8fbff;
  font-weight: 700;
  text-decoration: none;
}

.topbar__action:hover {
  color: #ffffff;
  filter: brightness(1.04);
}

.main-public {
  display: block;
}

.landing-hero,
.landing-band,
.landing-section,
.landing-cta {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 6rem);
  padding: 1rem 0 4rem;
  color: #f5f8ff;
}

.landing-hero__content {
  max-width: 42rem;
}

.landing-eyebrow {
  color: #87aaf0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-hero h1,
.landing-band h2,
.landing-section h2,
.landing-cta h2 {
  margin: 0;
  letter-spacing: 0;
}

.landing-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.93;
  max-width: 11ch;
}

.landing-lead {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: #c9d7ed;
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.landing-button--primary {
  background: linear-gradient(135deg, #2b5de0, #43abff);
  color: #f8fbff;
}

.landing-button--secondary {
  border: 1px solid rgba(190, 211, 247, 0.28);
  background: rgba(11, 18, 29, 0.35);
  color: #eaf1ff;
}

.landing-button:hover {
  color: #ffffff;
  filter: brightness(1.04);
}

.landing-hero__visual {
  display: flex;
  justify-content: end;
}

.signal-wall {
  width: min(100%, 34rem);
  border-radius: 1.4rem;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 30, 0.72);
  border: 1px solid rgba(171, 195, 255, 0.16);
  box-shadow: 0 25px 80px rgba(2, 8, 20, 0.45);
  backdrop-filter: blur(12px);
}

.signal-wall__header,
.signal-wall__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #dbe6fb;
  font-size: 0.9rem;
}

.signal-wall__core {
  position: relative;
  height: 24rem;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(15, 28, 46, 0.92), rgba(8, 15, 25, 0.98)),
    radial-gradient(circle at 30% 30%, rgba(75, 175, 255, 0.18), transparent 30%);
}

.signal-track {
  position: absolute;
  left: 5%;
  right: 5%;
  border-radius: 999px;
  opacity: 0.95;
}

.signal-track--wide {
  top: 18%;
  height: 3.8rem;
  background:
    linear-gradient(90deg, rgba(77, 161, 255, 0.15), rgba(77, 161, 255, 0.85) 25%, rgba(136, 229, 255, 0.85) 55%, rgba(77, 161, 255, 0.1));
  box-shadow: 0 0 45px rgba(70, 158, 255, 0.2);
}

.signal-track--pulse {
  top: 45%;
  height: 6.2rem;
  background:
    linear-gradient(90deg, rgba(40, 93, 215, 0.12), rgba(69, 214, 255, 0.88) 18%, rgba(124, 244, 214, 0.78) 44%, rgba(58, 117, 255, 0.12));
  clip-path: polygon(0 60%, 8% 60%, 12% 40%, 18% 82%, 24% 20%, 31% 68%, 39% 32%, 46% 72%, 54% 28%, 61% 58%, 69% 18%, 75% 78%, 82% 35%, 90% 64%, 100% 64%, 100% 100%, 0 100%);
  box-shadow: 0 0 55px rgba(62, 167, 255, 0.34);
}

.signal-track--thin {
  bottom: 16%;
  height: 1.2rem;
  background:
    repeating-linear-gradient(90deg, rgba(86, 149, 255, 0.14) 0 10%, rgba(139, 214, 255, 0.92) 10% 14%, rgba(86, 149, 255, 0.12) 14% 22%);
}

.signal-label {
  display: block;
  color: #8ea7d2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.landing-band {
  padding: 2rem 0 4rem;
  color: #eaf1ff;
}

.landing-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.landing-band h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.landing-band p:last-child {
  color: #b8c9e6;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.landing-section {
  padding: 4.5rem 0;
}

.landing-section--workflow,
.landing-section--split,
.landing-cta {
  color: #0f1930;
}

.landing-section__intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.landing-section__intro h2,
.landing-story h2,
.landing-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.workflow-step {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(24, 42, 74, 0.18);
}

.workflow-step__index {
  display: inline-block;
  color: #2a5be0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.workflow-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.workflow-step p,
.landing-story p,
.proof-row strong {
  color: #42526b;
  line-height: 1.7;
}

.landing-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.proof-row {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(24, 42, 74, 0.14);
}

.proof-label {
  color: #6e819f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-cta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0 5rem;
}

.hero {
  padding: 2rem 0 1.5rem;
  color: #f5f8ff;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 44rem;
  color: #d4def1;
  font-size: 1.08rem;
}

.stat-grid,
.content-grid {
  display: grid;
  gap: 1.25rem;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2rem 0 2.5rem;
}

/* One column, not two.
   The tables carry tenant GUIDs, resource-account UPNs and validation output -- long,
   non-wrapping values. Giving them 1.3fr of the viewport while a form of short fields took the
   remaining 1fr meant the observed/expected columns collided and status badges clipped
   mid-word ("PendingS..."). The form is the narrow content here, so it goes underneath. */
.content-grid {
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 3rem;
}

/* Inputs stop growing well before the table width; a 1600px-wide text field is not easier to
   fill in than a 700px one. */
.panel--form {
  max-width: 64rem;
}

.glass,
.panel {
  border-radius: 1.4rem;
  overflow: hidden;
}

.glass {
  background: rgba(14, 23, 38, 0.62);
  border: 1px solid rgba(166, 195, 255, 0.18);
  padding: 1.2rem;
  color: #eef4ff;
  backdrop-filter: blur(10px);
}

.panel {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(20, 33, 58, 0.08);
  padding: 1.4rem;
}

.panel h2,
.panel h3,
.glass h3 {
  margin-top: 0;
}

.eyebrow {
  color: #7f9cd6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.4rem;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  /* A status is a label, not a sentence. Without this, "PendingStorageValidation" wrapped and
     then clipped to "PendingS..." at the column edge -- unreadable, and the one word in the row
     a reader actually needs. */
  white-space: nowrap;
}

.status-pill--active {
  background: #daf5de;
  color: #1a6b2d;
}

.status-pill--warning {
  background: #fff0c2;
  color: #8b6500;
}

.status-pill--failed {
  background: #ffd9d5;
  color: #9e241b;
}

.status-pill--pending {
  background: #d9e6ff;
  color: #2251b5;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head--form {
  align-items: start;
}

.table-shell {
  overflow-x: auto;
}

.table-shell thead th {
  color: #6a7a91;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.table-actions {
  white-space: nowrap;
  text-align: right;
}

.table-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #edf3ff;
  color: #2155d6;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.table-link-button:hover {
  background: #dfeaff;
  color: #1c48b2;
}

.table-link-button--secondary {
  background: #f5f7fb;
  color: #516179;
}

.table-link-button--secondary:hover {
  background: #e9eef7;
  color: #33445f;
}

.validation-row td {
  background: #f7f9fd;
  border-top: 0;
}

.validation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  color: #4f6078;
  font-size: 0.85rem;
  font-weight: 700;
}

.validation-table {
  border: 1px solid #e4eaf3;
  border-radius: 0.8rem;
}

.validation-table td {
  color: #26364d;
  font-size: 0.85rem;
}

/* max-width alone caps the box but not the text, so an untruncated UPN simply painted over the
   next column -- which is what made "...onmicrosoft.com" and the expected value overlap.
   Clip it properly; the full string stays available through the cell's title attribute. */
.cell-value,
.cell-hint {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-hint {
  color: #69788c;
}

.cell-check {
  white-space: nowrap;
}

/* Identifiers, not prose: a GUID broken across two lines is harder to read and impossible to
   scan down a column. Tabular figures keep them aligned. */
.mono-id {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The checks are collapsed by default. Four tenants x fourteen checks was ~56 rows of noise
   above the recordings table, and it pushed the tenant list itself off the first screen. */
.validation-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0;
  border-radius: 0.5rem;
}

.validation-details > summary::-webkit-details-marker {
  display: none;
}

.validation-details > summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 0.5rem;
  color: #7f8ea6;
  transition: transform 120ms ease;
}

.validation-details[open] > summary::before {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .validation-details > summary::before {
    transition: none;
  }
}

.validation-details > summary:focus-visible {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.validation-details > summary .validation-summary {
  display: inline-flex;
  margin-bottom: 0;
}

.validation-count--passed {
  color: #1b7f4d;
}

.validation-count--failed {
  color: #b4232a;
}

.field-help {
  font-size: 0.85rem;
  color: #69788c;
}

.panel form .form-control {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
}

.panel form .btn-primary {
  border-radius: 999px;
  background: linear-gradient(135deg, #2155d6, #2c94ff);
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  color: #f5f8ff;
  padding: 2rem 0;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.access-state {
  padding: 5rem 0 3rem;
}

.access-state__panel {
  max-width: 48rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(20, 33, 58, 0.08);
  padding: 2rem;
}

.access-state__meta {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.access-state__meta dt {
  color: #6a7a91;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.access-state__meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.access-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.workspace-head p {
  color: #cfdaf0;
  margin-bottom: 0;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.6rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric {
  background: #ffffff;
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(20, 33, 58, 0.07);
}

.metric span,
.metadata-grid span {
  display: block;
  color: #687991;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.65rem;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 3rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, 0.6fr) auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.settings-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

.settings-list dt {
  color: #687991;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.recording-player {
  width: 100%;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.metadata-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
}

.admin-footer {
  margin-top: auto;
  padding: 2rem 0;
  background: #0b1321;
  color: #9fb0cb;
}

.admin-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.admin-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f6f9ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.admin-footer__text {
  margin: 0;
  font-size: 0.85rem;
}

.text-aqua {
  color: #59d5ff;
}

@media (max-width: 991px) {
  .content-grid,
  .landing-hero,
  .landing-band__inner,
  .landing-section--split {
    grid-template-columns: 1fr;
  }

  .topbar__inner,
  .topbar__frame,
  .section-head,
  .workspace-head {
    flex-direction: column;
    align-items: start;
  }

  .landing-hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .landing-hero__visual {
    justify-content: start;
  }

  .customer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-cta {
    flex-direction: column;
    align-items: start;
  }

  .workspace-actions {
    justify-content: start;
  }
}

@media (max-width: 767px) {
  .topbar__frame,
  .topbar__inner {
    width: min(100%, calc(100% - 1.25rem));
    margin: 0 auto;
    padding: 1.2rem 0;
  }

  .landing-hero h1 {
    max-width: 9ch;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .signal-wall__core {
    height: 18rem;
  }

  .topbar__meta {
    justify-content: start;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 2.7rem;
  }
}
