:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --brand: #003049;
  --accent: #d62828;
  --text: #1b263b;
  --border: #d8dee9;
  --field-border: #7e8a99;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top right, #f6f8fb, #e8eef5);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.topbar {
  background: linear-gradient(90deg, #00263f, #004466);
  color: #fff;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.topbar h1 { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.topbar > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.topbar nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.topbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.topbar nav a.is-active {
  background: rgba(255, 255, 255, 0.24);
  outline: 1px solid rgba(255, 255, 255, 0.18);
}
.logo {
  width: auto;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 20px;
}

.grid-kpi article, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.grid-kpi h2 { margin: 0 0 8px; font-size: 1rem; color: var(--brand); }
.grid-kpi p { margin: 6px 0; }
.panel { margin: 0 20px 20px; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
  align-items: end;
}
.filter-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.filter-group input[type="month"] {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.metric-toggles label {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 4px;
  font-weight: 500;
}
.filter-group button {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 10pt;
  cursor: pointer;
}
.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  min-height: 260px;
}
.chart-card canvas {
  width: 100% !important;
  height: 240px !important;
}

.worker-overview-card {
  border: 1px solid #d8e4ef;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(7, 48, 89, 0.05), rgba(113, 237, 57, 0.08)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(16, 36, 59, 0.08);
}

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

.worker-heading-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.worker-heading-actions--summary {
  justify-content: flex-end;
}

.worker-eyebrow {
  margin: 0 0 8px !important;
  color: #47627f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.worker-heading h2 {
  margin: 0 0 6px;
}

.worker-heading p {
  margin: 0;
  color: #4b5f76;
}

.worker-signoff-banner {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f0;
  color: #8b1e1e;
  border: 1px solid #f0b2ad;
  font-weight: 700;
  white-space: nowrap;
}

.worker-summary-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.worker-summary-panel {
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
}

.worker-summary-panel span {
  display: inline-block;
  color: #58708a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.worker-summary-panel p {
  margin: 0;
  color: #24364b;
  line-height: 1.5;
}

.worker-specialist-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.worker-specialist-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4fb;
  color: #123b63;
  border: 1px solid #d1e1ef;
  font-size: 0.78rem;
  font-weight: 700;
}

.worker-specialist-note {
  margin: 10px 0 0;
  color: #4e637b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.worker-note--info {
  padding: 10px 12px;
  border: 1px solid #c7d9ea;
  background: #f4f9fe;
  color: #24425e;
  border-radius: 8px;
}

.worker-summary-panel .worker-list {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .worker-summary-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.worker-overview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.worker-overview-meta div {
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
}

.worker-overview-meta span {
  display: block;
  color: #58708a;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.worker-overview-meta strong {
  color: #10243b;
  font-size: 0.96rem;
}

.worker-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.work-delivery-wireframe {
  max-width: 1460px;
  margin-left: auto;
  margin-right: auto;
  background:
    radial-gradient(circle at top right, rgba(18, 59, 99, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfcfe, #f2f6fb);
}

.worker-wireframe-head {
  text-align: center;
  padding: 8px 0 18px;
}

.worker-wireframe-head h2 {
  margin: 0 0 6px;
  color: #10243b;
}

.worker-wireframe-head p:last-child {
  margin: 0;
  color: #51677f;
}

.worker-window {
  border: 1px solid #b9c6d3;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 20px 42px rgba(16, 36, 59, 0.08);
  margin-bottom: 22px;
}

.worker-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #c9d3de;
  background: linear-gradient(180deg, #fafbfd, #edf2f7);
  color: #24364b;
  font-weight: 700;
}

.worker-window-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #9aa8b8;
  background: #c8d0d9;
}

.worker-window-body {
  padding: 18px 18px 16px;
}

.worker-command-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.worker-command-stat {
  border: 1px solid #c8d2dc;
  background: #fff;
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worker-command-stat span {
  color: #50657d;
  font-size: 0.9rem;
  font-weight: 600;
}

.worker-command-stat strong {
  color: #10243b;
  font-size: 1.15rem;
}

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

.worker-command-card {
  border: 1px solid #c8d2dc;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 154px;
}

.worker-command-card.is-selected {
  border-color: #123b63;
  box-shadow: inset 0 0 0 1px #123b63;
}

.worker-command-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.worker-command-card-head h3 {
  margin: 0 0 4px;
  color: #10243b;
  font-size: 1rem;
}

.worker-command-card-head p {
  margin: 0;
  color: #4e637b;
  line-height: 1.45;
  font-size: 0.88rem;
}

.worker-command-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-command-launch {
  align-self: flex-end;
  min-width: 88px;
  text-align: center;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #97a8ba;
  color: #18344f;
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  font-weight: 700;
}

.worker-recent-runs h3 {
  margin: 0 0 10px;
  color: #10243b;
}

.worker-detail-shell {
  margin-top: 12px;
}

.worker-detail-title {
  margin: 0 auto 12px;
  width: fit-content;
  padding: 0 20px;
  background: #f2f6fb;
  color: #10243b;
  font-size: 1.8rem;
}

.worker-detail-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  gap: 0;
}

.worker-sidebar {
  border-right: 1px solid #c9d3de;
  background: #fbfcfe;
  padding: 16px 0;
}

.worker-sidebar h4 {
  margin: 0;
  padding: 0 16px 12px;
  color: #10243b;
}

.worker-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.worker-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #24364b;
  text-decoration: none;
  border-top: 1px solid #d9e1e9;
}

.worker-sidebar-nav a:last-child {
  border-bottom: 1px solid #d9e1e9;
}

.worker-sidebar-nav a.is-active {
  background: #eef4fb;
  font-weight: 700;
}

.worker-sidebar-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9eb0c2;
  font-size: 0.72rem;
  font-weight: 800;
  color: #123b63;
  background: #fff;
}

.worker-detail-main {
  padding: 18px 20px;
}

.worker-detail-main-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9e1e9;
}

.worker-detail-main-head h4 {
  margin: 0 0 6px;
  color: #10243b;
  font-size: 1.65rem;
}

.worker-detail-main-head p {
  margin: 0;
  color: #4e637b;
}

.worker-detail-controls {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 280px) 160px;
  gap: 14px;
  align-items: center;
  margin: 16px 0 18px;
}

.worker-detail-controls select,
.worker-detail-controls button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #9eb0c2;
  border-radius: 0;
  background: #fff;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.worker-detail-controls button {
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  color: #143252;
  font-weight: 700;
  cursor: pointer;
}

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

.worker-detail-metric {
  border: 1px solid #c8d2dc;
  background: #fff;
  padding: 12px;
  min-height: 94px;
}

.worker-detail-metric span {
  display: block;
  color: #566a80;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.worker-detail-metric strong {
  color: #10243b;
  font-size: 1.1rem;
  line-height: 1.35;
}

.worker-detail-table {
  margin-bottom: 18px;
}

.worker-detail-table h5 {
  margin: 0 0 10px;
  color: #10243b;
  font-size: 1.02rem;
}

.worker-detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.worker-detail-panel {
  border: 1px solid #d7e0e9;
  background: #fafbfd;
  padding: 14px 16px;
}

.worker-evidence-panel {
  border-left: 1px solid #c9d3de;
  background: #fbfcfe;
  padding: 18px 16px;
}

.worker-evidence-panel h4 {
  margin: 0 0 14px;
  color: #10243b;
}

.worker-evidence-panel section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dde5ed;
}

.worker-evidence-panel section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.worker-evidence-panel span {
  display: block;
  margin-bottom: 10px;
  color: #5a7087;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1280px) {
  .worker-command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .worker-detail-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .worker-evidence-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #c9d3de;
  }

  .worker-detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .worker-command-stats,
  .worker-command-grid,
  .worker-detail-controls,
  .worker-detail-lower,
  .worker-detail-grid,
  .worker-detail-metrics {
    grid-template-columns: 1fr;
  }

  .worker-sidebar {
    border-right: 0;
    border-bottom: 1px solid #c9d3de;
  }

  .worker-detail-main,
  .worker-evidence-panel {
    padding: 16px;
  }
}

.reporting-shell {
  background:
    radial-gradient(circle at top right, rgba(113, 237, 57, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfdff, #f6f9fc);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.reporting-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 6px 0 10px;
}

.reporting-page-head h2 {
  margin: 0 0 10px;
  color: #10243b;
}

.reporting-hero-copy {
  max-width: 62ch;
  color: #425870;
  line-height: 1.55;
}

.reporting-page-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reporting-inline-summary {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dce5ee;
}

.reporting-inline-summary .worker-list {
  margin: 0;
  padding-left: 18px;
}

.reporting-inline-summary .worker-list li {
  margin: 0 0 8px;
  color: #24364b;
  line-height: 1.5;
}

.reporting-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef4fb;
  color: #143e63;
  border: 1px solid #c9dced;
  font-size: 0.84rem;
  font-weight: 700;
}

.reporting-badge--alert {
  background: #fff1f0;
  color: #8b1e1e;
  border-color: #efbbb7;
}

.reporting-badge--ok {
  background: #eef7ea;
  color: #34562e;
  border-color: #c7deb7;
}

.reporting-summary-grid,
.reporting-detail-grid,
.reporting-snapshot-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.reporting-summary-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
}

.reporting-snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.chart-grid.reporting-chart-grid {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  margin-bottom: 16px;
  gap: 18px;
  align-items: stretch;
}

.reporting-chart-card {
  min-height: 350px;
  padding: 16px 16px 10px;
  border: 1px solid #d8e4ef;
  border-top: 4px solid #123b63;
  background:
    radial-gradient(circle at top right, rgba(139, 207, 57, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: 0 18px 38px rgba(16, 36, 59, 0.09);
}

.reporting-chart-card h3 {
  margin: 0 0 10px;
  color: #10243b;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.worker-estate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.worker-estate-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.worker-estate-chip--operational {
  background: rgba(31, 157, 85, 0.12);
  color: #17663a;
  border-color: rgba(31, 157, 85, 0.22);
}

.worker-estate-chip--monitoring {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4fb6;
  border-color: rgba(37, 99, 235, 0.22);
}

.worker-estate-chip--attention {
  background: rgba(245, 158, 11, 0.14);
  color: #9c6404;
  border-color: rgba(245, 158, 11, 0.24);
}

.worker-estate-chip--action {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.22);
}

.worker-estate-chip--escalated {
  background: rgba(124, 45, 18, 0.12);
  color: #7c2d12;
  border-color: rgba(124, 45, 18, 0.22);
}

.reporting-chart-commentary {
  margin: 10px 2px 0;
  color: #4c6178;
  font-size: 0.93rem;
  line-height: 1.55;
}

.addons-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  background:
    radial-gradient(circle at top right, rgba(24, 99, 173, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdff, #f4f8fc);
}

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

.addons-hero h2 {
  margin: 0 0 6px;
  color: #10243b;
}

.addons-hero p {
  margin: 0;
  color: #50657d;
  max-width: 64ch;
}

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

.addons-grid--dashboard {
  margin-top: 12px;
}

.addons-discovery-panel {
  margin-top: 10px;
  border-top: 1px solid #d9e4ed;
  padding-top: 18px;
}

.addons-card {
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(16, 36, 59, 0.07);
  padding: 18px;
}

.addons-card.is-locked {
  background:
    linear-gradient(145deg, rgba(18, 59, 99, 0.04), rgba(255, 201, 160, 0.08)),
    rgba(255, 255, 255, 0.97);
}

.addons-card.is-active {
  background:
    linear-gradient(145deg, rgba(7, 48, 89, 0.05), rgba(113, 237, 57, 0.08)),
    rgba(255, 255, 255, 0.98);
}

.addons-card--compact {
  padding: 16px;
}

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

.addons-card h3 {
  margin: 0 0 6px;
  color: #10243b;
}

.addons-card p {
  margin: 0;
  color: #4f647c;
  line-height: 1.5;
}

.addons-price {
  margin: 14px 0 12px;
  color: #143252;
  font-size: 1rem;
  font-weight: 800;
}

.addons-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.addons-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #b5c9dd;
  background: #f7fbff;
  color: #123a5e;
  text-decoration: none;
  font-weight: 600;
}

.plotly-chart-shell {
  min-height: 280px;
}

.canvas-chart-shell {
  min-height: 280px;
  position: relative;
}

.canvas-chart-shell canvas {
  width: 100% !important;
  height: 280px !important;
}

.plotly-chart-shell .plotly-graph-div {
  width: 100%;
  min-height: 280px;
}

.reporting-detail-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.reporting-summary-card,
.reporting-panel {
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(16, 36, 59, 0.05);
}

.reporting-summary-card--primary {
  background:
    linear-gradient(145deg, rgba(7, 48, 89, 0.045), rgba(113, 237, 57, 0.08)),
    rgba(255, 255, 255, 0.98);
}

.reporting-summary-card span,
.reporting-panel-head span {
  display: inline-flex;
  color: #58708a;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reporting-summary-card p {
  margin: 10px 0 0;
  color: #24364b;
  line-height: 1.55;
  font-size: 0.98rem;
}

.reporting-summary-card .worker-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.reporting-summary-card .worker-list li {
  margin: 0 0 8px;
  color: #24364b;
  line-height: 1.48;
}

@media (max-width: 1280px) {
  .chart-grid.reporting-chart-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .chart-grid.reporting-chart-grid {
    grid-template-columns: 1fr;
  }
}

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

.reporting-panel h3 {
  margin: 0;
  color: #10243b;
}

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

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

.reporting-worker-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #dde8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fbfd;
}

.reporting-worker-row p {
  margin: 4px 0 0;
  color: #546a82;
}

.reporting-worker-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.worker-metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.worker-metric-card span {
  display: block;
  color: #4b5f76;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.worker-metric-card strong {
  font-size: 1.35rem;
  color: #10243b;
}

.worker-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(620px, 72vw);
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.worker-grid::-webkit-scrollbar {
  height: 10px;
}

.worker-grid::-webkit-scrollbar-thumb {
  background: rgba(18, 59, 99, 0.24);
  border-radius: 999px;
}

.worker-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.worker-report-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #b5c9dd;
  background: #f7fbff;
  color: #123a5e;
  text-decoration: none;
  font-weight: 600;
}

.worker-action-items {
  display: grid;
  gap: 12px;
}

.worker-action-item {
  border: 1px solid #d8e4ef;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.worker-action-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.worker-action-meta {
  margin: 8px 0 !important;
  color: #5a6e84;
  font-size: 0.88rem;
}

.worker-action-form-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.worker-action-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.worker-action-status--pending,
.worker-action-status--initiated {
  background: #eef4fb;
  color: #1a4f7a;
}

.worker-action-status--accepted {
  background: #eef7ea;
  color: #34562e;
}

.worker-action-status--rejected,
.worker-action-status--reverted {
  background: #fff1f0;
  color: #8b1e1e;
}

.worker-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), #ffffff 28%),
    #ffffff;
  box-shadow: 0 18px 34px rgba(12, 33, 57, 0.08);
  scroll-snap-align: start;
}

.worker-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #deebf4;
}

.worker-card-headline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.worker-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #123b63, #2b6b97);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.worker-card-title-block {
  display: grid;
  gap: 4px;
}

.worker-card h3 {
  margin: 0 0 6px;
  color: #10243b;
  font-size: 1.22rem;
}

.worker-card h4 {
  margin: 14px 0 8px;
  color: var(--brand);
  font-size: 0.95rem;
}

.worker-card p {
  margin: 0;
}

.worker-fact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.worker-highlight-card--wide {
  min-height: 100%;
}

.worker-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-top: 16px;
}

.worker-highlight-card {
  border: 1px solid #d8e4ef;
  border-radius: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(7, 48, 89, 0.04), rgba(113, 237, 57, 0.08)),
    #ffffff;
}

.worker-highlight-card span,
.worker-context-card span {
  display: inline-flex;
  color: #58708a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.worker-context-grid {
  display: grid;
  gap: 12px;
}

.worker-context-card {
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f9fbfd;
}

.worker-context-card strong {
  display: block;
  color: #17324d;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 700;
}

.worker-context-card--governance {
  background:
    linear-gradient(180deg, rgba(7, 48, 89, 0.04), rgba(255, 255, 255, 0.98)),
    #f9fbfd;
}

.worker-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr) minmax(270px, 0.82fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.worker-panel {
  border: 1px solid #dce7f0;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), #ffffff 38%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.worker-panel-stack {
  display: grid;
  gap: 12px;
}

.worker-panel-card {
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
}

.worker-panel-card--accent {
  background:
    linear-gradient(145deg, rgba(7, 48, 89, 0.05), rgba(113, 237, 57, 0.09)),
    #ffffff;
}

.worker-panel-label {
  display: inline-flex;
  color: #58708a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.worker-panel-title {
  display: block;
  color: #10243b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.worker-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.worker-card-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.worker-section {
  border: 1px solid #dce7f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f9fbfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.worker-section--surface {
  background: #ffffff;
}

.worker-section--action-board {
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(7, 48, 89, 0.03), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

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

.worker-section-head h4 {
  margin: 0;
}

.worker-section-head span {
  display: inline-flex;
  color: #58708a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.worker-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.worker-output-row {
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.worker-output-row span {
  display: block;
  color: #5a6e84;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.worker-output-row strong {
  color: #10243b;
}

.worker-summary {
  color: #24364b;
  line-height: 1.55;
  font-size: 0.98rem;
}

.worker-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.worker-status,
.worker-confidence {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.worker-status {
  background: #e7f3ff;
  color: #0e4974;
}

.worker-confidence {
  background: #eef5ea;
  color: #34562e;
}

.worker-review-state {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.worker-review-state span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4f9;
  color: #26415c;
  font-size: 0.82rem;
  font-weight: 700;
}

.worker-note {
  margin-top: 8px !important;
  color: #31465c;
}

.worker-action-form {
  margin-top: 12px;
}

.worker-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.worker-list,
.worker-trace-list {
  margin: 0;
  padding-left: 18px;
}

.worker-list li,
.worker-trace-list li {
  margin: 0 0 8px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .reporting-summary-grid,
  .reporting-detail-grid,
  .worker-fact-grid,
  .worker-board-grid,
  .worker-intro-grid,
  .worker-card-layout,
  .worker-form-grid,
  .reporting-dual-table {
    grid-template-columns: 1fr;
  }

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

  .worker-grid {
    grid-auto-columns: minmax(88vw, 88vw);
  }
}

@media (max-width: 860px) {
  .reporting-hero,
  .reporting-page-head,
  .reporting-worker-row,
  .addons-hero {
    flex-direction: column;
  }

  .reporting-worker-meta,
  .reporting-page-badges {
    align-items: flex-start;
    justify-content: flex-start;
  }

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

.infrastructure-credit-shell {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  background:
    radial-gradient(circle at top right, rgba(0, 48, 73, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfcfe, #f2f6fb);
}

.infrastructure-credit-head,
.infrastructure-credit-layout,
.infrastructure-credit-worker-head,
.infrastructure-credit-head-actions {
  display: flex;
  gap: 18px;
}

.infrastructure-credit-head,
.infrastructure-credit-worker-head {
  justify-content: space-between;
  align-items: flex-start;
}

.infrastructure-credit-head {
  margin-bottom: 16px;
}

.infrastructure-credit-head h2 {
  margin: 0 0 6px;
  color: #10243b;
}

.infrastructure-credit-head p {
  margin: 0;
  color: #52677f;
}

.infrastructure-credit-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.infrastructure-credit-intro-card,
.infrastructure-credit-card,
.infrastructure-credit-detail-card,
.infrastructure-credit-workers-panel,
.infrastructure-credit-audit-panel {
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px rgba(16, 36, 59, 0.06);
}

.infrastructure-credit-intro-card {
  padding: 16px 18px;
}

.infrastructure-credit-intro-card--primary {
  background:
    linear-gradient(145deg, rgba(7, 48, 89, 0.05), rgba(113, 237, 57, 0.08)),
    rgba(255, 255, 255, 0.98);
}

.infrastructure-credit-intro-card span,
.infrastructure-credit-mini-grid span,
.infrastructure-credit-audit-meta span {
  display: inline-flex;
  color: #58708a;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.infrastructure-credit-intro-card p {
  margin: 0;
  color: #24364b;
  line-height: 1.55;
}

.infrastructure-credit-layout {
  align-items: flex-start;
  margin-bottom: 18px;
}

.infrastructure-credit-form-panel {
  flex: 0 0 410px;
  border: 1px solid #b9c6d3;
  background: #fff;
  box-shadow: 0 20px 42px rgba(16, 36, 59, 0.08);
}

.infrastructure-credit-module-panel {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #b9c6d3;
  background: #fff;
  box-shadow: 0 20px 42px rgba(16, 36, 59, 0.08);
}

.infrastructure-credit-form-body,
.infrastructure-credit-module-body {
  padding: 18px;
}

.infrastructure-credit-form .legal-form input,
.infrastructure-credit-form .legal-form textarea,
.infrastructure-credit-form .legal-form select {
  width: 100%;
}

.infrastructure-credit-form label {
  margin: 0 0 6px;
  color: #10243b;
  font-weight: 700;
}

.infrastructure-credit-form > label,
.infrastructure-credit-form > input,
.infrastructure-credit-form > select,
.infrastructure-credit-form > textarea {
  width: 100%;
}

.infrastructure-credit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.infrastructure-credit-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.infrastructure-credit-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 14px 0;
}

.infrastructure-credit-toggles label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #31475d;
  font-weight: 600;
  line-height: 1.4;
}

.infrastructure-credit-toggles input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.infrastructure-credit-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.infrastructure-credit-form-actions button,
.infrastructure-credit-report-link {
  width: auto;
  margin: 0;
}

.infrastructure-credit-report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #a8b9cc;
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  color: #143252;
  text-decoration: none;
  font-weight: 700;
}

.infrastructure-credit-report-link--primary {
  background: linear-gradient(180deg, #1863ad, #0f4b83);
  border-color: #0f4b83;
  color: #fff;
}

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

.infrastructure-credit-card {
  padding: 18px;
}

.infrastructure-credit-card h3 {
  margin: 0 0 12px;
  color: #10243b;
  font-size: 1.04rem;
}

.infrastructure-credit-card-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #dde5ed;
  border-bottom: 1px solid #dde5ed;
}

.infrastructure-credit-card-items span {
  color: #31475d;
  font-weight: 600;
}

.infrastructure-credit-card-summary {
  min-height: 56px;
  color: #4e637b;
  line-height: 1.52;
}

.infrastructure-credit-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 9px 14px;
  border: 1px solid #98a9bb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  color: #153556;
  text-decoration: none;
  font-weight: 700;
}

.infrastructure-credit-card--summary {
  grid-column: span 2;
}

.infrastructure-credit-dl {
  margin: 0 0 16px;
}

.infrastructure-credit-dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #dde5ed;
}

.infrastructure-credit-dl div:last-child {
  border-bottom: 0;
}

.infrastructure-credit-dl dt {
  color: #4e637b;
  font-weight: 600;
}

.infrastructure-credit-dl dd {
  margin: 0;
  color: #10243b;
  font-weight: 700;
  text-align: right;
}

.infrastructure-credit-checklist {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.infrastructure-credit-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f7;
}

.infrastructure-credit-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #9db0c1;
  background: #fff;
}

.infrastructure-credit-check.is-checked {
  background: linear-gradient(180deg, #1a66af, #0f4b83);
  border-color: #0f4b83;
}

.infrastructure-credit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.infrastructure-credit-detail-card {
  padding: 16px 18px;
}

.worker-section-head--compact {
  margin-top: 16px;
}

.worker-section-head--compact h5 {
  margin: 0;
  color: #10243b;
}

.infrastructure-credit-worker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.infrastructure-credit-workers-panel,
.infrastructure-credit-audit-panel {
  padding: 16px 18px;
}

.infrastructure-credit-worker-card {
  border: 1px solid #d9e4ed;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfdff;
  margin-bottom: 12px;
}

.infrastructure-credit-worker-card:last-child {
  margin-bottom: 0;
}

.infrastructure-credit-worker-head h5 {
  margin: 0 0 4px;
  color: #10243b;
  font-size: 1rem;
}

.infrastructure-credit-worker-head p {
  margin: 0;
  color: #58708a;
}

.infrastructure-credit-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.infrastructure-credit-worker-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.infrastructure-credit-mini-grid div,
.infrastructure-credit-audit-meta article {
  border: 1px solid #dce6ef;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.infrastructure-credit-mini-grid strong,
.infrastructure-credit-audit-meta strong {
  display: block;
  color: #10243b;
  line-height: 1.4;
}

.infrastructure-credit-audit-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1220px) {
  .infrastructure-credit-layout,
  .infrastructure-credit-worker-grid,
  .infrastructure-credit-intro,
  .infrastructure-credit-detail-grid {
    grid-template-columns: 1fr;
  }

  .infrastructure-credit-layout {
    flex-direction: column;
  }

  .infrastructure-credit-form-panel {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .infrastructure-credit-form-grid,
  .infrastructure-credit-form-grid--three,
  .infrastructure-credit-summary-grid,
  .infrastructure-credit-toggles,
  .infrastructure-credit-audit-meta {
    grid-template-columns: 1fr;
  }

  .infrastructure-credit-card--summary {
    grid-column: auto;
  }

  .infrastructure-credit-card-items {
    grid-template-columns: 1fr;
  }

  .infrastructure-credit-head,
  .infrastructure-credit-worker-head {
    flex-direction: column;
  }

  .infrastructure-credit-head-actions {
    justify-content: flex-start;
  }
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #ffffff;
  padding: 24px 16px 40px;
}

.auth-body-top {
  place-items: start center;
  padding: 0 16px 32px;
}

.auth-card {
  width: min(380px, 92vw);
  background: #fff;
  border: 1px solid rgba(16, 36, 59, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.auth-card-brand {
  padding-top: 0;
}

.auth-logo {
  display: block;
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 0 12px;
}

.auth-card-brand .auth-logo {
  margin: 0 auto 12px;
}

.auth-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding-top: 0;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #10243b;
}
.auth-card form {
  width: min(300px, 100%);
  margin: 0 auto;
}
.auth-card label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  text-align: left;
}
.auth-card input {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.06);
  display: block;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.12);
}
.auth-card button {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 10pt;
  display: block;
}
.auth-meta {
  margin: 0 0 10px;
  color: #4b5f76;
  font-size: 0.92rem;
  line-height: 1.35;
}
.auth-links {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #4b5f76;
  text-align: center;
}
.auth-links a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.auth-links a:hover {
  text-decoration: underline;
}

.auth-link-actions {
  width: min(520px, 100%);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.auth-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 10pt;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-link-btn-primary {
  background: #003049;
  color: #ffffff;
  border: 1px solid #003049;
}

.auth-link-btn-primary:hover {
  background: #0b4363;
  border-color: #0b4363;
  color: #ffffff;
}

.auth-link-btn-secondary {
  background: #ffffff;
  color: #003049;
  border: 1px solid #b8c7d6;
}

.auth-link-btn-secondary:hover {
  background: #eef4f9;
  color: #003049;
}

.error { color: #b00020; font-weight: 600; }
.success { color: #0f7d31; font-weight: 600; }
.legal-panel {
  max-width: 760px;
  margin-top: 0;
}

.auth-login-panel {
  width: min(700px, 92vw);
  padding: 0 32px 28px;
}

.auth-login-panel .auth-brand-wrap {
  margin-bottom: 8px;
}

.auth-login-panel .auth-meta,
.auth-login-panel .error,
.auth-login-panel .success,
.auth-login-panel .auth-links,
.auth-login-panel .auth-link-actions {
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.auth-login-panel .auth-login-form {
  width: min(520px, 100%);
  margin: 0 auto;
}

.auth-login-panel .auth-login-form label {
  width: 100%;
  margin: 12px 0 6px;
  text-align: left;
}

.auth-login-panel .auth-login-note {
  margin-top: 14px;
}

.demo-booking-panel {
  width: min(820px, 94vw);
}

.demo-booking-panel .auth-meta,
.demo-booking-panel .error,
.demo-booking-panel .success,
.demo-booking-panel .auth-link-actions {
  width: min(680px, 100%);
}

.demo-booking-panel .demo-booking-form {
  width: min(680px, 100%);
}

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

.demo-booking-grid > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .demo-booking-grid {
    grid-template-columns: 1fr;
  }
}

.enterprise-onboarding-panel {
  width: min(900px, 94vw);
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(7, 42, 63, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
  box-shadow:
    0 28px 80px rgba(6, 30, 49, 0.16),
    0 8px 24px rgba(6, 30, 49, 0.08);
  overflow: hidden;
}

.enterprise-onboarding-shell {
  display: block;
}

.enterprise-onboarding-panel .auth-brand-wrap {
  justify-content: center;
}

.enterprise-onboarding-panel .auth-logo {
  width: 250px;
  height: 250px;
  margin: 0 auto 16px;
  filter: none;
  opacity: 1;
  object-fit: contain;
}

.enterprise-onboarding-eyebrow,
.enterprise-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.enterprise-onboarding-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(244, 248, 251, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.enterprise-panel-label {
  background: rgba(0, 48, 73, 0.08);
  color: #0a4c6e;
  border: 1px solid rgba(0, 48, 73, 0.08);
}

.enterprise-onboarding-panel h1,
.enterprise-onboarding-panel h2,
.enterprise-onboarding-panel h3,
.enterprise-onboarding-panel .error,
.enterprise-onboarding-panel .success,
.enterprise-onboarding-panel .auth-meta,
.enterprise-onboarding-panel .auth-links,
.enterprise-onboarding-panel .legal-form label {
  text-align: left;
}

.enterprise-form-head h1,
.enterprise-form-head h2 {
  margin: 10px 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
  text-align: center;
}

.enterprise-onboarding-form-card {
  padding: 34px 32px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.99));
}

.enterprise-form-head {
  margin-bottom: 22px;
}

.enterprise-form-head--minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enterprise-form-head p {
  margin: 14px 0 0;
  max-width: 560px;
  color: #56697f;
  line-height: 1.6;
}

.enterprise-onboarding-form-card .error,
.enterprise-onboarding-form-card .success {
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.enterprise-onboarding-form-card .error {
  background: #fff1f2;
  border: 1px solid #ffcfd5;
}

.enterprise-onboarding-form-card .success {
  background: #edf9f0;
  border: 1px solid #bae7c8;
}

.enterprise-registration-form {
  width: 100% !important;
  margin: 0 !important;
}

.enterprise-registration-form .auth-meta {
  margin-top: 6px;
  margin-bottom: 0;
}

.enterprise-form-section,
.enterprise-summary-card,
.enterprise-offering-card {
  border: 1px solid rgba(12, 49, 73, 0.09);
  box-shadow:
    0 10px 24px rgba(9, 37, 57, 0.05),
    0 2px 6px rgba(9, 37, 57, 0.03);
}

.enterprise-form-section {
  margin: 0 0 18px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
}

.enterprise-form-section--priority {
  background:
    linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
}

.enterprise-section-heading {
  margin-bottom: 14px;
}

.enterprise-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #073654, #0e5f86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(7, 54, 84, 0.18);
}

.enterprise-section-heading--minimal > span,
.enterprise-form-section--submit .enterprise-submit-note {
  display: none;
}

.enterprise-section-heading h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #10243b;
}

.enterprise-section-heading p {
  margin: 8px 0 0;
  color: #55687f;
  line-height: 1.6;
}

.enterprise-form-grid {
  display: grid;
  gap: 16px;
}

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

.enterprise-form-grid--aligned-start {
  align-items: start;
}

.enterprise-form-fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  min-inline-size: 0;
}

.enterprise-form-fieldset[disabled] {
  opacity: 0.54;
}

.enterprise-onboarding-panel .legal-form label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #163047;
}

.priority-field-label {
  color: #0d4f72;
  font-size: 0.96rem;
  font-weight: 800;
}

.legal-form label {
  display: block;
  margin: 10px 0;
}

.priority-field-input {
  border-width: 2px !important;
  border-color: #0b5b81 !important;
  background: #f7fbfe !important;
  box-shadow:
    0 0 0 5px rgba(11, 91, 129, 0.08),
    0 10px 18px rgba(16, 36, 59, 0.05) !important;
}

.priority-field-meta {
  color: #35506b;
  font-weight: 600;
}
.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.45;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.checkbox-row span {
  flex: 1 1 auto;
}
.legal-form select {
  width: min(520px, 100%);
  padding: 10px;
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 10pt;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.06);
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.legal-form input,
.legal-form textarea {
  width: min(520px, 100%);
  padding: 10px;
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(16, 36, 59, 0.06);
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.legal-form select:focus,
.legal-form input:focus,
.legal-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.12);
}

.enterprise-onboarding-panel .legal-form select,
.enterprise-onboarding-panel .legal-form input,
.enterprise-onboarding-panel .legal-form textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #c8d4df;
  font-size: 0.96rem;
  color: #1b263b;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.enterprise-onboarding-panel .legal-form textarea {
  min-height: 92px;
  resize: vertical;
}

.enterprise-onboarding-panel .legal-form select[multiple] {
  min-height: 176px;
  padding: 8px;
}

.enterprise-onboarding-panel .legal-form select:focus,
.enterprise-onboarding-panel .legal-form input:focus,
.enterprise-onboarding-panel .legal-form textarea:focus {
  border-color: #0d5a80;
  box-shadow: 0 0 0 4px rgba(13, 90, 128, 0.12);
}

.enterprise-validation-message {
  min-height: 24px;
}

.enterprise-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
}

.enterprise-summary-card strong {
  display: block;
  margin: 0;
  font-size: 1rem;
  color: #10243b;
}

.enterprise-summary-card p {
  margin: 0;
  color: #51657a;
  line-height: 1.6;
}

.enterprise-summary-note {
  margin-top: 12px !important;
}

.enterprise-form-section--submit {
  padding-top: 6px;
}

.legal-form a {
  color: var(--brand);
  font-weight: 600;
}
.legal-form button {
  margin-top: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 10pt;
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.enterprise-onboarding-panel .legal-form button {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5d84, #0f729f);
  box-shadow: 0 16px 30px rgba(12, 82, 116, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.enterprise-onboarding-panel .legal-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(12, 82, 116, 0.24);
  filter: brightness(1.02);
}

.enterprise-login-link {
  margin-top: 18px;
  padding-top: 4px;
}

@media (max-width: 1180px) {
  .enterprise-onboarding-form-card {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 760px) {
  .enterprise-onboarding-panel {
    width: min(100%, 96vw);
    border-radius: 20px;
  }

  .enterprise-onboarding-form-card {
    padding: 26px 18px;
  }

  .enterprise-form-grid--two {
    grid-template-columns: 1fr;
  }

  .enterprise-onboarding-panel .legal-form button {
    width: 100%;
  }
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: 8px; text-align: left; }
th { background: #f0f4f8; }

.rag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid transparent;
}

.rag-green {
  background: #e7f7ee;
  color: #196b34;
  border-color: #7dcf9a;
}

.rag-amber {
  background: #fff5e5;
  color: #8f5200;
  border-color: #ffc069;
}

.rag-red {
  background: #fdecec;
  color: #9f1239;
  border-color: #f5a3a3;
}

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

.inline-actions a {
  display: inline-block;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 10pt;
  text-decoration: none;
}

.inline-form {
  margin: 0;
}

.inline-form button {
  margin-top: 0;
}

.model-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.model-tab-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f0f4f8;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 10pt;
  padding: 10px 16px;
}

.model-tab-button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.model-tab-panel {
  display: none;
}

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

.renew-models-panel {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 22px 24px;
  box-shadow: 0 10px 28px rgba(16, 36, 59, 0.08);
}

.renew-models-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--brand);
}

.renew-models-intro {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #23364a;
}

.renew-models-meta {
  margin: 0 0 10px;
  color: #55687d;
  font-size: 0.94rem;
  line-height: 1.45;
}

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

.renew-model-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  box-shadow: 0 4px 14px rgba(16, 36, 59, 0.06);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.renew-model-option:hover {
  border-color: #9db3c8;
  box-shadow: 0 8px 20px rgba(16, 36, 59, 0.1);
  transform: translateY(-1px);
}

.renew-model-option input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.renew-model-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.renew-model-copy--selectable {
  cursor: pointer;
}

.renew-model-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.renew-model-title {
  font-size: 1rem;
  font-weight: 700;
  color: #10243b;
  line-height: 1.35;
}

.renew-model-price,
.renew-model-key {
  font-size: 0.93rem;
  color: #4b5f76;
  line-height: 1.4;
}

.renew-model-key {
  color: #708399;
}

.renew-model-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: #18344f;
  font-weight: 700;
}

.renew-model-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f7ee;
  border: 1px solid #7dcf9a;
  color: #196b34;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.billing-portal-panel {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(16, 36, 59, 0.08);
}

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

.billing-portal-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5d7288;
}

.billing-portal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--brand);
}

.billing-portal-intro {
  margin: 0;
  max-width: 720px;
  color: #44576b;
  line-height: 1.55;
}

.billing-portal-open-form {
  margin: 0;
  min-width: 250px;
}

.billing-portal-open-form button {
  width: 100%;
}

.billing-portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.billing-portal-kpi-card,
.billing-portal-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(16, 36, 59, 0.06);
}

.billing-portal-kpi-label {
  margin: 0 0 10px;
  color: #607487;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-portal-kpi-value {
  margin: 0;
  color: #13283d;
  font-size: 1.25rem;
  font-weight: 700;
}

.billing-portal-kpi-meta {
  margin: 8px 0 0;
  color: #607487;
  font-size: 0.9rem;
}

.billing-portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.billing-portal-card h3 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 1.05rem;
}

.billing-portal-summary {
  margin: 0;
  display: grid;
  gap: 12px;
}

.billing-portal-summary div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6edf4;
}

.billing-portal-summary div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.billing-portal-summary dt {
  color: #607487;
  font-size: 0.88rem;
  font-weight: 600;
}

.billing-portal-summary dd {
  margin: 0;
  color: #13283d;
  font-weight: 600;
}

.billing-portal-actions {
  margin-top: 16px;
}

.billing-model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.billing-model-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #ffffff;
}

.billing-model-title {
  margin: 0 0 4px;
  color: #13283d;
  font-weight: 700;
}

.billing-model-key {
  margin: 0;
  color: #607487;
  font-size: 0.86rem;
  word-break: break-word;
}

.billing-model-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #13283d;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.billing-portal-empty {
  margin: 0;
  color: #607487;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill-active {
  background: #e7f7ee;
  color: #196b34;
  border-color: #7dcf9a;
}

.status-pill-attention {
  background: #fff5e5;
  color: #8f5200;
  border-color: #ffc069;
}

.status-pill-disabled {
  background: #fdecec;
  color: #9f1239;
  border-color: #f5a3a3;
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar > div {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: center;
  }

  .renew-model-grid {
    grid-template-columns: 1fr;
  }

  .billing-portal-hero {
    flex-direction: column;
  }

  .billing-portal-open-form {
    width: 100%;
    min-width: 0;
  }

  .billing-portal-grid {
    grid-template-columns: 1fr;
  }

  .billing-model-item {
    flex-direction: column;
  }

  .billing-model-meta {
    justify-items: start;
    text-align: left;
  }
}
