@font-face {
  font-family: "Azo Sans";
  src: url("/fonts/reprotest/azo-sans-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azo Sans";
  src: url("/fonts/reprotest/azo-sans-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azo Sans";
  src: url("/fonts/reprotest/azo-sans-bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azo Sans";
  src: url("/fonts/reprotest/azo-sans-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-900: #495965;
  --brand-800: #5f717d;
  --brand-700: #768d99;
  --brand-600: #9cadb7;
  --brand-500: #f26322;
  --brand-400: #f79b7c;
  --brand-300: #ffd2c3;
  --brand-200: #edf2f4;
  --brand-100: #f9f5f2;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: #fffaf8;
  --surface-muted: #f2f5f6;
  --border: rgba(118, 141, 153, 0.2);
  --border-strong: rgba(73, 89, 101, 0.18);
  --ink: var(--brand-900);
  --ink-soft: #5f717d;
  --muted: #788892;
  --shadow-lg: 0 28px 70px rgba(73, 89, 101, 0.12);
  --shadow-md: 0 18px 42px rgba(73, 89, 101, 0.1);
  --shadow-sm: 0 10px 24px rgba(73, 89, 101, 0.08);
  --radius-xl: 1.75rem;
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.125rem;
  --space-6: 1.4rem;
  --space-7: 1.8rem;
  --control-height: 2.5rem;
  --control-height-sm: 2.05rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Azo Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(247, 155, 124, 0.14), transparent 30%),
    radial-gradient(circle at right 10% top 10%, rgba(118, 141, 153, 0.12), transparent 26%),
    linear-gradient(180deg, #fff8f4 0%, #ffffff 28%, #f6f8f9 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.26;
}

body::before {
  top: -2rem;
  right: 0;
  width: min(48vw, 44rem);
  height: min(42vw, 24rem);
  background-image: url("/branding/reprotest/13x2.webp");
  background-position: top right;
}

body::after {
  left: -2rem;
  bottom: 0;
  width: min(46vw, 36rem);
  height: min(40vw, 23rem);
  background-image: url("/branding/reprotest/noroot.webp");
  background-position: bottom left;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  color: var(--ink);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.06;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.18;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
  font-weight: 700;
}

p,
li,
dd,
td,
th,
input,
select,
textarea,
button {
  font-size: 0.95rem;
  line-height: 1.5;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

code {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(92, 113, 183, 0.12);
  color: var(--brand-700);
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 600;
}

.site-shell {
  position: relative;
  max-width: 94rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.6rem;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
}

.site-shell::before {
  top: 1.2rem;
  left: 0.2rem;
  width: 4rem;
  height: 4rem;
  opacity: 0.92;
  background-image: url("/branding/reprotest/bullet-02.webp");
}

.site-shell::after {
  top: 1.5rem;
  right: 1.8rem;
  width: 5rem;
  height: 5rem;
  opacity: 0.85;
  background-image: url("/branding/reprotest/bullet-04.webp");
}

.shell {
  width: min(100%, 84rem);
  margin: 0 auto;
  padding: 0.8rem 0 0;
}

.site-main {
  display: grid;
  gap: 0.85rem;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-5);
  padding: var(--space-2) 0 0;
}

.site-footer p {
  margin: 0;
  max-width: 38rem;
  font-size: 0.82rem;
  color: rgba(73, 89, 101, 0.82);
}

.card,
.page-header {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 246, 0.94)),
    var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.card {
  padding: 0.95rem 1.05rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.82rem;
  background:
    linear-gradient(120deg, rgba(247, 155, 124, 0.18) 0%, rgba(237, 242, 244, 0.96) 58%, rgba(255, 255, 255, 0.98) 100%),
    var(--surface);
}

.page-header h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem);
  line-height: 1.02;
}

.page-header p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 0.87rem;
  line-height: 1.32;
}

.page-header .button-secondary,
.page-header .button-secondary:visited {
  min-height: var(--control-height-sm);
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

.card::before,
.page-header::before,
.hero::before,
.hero-card::before,
.portal-entry__hero::before,
.portal-login__brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("/branding/reprotest/photo.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card > *,
.page-header > *,
.hero > *,
.hero-card > *,
.portal-entry__hero > *,
.portal-login__brand-panel > * {
  position: relative;
  z-index: 1;
}

.hero::before,
.hero-card::before,
.portal-entry__hero::before,
.portal-login__brand-panel::before,
.page-header::before {
  opacity: 0.18;
}

.hero,
.hero-card,
.portal-entry__hero,
.portal-login__brand-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 240, 0.96) 54%, rgba(237, 242, 244, 0.96) 100%),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(118, 141, 153, 0.28);
}

.hero-card,
.filter-card,
.chart-card,
.table-grid,
.metric-grid {
  margin-top: var(--space-4);
}

.hero-card {
  display: grid;
  gap: 0.6rem;
}

.hero,
.hero-card {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.hero h1,
.hero-card h1,
.hero-card.compact h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem);
  line-height: 1.02;
}

.hero p:not(.eyebrow),
.hero-card p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 0.87rem;
  line-height: 1.32;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero .actions,
.hero-card .actions {
  margin-top: 0;
  align-self: center;
}

.hero .button-secondary,
.hero .button-secondary:visited,
.hero-card .button-secondary,
.hero-card .button-secondary:visited {
  min-height: var(--control-height-sm);
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand-500);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-lead {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.actions,
.filter-grid__actions,
.filter-actions,
.table-actions,
.section-nav,
.admin-nav,
.portal-form-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.actions {
  margin-top: var(--space-4);
}

.page-header .actions {
  margin-top: 0;
  align-self: center;
}

.actions--centered {
  justify-content: center;
}

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0.56rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(242, 99, 34, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(242, 99, 34, 0.24);
}

.button-secondary,
.button-secondary:visited {
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-900);
  border-color: rgba(118, 141, 153, 0.22);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.92);
}

.link,
.inline-link {
  color: var(--brand-500);
  text-decoration: none;
  font-weight: 600;
}

.link:hover,
.inline-link:hover {
  color: #d55317;
}

.issued-test-link {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
}

.issued-test-link strong {
  color: var(--brand-800);
  transition: color 0.18s ease;
}

.issued-test-link:hover,
.issued-test-link:focus-visible {
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.issued-test-link:hover strong,
.issued-test-link:focus-visible strong {
  color: var(--brand-600);
}

form {
  display: grid;
  gap: 0.65rem;
}

.field-group {
  display: grid;
  gap: 0.28rem;
}

label {
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(118, 141, 153, 0.22);
  border-radius: 0.8rem;
  min-height: var(--control-height);
  padding: 0.55rem 0.82rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(242, 99, 34, 0.7);
  box-shadow: 0 0 0 4px rgba(242, 99, 34, 0.12);
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #94a2aa;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  cursor: pointer;
}

.checkbox input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  border-radius: 0.35rem;
  accent-color: var(--brand-500);
  cursor: pointer;
}

.checkbox-row {
  margin-top: 0.5rem;
}

.checkbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(127, 151, 196, 0.28);
  border-radius: 0.9rem;
  background: rgba(248, 250, 253, 0.96);
}

.checkbox-card--compact {
  justify-content: center;
  min-width: 7.4rem;
}

.checkbox-card--stacked {
  align-items: flex-start;
  justify-content: flex-start;
}

.checkbox-card span {
  font-size: 0.92rem;
}

.checkbox-card__content {
  display: grid;
  gap: 0.08rem;
}

.checkbox-card__meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.bulk-selector {
  display: grid;
  gap: 0.55rem;
}

.bulk-selector__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bulk-selector__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.4rem;
  max-height: 13rem;
  overflow: auto;
  padding: 0.1rem;
}

.bulk-selector__list .checkbox-card {
  padding: 0.38rem 0.55rem;
  border-radius: 0.82rem;
}

.bulk-selector__list .checkbox input {
  width: 1rem;
  height: 1rem;
}

.bulk-selector__list strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.bulk-selector__list .checkbox-card__meta {
  font-size: 0.77rem;
  line-height: 1.25;
}

.bulk-issue-option.is-hidden {
  display: none;
}

.field-validation-error,
.error,
.error-list {
  color: var(--brand-700);
  font-weight: 600;
}

.error-list ul {
  margin: 0;
  padding-left: 1.2rem;
}

.message-strip,
.card-success {
  border: 1px solid rgba(242, 99, 34, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 240, 233, 0.94), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.92);
}

.message-strip {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.message-strip p {
  margin: 0;
  color: var(--ink-soft);
}

.result-state-card {
  border-color: rgba(53, 138, 94, 0.28);
  background:
    linear-gradient(90deg, rgba(232, 247, 238, 0.96), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
}

.result-state-card__title {
  margin: 0 0 0.22rem;
  color: #1f7a50;
  font-size: 1rem;
  font-weight: 700;
}

.result-state-card p {
  margin: 0;
  color: #355648;
}

.hint,
.table-muted,
.table-subtitle,
.table-caption,
.muted,
.nav-hint {
  color: var(--muted);
}

.card-form {
  max-width: 32rem;
  align-self: start;
}

.instruction-card {
  display: grid;
  gap: 0.75rem;
}

.instruction-card img {
  width: min(100%, 52rem);
  border-radius: 0.95rem;
  border: 1px solid rgba(92, 113, 183, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.instruction-card__caption {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.card-form > h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.1;
}

.card-form form {
  gap: 0.55rem;
}

.survey-form {
  gap: 0.75rem;
}

.survey-form__conditional {
  display: grid;
  gap: 0.6rem;
}

.issue-stack {
  display: grid;
  gap: 0.85rem;
  margin: 0.6rem 0 0.85rem;
}

.issue-inline-form {
  grid-template-columns: minmax(14rem, 1fr) minmax(16rem, 1.35fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.issue-inline-form__actions {
  display: flex;
  justify-content: flex-end;
}

.issue-inline-form__actions .button {
  min-width: 13.5rem;
}

.issue-bulk-form {
  gap: 0.75rem;
}

.issue-bulk-toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 1.35fr) minmax(14rem, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.issue-bulk-toolbar__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 0.1rem;
}

.issue-bulk-table-wrap {
  max-height: 17.5rem;
  overflow: auto;
}

.issue-bulk-table thead th:first-child,
.issue-bulk-table tbody td:first-child {
  width: 3rem;
  text-align: center;
}

.issue-bulk-table tbody td {
  vertical-align: middle;
}

.issue-bulk-table__check {
  justify-content: center;
}

.issue-bulk-table strong {
  font-size: 0.92rem;
}

.issue-bulk-form__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.issue-bulk-form__footer .hint {
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.info-grid dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.info-grid dd {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

.summary-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
}

.summary-grid {
  margin: 0.55rem 0 0.85rem;
}

.summary-tile,
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.summary-tile,
.metric-card {
  padding: 0.65rem 0.82rem;
}

.summary-tile span,
.metric-card span {
  display: block;
  color: var(--muted);
}

.summary-tile strong,
.metric-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink);
}

.summary-tile strong {
  font-size: 1.12rem;
}

.metric-card strong {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
}

.metric-card.accent {
  background:
    linear-gradient(135deg, rgba(73, 89, 101, 0.94), rgba(118, 141, 153, 0.88)),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(73, 89, 101, 0.24);
}

.metric-card.accent span,
.metric-card.accent strong {
  color: #ffffff;
}

.admin-nav-shell {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.admin-nav__link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-sm);
  padding: 0.42rem 0.76rem;
  border: 1px solid rgba(92, 113, 183, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.admin-nav__link.is-active,
.section-link.current {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(242, 99, 34, 0.2);
}

.grid-two,
.chart-grid,
.table-grid,
.portal-entry__grid,
.portal-login {
  display: grid;
  gap: var(--space-4);
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin: 0.6rem 0 0.85rem;
  align-items: start;
}

.chart-grid,
.table-grid {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.portal-entry {
  display: grid;
  gap: var(--space-4);
}

.portal-entry__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.85fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  min-height: 23rem;
}

.portal-entry__hero::after,
.portal-login__brand-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16rem;
  height: 8rem;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("/branding/reprotest/group-17.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
}

.portal-entry__brand {
  display: flex;
  align-items: center;
  justify-items: end;
  justify-content: end;
}

.portal-brandmark {
  width: min(100%, 20rem);
  padding: 0.9rem 1rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(118, 141, 153, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(73, 89, 101, 0.12);
}

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

.portal-access-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.25rem;
  min-height: 100%;
}

.portal-access-card .button,
.portal-access-card .button-secondary {
  margin-top: auto;
}

.portal-access-card--staff {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 249, 0.9)),
    rgba(255, 255, 255, 0.9);
}

.portal-login {
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 31rem);
  justify-content: center;
  align-items: stretch;
}

.portal-login__brand-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 100%;
  padding-bottom: 5.8rem;
}

.portal-login__logo {
  width: min(100%, 17rem);
  padding: 0.8rem 0.95rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(118, 141, 153, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(73, 89, 101, 0.12);
}

.portal-login__form {
  max-width: none;
}

.portal-form-links {
  justify-content: space-between;
  margin-top: var(--space-4);
}

.filter-grid,
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.filter-form {
  gap: 1rem;
}

.filter-groups {
  display: grid;
  gap: 0.75rem;
}

.pill-group {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}

.pill-group legend {
  padding: 0 0.45rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(231, 238, 242, 0.78);
  color: var(--ink-soft);
  cursor: pointer;
}

.pill-check input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: var(--brand-600);
  cursor: pointer;
}

.section-header,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 1.1rem;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  padding: 0.58rem 0.68rem;
  border-bottom: 1px solid rgba(92, 113, 183, 0.18);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  background: rgba(231, 238, 242, 0.56);
}

.data-table tbody td {
  padding: 0.58rem 0.68rem;
  border-bottom: 1px solid rgba(92, 113, 183, 0.1);
  text-align: left;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.45);
}

.data-table tbody tr:hover td {
  background: rgba(231, 238, 242, 0.6);
}

.inline-form {
  display: inline;
}

.bar-list {
  display: grid;
  gap: 0.75rem;
}

.bar-row {
  display: grid;
  gap: 0.35rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.bar-track {
  height: 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(193, 214, 224, 0.56);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-300));
}

.timeline-bars {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  min-height: 12rem;
  padding-top: 0.75rem;
  overflow-x: auto;
}

.timeline-bar {
  min-width: 2.85rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.timeline-column {
  width: 100%;
  border-radius: 0.85rem 0.85rem 0 0;
  background: linear-gradient(180deg, var(--brand-300) 0%, var(--brand-700) 100%);
}

.timeline-bar strong {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.timeline-bar small {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(231, 238, 242, 0.9);
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--inactive,
.status-badge--archived {
  background: rgba(231, 238, 242, 0.88);
  color: var(--muted);
}

.status-badge--active {
  background: rgba(193, 214, 224, 0.92);
  color: var(--brand-800);
}

.status-badge--blocked,
.status-badge--expired {
  background: rgba(82, 59, 127, 0.12);
  color: var(--brand-600);
}

.access-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.6rem;
}

.access-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(118, 141, 153, 0.24);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 238, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.access-card__label {
  margin: 0 0 0.55rem;
  color: var(--brand-500);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-card__body h3 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.access-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.access-card dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.access-card dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

.access-card__instructions {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(118, 141, 153, 0.16);
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(73, 89, 101, 0.9);
}

.access-card__instructions p {
  margin: 0;
}

.access-card__footer {
  margin-top: 1rem;
}

.action-stack {
  display: grid;
  gap: 0.6rem;
}

.actions-tight {
  margin-top: 0;
}

.logout-form {
  justify-items: center;
  margin-top: 2.35rem;
}

.print-preview {
  background: #ffffff;
}

.portal-entry-page .shell,
.portal-auth-page .shell {
  max-width: 84rem;
}

.portal-auth-page .site-main {
  min-height: calc(100vh - 14rem);
  align-content: center;
}

@media (max-width: 960px) {
  .portal-entry__hero,
  .portal-entry__grid,
  .portal-login {
    grid-template-columns: 1fr;
  }

  .portal-entry__brand {
    justify-items: start;
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 0.75rem 0.75rem 1.2rem;
  }

  .site-shell::before,
  .site-shell::after {
    opacity: 0.72;
  }

  .shell {
    padding-top: 0.8rem;
  }

  .card,
  .page-header {
    padding: 1rem;
  }

  .page-header,
  .section-header,
  .section-heading,
  .hero-content {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid,
  .metric-grid,
  .chart-grid,
  .table-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .issue-inline-form,
  .issue-bulk-toolbar {
    grid-template-columns: 1fr;
  }

  .issue-inline-form__actions,
  .issue-bulk-toolbar__actions {
    justify-content: flex-start;
  }

  .issue-bulk-form__footer {
    align-items: stretch;
  }

  .timeline-bars {
    min-height: 8rem;
  }

  .portal-form-links {
    flex-direction: column;
    align-items: start;
  }

  .portal-entry__hero::after,
  .portal-login__brand-panel::after {
    width: 11rem;
    height: 5rem;
    opacity: 0.14;
  }
}

.actions-tight .button,
.data-table .button,
.data-table .button:visited {
  min-height: var(--control-height-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  box-shadow: none;
}

.data-table .button-open-issue,
.data-table .button-open-issue:visited {
  min-width: 8.7rem;
  padding-inline: 0.95rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  box-shadow: 0 8px 18px rgba(242, 99, 34, 0.18);
}

.data-table .button-open-issue:hover,
.data-table .button-open-issue:focus-visible {
  box-shadow: 0 12px 22px rgba(242, 99, 34, 0.22);
}

@media print {
  body {
    background: #ffffff;
  }

  body::before,
  body::after,
  .site-footer,
  .no-print,
  .admin-nav-shell,
  .message-strip,
  .summary-grid,
  .filter-grid,
  .filters,
  .section-header,
  .section-heading,
  .actions,
  form,
  .table-card,
  .portal-entry__grid,
  .portal-login__aside {
    display: none !important;
  }

  .shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .card,
  .page-header {
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }

  .access-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
