body { padding-top: 0; background: #f8fafc; min-height: 100vh; }
    .cv-vault { max-width: 800px; margin: 2rem auto; padding: 0 1.25rem 3rem; }
    .cv-vault h1 { color: #0f172a; margin: 0 0 0.35rem; font-size: 1.6rem; }
    .cv-vault .lede { color: #475569; margin: 0 0 1.25rem; line-height: 1.5; }
    .privacy-banner {
      background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
      border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1.25rem; font-size: 14px;
    }
    .privacy-banner strong { display: block; margin-bottom: 0.25rem; }
    .card {
      background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
      padding: 1.25rem; margin-bottom: 1.25rem;
    }
    .card h2 { margin: 0 0 0.75rem; font-size: 1rem; color: #1e3a5f; }
    .drop {
      border: 2px dashed #94a3b8; border-radius: 12px; padding: 1.75rem 1rem;
      text-align: center; background: #f8fafc; cursor: pointer; transition: border-color .15s, background .15s;
    }
    .drop.dragover { border-color: #0891b2; background: #ecfeff; }
    .drop p { margin: 0.35rem 0; color: #64748b; font-size: 14px; }
    .drop .hint { font-size: 12px; color: #94a3b8; }
    label.field { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 0.85rem 0 0.35rem; }
    input[type="text"] {
      width: 100%; box-sizing: border-box; padding: 0.55rem 0.75rem;
      border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;
    }
    .btn {
      display: inline-flex; align-items: center; gap: 0.35rem;
      border: none; border-radius: 8px; padding: 0.6rem 1rem;
      font-weight: 600; font-size: 14px; cursor: pointer;
    }
    .btn-primary { background: #0891b2; color: #fff; margin-top: 0.85rem; }
    .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-ghost { background: #f1f5f9; color: #334155; }
    .btn-danger { background: #fef2f2; color: #b91c1c; }
    .status { margin-top: 0.75rem; font-size: 13px; color: #475569; min-height: 1.2em; }
    .status.err { color: #b91c1c; }
    .status.ok { color: #047857; }
    .file-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .file-table th, .file-table td { text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid #e2e8f0; }
    .file-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
    .file-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .empty { color: #94a3b8; font-size: 14px; padding: 0.5rem 0; }
    .auth-gate {
      background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
      border-radius: 10px; padding: 1rem; margin-bottom: 1rem;
    }
    .auth-gate a { color: #c2410c; font-weight: 600; }
    .badge {
      display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
      border-radius: 999px; background: #d1fae5; color: #065f46;
    }

/* ─────────────────────────────────────────────────────────────────────
   CV visibility — who can see an uploaded CV.
   The markup shipped without these rules, so the radio group rendered as
   unstyled stacked labels and the contact picker had no visible boundary.
   ───────────────────────────────────────────────────────────────────── */

.vis {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.vis > legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.vis-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.vis-opt:hover { border-color: #cbd5e1; background: #f8fafc; }

/* Selected option is outlined so the current choice is obvious at a glance. */
.vis-opt:has(input:checked) { border-color: #0a66c2; background: #eff6ff; }

.vis-opt input { margin-top: 3px; flex: 0 0 auto; }

.vis-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.vis-title { font-size: 13px; font-weight: 700; color: #0f172a; }

/* "default" marker beside Private */
.vis-title em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}

.vis-note { font-size: 12px; color: #64748b; line-height: 1.45; }

/* Contact picker, shown only for the "shared contacts" option */
.vis-contacts {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.vis-contacts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.vis-count { font-size: 11px; font-weight: 700; color: #64748b; }

.vis-contacts input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 8px;
}

.vis-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.vis-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.vis-contact:last-child { border-bottom: 0; }
.vis-contact:hover { background: #f8fafc; }

.vis-contact-body { display: flex; flex-direction: column; min-width: 0; }
.vis-contact-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.vis-contact-meta { font-size: 11px; color: #94a3b8; }

/* Shown only when Public is selected — this is a privacy consequence, so it
   is styled as a warning rather than as another hint. */
.vis-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #78350f;
}

/* Inline "Try again" control in the contacts panel. A button rather than a
   link because it re-runs a fetch instead of navigating. */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #0a66c2;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover { color: #0052a3; }
