:root {
  color-scheme: light;
  --ink: #101317;
  --muted: #66707a;
  --line: #d9ddd8;
  --surface: #ffffff;
  --soft: #f4f2ec;
  --accent: #237a57;
  --accent-2: #2f6f91;
  --gold: #b28b45;
  --danger: #a33b33;
  --bot: #a6533a;
  --human: #237a57;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

button {
  padding: 0 14px;
  cursor: pointer;
}

select {
  padding: 0 34px 0 12px;
}

.holding-page {
  background: #111;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("/assets/hero-operations.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.82), rgba(5, 8, 10, 0.42) 46%, rgba(5, 8, 10, 0.08)),
    linear-gradient(0deg, rgba(5, 8, 10, 0.26), rgba(5, 8, 10, 0.1));
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 14svh;
  padding: 26px max(20px, calc((100vw - 1120px) / 2));
  background: #f7f7f2;
  color: var(--ink);
}

.status-band p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-band__label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-band__link {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  text-decoration: none;
  font-weight: 700;
}

.status-band__links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 18px;
}

.lab-shell {
  min-height: 100svh;
  background: #f4f2ec;
}

.lab-main {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.lab-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 1px 4px rgba(16, 19, 23, 0.06);
}

.lab-panel h1,
.lab-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.lab-panel h1 {
  font-size: 2.6rem;
  line-height: 1;
}

.lab-panel h2 {
  font-size: 1.35rem;
}

.lab-summary {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lab-actions button {
  min-width: 136px;
  border-color: #0f2a1d;
  background: #0f171a;
  color: #fff;
  font-weight: 800;
}

.lab-actions .secondary-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.lab-status {
  margin: 18px 0 0;
  color: var(--muted);
}

.lab-details dl {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.lab-details div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lab-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.product-page {
  background: #f5f6f3;
}

.product-hero {
  position: relative;
  min-height: 58svh;
  overflow: hidden;
  background-image: url("/assets/hero-operations.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.product-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 12, 0.86), rgba(6, 10, 12, 0.54) 52%, rgba(6, 10, 12, 0.16)),
    linear-gradient(0deg, rgba(6, 10, 12, 0.4), rgba(6, 10, 12, 0.08));
}

.product-nav,
.product-hero__content,
.product-section,
.updates-section {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.product-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.product-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.product-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.product-nav__brand {
  font-size: 1.04rem;
}

.product-hero__content {
  padding: 62px 0 74px;
}

.product-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.product-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.55;
}

.product-section,
.updates-section {
  padding: 34px 0;
}

.product-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.product-section__header h2,
.updates-section h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.product-section__link {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  text-decoration: none;
  font-weight: 800;
}

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

.product-card {
  --product-accent: var(--accent);
  display: flex;
  min-height: 320px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 5px solid var(--product-accent);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 19, 23, 0.04);
}

.product-card--condolife {
  --product-accent: #237a57;
}

.product-card--dinnerforeight {
  --product-accent: #b28b45;
}

.product-card--emailalert {
  --product-accent: #2f6f91;
}

.product-card--benchserve {
  --product-accent: #596a73;
}

.product-card--liberaite {
  --product-accent: #3d7c8b;
}

.product-card--trainio {
  --product-accent: #6f6a3d;
}

.product-card--newt {
  --product-accent: #475f9f;
}

.product-card--lightning {
  --product-accent: #a33b33;
}

.product-card__topline,
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-logo {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--product-accent) 14%, #fff);
  color: var(--product-accent);
  font-size: 0.92rem;
  font-weight: 900;
}

.product-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.product-logo__fallback {
  display: none;
}

.product-logo--fallback img {
  display: none;
}

.product-logo--fallback .product-logo__fallback {
  display: inline;
}

.stage-pill {
  border: 1px solid color-mix(in srgb, var(--product-accent) 38%, #d9ddd8);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--product-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.product-card p:not(.product-card__next) {
  flex: 1;
}

.product-card__next {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 700;
}

.progress-meter {
  height: 10px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e8e3;
}

.progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--product-accent);
}

.product-card__meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-card__meta a {
  color: var(--product-accent);
}

.product-card button {
  margin-top: 16px;
  border-color: var(--product-accent);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.updates-form button {
  margin-top: 16px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.updates-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}

.updates-section p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.stage-definitions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.stage-definitions div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.stage-definitions dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.stage-definitions dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.updates-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.updates-form label span,
.updates-form legend {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.updates-form input[type="email"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.updates-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  border: 0;
  padding: 0;
}

.updates-form fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.updates-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.updates-form__status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.updates-form__status[data-tone="success"] {
  color: var(--accent);
  font-weight: 800;
}

.updates-form__status[data-tone="error"] {
  color: var(--danger);
  font-weight: 800;
}

.dashboard-page {
  min-height: 100vh;
  background: #f5f6f3;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #16201c;
  color: #fff;
}

.brand-link {
  display: inline-block;
  margin-bottom: 32px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 6px;
}

.dashboard-sidebar nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.dashboard-sidebar nav a.is-active,
.dashboard-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dashboard-main {
  width: min(1280px, 100%);
  padding: 30px;
}

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

.dashboard-header h1 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.notice {
  margin: 0 0 18px;
  border: 1px solid #d6c48d;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8df;
  color: #5a4a1e;
}

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

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 19, 23, 0.04);
}

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

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

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  min-height: 260px;
  overflow: hidden;
}

.chart-panel {
  min-height: 320px;
}

.chart-panel--wide {
  grid-column: span 2;
}

.panel--wide {
  margin-top: 14px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.panel__header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.data-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
}

.data-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row span:last-child {
  color: var(--accent-2);
  font-weight: 800;
}

.line-chart {
  display: block;
  width: 100%;
  height: 270px;
  padding: 16px;
}

.line-chart--large {
  height: 330px;
}

.line-chart--mini {
  height: 190px;
  padding: 0;
}

.line-chart__axis,
.line-chart__grid {
  vector-effect: non-scaling-stroke;
}

.line-chart__axis {
  stroke: #aeb7ae;
  stroke-width: 1.2;
}

.line-chart__grid {
  stroke: #e1e5df;
  stroke-width: 1;
}

.line-chart__axis-text,
.line-chart__legend-text,
.line-chart__axis-label,
.line-chart__empty {
  fill: var(--muted);
  font-size: 0.74rem;
}

.line-chart__axis-label {
  fill: var(--ink);
  font-weight: 800;
}

.line-chart__empty {
  font-size: 0.9rem;
}

.line-chart__area {
  fill: rgba(35, 122, 87, 0.14);
}

.line-chart__line {
  fill: none;
  stroke: var(--human);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-chart__point {
  fill: var(--surface);
  stroke: var(--human);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.line-chart__series {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.line-chart__series-point {
  fill: var(--surface);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.line-chart__legend-line {
  stroke-linecap: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.bar-chart {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.site-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 16px;
}

.site-mini-chart {
  min-width: 0;
}

.site-mini-chart__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.site-mini-chart__header h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-mini-chart__header span {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend__swatch {
  width: 24px;
  height: 8px;
  border-radius: 999px;
}

.chart-legend__swatch--human {
  background: var(--human);
}

.chart-legend__swatch--bot {
  background: var(--bot);
}

.bar-row,
.stack-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(120px, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 12px;
}

.bar-row__label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row__track,
.stack-row__track {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ece8;
}

.bar-row__fill {
  display: block;
  border-radius: inherit;
  background: var(--human);
}

.stack-row__human,
.stack-row__bot {
  display: block;
}

.stack-row__human {
  background: var(--human);
}

.stack-row__bot {
  background: var(--bot);
}

.bar-row__count {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.chart-empty {
  padding: 30px 16px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.events-table td:nth-child(4) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-table th,
.site-table td {
  vertical-align: top;
}

.site-table td:first-child {
  font-weight: 700;
}

.site-table td:nth-child(6) {
  font-weight: 700;
}

.site-table td:nth-child(7) {
  color: var(--muted);
}

.unique-table td:nth-child(n + 3),
.unique-table th:nth-child(n + 3) {
  text-align: right;
}

.unique-table td:nth-child(2) {
  color: var(--muted);
}

.muted-cell {
  color: var(--muted);
  text-align: left !important;
}

th {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .status-band,
  .dashboard-header,
  .product-section__header {
    align-items: stretch;
    flex-direction: column;
  }

  .updates-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
  }

  .dashboard-sidebar nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .dashboard-main {
    padding: 20px;
  }

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

  .dashboard-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .lab-main {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

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

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

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

  .chart-panel--wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 84svh;
    background-position: 62% center;
  }

  .hero__content {
    width: min(100% - 32px, 1120px);
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .product-hero {
    min-height: 66svh;
  }

  .product-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-hero__content {
    padding: 42px 0 58px;
  }

  .product-hero h1 {
    font-size: 2.8rem;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  button,
  select {
    width: 100%;
  }

  .lab-panel {
    padding: 22px;
  }

  .lab-panel h1 {
    font-size: 2.2rem;
  }

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

  .product-grid,
  .updates-form fieldset,
  .stage-definitions {
    grid-template-columns: 1fr;
  }

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

  .bar-row,
  .stack-row {
    grid-template-columns: 1fr auto;
  }

  .bar-row__label {
    grid-column: 1 / -1;
  }
}
