/* ============================================================
   VIPS V2 — Private Resident Onboarding (Find PPO ID)
   Page-specific components on top of v2.css + v2-registrations.css.
   Light & dark aware (token-driven). Scoped under .public-reg-main.
   ============================================================ */

/* ---- resident-only notice ---- */
.notice-banner { background: var(--warning-bg); border: 1px solid var(--warning-line);
  border-left: 4px solid var(--warning); border-radius: var(--r-m); padding: 14px 18px; }
.notice-banner__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--warning); margin: 0 0 4px; }
.notice-banner p:last-child { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

/* ---- resume banner ---- */
.resume-banner { background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--r-m); padding: 14px 16px; margin: 0 clamp(18px, 2.6vw, 24px) 4px; }
.resume-banner__title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-strong); }
.resume-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-strong); flex: none; }
.resume-banner__desc { margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.resume-banner__list { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); }

/* ---- full-width card (matches the intro card above) ---- */
body.page-public--ppo .public-reg-main .reg-card { max-width: none; }
/* Type of resident sits on its own row, above the 3-up grid */
.type-row { margin-bottom: 16px; }

/* ---- intro (single column) ---- */
.public-reg-intro--solo { grid-template-columns: 1fr; }

/* ---- progressive disclosure: sections after a valid Site Key ---- */
.post-site-key { display: flex; flex-direction: column; }

/* ---- grids (2-up to read cleanly in the narrower card) ---- */
.form-grid-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid-4col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.form-grid-1col { display: grid; grid-template-columns: 1fr; gap: 14px; }
.col-span-full { grid-column: 1 / -1; }

/* ---- "verify either" note ---- */
.verify-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-secondary); }
.verify-note strong { color: var(--brand-strong); }

/* ---- site key field (kept compact) ---- */
.site-key-field { max-width: 380px; }
.public-reg-main .form-label { font-size: 13px; font-weight: 600; color: var(--text-heading); }

/* "Property found: …" confirmation pill below the Site Key input */
.site-key-found { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; font-weight: 600;
  color: var(--success); background: var(--success-bg); border: 1px solid var(--success-line); border-radius: var(--r-pill); padding: 6px 13px; }
.site-key-found strong { color: var(--text-heading); }
.site-key-found__ic { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--success); color: #fff; font-size: 11px; font-weight: 700; flex: none; }

/* unit spans full width when the property has no sub streets */
.col-span-2 { grid-column: 1 / -1; max-width: 380px; }

/* ---- input with trailing status icon (site key / verify) ---- */
.public-reg-main .input-with-addon { position: relative; display: flex; align-items: center; }
.public-reg-main .input-with-addon > .text-box { width: 100%; padding-right: 42px; }
.input-status { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; align-items: center; }
.input-status.show { display: flex; }
.input-status .status-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.input-status .status-icon svg { width: 20px; height: 20px; }
.input-status.loading .status-icon::after { content: ""; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand-strong); border-radius: 50%; animation: regspin .7s linear infinite; }
.input-status.loading .status-icon svg { display: none; }
.input-status.inline-verify { display: flex; }
.input-status.inline-verify:not(.show) .status-icon { opacity: 0; }
.public-reg-main .verify-inline { align-self: flex-start; margin-top: -2px; }

/* inline "Verify" button + green "Verified" badge inside the contact field */
.dt-field__verify { flex: none; display: inline-flex; align-items: center; border: 0; border-left: 1.5px solid var(--line);
  background: var(--surface-2); padding: 0 16px; font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--brand-strong); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.dt-field__verify:hover { background: var(--brand-tint); color: var(--brand-hover); }
.dt-field__verified { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  border-left: 1.5px solid var(--success-line); background: var(--success-bg); color: var(--success);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dt-field__verified svg { width: 16px; height: 16px; flex: none; }

/* ---- readonly property pill ---- */
.public-reg-main .pill-readonly { background: var(--surface-2); color: var(--text-secondary); cursor: default; }

/* ---- disabled input (e.g. Unit before a sub street is chosen) ---- */
.public-reg-main .text-box:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; opacity: .75; }

/* ---- search dropdown (sub street / unit) ---- */
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-2);
  max-height: 230px; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--brand-line) transparent; }
.dropdown.show .dropdown-panel { display: block; }
.dropdown-option { padding: 9px 11px; border-radius: var(--r-s); font-size: 13.5px; color: var(--text-heading); cursor: pointer; }
.dropdown-option:hover, .dropdown-option.is-active { background: var(--brand-tint); color: var(--brand-strong); }
.dropdown-empty { padding: 10px 11px; font-size: 12.5px; color: var(--text-muted); }

/* ---- native selects (vehicle) ---- */
.public-reg-main .select-box { width: 100%; height: 46px; border: 1.5px solid var(--border-control); border-radius: var(--r-m);
  background: var(--surface); color: var(--text-heading); font-family: var(--font-sans); font-size: 14px; padding: 0 36px 0 12px;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238493a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.public-reg-main .select-box:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }

/* ---- file input ---- */
.public-reg-main .file-input { width: 100%; font-size: 13px; color: var(--text-secondary); padding: 10px 12px;
  border: 1.5px dashed var(--border-control); border-radius: var(--r-m); background: var(--surface); cursor: pointer; }
.public-reg-main .file-input::-webkit-file-upload-button { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  margin-right: 12px; padding: 7px 12px; border: 1px solid var(--border-control); border-radius: var(--r-s);
  background: var(--surface-2); color: var(--text-heading); cursor: pointer; }

/* ---- form actions row ---- */
.public-reg-main .form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---- vehicle cards ---- */
.vehicle-list { display: flex; flex-direction: column; gap: 14px; }
.vehicle-card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vehicle-card-top { display: flex; align-items: center; justify-content: space-between; }
.vehicle-pill { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-strong);
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--r-pill); padding: 4px 12px; }
.remove-vehicle-btn { width: 30px; height: 30px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-muted); cursor: pointer; display: grid; place-items: center; font-size: 13px; transition: color .15s, border-color .15s, background .15s; }
.remove-vehicle-btn:hover { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }

/* ---- confirmation (reuses confirm-card-v3 head + confirm-grid) ---- */
.confirm-sub-line { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.confirm-sub-line--muted { font-size: 12.5px; color: var(--text-muted); }
.confirm-v3__detail { padding: clamp(18px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 18px; }
.confirm-v3__detail .confirm-grid { grid-template-columns: 1fr 1fr; }
.confirm-callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.confirm-callout__title { font-size: 13px; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.confirm-callout ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.confirm-callout li { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.confirm-callout li strong { color: var(--text-heading); }
.confirm-card-v3 .confirm-actions { padding: 0 clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 26px); justify-content: flex-end; }

/* ---- OTP modal (uses .modal-backdrop / .modal from v2-public) ---- */
.otp-modal { max-width: 420px; text-align: center; }
.otp-header h3 { margin: 0; font-size: 18px; color: var(--text-heading); }
.otp-header p { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.otp-inputs { display: flex; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.otp-digit { width: 52px; height: 58px; text-align: center; font-size: 22px; font-weight: 600; font-family: var(--font-mono);
  border: 1.5px solid var(--border-control); border-radius: var(--r-m); background: var(--surface); color: var(--text-heading); outline: none; transition: border-color .15s, box-shadow .15s; }
.otp-digit:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.otp-error { min-height: 18px; font-size: 12.5px; color: var(--danger); }
.otp-actions { display: flex; justify-content: center; gap: 10px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .form-grid-3col { grid-template-columns: 1fr 1fr; }
  .form-grid-4col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-grid-3col, .form-grid-4col { grid-template-columns: 1fr; }
  .confirm-v3__detail .confirm-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Check Application Status + Request Site Key (V2)
   ============================================================ */

/* cool/info variant of the notice banner */
.notice-banner--cool { background: var(--brand-tint); border-color: var(--brand-line); border-left-color: var(--brand-strong); }
.notice-banner--cool .notice-banner__eyebrow { color: var(--brand-strong); }

/* status legend pills */
.status-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-secondary); }
.pill-pending { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning); }
.pill-approved { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }
.pill-attention { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.28); color: #2563eb; }

/* ---- search card ---- */
.status-card { margin-bottom: 18px; }
.method-pills { margin-bottom: 16px; }
.status-input-grid { max-width: none; }
.status-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.status-actions .btn { min-width: 220px; justify-content: center; }
.otp-hint { font-size: 12.5px; color: var(--text-secondary); margin: 0; }
.demo-hint { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }

/* ---- result card ---- */
.status-result > * { padding-left: clamp(18px, 2.4vw, 26px); padding-right: clamp(18px, 2.4vw, 26px); }
.status-header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: clamp(18px, 2.4vw, 24px); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.status-label { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px; }
.status-header-title { font-family: var(--font-mono); font-size: 20px; color: var(--text-heading); margin: 0; letter-spacing: -.01em; }
.status-lede { font-size: 13px; color: var(--text-secondary); margin: 6px 0 0; }
.status-badge-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--line); }
.status-badge.approved { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.status-badge.pending { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.status-badge.attention { background: rgba(37,99,235,.12); color: #2563eb; border-color: rgba(37,99,235,.28); }
.status-chip { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--brand-strong);
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--r-pill); padding: 4px 12px; }

.status-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.status-meta-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.status-meta-card strong { font-size: 14px; color: var(--text-heading); }
.meta-sub { font-size: 12px; color: var(--text-secondary); }

.status-body-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding-bottom: clamp(18px, 2.4vw, 24px); }
.status-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.panel-title { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }

/* timeline */
.timeline-list { display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-strong); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--brand-line); }
.timeline-date { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.timeline-text { font-size: 13px; color: var(--text-heading); margin-top: 2px; line-height: 1.45; }

/* next-action states */
.status-state { display: flex; flex-direction: column; gap: 8px; }
.state-title { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.state-title.success { color: var(--success); }
.state-title.attention { color: #2563eb; }
.state-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.state-meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.ppo-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--success-bg);
  border: 1px solid var(--success-line); border-radius: var(--r-m); padding: 10px 14px; font-family: var(--font-mono); font-weight: 700; color: var(--success); }
.attention-list { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.copy-btn { white-space: nowrap; }

/* ============================================================
   Request Site Key
   ============================================================ */
.request-grid { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 20px; align-items: start; }
.req-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: clamp(18px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 16px; }
.req-info-head h3 { font-size: 17px; color: var(--text-heading); margin: 10px 0 6px; letter-spacing: -.01em; }
.req-info-head p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-pill); }
.chip-primary { background: var(--brand-tint); color: var(--brand-strong); border: 1px solid var(--brand-line); }
.req-info-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.req-info-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px; }
.req-info-note strong { display: block; font-size: 13px; color: var(--text-heading); margin-bottom: 4px; }
.req-info-note p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.req-meta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.req-meta-card strong { font-size: 13.5px; color: var(--text-heading); }
.link-underline { font-size: 13.5px; color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.public-reg-main .text-area { width: 100%; min-height: 92px; resize: vertical; border: 1.5px solid var(--border-control); border-radius: var(--r-m);
  background: var(--surface); color: var(--text-heading); font-family: var(--font-sans); font-size: 14px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.public-reg-main .text-area:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.request-disclaimer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 15px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.request-disclaimer strong { color: var(--text-heading); }

/* success card — sits in the form's column (info card stays on the left) */
.request-success { text-align: center; padding: clamp(24px, 4vw, 40px); align-items: center; }
.success-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.success-icon svg { width: 30px; height: 30px; }
.success-title { font-size: clamp(20px, 3vw, 26px); color: var(--text-heading); margin: 0 0 8px; letter-spacing: -.02em; }
.success-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 auto; max-width: 460px; }
.success-desc.muted { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.site-key-box { display: inline-flex; align-items: center; gap: 14px; margin: 18px auto 6px; background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--r-l); padding: 14px 20px; }
.site-key-value { font-family: var(--font-mono); font-size: 34px; font-weight: 700; letter-spacing: .18em; color: var(--brand-strong); }
.copy-hint { font-size: 12.5px; color: var(--success); min-height: 16px; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 860px) {
  .status-meta-grid { grid-template-columns: 1fr; }
  .status-body-grid { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .req-info-card { order: 2; }
}

/* ---- side padding for cards that don't use a .reg-section wrapper ---- */
.status-card .form-section,
.request-card .form-section { padding: 18px clamp(18px, 2.4vw, 26px) clamp(16px, 2.4vw, 22px); }

/* result card: "check another" action */
.status-result-top { display: flex; justify-content: flex-end; padding: 14px clamp(18px, 2.4vw, 26px) 0 !important; }

/* when the request grid is replaced by success, center the success card */
body.page-public--ppo .public-reg-main .reg-card.request-success { max-width: 620px; margin: 0 auto; }

/* ============================================================
   Title icons + card-less hero
   ============================================================ */
/* reusable icon badge beside a title */
.title-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-m);
  background: var(--brand-tint); color: var(--brand-strong); border: 1px solid var(--brand-line); }
.title-ic svg { width: 21px; height: 21px; }

/* form-card header with a leading icon (find-ppo-id "Resident onboarding") */
.reg-header__lead { display: flex; align-items: center; gap: 13px; }

/* property name shown beside "Resident onboarding" once the Site Key is valid */
.reg-header-prop { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-tint);
  border: 1px solid var(--brand-line); border-radius: var(--r-m); padding: 8px 14px; }
.reg-header-prop__ic { display: grid; place-items: center; width: 22px; height: 22px; color: var(--brand-strong); flex: none; }
.reg-header-prop__ic svg { width: 18px; height: 18px; }
.reg-header-prop__txt { display: flex; flex-direction: column; line-height: 1.2; }
.reg-header-prop__txt small { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.reg-header-prop__txt strong { font-size: 14px; color: var(--text-heading); }

/* intro h1 with a leading icon (check status) */
.public-reg-title.has-ic { display: flex; align-items: center; gap: 12px; }

/* card-less centered hero (Request a Site Key) — matches the landing hero */
.ppo-hero { text-align: center; padding: clamp(6px, 2vw, 18px) 16px clamp(16px, 2.5vw, 28px); }
.ppo-hero .public-reg-kicker { margin-bottom: 10px; }
.ppo-hero .public-reg-title { display: inline-flex; align-items: center; gap: 13px; justify-content: center;
  font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; }
.ppo-hero .public-reg-sub { margin: 0 auto; max-width: 580px; font-size: 15px; }

/* ============================================================
   Dark mode — full glass treatment (cards + inputs), PPO pages.
   Matches the frosted hero search look from the landing.
   ============================================================ */
[data-theme="dark"] .public-reg-main .reg-card,
[data-theme="dark"] .public-reg-main .req-info-card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.11);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.6);
}
[data-theme="dark"] .public-reg-main .reg-header,
[data-theme="dark"] .public-reg-main .reg-footer,
[data-theme="dark"] .public-reg-main .status-header { border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .public-reg-main .reg-steps,
[data-theme="dark"] .public-reg-main .status-panel,
[data-theme="dark"] .public-reg-main .status-meta-card,
[data-theme="dark"] .public-reg-main .req-info-note,
[data-theme="dark"] .public-reg-main .request-disclaimer,
[data-theme="dark"] .public-reg-main .vehicle-card {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09);
}
[data-theme="dark"] .public-reg-main .text-box:not([readonly]):not(:disabled),
[data-theme="dark"] .public-reg-main .dt-field,
[data-theme="dark"] .public-reg-main .select-box:not(:disabled),
[data-theme="dark"] .public-reg-main .text-area {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
[data-theme="dark"] .public-reg-main .text-box:not([readonly]):not(:disabled):focus,
[data-theme="dark"] .public-reg-main .dt-field:focus-within,
[data-theme="dark"] .public-reg-main .select-box:not(:disabled):focus,
[data-theme="dark"] .public-reg-main .text-area:focus { border-color: var(--brand); background: rgba(255,255,255,.13); }
[data-theme="dark"] .public-reg-main .dt-field__now,
[data-theme="dark"] .public-reg-main .dt-field__verify { background: rgba(255,255,255,.07); border-left-color: rgba(255,255,255,.16); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .public-reg-main .reg-card,
  :root:not([data-theme="light"]) .public-reg-main .req-info-card {
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.11);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 24px 60px -28px rgba(0,0,0,.6);
  }
  :root:not([data-theme="light"]) .public-reg-main .reg-header,
  :root:not([data-theme="light"]) .public-reg-main .reg-footer,
  :root:not([data-theme="light"]) .public-reg-main .status-header { border-color: rgba(255,255,255,.10); }
  :root:not([data-theme="light"]) .public-reg-main .reg-steps,
  :root:not([data-theme="light"]) .public-reg-main .status-panel,
  :root:not([data-theme="light"]) .public-reg-main .status-meta-card,
  :root:not([data-theme="light"]) .public-reg-main .req-info-note,
  :root:not([data-theme="light"]) .public-reg-main .request-disclaimer,
  :root:not([data-theme="light"]) .public-reg-main .vehicle-card {
    background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09);
  }
  :root:not([data-theme="light"]) .public-reg-main .text-box:not([readonly]):not(:disabled),
  :root:not([data-theme="light"]) .public-reg-main .dt-field,
  :root:not([data-theme="light"]) .public-reg-main .select-box:not(:disabled),
  :root:not([data-theme="light"]) .public-reg-main .text-area {
    background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  :root:not([data-theme="light"]) .public-reg-main .text-box:not([readonly]):not(:disabled):focus,
  :root:not([data-theme="light"]) .public-reg-main .dt-field:focus-within,
  :root:not([data-theme="light"]) .public-reg-main .select-box:not(:disabled):focus,
  :root:not([data-theme="light"]) .public-reg-main .text-area:focus { border-color: var(--brand); background: rgba(255,255,255,.13); }
  :root:not([data-theme="light"]) .public-reg-main .dt-field__now,
  :root:not([data-theme="light"]) .public-reg-main .dt-field__verify { background: rgba(255,255,255,.07); border-left-color: rgba(255,255,255,.16); }
}

/* ---- loading state on the lookup "go" arrow (search) ---- */
.lookup__go { position: relative; }
.lookup__go.is-loading { pointer-events: none; }
.lookup__go.is-loading > svg { opacity: 0; }
.lookup__go.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: regspin .7s linear infinite; }

/* wider Type of Resident pills on the Request Site Key form */
.request-card .inline-radio { display: flex; gap: 10px; }
.request-card .inline-radio .radio-pill { flex: 1; justify-content: center; }

/* ============================================================
   Resident application page (/private/application)
   The conversation on the left, the application it is about on
   the right. Padding and type follow the registration card, so
   this reads as the same family of forms.
   ============================================================ */
.public-reg-main .reg-card.app-card { max-width: 1080px; }

/* the header needs the card's own side padding — it sits outside .form-section */
.app-card .status-header { padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.4vw, 28px); }
.app-card .app-split { padding: 0 clamp(18px, 2.4vw, 28px) clamp(18px, 2.2vw, 24px); }
/* .form-section brings its own side padding for card-less layouts; inside the split the
   column already provides it, so take it back and keep only the vertical rhythm */
.app-card .app-split .form-section { padding: 20px 0; }
.app-card .app-split .form-section:first-of-type { padding-top: 4px; border-top: 0; }
.app-card .app-split .form-section > h3 { font-size: 15.5px; margin: 0 0 14px; }
.app-card .app-split .field-hint { font-size: 13px; }
.app-card .app-split .form-field > label,
.app-card .app-split .form-label { font-size: 13.5px; }
.app-card .vehicle-card { padding: 18px; gap: 16px; }
.app-card .reg-footer { padding: 18px 0 0; border-top: 1px solid var(--line); }

/* ---- the thread rail ---- */
.app-thread {
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface-2);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.app-thread__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-thread__head h3 { font-size: 15.5px; color: var(--text-heading); margin: 0; }
.app-thread__count { font-size: 12.5px; color: var(--text-muted); }
.app-thread__empty { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; }

.app-thread__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px;
  max-height: 420px; overflow-y: auto; }
.app-msg { display: flex; flex-direction: column; gap: 5px; }
.app-msg__meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-muted); }
.app-msg__who { font-weight: 700; font-size: 12px; color: var(--text-heading); letter-spacing: .01em; }
.app-msg__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex: none; }
.app-msg--admin .app-msg__dot { background: var(--brand-strong); }
.app-msg__body {
  font-size: 13.5px; line-height: 1.55; color: var(--text-heading); margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* the manager's side is what the resident is answering — give it the accent edge */
.app-msg--admin .app-msg__body { border-left: 3px solid var(--brand-strong); }

.app-thread__compose { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.app-thread__compose .text-area { min-height: 84px; font-size: 13.5px; }
.app-thread__send { align-self: flex-start; }
.app-thread__compose .field-hint { font-size: 12px; }

@media (min-width: 961px) {
  .app-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
  .app-split__main { min-width: 0; }
  .app-split__side { position: sticky; top: 18px; }
}
@media (max-width: 960px) {
  /* stacked: the conversation still comes first — it is why the resident is here */
  .app-split { display: flex; flex-direction: column; gap: 20px; }
  .app-thread__list { max-height: none; }
}

/* header: keep the badge beside the title — a long property address was wrapping it below */
.app-card .status-header { flex-wrap: nowrap; align-items: flex-start; }
.app-card .status-header > div:first-child { min-width: 0; }
.app-card .status-lede { overflow-wrap: anywhere; }
.app-card .status-badge-wrap { flex: none; }
@media (max-width: 640px) {
  .app-card .status-header { flex-wrap: wrap; }
  .app-card .status-badge-wrap { align-items: flex-start; }
}

/* the ownership document sits on its own row: file button first, what is on file beside it */
.vehicle-doc__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* .file-input is width:100% by default, which would push the "on file" line onto its own row */
.vehicle-doc__row .doc-input { width: auto; flex: 0 1 auto; min-width: 240px; }
.vehicle-doc__row .doc-existing { margin: 0; font-size: 13px; flex: 1 1 200px; }

/* a hint that introduces a group of fields needs air before the labels */
.app-card .app-split .form-section > .field-hint { margin-bottom: 14px; }
