:root {
  --teal: #52a4b1;
  --teal-dark: #3d8490;
  --yellow: #f9c01a;
  --lime: #83bd47;
  --navy: #212631;
  --slate: #373f4e;
  --muted: #667085;
  --grey-tile: #818284;
  --page: #f0f1f5;
  --blue: #3d8490;
  --blue-800: #2c6d78;
  --red: #c62828;
  --orange: #ef6c00;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #e5e7eb;
  --grey-600: #667085;
  --grey-800: #373f4e;
  --shadow: 0 3px 8px rgba(33, 38, 49, 0.12), 0 1px 3px rgba(33, 38, 49, 0.08);
  --radius: 8px;
  --font: Prompt, "Merriweather Sans", Helvetica, Arial, sans-serif;
  --font-serif: Merriweather, Georgia, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--page);
  color: var(--navy);
}

button,
input,
select {
  font-family: inherit;
}

a {
  color: var(--teal-dark);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr min(360px, 34vw);
}

.app-shell.guide-collapsed {
  grid-template-columns: 1fr;
}

.product {
  min-width: 0;
  position: relative;
}

.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 12px;
  box-shadow: var(--shadow);
}

.topbar h1,
.topbar .title {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  flex: 1;
  font-family: var(--font-serif);
}

.icon-btn {
  border: 0;
  background: transparent;
  color: inherit;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:focus-visible,
.btn:focus-visible,
.linkish:focus-visible,
.option-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.page {
  padding: 24px 16px 48px;
  max-width: 980px;
  margin: 0 auto;
}

.logo-row {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-align: left;
}

.wordmark .nre-logo {
  height: 52px;
  width: auto;
  display: block;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.product-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark.on-dark .product-name,
.wordmark.on-dark .product-tag {
  color: #fff;
}

.wordmark.on-dark .product-tag {
  color: var(--yellow);
}

.service-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.option-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 280px;
  flex: 1;
  text-align: left;
  cursor: pointer;
}

.option-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.muted {
  color: var(--grey-600);
  font-size: 0.9rem;
  line-height: 1.35;
}

.btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}

.btn-text {
  background: transparent;
  color: var(--teal-dark);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.field label {
  font-size: 0.8rem;
  color: var(--grey-600);
}

.field input {
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 1rem;
  min-width: 18rem;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.recaptcha-box {
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  border-radius: 3px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 304px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.recaptcha-box input {
  width: 22px;
  height: 22px;
}

.recaptcha-brand {
  margin-left: auto;
  font-size: 0.65rem;
  color: #555;
  text-align: right;
  line-height: 1.2;
}

.card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.qual-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-200);
}

.qual-item:last-child {
  border-bottom: 0;
}

.status-ok {
  color: #5a8f2f;
}

.status-warn {
  color: var(--orange);
}

.status-bad {
  color: var(--red);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  border: 1px solid var(--teal);
  background: #e8f4f6;
  color: var(--teal-dark);
  border-radius: 16px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.chip.off {
  background: #fff;
  color: var(--grey-600);
  border-color: #bdbdbd;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumbs button {
  background: none;
  border: 0;
  color: var(--teal-dark);
  cursor: pointer;
  padding: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 38, 49, 0.55);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 16px;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  width: min(400px, 100%);
}

.splash {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 50;
}

.guide {
  background: var(--navy);
  color: #e8edf2;
  padding: 20px 18px 32px;
  overflow: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

.guide h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.guide p,
.guide li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #d1d5de;
}

.guide code,
.kbd {
  font-family: ui-monospace, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}

.guide .flow {
  display: grid;
  gap: 6px;
  margin: 12px 0 18px;
}

.guide .flow span {
  background: rgba(82, 164, 177, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.hint-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.fab-guide {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.unavailable {
  text-align: center;
  padding: 12vh 20px;
}

.qr {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  width: 126px;
  height: 126px;
  background: #fff;
  padding: 6px;
  border: 1px solid #ddd;
}

.qr i {
  width: 100%;
  height: 100%;
  background: transparent;
}

.qr i.on {
  background: var(--navy);
}

.id-card {
  width: 220px;
  min-height: 340px;
  background: linear-gradient(180deg, #dceef1 0%, #fff 40%);
  border: 1px solid #b7d5db;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.id-card .name {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--slate);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  z-index: 45;
}

.loading {
  position: absolute;
  inset: 0;
  background: rgba(240, 241, 245, 0.55);
  display: grid;
  place-items: center;
  z-index: 20;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #cfe4e8;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stepper {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0 20px;
  font-size: 0.85rem;
  color: var(--grey-600);
}

.stepper .active {
  color: var(--teal-dark);
  font-weight: 700;
}

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

.filter-panel {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

@media print {
  .guide,
  .fab-guide,
  .demo-banner,
  .topbar,
  .breadcrumbs,
  .actions,
  .filter-panel {
    display: none !important;
  }

  .app-shell {
    display: block;
  }
}

.demo-banner {
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.8rem;
  padding: 6px 12px;
  text-align: center;
  font-weight: 500;
}

.site-foot {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-dots i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.brand-dots .d1 {
  background: var(--teal);
}

.brand-dots .d2 {
  background: var(--yellow);
}

.brand-dots .d3 {
  background: var(--lime);
}

.brand-dots .d4 {
  background: var(--grey-tile);
}

@media (max-width: 960px) {
  .app-shell,
  .app-shell.guide-collapsed {
    grid-template-columns: 1fr;
  }

  .guide {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 55vh;
    z-index: 35;
    transform: translateY(100%);
    transition: transform 0.2s ease;
  }

  .guide.open {
    transform: translateY(0);
  }

  .fab-guide {
    display: block;
  }

  .options {
    flex-direction: column;
  }

  .field input {
    min-width: 0;
    width: 100%;
  }

  .wordmark .nre-logo {
    height: 42px;
  }

  .product-name {
    font-size: 1.05rem;
  }
}
