:root {
  --brand: #2619d1;
  --navy: #002e6d;
  --slate: #334155;
  --gold: #f3c64d;
  --accent: #feaa04;
  --text: #0b1220;
  --muted: #334155;
  --muted-strong: #374151;
  --border: #d1d5db;
  --border-soft: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --focus: #0b63ce;

  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #fcfcfc;
  color: var(--text);
  font-family:
    Inter,
    "Public Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid var(--focus);
  border-radius: 4px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
}

.gov-banner {
  border-top: 4px solid var(--navy);
  background: #f3f4f6;
  color: #111827;
  font-size: 12px;
}

.gov-banner-inner {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
}


.container {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.container-wide {
  width: min(1100px, calc(100% - 32px));
}

.container-xl {
  width: min(1200px, calc(100% - 32px));
}

.site-header {
  border-bottom: 1px solid #dfe1e2;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  gap: 16px;
}

.header-right {
  margin-left: auto;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2937;
  white-space: nowrap;
}

.lang-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
}

.lang-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-link[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.lang-sep {
  color: #6b7280;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-text {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.2px;
  font-size: 20px;
}

.brand-link {
  text-decoration: none;
}

.brand-mark {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  display: block;
}


.brand-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  background: #ffffff;
  border: 2px solid #9ca3af;
  text-decoration: none;
}

.header-button:hover {
  border-color: #6b7280;
  background: #f9fafb;
}

.header-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.main {
  padding: 32px 0 48px;
}

.login-main {
  padding: 28px 0 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Prevent login-card from stretching to full height */
  background: linear-gradient(
    to bottom,
    #f1f5f9 0%,
    #f1f5f9 30%,
    #ffffff 30%,
    #ffffff 100%
  );
}

.login-card {
  width: min(560px, calc(100% - 32px));
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 48px;
  margin-top: -24px; /* Straddle the two-tone background split */
}

.login-card .field label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.login-card .field input {
  border-color: #cbd5e1;
  border-width: 2px;
}

.login-card .field input:focus-visible {
  outline: none;
  outline-offset: 0;
  border-color: var(--navy);
  /* Subtle 2px outer ring */
  box-shadow: 0 0 0 2px rgba(0, 46, 109, 0.18);
}

.login-field {
  margin-top: 0;
}

.login-field-password {
  margin-top: 12px;
}

.field-icon-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.field-icon svg {
  width: 18px;
  height: 18px;
}

.field-icon-wrap input {
  padding-left: 42px; /* 12px icon->text spacing (12 left + 18 icon + 12 gap) */
}

.login-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.login-description {
  margin: 10px 0 18px;
  color: #475569;
  font-size: 15px;
}

.login-recovery {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.forgot-link {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
}

.forgot-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.forgot-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  margin-top: 14px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.login-divider-line {
  height: 1px;
  flex: 1 1 auto;
  background: #e5e7eb;
}

.login-divider-text {
  font-size: 13px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.login-fed-btn {
  width: 100%;
  text-align: center;
  margin-top: 0;
}

.login-submit {
  min-height: 48px;
  height: 48px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.login-submit.button-primary:hover {
  background: var(--navy);
}

.login-gov-btn {
  min-height: 48px;
  height: 48px;
  font-weight: 600;
  gap: 12px;
  justify-content: center;
  border-radius: 4px;
}

.login-gov-logo {
  height: 18px;
  width: auto;
  display: block;
}

.login-gov-text {
  font-size: 15px;
  color: inherit;
}

/* Prevent the generic .button-secondary hover from overpowering */
.login-gov-btn.button-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: #d1d5db;
  border-width: 1px; /* thin outline */
}

.login-gov-btn.button-secondary:hover {
  background: #ffffff;
  color: var(--navy);
  border-color: #cbd5e1;
}

.login-gov-btn.button-secondary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.login-gov-btn {
  font-size: 16px;
}

.login-gov-btn .login-gov-text {
  font-weight: 600;
}

@media (min-width: 768px) {
  .login-main {
    padding: 56px 0 72px;
  }

  .login-card {
    padding: 48px;
  }
}

.hero {
  padding: 4rem 0;
  background: #f0f4f8;
}

.hero-inner {
  text-align: left;
  max-width: 1120px;
  margin-inline: auto;
}

.breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb-inner {
  padding: 6px 0;
  font-size: 12px;
  color: #6b7280;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.hero-copy {
  max-width: 62ch;
  position: relative;
}

.hero-title {
  margin: 14px 0 0;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title strong {
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  max-width: none;
  font-size: 17px;
  color: var(--muted);
}

.hero {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
  background-color: #f0f4f8;
}

.coverage {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
  max-width: 62ch;
  color: #334155;
}

.coverage-text {
  display: flex;
  flex-direction: column;
}

.coverage-map {
  display: block;
  width: 360px;
  flex: 0 0 auto;
  opacity: 1;
}

.coverage-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}

.coverage-map-browse {
  margin: 6px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.coverage-map img {
  width: 360px;
  height: auto;
  display: block;
  opacity: 1;
}

.coverage-map svg {
  width: 360px;
  height: auto;
  display: block;
  opacity: 1;
}

.coverage-map svg path {
  cursor: pointer;
}

.us-map-inline path.state:hover {
  fill: #feaa04 !important;
}

.us-map-inline path.state:focus-visible {
  fill: #feaa04 !important;
}

.map-tooltip {
  position: fixed;
  z-index: 9999;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, -12px);
  max-width: 260px;
}

.coverage-caption {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.finder {
  margin: 14px auto 0;
  max-width: 980px;
  text-align: left;
  background: #fcfcfc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  box-shadow: none;
}

.finder-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #111827;
  text-transform: uppercase;
}

.finder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.field-required {
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
  font-weight: 700;
}

.req-asterisk {
  color: var(--accent);
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 2px solid #cbd5e1;
  border-radius: 2px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
}

.field-icon-wrap input {
  /* Overrides the global .field input padding-left so text never collides with the icon. */
  padding-left: 40px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.field-action {
  display: flex;
  align-items: end;
}

.secondary-actions {
  margin: 10px 0 0;
  font-size: 13px;
  color: #374151;
}

.secondary-actions a {
  color: #1f2937;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary-actions a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.secondary-label {
  font-weight: 700;
}

.secondary-sep {
  margin: 0 6px;
}

.primary-actions {
  padding: 18px 0 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 8px;
}

.cards.cards-compact {
  margin-top: 16px;
}

.cards-compact {
  max-width: 860px;
  margin-inline: auto;
}

.cards-compact .card {
  padding: 1.75rem;
}

.cards-compact .card-desc {
  font-size: 14px;
}

.cards-compact .button {
  width: 100%;
}

.card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2.5rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.card-desc {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}

.card-steps {
  margin: 0 0 14px;
  padding-left: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.4;
  counter-reset: step;
  list-style: none;
}

.card-steps li {
  margin: 6px 0;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}

.card-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  width: 100%;
  cursor: pointer;
}

.button[disabled] {
  cursor: not-allowed;
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button-primary {
  background: var(--navy);
  color: #ffffff;
  border-top-color: transparent;
}

.button-primary:hover {
  background: #000000;
}

/* Keep "Log In" clearly primary on the login page */
.login-submit.button-primary:hover {
  background: var(--navy);
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  border-width: 2px;
}

.button-secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.btn-chevron {
  margin-left: 10px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-loading .btn-text,
.btn-loading .btn-chevron {
  display: none;
}

.btn-loading .btn-spinner {
  display: inline-flex;
}

.btn-loading.button {
  background: var(--navy) !important;
  color: #ffffff !important;
  border-color: var(--navy) !important;
}

.button-search {
  background: var(--slate);
  color: #ffffff;
  width: 100%;
  height: 44px;
  min-width: 140px;
  gap: 10px;
}

.button-search:hover {
  background: #000000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.search-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-btn-icon svg {
  width: 18px;
  height: 18px;
}

.vendor-bar {
  margin-top: 6px;
  margin-bottom: 14px;
  background: #f8f9fa;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.vendor-bar-inner {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vendor-bar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #4b5563;
  font-weight: 900;
  font-size: 12px;
  cursor: help;
}

.vendor-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 240px;
  max-width: 70vw;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 50;
}

.vendor-info:hover .vendor-tooltip,
.vendor-info:focus-visible .vendor-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.vendor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.vendor-logo {
  max-height: 44px;
  height: 44px;
  width: auto;
  filter: grayscale(100%) brightness(1.12) contrast(0.95);
  opacity: 0.75;
  display: block;
  transition: filter 140ms ease, opacity 140ms ease;
}

.vendor-logo:hover {
  opacity: 1;
}

.vendor-logo[alt="JPay"] {
  filter: grayscale(100%) brightness(1.05) contrast(0.92);
}

.vendor-logo[alt="ViaPath"] {
  filter: grayscale(100%) brightness(1.2) contrast(1.02);
}

.vendor-logo[alt="SecurePak"] {
  filter: grayscale(100%) brightness(1.1) contrast(0.98);
}

.vendor-logo[alt="Securus"] {
  filter: grayscale(100%) brightness(1.12) contrast(0.99);
}

.vendor-logo[alt="iCare"] {
  filter: grayscale(100%) brightness(1.12) contrast(0.99);
}

.vendor-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  height: 44px;
  box-sizing: border-box;
}

.vendor-logos > * {
  padding: 0 18px;
}

.vendor-logos > *:not(:first-child) {
  border-left: 1px solid #e5e7eb;
}

.vendor-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vendor-carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  position: relative;
  min-height: 56px;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.vendor-carousel-track {
  display: flex;
  width: max-content;
  gap: 60px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  align-items: center;
  animation: vendor-carousel-scroll 30s linear 1 forwards;
  will-change: transform;
}

.vendor-carousel-group {
  display: flex;
  align-items: center;
  gap: 60px;
  flex: 0 0 auto;
}

.vendor-carousel:hover .vendor-carousel-track,
.vendor-carousel:focus-within .vendor-carousel-track {
  animation-play-state: paused;
}

.vendor-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.vendor-carousel-fade--left {
  left: 0;
  background: linear-gradient(to right, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.vendor-carousel-fade--right {
  right: 0;
  background: linear-gradient(to left, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

@keyframes vendor-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-carousel-track {
    animation: none;
  }
}

/* ------------------------------ */
/* Get Started (Sign Up) Page */
/* ------------------------------ */
.signup-main {
  padding: 24px 0 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.signup-layout {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  justify-items: center;
}

.signup-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 38px;
  max-width: 384px;
  width: min(384px, calc(100% - 32px));
}

.signup-card .button {
  min-height: 38px;
}

.step3-card {
  margin-top: 44px;
  position: relative;
  padding-bottom: 92px; /* space for the absolute footer link */
}

.signup-fed-header {
  margin-bottom: 0;
}

.signup-fed-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.signup-fed-bar {
  height: 4px;
  width: 100%;
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.signup-fed-seg {
  flex: 1 1 0;
  height: 4px;
  background: #e2e8f0;
}

.signup-fed-seg--active {
  background: #002e6d;
}

.signup-fed-header .signup-or-divider {
  margin: 24px 0;
}

.signup-step-indicator {
  margin-bottom: 28px;
}

.signup-step-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 4px;
  max-width: 320px;
}

.signup-step-list::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 1px;
  background: #e5e7eb;
}

.signup-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.signup-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
  line-height: 1;
}

.signup-step-label {
  display: block;
  font-weight: 700;
  color: inherit;
}

.signup-login-gov-btn.button-secondary {
  background: #ffffff;
  border-color: #d73a49;
  border-width: 2px;
  color: #d73a49;
  height: 48px;
  border-radius: 4px;
  margin-bottom: 0;
  text-decoration: none;
  width: 100% !important;
}

.signup-login-gov-btn.button-secondary:hover {
  background: #ffffff;
  border-color: #d73a49;
  color: #d73a49;
}

.signup-or-divider {
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.signup-or-divider::before,
.signup-or-divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
  flex: 0 0 42px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 44px;
}

.signup-input--invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
}

#signupPassword.signup-input--invalid:focus-visible,
#signupConfirmPassword.signup-input--invalid:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
}

.password-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-eye:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.password-eye-icon--hidden {
  display: none;
}

.password-eye svg {
  width: 18px;
  height: 18px;
}

.signup-step--active,
.signup-step--active .signup-step-circle,
.signup-step--active .signup-step-circle,
.signup-step--active .signup-step-label {
  color: #111827;
}

.signup-step--active .signup-step-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.signup-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.signup-description {
  margin: 10px 0 26px;
  color: #475569;
  font-size: 15px;
}

.signup-trust-box {
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  background: #f8fafc;
  padding: 16px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.password-strength {
  margin: 8px 0 10px;
}

.password-strength-track {
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 100%;
  background: #e5e7eb;
}

.password-strength-fill.is-green {
  background: #22c55e;
}

.password-strength-fill.is-yellow {
  background: #f59e0b;
}

.password-strength-fill.is-red {
  background: #ef4444;
}

.password-requirements {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, max-height 180ms ease;
}

.password-requirements.password-requirements--show {
  opacity: 1;
  max-height: 220px;
  pointer-events: auto;
}

.password-requirement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.password-requirement-check {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
  position: relative;
  flex: 0 0 auto;
}

.password-requirement-check::after {
  content: none;
}

.password-requirement.is-met {
  color: #16a34a;
  font-weight: 700;
}

.password-requirement.is-met .password-requirement-check {
  background: #22c55e;
  border-color: #22c55e;
}

.signup-already {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.signup-login-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-card-footer {
  margin-top: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* ------------------------------ */
/* Step 2 — Inmate ID Search */
/* ------------------------------ */
.step2-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.step2-group {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center Label + Input + Button */
  align-items: stretch;
}

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

.step2-seg {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 999px;
  margin-bottom: 16px;
}

.step2-seg-btn {
  flex: 1 1 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.step2-seg-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.step2-view {
  width: 100%;
}

.step2-how {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Container for Search Results + Empty state message */
.step2-results-area {
  margin-top: 24px;
  width: 100%;
}

.step2-how-col {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.step2-how-title {
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
}

.step2-how-text {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.step2-view--federal .field {
  margin-top: 0;
}

.step2-view .field label {
  font-weight: 600;
  color: #374151;
}

.step2-view .field input,
.step2-view .field select {
  height: 38px;
  font-size: 14px;
  padding: 8px 12px;
  line-height: 1.2;
}

.step2-request-link-wrap {
  margin: 8px 0 0;
  text-align: left;
}

.step2-request-link {
  color: #64748b;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step2-subtext {
  margin: 10px 0 48px;
}

.step2-field {
  margin-top: 0;
}

.step2-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.step2-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.step2-find-link {
  position: absolute;
  right: 8px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  max-width: 130px;
}

.step2-find-link--button {
  text-decoration: none;
}

.step2-search-btn {
  width: 100%;
  margin-top: 16px;
  height: 38px;
  border-radius: 2px !important;
}

.step2-search-btn.btn-loading {
  animation: step2-btn-pulse 0.9s ease-in-out infinite;
}

@keyframes step2-btn-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.step2-messages {
  margin-top: 0;
}

.step2-error {
  margin-top: 16px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
}

.step2-result-card {
  background: #f0f3f5;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 20px;
  margin-top: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.step2-result-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step2-result-left,
.step2-result-mid,
.step2-result-right {
  display: flex;
  flex-direction: column;
}

.step2-result-name {
  color: var(--navy);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.step2-result-idline {
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.step2-result-facility {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}

.step2-status-badge {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  font-size: 12px;
}

.step2-result-card.is-verified {
  border-color: var(--navy);
}

.step2-result-card:hover {
  border-color: #93c5fd;
}

.step2-result-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step2-result-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.step2-profile-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step2-profile-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step2-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.step2-profile-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--navy);
}

.step2-profile-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step2-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step2-profile-name {
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: "Arial Narrow", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-stretch: condensed;
}

.step2-identity-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.step2-identity-verified svg {
  width: 16px;
  height: 16px;
}

.step2-identity-verified.is-hidden {
  display: none;
}

.step2-profile-idline {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step2-result-meta-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.step2-meta-dot {
  color: #94a3b8;
  font-weight: 900;
}

.step2-result-facility-line {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

.step2-facility-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--navy);
}

.step2-result-actions {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.step2-confirmation {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none;
}

.step2-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe2ea;
}

.step2-record-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.step2-record-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.step2-image-not-available {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.step2-image-not-available::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 74px;
  height: 74px;
  background: #cbd5e1;
  transform: rotate(-25deg);
  opacity: 0.9;
}

.step2-image-not-available-text {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: #64748b;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
}

.step2-metadata-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2px;
}

.step2-metadata-cell {
  padding: 10px 10px;
}

.step2-metadata-cell--divider {
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.step2-metadata-value {
  display: grid;
  gap: 4px;
}

.step2-metadata-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.step2-metadata-value span:not(.step2-metadata-label) {
  font-size: 13px;
  color: #64748b;
  font-weight: 800;
}

.step2-record-release-line {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  font-weight: 800;
}

.step2-institution-footer {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  font-size: 11px;
  color: #64748b;
  font-weight: 900;
}

.step2-record-verified-note {
  margin-top: 0;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.step2-result-meta {
  margin-top: 8px;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.step2-result-release {
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
}

.step2-connect-btn {
  width: 100% !important;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 2px !important;
  background: var(--navy) !important;
  color: #ffffff !important;
  border: 2px solid var(--navy) !important;
}

.step2-results-list {
  display: grid;
  gap: 16px;
}

.step2-skeleton {
  display: grid;
  gap: 12px;
}

.step2-skeleton-card {
  height: 84px;
  border-radius: 8px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.step2-skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: step2-shimmer 1s infinite;
}

@keyframes step2-shimmer {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(250%);
  }
}

.step2-notfound {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.step2-contact-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
}

/* ------------------------------ */
/* Step 3 — Security & Verification */
/* ------------------------------ */
.step3-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step3-std-group {
  width: min(400px, 100%);
}

.step3-security-terminal,
.step3-alert,
.step3-complete-area,
.step3-linked-box {
  width: 100%;
}

.step3-subtext {
  margin: 10px 0 24px;
}

.step3-linked-box {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 16px 14px;
  margin-bottom: 32px;
  position: relative;
}

.step3-linked-box::before,
.step3-linked-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.step3-linked-box::before {
  top: 0;
}

.step3-linked-box::after {
  bottom: 0;
}

.step3-linked-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.step3-linked-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #334155;
}

.step3-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.step3-verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}

.step3-field label {
  font-weight: 600;
  color: #374151;
}

.step3-send-code {
  margin-top: 12px;
  width: 100%;
  height: 38px;
}

.step3-attestation {
  margin-top: 16px;
}

.step3-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.step3-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.step3-checkbox-text {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step3-complete-btn {
  margin-top: 20px;
  height: 38px;
  width: 100%;
  position: relative;
}

.step3-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.step3-lock svg {
  display: block;
}

.step3-btn-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  transition: none;
  border-radius: 2px;
}

.step3-btn-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
}

.step3-btn-progress[aria-hidden="true"] {
  display: block;
}

.step3-security-terminal {
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
}

.step3-linked-box {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 16px 14px;
  margin-bottom: 32px;
  position: relative;
}

.step3-linked-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.step3-linked-icon {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.step3-linked-center {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Arial Narrow", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-stretch: condensed;
  font-size: 13px;
  color: #334155;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step3-linked-name {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.step3-linked-meta {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
  line-height: 1.2;
}

.step3-linked-right {
  margin-left: auto;
  flex: 0 0 auto;
}

.step3-connected-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.step3-otp-area {
  margin-top: 12px;
}

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

.step3-otp-timer {
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  margin-bottom: 10px;
}

.step3-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.step3-otp-digit {
  width: 36px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.step3-otp-digit:focus {
  outline: none;
  border-color: var(--navy);
}

.step3-alert {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px;
  margin-top: 16px;
}

.step3-alert-title {
  font-size: 11px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step3-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.step3-checkbox-text {
  font-size: 13px;
  color: #374151;
}

.step3-complete-area {
  margin-top: 40px;
}

.step3-auth-footer {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  font-weight: 700;
  text-decoration: underline;
  max-width: 420px;
}

.step3-attestation.is-locked {
  opacity: 0.5;
}

.step3-complete-btn.is-locked {
  opacity: 0.5;
}

.step3-auth-footer:hover {
  color: #64748b;
}

.step3-learn-more {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.step3-learn-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step3-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step3-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  border-radius: 999px;
  position: relative;
}

.step3-help-icon:hover {
  color: var(--navy);
}

.step3-help-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.step3-complete-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Back-compat older Step 2 result styles */
.step2-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ------------------------------ */
/* Confirm Selection (Step 2) */
/* ------------------------------ */
.step2-confirmation {
  display: grid;
  gap: 14px;
}

/* ------------------------------ */
/* Profile / Case File Page */
/* ------------------------------ */
.profile-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 56px;
  background: #f2f4f6;
  min-height: auto;
  font-family: inherit;
}

.profile-unified-container {
  width: min(900px, calc(100% - 32px));
}

.profile-casefile-card--unified {
  background: #ffffff;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: unset;
}

.mono {
  font-family:
    "IBM Plex Mono",
    "Roboto Mono",
    "JetBrains Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 13px;
}

.profile-federal-section-title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 22px 0 12px;
}

.profile-prescription-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  padding: 24px;
}

.profile-prescription-title {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.profile-prescription-item {
  margin-top: 10px;
  font-weight: 900;
  color: #0f172a;
  font-size: 14px;
}

.profile-prescription-specs {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.profile-prescription-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.profile-prescription-spec-head {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  text-align: center;
  background: #f8fafc;
}

.profile-prescription-spec-value {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  padding: 12px 0;
  text-align: center;
  background: #ffffff;
}

.profile-prescription-spec-row + .profile-prescription-spec-row {
  border-top: 1px solid #e2e8f0;
}

.profile-prescription-spec-row > :nth-child(2) {
  border-left: 1px solid #e2e8f0;
}

.profile-prescription-spec-row > :nth-child(3) {
  border-left: 1px solid #e2e8f0;
}

.profile-provider-info {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.profile-provider-source {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
}

.profile-unified-footer {
  position: static;
  background: #f9fafb;
  padding: 14px 24px;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 4px 4px;
  margin-top: auto;
}

.profile-unified-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  color: #334155;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.profile-unified-footer-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-unified-footer-validity {
  text-align: center;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.profile-unified-container {
  width: min(900px, calc(100% - 32px));
}

.profile-casefile-card--unified {
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: unset;
  overflow: visible;
}

.profile-box {
  padding: 24px;
}

.profile-casefile-card--unified .profile-box {
  border-radius: 4px;
}

.profile-record-summary {
  border: 1px solid #e2e8f0;
  margin: 20px;
  background: #ffffff;
}

.profile-record-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-record-labelblock {
  display: grid;
  gap: 8px;
}

.profile-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.profile-account-value {
  font-weight: 900;
  color: #334155;
  font-size: 13px;
}

.profile-in-custody-pill {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-record-subject {
  margin-top: 16px;
}

.profile-subject-name {
  margin-top: 10px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.profile-subject-grid {
  margin-top: 12px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-subject-sep {
  color: #94a3b8;
}

.profile-card-header-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 16px;
  margin: -24px -24px 16px;
}

.profile-chart-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin: 0 20px 20px;
}

.profile-matrix-grid {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.profile-matrix-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.profile-matrix-head > div {
  padding: 12px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  border-top: 1px solid #e2e8f0;
}

.profile-matrix-row > div {
  padding: 12px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.status-approved {
  color: #166534;
}

.status-restricted {
  color: #b45309;
}

.profile-marketplace-action {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin: 0 20px 20px;
}

.profile-marketplace-action-text {
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

.profile-marketplace-btn {
  margin-top: 16px;
  height: 48px;
  border-radius: 2px;
}

.profile-unified-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  text-align: center;
  position: static;
  margin-top: auto;
}

.profile-unified-footer-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.profile-unified-footer-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-hipaa-shield {
  color: var(--navy);
}

.profile-unified-footer-validity {
  margin-top: 6px;
  color: #64748b;
  font-weight: 900;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 900px) {
  .profile-record-summary,
  .profile-chart-card,
  .profile-marketplace-action {
    margin-left: 12px;
    margin-right: 12px;
  }
  .profile-card-header-row {
    margin-left: -24px;
    margin-right: -24px;
  }
}

.step2-confirm-header {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.step2-confirm-profile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step2-confirm-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
}

.step2-confirm-avatar svg {
  width: 34px;
  height: 34px;
  color: var(--navy);
}

.step2-confirm-right {
  flex: 1 1 auto;
}

.step2-confirm-name {
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.step2-confirm-idline {
  margin-top: 6px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

.step2-confirm-warning {
  margin-top: 12px;
  border-radius: 6px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 12px;
}

.step2-confirm-warning-title {
  font-weight: 900;
  color: #92400e;
  font-size: 13px;
}

.step2-confirm-warning-text {
  margin-top: 6px;
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.step2-confirm-actions {
  display: grid;
  gap: 10px;
}

.step2-confirm-next {
  width: 100%;
}

.step2-confirm-back-link {
  width: fit-content;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  text-decoration: none;
  justify-self: start;
}

.step2-confirm-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step2-confirm-facility {
  margin-top: 10px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

.step2-result-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step2-inmate-name {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.step2-step2-meta {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.step2-facility-name {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.step2-link-btn {
  width: auto;
  min-width: 140px;
  padding: 0 16px;
  border-radius: 4px;
}

.step2-privacy-footer {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* Modal */
.step2-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.step2-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.step2-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.step2-modal-panel {
  position: relative;
  width: min(460px, calc(100% - 32px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 18px;
}

.step2-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.step2-modal-link-btn {
  width: 100%;
}

.step2-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.step2-confirm-subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.step2-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.step2-modal-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.step2-modal-close {
  margin-top: 14px;
  width: 100%;
}

.step2-input-wrap {
  position: relative;
}

.step2-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.step2-input-wrap input {
  width: 100%;
  height: 38px;
  padding-left: 44px;
  padding-right: 120px; /* Keeps text away from the helper link */
  font-size: 14px;
  line-height: 1.2;
}

/* Inmate ID helper ("Where can I find this?") should sit under input */
.step2-field--id .step2-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.step2-field--id .step2-input-wrap input {
  height: 38px;
  padding-right: 12px; /* room for text when helper is not overlayed */
  align-self: stretch;
}

.step2-field--id .step2-input-wrap input {
  padding-left: 12px;
}


.step2-field--id .step2-find-link {
  position: static;
  right: auto;
  bottom: auto;
  margin-top: 8px;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.step2-field--id .step2-find-link span {
  overflow: visible;
  text-overflow: clip;
}

.step2-view .field select {
  padding-top: 8px;
  padding-bottom: 8px;
}

.step2-find-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step2-info-icon {
  color: #64748b;
  display: block;
}

.step2-find-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-submit {
  height: 48px;
  border-radius: 2px;
  width: 100% !important;
  margin-top: 32px;
}

.signup-card .field label {
  font-weight: 600;
  color: #374151;
  margin-top: 0;
}

@media (min-width: 768px) {
  .signup-layout {
    grid-template-columns: 1fr;
  }
}

.vendor-text {
  height: 24px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(17, 24, 39, 0.55);
  text-transform: none;
  user-select: none;
}

.card {
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.card:hover {
  border-color: var(--navy);
}

.footer-updated {
  color: #e5e7eb;
}

.system-notice {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #002e6d;
  background: #eff6ff;
  color: #0f172a;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.system-notice strong {
  font-weight: 800;
}

.trust {
  margin-top: 14px;
  padding-top: 10px;
  text-align: center;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 13px;
}

.trust-list li {
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M16.8%205.6a1%201%200%200%201%200%201.4l-7.6%207.6a1%201%200%200%201-1.4%200L3.2%2010a1%201%200%200%201%201.4-1.4l3.5%203.5%206.9-6.9a1%201%200%200%201%201.8.4z%27%20fill%3D%27%23000%27/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M16.8%205.6a1%201%200%200%201%200%201.4l-7.6%207.6a1%201%200%200%201-1.4%200L3.2%2010a1%201%200%200%201%201.4-1.4l3.5%203.5%206.9-6.9a1%201%200%200%201%201.8.4z%27%20fill%3D%27%23000%27/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.site-footer {
  border-top: 2px solid var(--accent);
  background: #242d35;
}

.footer-inner {
  padding: 28px 0 18px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f9fafb;
}

.hipaa-badge {
  margin-top: 4px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 5 / 3;
  max-width: 100%;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hipaa-badge iframe,
.hipaa-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.footer-text {
  margin: 0;
  font-size: 13px;
  color: #e5e7eb;
}

.footer-link {
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 231, 235, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #e5e7eb;
  font-size: 13px;
}

.footer-social-label {
  font-weight: 800;
  color: #f9fafb;
}

@media (min-width: 768px) {
  .main {
    padding: 44px 0 64px;
  }

  .finder {
    padding: 22px;
  }

  .finder-grid {
    grid-template-columns: 1fr 220px;
    align-items: end;
  }

  .field-action {
    grid-column: 1 / -1;
  }

  .hero-grid {
    grid-template-columns: 1fr 520px;
    gap: 28px;
    align-items: start;
  }

  .hero-copy {
    padding-right: 12px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
  }

  .card {
    padding: 2.5rem;
  }

  .button {
    width: auto;
    min-width: 180px;
  }

  .cards-compact .button {
    width: auto;
  }

  .cards-compact .button {
    min-width: 220px;
  }

  .trust-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ------------------------------ */
/* Full-width Federal Service Portal (Profile) */
/* ------------------------------ */
.profile-portal-page {
  /* Match the home page baseline background tone */
  background: #fcfcfc;
  border-top: 0;
}

/* Infrastructure-grade: no floating depth/shadows */
.profile-portal-page * {
  box-shadow: none !important;
}

.profile-portal-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px;
}

/* ----------------------------------- */
/* Two-Tier Header (Modern Federal)    */
/* ----------------------------------- */
.profile-portal-header {
  width: 100%;
  background: #f8fafc;
}

.profile-portal-tier1 {
  height: 48px;
  background: #112e51;
  color: #ffffff;
}

.profile-portal-tier1-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-portal-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.profile-portal-logo-white {
  display: block;
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.profile-portal-tier1-breadcrumb {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-portal-tier1-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-portal-tier1-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.profile-portal-tier1-action-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.profile-portal-tier2 {
  height: 64px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.profile-portal-tier2-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-portal-tier2-left {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-portal-recipient-label {
  font-weight: 900;
}

.profile-portal-tier2-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-portal-status-tag {
  background: #166534;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-portal-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #166534;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-portal-status-dot-indicator {
  width: 6px;
  height: 6px;
  background: #166534;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

.profile-portal-eligible-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #166534;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-portal-eligible-bullet {
  color: #166534;
  font-size: 14px;
  line-height: 1;
}

.profile-portal-settings-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.profile-portal-unified-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  height: 72px;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.profile-portal-unified-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-portal-unified-center {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.profile-portal-unified-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.profile-portal-unified-identity {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.profile-portal-status-pill {
  background: #dcfce7;
  color: #166534;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.profile-portal-main {
  background: transparent;
  padding: 0;
}

.profile-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
  height: 64px;
}

/* When we add the site header + breadcrumb above, the portal top bar should scroll normally. */
.profile-portal-page .profile-portal-topbar {
  position: relative;
  top: auto;
  z-index: auto;
  box-shadow: none;
}

.profile-portal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  height: 64px;
}

.profile-portal-topbar-left {
  font-weight: 800;
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-portal-topbar-center {
  font-weight: 800;
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

.profile-portal-topbar-right {
  border: 1px solid #0f3d24;
  background: #14532d;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.profile-portal-grid {
  display: grid;
  /* Expand horizontally; keep borders touching (gap: 0) */
  /* Inmate record wider, but keep Actions comfortably wide */
  grid-template-columns: minmax(320px, 420px) minmax(420px, 520px) 1fr;
  width: 100%;
  gap: 0;
  align-items: start;
}

.profile-portal-col {
  padding: 16px 16px 20px;
  background: #ffffff;
}

.profile-portal-col--left {
  background: #f8fafc;
  border-radius: 2px;
}

.profile-portal-col--left {
  border-right: 1px solid #e2e8f0;
}

.profile-portal-col--right {
  border-left: 1px solid #e2e8f0;
  min-width: 300px;
}

.profile-portal-col-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 10px;
}

.profile-portal-bio-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #d1d5db;
}

.profile-portal-bio-row:last-child {
  border-bottom: 0;
}

.profile-portal-bio-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.profile-portal-bio-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: left;
}

.profile-portal-left-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-portal-left-header .profile-portal-col-title {
  margin-bottom: 0;
}

.profile-portal-identity-icon {
  color: var(--navy);
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.profile-portal-inmate-avatar {
  width: 78px;
  height: 78px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002e6d;
  margin-bottom: 14px;
  overflow: hidden;
}

.profile-portal-inmate-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Center face crop within the circle */
  object-position: 50% 36%;
  display: block;
}

.profile-portal-bio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-portal-bio-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #d1d5db;
}

.profile-portal-bio-item:last-child {
  border-bottom: 1px solid #d1d5db;
}

.profile-portal-bio-row-simple {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
  margin-top: 0;
  border-top: 0;
  border-bottom: 0;
}

.profile-portal-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #f3f4f6;
  color: #112e51;
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-portal-history-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
}

.profile-portal-history-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-portal-prescription-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-portal-download-pdf-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 2px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-portal-download-pdf-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-portal-download-pdf-btn:hover {
  background: #f0f7ff;
  border-color: #002e6d;
}

.profile-portal-sync-timestamp {
  margin-top: auto;
  align-self: flex-end;
  font-size: 11px;
  font-weight: 900;
  color: #9ca3af;
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family:
    "IBM Plex Mono",
    ui-monospace,
    "JetBrains Mono",
    "Roboto Mono",
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  text-align: right;
}

.profile-portal-system-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #22c55e;
  flex-shrink: 0;
  animation: profile-portal-pulse 1.6s ease-in-out infinite;
}

@keyframes profile-portal-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

.profile-portal-restrictions-callout {
  margin-top: 12px;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  background: #fff7ed;
  border-radius: 4px;
  padding: 14px 14px;
}

.profile-portal-restrictions-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-top: 10px;
}

.profile-portal-medical-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-portal-medical-title-row .profile-portal-restrictions-inline {
  margin-top: 0;
}

.profile-portal-clinical-col {
  display: flex;
  flex-direction: column;
}

.profile-portal-restrictions-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.profile-portal-restrictions-info-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-portal-restrictions-info-btn:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

.profile-portal-restrictions-tooltip {
  display: none;
  position: absolute;
  left: 28px;
  top: -6px;
  max-width: 360px;
  width: max-content;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  z-index: 20;
}

.profile-portal-restrictions-inline:hover .profile-portal-restrictions-tooltip,
.profile-portal-restrictions-inline:focus-within .profile-portal-restrictions-tooltip {
  display: block;
}

.profile-portal-restrictions-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c2d12;
  margin-bottom: 6px;
}

.profile-portal-restrictions-text {
  font-size: 13px;
  font-weight: 700;
  color: #7c2d12;
  line-height: 1.35;
}

.profile-portal-inventory {
  max-width: 800px;
  margin: 16px auto 0;
}

.profile-portal-inventory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-portal-inventory-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.profile-portal-inventory-list-item:nth-child(odd) {
  background: #ffffff;
}

.profile-portal-inventory-list-item:nth-child(even) {
  background: #f8fafc;
}

.profile-portal-inventory-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-portal-inventory-thumb svg {
  width: 12px;
  height: 12px;
}

.profile-portal-inventory-thumb--pending {
  color: #94a3b8;
}

.profile-portal-inventory-thumb .inventory-icon-active {
  stroke: #166534 !important;
}

.profile-portal-inventory-thumb--pending .inventory-icon-active {
  stroke: #d97706 !important;
}

.profile-portal-inventory-thumb svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-portal-inventory-list-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-portal-inventory-status {
  font-size: 12px;
  font-weight: 800;
  color: #166534;
}

.profile-portal-inventory-status--pending {
  color: #b45309;
}

.profile-portal-medical-two-col {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 10px;
  align-items: stretch;
}

.profile-portal-medical-two-col .profile-portal-inventory {
  max-width: none;
  margin: 0;
}

.profile-portal-medical-two-col .profile-portal-medical-title {
  margin-bottom: 14px;
}

.profile-portal-inventory-col {
  min-width: 0;
}

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

.profile-portal-inventory-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #002e6d;
  margin-bottom: 12px;
}

.profile-portal-inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-portal-inventory-card {
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  background: #ffffff;
  padding: 12px;
}

.profile-portal-inventory-name {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.profile-portal-inventory-eligible {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.profile-portal-inventory-eligible span {
  color: inherit;
}

.profile-portal-inventory-card--pending {
  border-color: #f59e0b;
  background: #fff7ed;
}

.profile-portal-inventory-pending {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.profile-portal-inventory-pending-icon {
  color: #b45309;
}

.profile-portal-inventory-check-icon {
  color: #166534;
}

.profile-portal-inventory-pending-text {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #b45309;
}

.profile-portal-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: flex-start;
}

.profile-portal-main-stage-grid {
  height: 260px;
  align-content: flex-end;
}

.profile-portal-activity-stack {
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.profile-portal-action-btn {
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  border-left: 2px solid #002e6d;
  background: #ffffff;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  min-height: 70px;
  aspect-ratio: auto;
  transition: background 120ms ease, border-color 120ms ease;
  box-shadow: none;
}

.profile-portal-action-btn:hover {
  background: #f0f7ff;
  border-color: #002e6d;
}

.profile-portal-action-btn:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

.profile-portal-action-btn--primary {
  border-color: #d1d5db;
  border-left: 2px solid #002e6d;
}

.profile-portal-action-title {
  font-weight: 600;
  font-size: 18px;
  color: #111827;
  letter-spacing: -0.02em;
}

.profile-portal-action-btn--primary .profile-portal-action-title {
  color: #002e6d;
}

.profile-portal-action-sub {
  margin-top: 8px;
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
}

.profile-portal-action-icon {
  color: #002e6d;
  display: inline-flex;
  margin-right: 16px;
  margin-top: 0;
}

.profile-portal-action-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.profile-portal-action-textwrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-portal-sub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: #075985;
  border-radius: 4px;
  font-weight: 900;
  font-size: 12px;
}

.profile-portal-action-btn--primary .profile-portal-action-sub {
  color: #6b7280;
}

.profile-portal-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.profile-portal-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e5e7eb;
}

.profile-portal-timeline-item {
  position: relative;
  padding: 12px 0 12px 34px;
}

.profile-portal-timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--navy);
  border-radius: 999px;
}

.profile-portal-timeline-time {
  font-size: 12px;
  font-weight: 800;
  color: #4b5563;
}

.profile-portal-timeline-text {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.profile-portal-timeline-item--primary .profile-portal-timeline-text {
  font-weight: 900;
  color: #111827;
}

.profile-portal-activity-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-portal-medical {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  background: #ffffff;
  padding: 24px 24px 24px;
  margin-top: 10px;
  box-shadow: none;
}

.profile-portal-medical-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 14px;
}

.profile-portal-medical-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.profile-portal-prescription-details {
  border: 0;
  padding: 0;
  margin: 0;
}

.profile-portal-prescription-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #ffffff;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #002e6d;
  letter-spacing: -0.02em;
  list-style: none;
}

.profile-portal-prescription-summary::-webkit-details-marker {
  display: none;
}

.profile-portal-prescription-summary-icon {
  color: #002e6d;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-portal-prescription-digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.profile-portal-prescription-digital-col {
  padding: 14px 14px 10px;
  border-right: 1px solid #e2e8f0;
}

.profile-portal-prescription-digital-col:last-child {
  border-right: 0;
}

.profile-portal-prescription-digital-param {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #002e6d;
  background: transparent;
  padding: 8px 10px;
  border-radius: 2px;
}

.profile-portal-prescription-digital-readout {
  margin-top: 10px;
}

.profile-portal-prescription-eye-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
}

.profile-portal-prescription-eye-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  width: 42px;
}

.profile-portal-prescription-number {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
}

.profile-portal-medical-lock-box .profile-portal-prescription-number {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
}

.profile-portal-prescription-pd-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.profile-portal-prescription-pd-row .profile-portal-prescription-digital-param {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.profile-portal-medical-lock-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--navy);
  border-radius: 0 0 2px 2px;
  padding: 14px;
  max-width: none;
  margin: 0;
}

.profile-portal-medical-lock-box .mono {
  font-family:
    ui-monospace,
    "JetBrains Mono",
    "Roboto Mono",
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 13px;
  font-weight: 900;
}

.profile-portal-prescription-grid {
  display: grid;
  grid-template-columns: 170px 1fr 1fr 1fr;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
}

.profile-portal-prescription-grid > div {
  padding: 12px 12px;
  border-right: 0;
  border-bottom: 1px solid #d1d5db;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  background: #ffffff;
}

.profile-portal-prescription-grid > div:nth-child(4n) {
  border-right: 0;
}

.profile-portal-prescription-grid > div:nth-child(n + 13) {
  border-bottom: 0;
}

.profile-portal-prescription-head {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #002e6d;
  background: #eff6ff;
}

.profile-portal-prescription-row-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  background: #ffffff;
}

.profile-portal-prescription-row-values {
  text-align: center;
}

.profile-portal-alert {
  margin-top: 14px;
  border: 1px solid #d97706;
  background: #fef9c3;
  border-radius: 4px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 900;
  color: #7c2d12;
  display: flex;
  align-items: flex-start;
}

.profile-portal-alert-lock-badge {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  border: 1px solid #d97706;
  background: #ffffff;
  color: #7c2d12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.profile-portal-alert-lock-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.profile-portal-footer {
  border-top: 1px solid #d1d5db;
  padding: 12px 16px;
  background: #ffffff;
}

/* ------------------------------ */
/* System Audit Footer (Portal) */
/* ------------------------------ */
.profile-system-audit-footer {
  background: #1f2937;
  border-top: 1px solid #111827;
  padding: 16px 16px;
  color: #f3f4f6;
  border-radius: 4px;
  margin-top: 0;
  position: relative;
}

.profile-system-audit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-system-audit-link {
  color: #f3f4f6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

.profile-system-audit-shield {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.profile-system-audit-text {
  color: #f3f4f6;
  font-weight: 900;
  text-decoration: none;
}

.profile-system-audit-sync {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: #e5e7eb;
  font-weight: 900;
  font-size: 12px;
}

.profile-portal-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  flex-wrap: wrap;
}

.profile-portal-footer-shield {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
}

.profile-portal-footer-validity {
  text-align: center;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .profile-portal-grid {
    grid-template-columns: 1fr;
  }

  .profile-portal-col--left,
  .profile-portal-col--right {
    border: 0;
    border-bottom: 1px solid #d1d5db;
  }

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

  .profile-portal-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-portal-topbar-center {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .profile-portal-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-portal-topbar-right {
    width: 100%;
    text-align: center;
  }
}

.profile-portal-page .site-footer {
  background: #242d35;
}

/* ------------------------------ */
/* Marketplace Page (Infrastructure Style) */
/* ------------------------------ */
.marketplace-page {
  background: #ffffff;
}

.marketplace-main {
  background: #ffffff;
  padding: 24px 0 56px;
}

.marketplace-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
}

.marketplace-sidebar {
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.marketplace-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.marketplace-category {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.marketplace-category:hover {
  background: #f8fafb;
}

.marketplace-category--active {
  color: var(--navy);
  border-left-color: #2563eb;
}

.marketplace-content {
  padding-left: 16px;
}

.marketplace-subheader {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.marketplace-subheader-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.marketplace-breadcrumbs {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #93c5fd;
  white-space: nowrap;
}

.marketplace-subheader-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.marketplace-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}

.marketplace-cart-icon svg {
  width: 20px;
  height: 20px;
}

.marketplace-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #112e51;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.marketplace-checkout-btn {
  width: auto !important;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
}

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

.marketplace-product-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  padding: 16px;
  min-height: 220px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.marketplace-product-image {
  height: 132px;
  background: #f9fafb;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.marketplace-product-image svg {
  color: #94a3b8;
  stroke-width: 1.5;
}

.marketplace-product-info {
  padding-right: 40px; /* room for the add button */
}

.marketplace-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 56px; /* keep CTA aligned even with wrapped titles */
}

.marketplace-product-sku {
  font-family: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 8px;
}

.marketplace-product-price {
  font-size: 14px;
  font-weight: 900;
  color: #0b1220;
}

.marketplace-product-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border: 2px solid #112e51;
  background: #112e51;
  color: #ffffff;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.marketplace-product-add:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .marketplace-content {
    padding-left: 12px;
  }

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

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

  .marketplace-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .marketplace-content {
    padding-left: 0;
  }

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

/* ------------------------------ */
/* Marketplace Consumer (Amazon/eBay) Aesthetic */
/* ------------------------------ */
body.marketplace-page .header-inner {
  justify-content: space-between;
}

body.marketplace-page .header-right {
  margin-left: 0 !important;
  flex: 0 0 auto;
}

.marketplace-header-search-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.marketplace-search-form {
  width: 600px;
  max-width: 100%;
}

.marketplace-search-inner {
  display: flex;
  align-items: center;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #ffffff;
  height: 44px;
  padding: 0;
  overflow: hidden;
}

.marketplace-search-category {
  height: 40px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  padding: 0 14px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}

.marketplace-search-input {
  flex: 1;
  border: 0;
  outline: none;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0b1220;
}

.marketplace-search-input::placeholder {
  color: #64748b;
}

.marketplace-search-submit {
  width: 52px;
  height: 44px;
  border: 0;
  background: var(--navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marketplace-search-submit:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

.marketplace-filter-section {
  padding: 16px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.marketplace-filter-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.marketplace-filter-details {
  margin: 0;
}

.marketplace-filter-summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
}

.marketplace-filter-summary::-webkit-details-marker {
  display: none;
}

.marketplace-filter-summary::after {
  content: "▾";
  float: none;
  margin-left: 12px;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 14px;
}

.marketplace-filter-details[open] .marketplace-filter-summary {
  background: #f0f7ff;
  border-color: #c7dbff;
}

.marketplace-filter-details[open] .marketplace-filter-summary::after {
  content: "▴";
}

.marketplace-filter-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.marketplace-filter-action-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.marketplace-filter-action-btn:hover {
  background: #f9fafb;
}

.marketplace-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marketplace-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.marketplace-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.marketplace-range-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.marketplace-range-value {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
}

.marketplace-range-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marketplace-range-label {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  margin-bottom: 6px;
}

.marketplace-range-input {
  width: 100%;
  accent-color: var(--navy);
}

.marketplace-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0 0;
}

.marketplace-results-toggle {
  display: inline-flex;
  gap: 10px;
}

.marketplace-view-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marketplace-view-btn svg {
  width: 18px;
  height: 18px;
}

.marketplace-view-btn:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

.marketplace-view-btn--active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.marketplace-view--list {
  grid-template-columns: 1fr !important;
}

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

.marketplace-product-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  padding: 16px;
  min-height: 320px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  display: flex;
  flex-direction: column;
}

.marketplace-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  border-color: #d1d5db;
}

.marketplace-product-image {
  flex: 0 0 auto;
  height: 190px;
  min-height: 190px;
  background: #f9fafb;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.marketplace-product-image svg {
  color: #94a3b8;
  stroke-width: 1.5;
}

.marketplace-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.marketplace-product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.marketplace-product-title {
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 56px; /* keep CTA aligned even with wrapped titles */
}

.marketplace-product-sku {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 10px;
}

.marketplace-product-price {
  font-size: 18px;
  font-weight: 900;
  color: #0b1220;
  margin-bottom: 12px;
}

.marketplace-product-add {
  position: static !important;
  width: 100%;
  height: 44px;
  border-radius: 2px;
  border: 1px solid #ffd814;
  background: #ffd814;
  color: #112e51;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  margin-top: auto;
}

.marketplace-product-add:hover {
  background: #facc15;
}

.marketplace-product-add:focus-visible {
  outline: 3px solid rgba(0, 46, 109, 0.18);
  outline-offset: 2px;
}

.marketplace-loading {
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

.marketplace-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.marketplace-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.marketplace-modal-panel {
  position: relative;
  width: min(720px, calc(100% - 32px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
}

.marketplace-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.marketplace-modal-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.marketplace-modal-close {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 2px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-modal-body {
  padding: 16px;
}

.marketplace-modal-meta {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 6px;
}

.marketplace-modal-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 6px;
}

.marketplace-modal-select {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
}

.marketplace-modal-size-scroll {
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 10px;
}

.marketplace-size-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.marketplace-size-option input[type="radio"] {
  margin: 0;
}

.marketplace-size-option:hover {
  background: #f9fafb;
}

.marketplace-size-option input[type="radio"]:checked + span {
  color: var(--navy);
}

.marketplace-modal-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.marketplace-modal-image {
  width: 160px;
  height: 160px;
  background: #f9fafb;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
}

.marketplace-modal-image svg {
  color: #94a3b8;
  stroke-width: 1.5;
}

.marketplace-modal-hero-info {
  flex: 1;
}

.marketplace-modal-sku {
  font-family: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 8px;
}

.marketplace-modal-product-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.marketplace-modal-price-from {
  font-size: 14px;
  font-weight: 900;
  color: #0b1220;
}

.marketplace-modal-options {
  margin-bottom: 14px;
}

.marketplace-offer-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #7c2d12;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.marketplace-offer-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: marketplace-notice-shimmer 3s linear infinite;
  pointer-events: none;
}

.marketplace-offer-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.marketplace-offer-notice-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 9999px;
  background: #f97316;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: marketplace-notice-shake 1200ms ease-in-out infinite;
}

.marketplace-offer-notice-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 220px;
  width: 100%;
  overflow: visible;
}

.marketplace-offer-notice-headline {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}

.marketplace-offer-notice-subline {
  font-size: 12px;
  font-weight: 600;
  color: #7c2d12;
}

.marketplace-offer-notice-compare {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.marketplace-offer-notice-vendor {
  border: 1px solid #fdba74;
  background: #fff7ed;
  border-radius: 2px;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7c2d12;
}

.marketplace-offer-notice-vendor strong {
  font-size: 11px;
  font-weight: 800;
  color: #111827;
}

.marketplace-offer-notice-vendor--securepak {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.marketplace-offer-notice-savings {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.35;
  white-space: normal;
  padding-bottom: 2px;
}

@keyframes marketplace-notice-shake {
  0%,
  60%,
  100% {
    transform: translateX(0);
  }
  65% {
    transform: translateX(-2px);
  }
  72% {
    transform: translateX(2px);
  }
  79% {
    transform: translateX(-1px);
  }
  86% {
    transform: translateX(1px);
  }
}

@keyframes marketplace-notice-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(140%);
  }
}

@media (max-width: 640px) {
  .marketplace-modal-hero {
    flex-direction: column;
    gap: 12px;
  }
  .marketplace-modal-image {
    width: 100%;
    height: 180px;
  }
}

.marketplace-offers {
  display: grid;
  gap: 10px;
}

.marketplace-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 12px;
  background: #ffffff;
}

.marketplace-offer-vendor {
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 6px;
}

.marketplace-offer-sku {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.marketplace-offer-price {
  font-size: 16px;
  font-weight: 900;
  color: #0b1220;
  margin-bottom: 8px;
  text-align: right;
}

.marketplace-offer-add {
  height: 36px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid #ffd814;
  background: #ffd814;
  color: #112e51;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.marketplace-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.marketplace-cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.marketplace-cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.marketplace-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.marketplace-cart-drawer-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.marketplace-cart-drawer-close {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 2px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.marketplace-cart-drawer-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
}

.marketplace-cart-drawer-summary {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.marketplace-cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.marketplace-cart-summary-line strong {
  color: #0f172a;
  font-weight: 800;
}

.marketplace-cart-summary-line--saved {
  color: #166534;
}

.marketplace-cart-summary-line--saved strong {
  color: #166534;
}

.marketplace-view--list .marketplace-product-card {
  flex-direction: row;
  min-height: 320px;
  padding: 16px;
}

.marketplace-view--list .marketplace-product-image {
  flex: 0 0 160px;
  min-height: 140px;
  margin: 0 16px 0 0;
}

.marketplace-view--list .marketplace-product-content {
  flex: 1;
}

.marketplace-view--list .marketplace-product-add {
  margin-top: 0;
  align-self: flex-start;
  height: 40px;
}

.marketplace-product-grid {
  gap: 16px;
}

@media (max-width: 1200px) {
  .marketplace-product-grid.marketplace-view--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .marketplace-product-grid.marketplace-view--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .marketplace-product-grid.marketplace-view--grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Marketplace typography weight normalization */
.marketplace-page .marketplace-filter-title,
.marketplace-page .marketplace-filter-summary,
.marketplace-page .marketplace-filter-action-btn,
.marketplace-page .marketplace-range-value,
.marketplace-page .marketplace-range-label,
.marketplace-page .marketplace-search-category,
.marketplace-page .marketplace-modal-label,
.marketplace-page .marketplace-size-option,
.marketplace-page .marketplace-offer-vendor,
.marketplace-page .marketplace-offer-add,
.marketplace-page .marketplace-cart-drawer-title,
.marketplace-page .marketplace-cart-drawer-close,
.marketplace-page .marketplace-cart-drawer-summary,
.marketplace-page .marketplace-product-title,
.marketplace-page .marketplace-modal-product-title,
.marketplace-page .marketplace-modal-price-from,
.marketplace-page .marketplace-product-sku,
.marketplace-page .marketplace-modal-sku {
  font-weight: 600 !important;
}

.marketplace-page .marketplace-product-price,
.marketplace-page .marketplace-offer-price {
  font-weight: 700 !important;
}

.marketplace-page .marketplace-offer-sku,
.marketplace-page .marketplace-modal-meta,
.marketplace-page .marketplace-loading {
  font-weight: 500 !important;
}

/* Premium PDP-like popup revamp (keeps popup method) */
.marketplace-modal-panel {
  width: min(1000px, calc(100% - 24px));
  min-height: 600px;
  height: min(92vh, 760px);
}

.marketplace-modal-body {
  display: flex;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.marketplace-modal-hero {
  display: flex;
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
}

.marketplace-modal-image {
  flex: 0 0 40%;
  height: 100%;
  border: 0;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketplace-modal-image svg {
  width: 80%;
  height: 80%;
}

.marketplace-modal-hero-info {
  flex: 0 0 60%;
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  border-left: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.marketplace-modal-breadcrumb {
  order: 1;
}

.marketplace-modal-product-title {
  order: 2;
}

.marketplace-modal-price-from {
  order: 3;
}

.marketplace-modal-options {
  order: 4;
}

.marketplace-offer-notice {
  order: 5;
}

.marketplace-primary-action {
  order: 7;
}

.marketplace-offers {
  order: 6;
}

.marketplace-modal-breadcrumb {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.marketplace-modal-product-title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600 !important;
}

.marketplace-modal-metadata-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  order: 20;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.marketplace-modal-tech-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.marketplace-modal-sku,
.marketplace-modal-meta {
  font-size: 11px;
  color: #9ca3af;
}

.marketplace-modal-options {
  margin-top: 14px;
}

.marketplace-modal-size-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.marketplace-size-option {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 10px;
  min-width: 62px;
  justify-content: center;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.marketplace-size-option input[type="radio"] {
  display: none;
}

.marketplace-size-option:has(input[type="radio"]:checked) {
  border: 2px solid #111827;
  box-shadow: none;
  transform: translateY(-1px);
  font-weight: 700;
}

.marketplace-offer-notice {
  margin-top: 14px;
  border-color: #f5c542;
  background: #fff8df;
  width: 100%;
  padding: 12px 12px 16px;
  height: auto;
  min-height: 0;
}

.marketplace-offer-notice-switch {
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  display: inline-block;
  width: fit-content;
  line-height: 1.35;
}

.marketplace-offer-notice.is-enter {
  animation: marketplace-notice-slide-in 320ms ease-out;
}

.marketplace-primary-action {
  margin-top: 14px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.marketplace-primary-price {
  font-size: 20px;
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 10px;
}

.marketplace-primary-add {
  width: 100%;
  height: 48px;
  border: 1px solid #112e51;
  border-radius: 4px;
  background: #112e51;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.marketplace-primary-add.is-success {
  background: #16a34a;
  border-color: #16a34a;
}

.marketplace-primary-price.is-pulse {
  animation: marketplace-price-pulse 700ms ease-in-out;
}

.marketplace-offers {
  margin-top: 12px;
}

.marketplace-offer-notice-content {
  width: 100%;
}

.marketplace-offer-notice-savings {
  line-height: 1.35;
  white-space: normal;
}

.marketplace-offer-row--selected {
  border-color: #111827;
}

.marketplace-offer-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.marketplace-cart-link.is-bounce {
  animation: marketplace-cart-bounce 700ms ease;
}

@keyframes marketplace-price-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes marketplace-cart-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(0);
  }
}

@keyframes marketplace-notice-slide-in {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .marketplace-modal-panel {
    height: calc(100vh - 24px);
  }
  .marketplace-modal-hero {
    flex-direction: column;
  }
  .marketplace-modal-image {
    flex: 0 0 42vh;
  }
  .marketplace-modal-hero-info {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    flex: 1 1 auto;
  }
}
