@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f9fc;
  --bg-soft: #eef3ff;
  --surface: #ffffff;
  --surface-soft: #fafcff;
  --ink: #0a2540;
  --ink-muted: #526274;
  --line: #e4eaf4;
  --line-strong: #d5dff0;
  --brand: #635bff;
  --brand-ink: #4f46e5;
  --green: #0f9960;
  --amber: #a06c00;
  --red: #cf3434;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(980px 380px at -10% -10%, #dfe9ff 6%, transparent 56%),
    radial-gradient(980px 380px at 110% -14%, #d7e5ff 8%, transparent 58%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 34%, var(--bg) 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.chrome {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #9eb3ff 0%, #635bff 54%, #3e37ca 100%);
  box-shadow: 0 9px 24px rgba(99, 91, 255, 0.35);
}

.top-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #425466;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.top-links a:hover {
  border-color: var(--line);
  background: #fff;
  text-decoration: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 24px 54px rgba(15, 35, 95, 0.07),
    0 4px 16px rgba(15, 35, 95, 0.05);
  animation: enter 0.32s ease;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-head {
  padding: 26px 28px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(99, 91, 255, 0.08), rgba(99, 91, 255, 0.015) 60%, rgba(99, 91, 255, 0));
}

.panel-body {
  padding: 22px 28px 28px;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 1.85vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

a {
  color: var(--brand-ink);
  text-decoration: none;
}

.muted-link:hover,
a:hover {
  text-decoration: underline;
}

.stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.grid-two-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 14px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #304256;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ccd6e6;
  border-radius: var(--radius-md);
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7a72ff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.pac-container {
  z-index: 10000;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 35, 95, 0.12);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.15s ease;
}

.button:hover {
  background: #5a52f1;
  box-shadow: 0 10px 22px rgba(99, 91, 255, 0.24);
  transform: translateY(-1px);
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #4a42d8;
}

.button.secondary:hover {
  background: #f7f8ff;
  box-shadow: none;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #f8faff;
  color: #445369;
}

.button.ghost:hover {
  background: #f0f4fa;
  box-shadow: none;
}

.hint {
  border: 1px solid #f5d897;
  background: #fff9eb;
  border-radius: 12px;
  color: #835a00;
  padding: 10px 12px;
  font-size: 0.89rem;
}

.checkout-error {
  border: 1px solid #f5b0b0;
  background: #fff1f1;
  border-radius: 10px;
  color: #a32b2b;
  padding: 10px 12px;
  font-size: 0.89rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.muted {
  color: var(--ink-muted);
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-body {
  padding: 10px 13px 14px;
}

.report-section {
  margin-bottom: 14px;
}

details.report-section > summary {
  list-style: none;
  cursor: pointer;
}

details.report-section > summary::-webkit-details-marker {
  display: none;
}

details.report-section > summary h2::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-muted);
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

details.report-section[open] > summary h2::before {
  transform: rotate(90deg);
}

.finding-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.finding-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
}

.finding-item.severity-high {
  border-color: #f5b0b0;
  background: #fff8f8;
}

.finding-item.severity-medium {
  border-color: #f5d897;
  background: #fffbf2;
}

.finding-main {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.finding-copy {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.compact-table td,
.compact-table th {
  min-width: 90px;
}

.chain-detail-row td {
  padding-top: 0;
  font-size: 0.82rem;
  background: #fbfcff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.chip.blue {
  background: #eef2ff;
  color: #4e46dc;
}

.chip.green {
  background: #ebfbf3;
  color: #0f8d5e;
}

.chip.amber {
  background: #fff8e8;
  color: #8b6100;
}

.chip.red {
  background: #fff1f1;
  color: #bf3232;
}

.cover-grid {
  display: grid;
  gap: 10px;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  background: #fff;
}

.cover-card h3 {
  margin: 0 0 7px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.cover-line {
  margin: 4px 0;
  font-size: 0.9rem;
}

.cover-line .muted {
  font-size: 0.82rem;
}

.cover-empty {
  margin: 2px 0;
  font-size: 0.87rem;
  font-style: italic;
  color: var(--ink-muted);
}

.cover-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
}

.cover-list li {
  margin: 3px 0;
}

.mortgage-chains {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.mortgage-family {
  border: 1px solid var(--line);
  border-top: 4px solid #d39a18;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.mortgage-family-resolved { border-top-color: #159766; }
.mortgage-family-review { border-top-color: #dc3d3d; }
.mortgage-family-obsolete { border-top-color: #7c8799; }

.mortgage-family-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mortgage-family-head h3 { margin: 0; font-size: 1rem; }
.mortgage-family-head p { margin: 3px 0 0; color: var(--ink-muted); font-size: 0.86rem; }

.mortgage-status {
  flex: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.mortgage-status-resolved { color: #0f8157; background: #eaf9f2; border: 1px solid #bfead6; }
.mortgage-status-review { color: #bd3030; background: #fff0f0; border: 1px solid #ffb7b7; }
.mortgage-status-open { color: #8a5d00; background: #fff7e3; border: 1px solid #eed18c; }
.mortgage-status-obsolete { color: #566174; background: #f0f2f5; border: 1px solid #d9dee6; }

.mortgage-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 16px;
  padding: 1px;
}

.mortgage-link-segment {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  flex: 0 1 calc(33.333% - 11px);
  min-width: 280px;
}

.mortgage-link-segment-first {
  grid-template-columns: minmax(0, 1fr);
}

.mortgage-link-card {
  min-width: 0;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  padding: 10px;
  background: #fafbfe;
}

.mortgage-link-card strong { display: block; margin-top: 7px; line-height: 1.35; }
.mortgage-link-missing { border: 1px dashed #e05252; background: #fff7f7; color: #a72f2f; }
.mortgage-role { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #eaf0f7; color: #46566b; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.03em; }
.mortgage-link-note { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 0.82rem; }
.mortgage-link-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 9px; color: var(--ink-muted); font-size: 0.8rem; }
.mortgage-ref { border-radius: 6px; padding: 2px 6px; background: #eef1ff; font-weight: 700; }
.mortgage-ref-index { color: #8b6100; background: #fff7e3; border: 1px dashed #e6bd5b; }
.mortgage-arrow { align-self: center; color: #91a4bb; font-size: 1.3rem; text-align: center; }

.mortgage-banner {
  margin-top: 9px;
  border: 1px solid;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.mortgage-banner-green { color: #0c8256; background: #eaf9f2; border-color: #b9e9d2; }
.mortgage-banner-red { color: #bd3030; background: #fff0f0; border-color: #ffb5b5; }
.mortgage-banner-amber { color: #865b00; background: #fff8e8; border-color: #efd18c; }
.mortgage-banner-neutral { color: #4f5d70; background: #f2f4f7; border-color: #d7dde5; }

@media (max-width: 760px) {
  .mortgage-link-segment {
    flex-basis: 100%;
    min-width: 0;
  }
}

.steps,
.phase-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.steps li,
.phase-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}

.phase-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #9ba7b9;
}

.phase-list li.active::before {
  background: var(--brand);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 91, 255, 0.4);
  }
  80% {
    box-shadow: 0 0 0 8px rgba(99, 91, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 91, 255, 0);
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th {
  text-align: left;
  color: #607389;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 9px 8px;
  border-bottom: 1px solid #ebf0f8;
  vertical-align: top;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafd;
  font-size: 0.72rem;
  font-weight: 620;
}

.footer {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

@media (max-width: 1040px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
}

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

  .panel-head {
    padding: 20px 20px 14px;
  }

  .panel-body {
    padding: 18px 20px 22px;
  }
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.35);
  backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: min(680px, 90vw);
  max-height: calc(100vh - 32px);
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(10, 37, 64, 0.18);
  z-index: 910;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.drawer-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-muted);
  transition: background 0.12s;
}

.drawer-close:hover {
  background: var(--bg);
}

.drawer-meta {
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.drawer-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: #eef3f7;
}

.drawer-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.drawer-document-frame {
  min-height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.drawer-document-image {
  width: min(100%, 760px);
  height: auto;
  display: block;
  margin: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 34px rgba(10, 37, 64, 0.18);
}

.drawer-content .drawer-fallback {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-muted);
}

.drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

body.drawer-open {
  overflow: hidden;
}

/* Chain cards */
.chain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.15s;
}

.chain-card:hover {
  border-color: var(--line-strong);
}

.chain-card + .chain-card {
  margin-top: 8px;
}

.chain-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chain-parties {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.chain-arrow {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.chain-meta {
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chain-provenance {
  margin-top: 5px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* Document link */
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--brand-ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.12s;
}

.doc-link:hover {
  background: #dde4ff;
  text-decoration: none;
}

/* Validation badges */
.badge-validated {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ebfbf3;
  color: #0f8d5e;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #c2ecd6;
}

.badge-image-fallback {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8b6100;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5d897;
}

.badge-index-only {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: #bf3232;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5b0b0;
}

/* Encumbrance / issue badges */
.badge-open {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: #bf3232;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5b0b0;
}

.badge-discharged {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ebfbf3;
  color: #0f8d5e;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #c2ecd6;
}

.badge-recorded-unlinked {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8b6100;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5d897;
}

.badge-high {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: #bf3232;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5b0b0;
}

.badge-medium {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8b6100;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5d897;
}

.badge-low {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4e46dc;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #c7ccf5;
}

.attorney-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: #bf3232;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid #f5b0b0;
}

/* Timeline stepper */
.timeline-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  overflow-x: auto;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: #fff;
  flex-shrink: 0;
}

.timeline-dot.ok {
  background: #0f9960;
  border-color: #0f9960;
}

.timeline-dot.warn {
  background: #a06c00;
  border-color: #a06c00;
}

.timeline-dot.error {
  background: #cf3434;
  border-color: #cf3434;
}

.timeline-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.3;
}

.timeline-connector {
  flex: 0.5;
  height: 2px;
  background: var(--line-strong);
  min-width: 16px;
  align-self: flex-start;
  margin-top: 5px;
}

/* Report header */
.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.report-header-info {
  flex: 1;
  min-width: 200px;
}

.report-address {
  margin: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.report-owner {
  margin: 5px 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.report-owner strong {
  color: var(--ink);
  font-weight: 600;
}

/* Alert banner for issue flags at top */
.alert-banner {
  border: 1px solid #f5b0b0;
  border-radius: var(--radius-lg);
  background: #fff8f8;
  padding: 0;
  overflow: hidden;
}

.alert-banner .section-head {
  background: #fff1f1;
  border-bottom-color: #f5b0b0;
}

.alert-banner-item {
  padding: 10px 14px;
  border-bottom: 1px solid #fde0e0;
  font-size: 0.87rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-banner-item:last-child {
  border-bottom: none;
}

/* Discharge reference link (red like screenshot) */
.discharge-ref {
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.discharge-ref:hover {
  text-decoration: underline;
}

/* Rundown table (mortgage format) */
.rundown-table td {
  padding: 10px 8px;
  vertical-align: top;
}

.rundown-parties {
  font-size: 0.84rem;
  line-height: 1.4;
}

.rundown-parties .party-label {
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #607389;
}

/* Doc preview tooltip (hover) — scrollable deed reader */
.doc-preview-tooltip {
  position: fixed;
  width: 550px;
  max-width: calc(100vw - 32px);
  height: 700px;
  max-height: calc(100vh - 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 48px rgba(10, 37, 64, 0.18),
    0 4px 12px rgba(10, 37, 64, 0.08);
  z-index: 850;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.doc-preview-tooltip.visible {
  opacity: 1;
}

.doc-preview-tooltip iframe,
.doc-preview-tooltip img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: contain;
}

.doc-preview-tooltip .preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-muted);
  font-size: 0.84rem;
}
