:root {
  --reloc-navy: #081528;
  --reloc-navy-soft: #0f223b;
  --reloc-ink: #0f172a;
  --reloc-slate: #516179;
  --reloc-line: rgba(148, 163, 184, 0.22);
  --reloc-panel: #ffffff;
  --reloc-cloud: #f3f7fb;
  --reloc-mint: #9fd4c2;
  --reloc-blue: #137fec;
  --reloc-blue-strong: #0d63b8;
  --reloc-warning: #ffb15d;
  --reloc-warning-ink: #8a4b09;
  --reloc-success: #b9ebd8;
  --reloc-success-ink: #0d5f4a;
  --reloc-risk: #ffd5bd;
  --reloc-risk-ink: #8a3e0b;
  --reloc-shadow: 0 28px 60px rgba(8, 21, 40, 0.14);
  --reloc-shadow-soft: 0 16px 36px rgba(8, 21, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

.reloc-page {
  background:
    radial-gradient(circle at top left, rgba(19, 127, 236, 0.14), transparent 32%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
}

.reloc-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(159, 212, 194, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(19, 127, 236, 0.18), transparent 26%),
    linear-gradient(145deg, #071320 0%, #0f2139 48%, #09172a 100%);
}

.reloc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

.reloc-shell {
  position: relative;
  margin-top: -4.5rem;
}

.reloc-tool-shell {
  border: 1px solid rgba(226, 232, 240, 0.94);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--reloc-shadow);
  backdrop-filter: blur(18px);
}

.reloc-panel {
  border: 1px solid var(--reloc-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: var(--reloc-shadow-soft);
}

.reloc-panel-dark {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(180deg, #081528 0%, #10253f 100%);
  box-shadow: 0 18px 34px rgba(8, 21, 40, 0.28);
}

.reloc-panel-dark h2,
.reloc-panel-dark h3,
.reloc-panel-dark strong {
  color: #f8fbff;
}

.reloc-panel-dark p,
.reloc-panel-dark .text-sm {
  color: #dbe8f7;
}

.reloc-panel-dark .text-slate-300,
.reloc-panel-dark .text-slate-400 {
  color: #dbe8f7 !important;
}

.reloc-panel-dark .text-blue-200,
.reloc-panel-dark .reloc-mini-label {
  color: #b7dbff !important;
}

.reloc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.25);
  background: rgba(19, 127, 236, 0.12);
  color: #cfe7ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reloc-trust-strip {
  display: grid;
  gap: 0.75rem;
}

.reloc-trust-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reloc-mini-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.reloc-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.reloc-step-meta {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #52637a;
}

.reloc-step-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #eef4f8;
  color: #52637a;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.reloc-step-pill:hover:not(:disabled) {
  transform: translateY(-1px);
}

.reloc-step-pill .reloc-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.32);
  color: #334155;
}

.reloc-step-pill.is-active {
  background: #dbefff;
  color: var(--reloc-blue-strong);
}

.reloc-step-pill.is-current {
  border-color: rgba(19, 127, 236, 0.34);
  background: #dbefff;
  color: var(--reloc-blue-strong);
}

.reloc-step-pill.is-completed {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(185, 235, 216, 0.35);
  color: #0d5f4a;
}

.reloc-step-pill.is-upcoming {
  border-color: rgba(148, 163, 184, 0.25);
}

.reloc-step-pill.is-blocked {
  opacity: 0.45;
  cursor: not-allowed;
}

.reloc-step-pill:disabled {
  cursor: not-allowed;
}

.reloc-step-nav {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reloc-step-nav .reloc-pill-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.reloc-step-nav .reloc-pill-button[disabled]:hover {
  transform: none;
}

.reloc-utility-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reloc-utility-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #f8fbff;
  padding: 0.75rem 0.85rem;
}

.reloc-utility-k {
  display: block;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.reloc-utility-item strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.83rem;
  color: #0f172a;
}

.reloc-suite-progress {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reloc-suite-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.95rem;
  padding: 0.7rem 0.75rem;
  background: #f8fafd;
}

.reloc-suite-chip.in_progress {
  border-color: rgba(19, 127, 236, 0.3);
  background: rgba(219, 239, 255, 0.45);
}

.reloc-suite-chip.done {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(185, 235, 216, 0.34);
}

.reloc-suite-chip-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
}

.reloc-suite-chip-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #52637a;
}

.reloc-choice-grid {
  display: grid;
  gap: 0.8rem;
}

.reloc-choice-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reloc-choice-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reloc-choice-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fbfdff;
  color: var(--reloc-ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.reloc-choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 127, 236, 0.38);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.reloc-choice-card.is-selected {
  border-color: rgba(19, 127, 236, 0.55);
  background: linear-gradient(180deg, rgba(219, 239, 255, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 22px 34px rgba(19, 127, 236, 0.12);
}

.reloc-choice-card input,
.reloc-choice-card select,
.reloc-choice-card textarea {
  margin-top: 0.75rem;
}

.reloc-choice-title {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--reloc-ink);
}

.reloc-choice-copy {
  display: block;
  margin-top: 0.35rem;
  color: var(--reloc-slate);
  font-size: 0.84rem;
  line-height: 1.55;
}

.reloc-choice-section {
  border-radius: 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.reloc-choice-section-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--reloc-ink);
}

.reloc-choice-section-copy {
  margin-top: 0.3rem;
  color: var(--reloc-slate);
  font-size: 0.83rem;
  line-height: 1.55;
}

.reloc-input,
.reloc-select,
.reloc-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  color: var(--reloc-ink);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.reloc-input:focus,
.reloc-select:focus,
.reloc-textarea:focus {
  outline: none;
  border-color: rgba(19, 127, 236, 0.6);
  box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.12);
}

.reloc-textarea {
  min-height: 7rem;
  resize: vertical;
}

.reloc-helper {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

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

.reloc-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reloc-status-banner {
  border-radius: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.reloc-status-banner.is-complete {
  background: rgba(185, 235, 216, 0.32);
  border-color: rgba(13, 95, 74, 0.18);
  color: var(--reloc-success-ink);
}

.reloc-status-banner.is-warning {
  background: rgba(255, 177, 93, 0.22);
  border-color: rgba(138, 75, 9, 0.16);
  color: var(--reloc-warning-ink);
}

.reloc-status-banner.is-risk {
  background: rgba(255, 213, 189, 0.4);
  border-color: rgba(138, 62, 11, 0.18);
  color: var(--reloc-risk-ink);
}

.reloc-result-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.1);
  color: inherit;
}

.reloc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.reloc-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reloc-legend-chip.required {
  background: rgba(19, 127, 236, 0.14);
  color: var(--reloc-blue-strong);
}

.reloc-legend-chip.likely {
  background: rgba(255, 177, 93, 0.22);
  color: var(--reloc-warning-ink);
}

.reloc-legend-chip.supporting {
  background: rgba(159, 212, 194, 0.25);
  color: var(--reloc-success-ink);
}

.reloc-legend-chip.review {
  background: rgba(255, 213, 189, 0.45);
  color: var(--reloc-risk-ink);
}

.reloc-result-card {
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
}

.reloc-checklist-group {
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  padding: 1.15rem 1.2rem;
}

.reloc-checklist-items {
  display: grid;
  gap: 0.8rem;
}

.reloc-check-item {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.reloc-check-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.reloc-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.reloc-row-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  padding: 1rem;
}

.reloc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.reloc-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--reloc-ink);
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.reloc-pill-button:hover {
  border-color: rgba(19, 127, 236, 0.46);
  transform: translateY(-1px);
}

.reloc-pill-button.is-primary {
  border-color: transparent;
  background: var(--reloc-blue);
  color: #fff;
}

.reloc-pill-button.is-primary:hover {
  background: var(--reloc-blue-strong);
}

.reloc-summary-grid {
  display: grid;
  gap: 0.9rem;
}

.reloc-summary-metric {
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.reloc-summary-metric strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.3rem;
}

.reloc-table-wrap {
  overflow-x: auto;
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.reloc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.reloc-table th,
.reloc-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.88rem;
  vertical-align: top;
}

.reloc-table th {
  background: #f7fafc;
  color: #475569;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reloc-related-grid {
  display: grid;
  gap: 1rem;
}

.reloc-related-card {
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.98) 100%);
  padding: 1.2rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.reloc-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 127, 236, 0.28);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.reloc-review-shell {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 253, 0.96) 100%),
    linear-gradient(135deg, rgba(19, 127, 236, 0.05), rgba(159, 212, 194, 0.06));
  box-shadow: var(--reloc-shadow);
}

.reloc-review-note {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.95rem 1rem;
}

.reloc-empty {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 1.5rem;
  padding: 1.15rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.4);
}

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

.reloc-warning-item {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 213, 189, 0.34);
  color: var(--reloc-risk-ink);
}

.reloc-next-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.reloc-next-link {
  display: block;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #cfe7ff;
  padding: 0.7rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.reloc-next-link:hover {
  border-color: rgba(19, 127, 236, 0.5);
  background: rgba(19, 127, 236, 0.1);
}

.reloc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reloc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reloc-print-only {
  display: none;
}

@media (max-width: 1023px) {
  .reloc-shell {
    margin-top: -2.25rem;
  }
}

@media (max-width: 1100px) {
  .reloc-choice-grid.cols-2,
  .reloc-choice-grid.cols-3,
  .reloc-grid-2,
  .reloc-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .reloc-utility-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reloc-suite-progress {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .reloc-utility-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .reloc-table {
    min-width: 0;
  }

  .reloc-table thead {
    display: none;
  }

  .reloc-table,
  .reloc-table tbody,
  .reloc-table tr,
  .reloc-table td {
    display: block;
    width: 100%;
  }

  .reloc-table tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  }

  .reloc-table td {
    border-bottom: 0;
    padding: 0.5rem 1rem;
  }

  .reloc-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff !important;
  }

  header,
  footer,
  .no-print,
  main > section:not(#relocation-print-host) {
    display: none !important;
  }

  .reloc-print-only {
    display: block !important;
  }

  #relocation-print-host {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }
}
