.app-shell {
  background:
    linear-gradient(180deg, rgba(10, 13, 20, 0.72), var(--page) 520px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
}

.app-main {
  padding-top: 128px;
  padding-bottom: 72px;
}

.is-hidden {
  display: none !important;
}

.session-label {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  min-height: calc(100svh - 210px);
}

.auth-copy {
  max-width: 820px;
}

.auth-copy h1,
.dashboard-head h1 {
  font-size: clamp(2.8rem, 5vw, 5.7rem);
}

.auth-copy p {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.55;
}

.auth-panel,
.work-panel,
.ops-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel {
  padding: clamp(20px, 3vw, 30px);
}

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

.app-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.app-form textarea {
  min-height: 98px;
  padding-block: 12px;
  resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  border-color: rgba(79, 163, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.12);
}

.code-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.dashboard-head h1 {
  margin-bottom: 0;
}

.launch-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.launch-status span {
  min-height: 34px;
  padding: 9px 11px;
  border: 1px solid rgba(79, 163, 255, 0.32);
  border-radius: 999px;
  color: var(--route);
  background: rgba(79, 163, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.ops-panel,
.work-panel {
  padding: clamp(18px, 2vw, 24px);
}

.ops-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 22px;
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ops-panel strong {
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.ops-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.ops-metrics article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.ops-metrics strong {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
}

.ops-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
}

.compact-form {
  gap: 14px;
}

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

.results-work-panel {
  grid-row: span 2;
}

.match-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.match-item,
.admin-item {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.match-item header,
.admin-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.match-item h3,
.admin-item h3 {
  margin: 0;
}

.match-score {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.match-item p,
.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reason-row span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
}

.form-status {
  min-height: 22px;
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .results-work-panel,
  .admin-panel {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .app-nav {
    display: none;
  }

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

  .dashboard-head {
    display: grid;
    align-items: start;
  }

  .launch-status {
    justify-content: start;
  }

  .ops-panel {
    position: static;
  }

  .results-work-panel,
  .admin-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .app-main {
    width: min(100% - 28px, var(--content-max));
    padding-top: 104px;
  }

  .app-topbar {
    width: calc(100% - 28px);
  }

  .field-grid,
  .ops-metrics {
    grid-template-columns: 1fr;
  }

  .session-label {
    display: none;
  }
}

/* Admin usage dashboard */
.admin-panel {
  grid-column: 1 / -1;
}

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

.admin-stats article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.admin-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 1.7rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-chart-wrap {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.admin-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 96px;
}

.chart-col {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: end;
}

.chart-col span {
  width: 100%;
  max-width: 34px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--route), rgba(79, 163, 255, 0.25));
}

.chart-col.is-empty span {
  background: rgba(255, 255, 255, 0.08);
}

.chart-col label {
  color: var(--steel);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-columns h3 {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 640px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-col label {
    display: none;
  }
}

/* Intros, calls, lifecycle, verification */
.sample-note {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(117, 167, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(117, 167, 255, 0.08);
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.verify-status {
  margin: -8px 0 16px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 700;
}

.verify-status.is-verified {
  color: var(--route);
}

.button-mini {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.8rem;
  justify-self: start;
}

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

.status-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  white-space: nowrap;
}

.status-open {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.4);
}

.status-filled {
  color: var(--route);
  border-color: rgba(79, 163, 255, 0.4);
}

.status-closed {
  color: var(--steel);
}

.status-verified {
  color: var(--route);
  border-color: rgba(79, 163, 255, 0.4);
}

.admin-funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.funnel-stage {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.funnel-stage strong {
  color: var(--green);
  font-size: 1.25rem;
}

.funnel-arrow {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Growth: share block + channels */
.share-block p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
}

.admin-channels span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-channels .channels-label {
  border: none;
  background: none;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Docs, export, intro workflow */
.doc-upload {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-upload > label {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.doc-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.doc-upload input[type="file"] {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 100%;
}

.admin-export {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.doc-link {
  padding: 6px 8px;
  border: 1px solid rgba(79, 163, 255, 0.35);
  border-radius: 999px;
  color: var(--route);
  font-size: 0.76rem;
  font-weight: 800;
}

/* Projects, crews, search, KPIs */
.role-lines {
  display: grid;
  gap: 8px;
}

.role-line {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 86px 40px;
  gap: 8px;
  align-items: center;
}

.role-line select,
.role-line input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 10px;
}

.role-line button {
  min-height: 42px;
  padding-inline: 0;
}

.check-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.check-row span {
  font-weight: 600;
  line-height: 1.45;
}

.crew-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(79, 163, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(79, 163, 255, 0.06);
}

.crew-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.crew-card h3 {
  margin: 0;
}

.crew-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.crew-member {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 3px;
}

.crew-member span {
  color: var(--muted);
  font-size: 0.78rem;
}

.role-match-heading {
  margin: 16px 0 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-kpis article {
  padding: 12px 14px;
  border: 1px solid rgba(255, 178, 36, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 178, 36, 0.05);
  display: grid;
  gap: 2px;
}

.admin-kpis strong {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.admin-kpis span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-kpis em {
  color: var(--steel);
  font-size: 0.72rem;
  font-style: normal;
}

@media (max-width: 640px) {
  .role-line {
    grid-template-columns: 1fr 1fr;
  }
}

/* Crewbound v2: routing, locked terms, agreements */
.terms-block-title {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 178, 36, 0.05);
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.match-item .routing-line {
  margin: 0;
  color: var(--route);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.match-item .terms-line {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.match-item .terms-line strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.readiness-badge {
  justify-self: start;
  padding: 4px 9px;
  border: 1px solid rgba(255, 178, 36, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.readiness-badge.is-full {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.45);
  background: rgba(95, 227, 156, 0.08);
}

.match-item .reliability-line {
  margin: 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Agreement status chips */
.status-offered {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.45);
}

.status-confirmed {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.45);
}

.status-completed {
  color: var(--route);
  border-color: rgba(79, 163, 255, 0.45);
}

.status-declined,
.status-cancelled {
  color: var(--steel);
}

.dispute-chip {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.5);
  background: rgba(255, 178, 36, 0.08);
}

.terms-flag {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.5);
}

/* Agreement cards */
.agreement-card {
  border-color: rgba(255, 255, 255, 0.16);
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.match-item .rate-guarantee {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.terms-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.term {
  display: grid;
  gap: 3px;
}

.term span {
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.term strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.match-item .signature-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.agreement-history {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.agreement-history summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.history-entry {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.history-entry strong {
  color: var(--route);
  font-size: 0.8rem;
}

.history-entry span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.amendment-pending {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 178, 36, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 178, 36, 0.06);
}

.match-item .pending-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.match-item .dispute-note {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.completion-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(95, 227, 156, 0.3);
  border-radius: var(--radius);
  background: rgba(95, 227, 156, 0.05);
}

.rating-row .rating-yes {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.35);
}

.rating-row .rating-no {
  color: var(--steel);
}

.match-item .worker-context {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.inline-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(79, 163, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(79, 163, 255, 0.05);
}

.inline-form label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-form input,
.inline-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.inline-form input:focus,
.inline-form select:focus {
  border-color: rgba(79, 163, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.12);
}

.inline-form .field-grid {
  gap: 10px;
}

.inline-form .check-row input {
  width: 17px;
  min-height: 17px;
}

.match-item .inline-form-title {
  margin: 0;
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

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

.reliability-summary {
  border-color: rgba(79, 163, 255, 0.35);
  background: rgba(79, 163, 255, 0.05);
}

/* v1.1: attention strip, credential wallet, templates, checklist, admin trust ops */
.work-panel,
.ops-panel {
  scroll-margin-top: 120px;
}

.attention-panel {
  grid-column: 1 / -1;
  padding: 14px clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 178, 36, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 178, 36, 0.06);
  box-shadow: var(--shadow);
}

.attention-panel .panel-header {
  margin-bottom: 10px;
}

.attention-list {
  display: grid;
  gap: 6px;
}

.attention-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.attention-item a {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

/* Credential wallet */
.cred-pending {
  color: var(--steel);
  border-color: rgba(138, 148, 171, 0.5);
}

.cred-verified {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.45);
  background: rgba(95, 227, 156, 0.08);
}

.cred-rejected {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.5);
  background: rgba(255, 178, 36, 0.08);
}

.expiry-warn {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.5);
}

.cred-expiry {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  align-self: center;
}

.match-item .cred-doc {
  margin: 0;
  color: var(--route);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Role templates */
.template-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.template-row select {
  flex: 1 1 220px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.template-row select:focus {
  border-color: rgba(79, 163, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.12);
}

.template-manage {
  margin-bottom: 14px;
}

/* Mobilization checklist */
.checklist-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(79, 163, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(79, 163, 255, 0.05);
}

.checklist-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-progress {
  color: var(--route);
  border-color: rgba(79, 163, 255, 0.4);
}

.checklist-row span {
  color: var(--soft);
  font-size: 0.84rem;
}

.checklist-meta {
  display: block;
  color: var(--steel);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
}

.checklist-add {
  display: flex;
  gap: 8px;
}

.checklist-add input {
  flex: 1;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.checklist-add input:focus {
  border-color: rgba(79, 163, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.12);
}

/* Admin: PRD §10 metric tiles */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.metric-tile {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.metric-tile strong {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.1;
}

.metric-tile > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-tile em {
  color: var(--steel);
  font-size: 0.72rem;
  font-style: normal;
}

.metric-tile .metric-chip {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.metric-good {
  border-color: rgba(95, 227, 156, 0.3);
}

.metric-good .metric-chip {
  color: var(--green);
  border-color: rgba(95, 227, 156, 0.45);
  background: rgba(95, 227, 156, 0.08);
}

.metric-warn {
  border-color: rgba(255, 178, 36, 0.35);
}

.metric-warn .metric-chip {
  color: var(--accent);
  border-color: rgba(255, 178, 36, 0.5);
  background: rgba(255, 178, 36, 0.08);
}

.metric-bad {
  border-color: rgba(255, 110, 110, 0.4);
}

.metric-bad .metric-chip {
  color: #ff8d8d;
  border-color: rgba(255, 110, 110, 0.5);
  background: rgba(255, 110, 110, 0.08);
}

/* Admin: credential review queue */
.admin-credwrap {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.cred-queue {
  margin-top: 10px;
}

.cred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.cred-table th,
.cred-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
  color: var(--soft);
}

.cred-table thead th {
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cred-sub {
  color: var(--muted);
  font-size: 0.74rem;
}

.cred-actions {
  white-space: nowrap;
}

.cred-actions .button {
  margin-right: 6px;
}

@media (max-width: 900px) {
  .cred-table th,
  .cred-table td {
    padding: 6px;
  }

  .cred-actions {
    white-space: normal;
  }
}

/* Print: agreement document only */
.print-area {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-shell {
    display: none !important;
  }

  .print-area {
    display: block !important;
    color: #000;
    background: #fff;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  }

  .print-doc {
    max-width: 720px;
    margin: 0 auto;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
  }

  .print-doc h1 {
    margin: 0 0 6px;
    color: #000;
    font-size: 22px;
    letter-spacing: -0.01em;
  }

  .print-doc h2 {
    margin: 18px 0 8px;
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .print-doc h3 {
    margin: 12px 0 4px;
    color: #000;
    font-size: 12px;
  }

  .print-doc header p,
  .print-doc p {
    margin: 2px 0;
    color: #333;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #bbb;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    color: #000;
    font-size: 11px;
  }

  .print-table th {
    width: 170px;
    background: #f2f2f2;
    font-weight: 700;
  }

  .print-history-entry {
    break-inside: avoid;
    margin-bottom: 10px;
  }

  .print-doc footer {
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid #bbb;
    color: #333;
    font-size: 10px;
  }

  .print-doc footer p {
    color: #333;
  }
}
