/* ── STYLES.CSS ───────────────────────────────────────────────────────────── */
/* Saving Grace Funds Recovery - Claim Portal Styles                          */
/* Extracted from surplus-claim-funnel-v2.html + new styles for modular build */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --navy:       #1a2340;
  --navy-light: #243058;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-pale:  #f5e9c8;
  --white:      #ffffff;
  --off-white:  #f8f6f0;
  --text:       #2c2c2c;
  --text-muted: #6b6b6b;
  --border:     #ddd4b8;
  --success:    #2d6a4f;
  --urgent:     #8b1a1a;
  --radius:     4px;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
}
.hidden { display: none !important; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
header {
  background: var(--navy);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}
header img { height: 52px; object-fit: contain; }
.header-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.header-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold-light); font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.header-contact {
  font-size: 14px; color: rgba(255,255,255,0.75);
}
.header-contact a { color: var(--gold-light); text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .header-contact { font-size: 13px; text-align: right; }
}

/* Header action row (added 8/20, Shannon's direct request) - Return to
   Search / Log Out / Signed In / Manage Account / My Claims / Create an
   Account all sit on ONE row now instead of each stacking on its own line
   inside .header-right's column flex, to conserve vertical space. flex-wrap
   lets narrow viewports fall back to wrapping rather than overflowing. */
.header-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
}

/* Persistent "Return to Search" (added 8/17) - same header chrome tier as
   "My Other Claims" below, styled to match its bordered/gold-text look. */
.header-return-to-search-btn {
  background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius);
  color: var(--gold-light); font-size: 13px; font-weight: 600;
  padding: 4px 10px; cursor: pointer;
}
.header-return-to-search-btn:hover { border-color: var(--gold-light); }

/* Gold-filled variant of .header-return-to-search-btn, for the one header
   control that's a genuine call-to-action rather than a neutral utility
   (Create an Account) - added 8/20, Shannon's "make it more obvious"
   feedback applied to the header the same way .add-owner-btn's gold fill
   already signals "primary action" elsewhere in this file. */
.header-cta-btn {
  background: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius);
  color: var(--navy); font-size: 13px; font-weight: 700;
  padding: 4px 10px; cursor: pointer;
}
.header-cta-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Unified header account control (added 8/24) - #headerAccountPrimaryBtn
   reuses .header-return-to-search-btn/.header-cta-btn above depending on
   state (plain outline for Sign In/Log Out, gold fill for Create an
   Account - toggled by search.js's _refreshHeaderAccount()). The dropdown
   next to it reuses .staff-tools/.staff-tools-trigger/.staff-tools-dropdown/
   .staff-tools-item verbatim (see #headerAccountMenu in index.html) - same
   trigger+caret+dropdown component already used for Staff Tools/Agent
   Tools, just white/bordered here to match the dark header instead of the
   light lookup-card header it normally sits in. */
#headerAccountMenu .staff-tools-trigger {
  background: none; border: 1px solid rgba(255,255,255,0.35); color: var(--gold-light);
  padding: 4px 10px; font-size: 13px; font-weight: 600; text-transform: none;
  letter-spacing: normal;
}
#headerAccountMenu .staff-tools-trigger:hover { border-color: var(--gold-light); background: none; }
#headerAccountMenu .staff-tools-dropdown { min-width: 180px; }

/* ── STAFF IMPERSONATION BANNER (added 8/22) ────────────────────────────────
   Shown only while staff is "Logged in as" a specific agent via the Staff
   Tools roster (api.js's setImpersonating/getImpersonating). Gold, not
   --urgent red - this is a staff-context status indicator, not an urgency
   message to a claimant. */
.impersonation-banner {
  background: var(--gold); color: var(--navy);
  padding: 9px 24px; text-align: center;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.impersonation-banner-end-btn {
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
  border-radius: var(--radius); padding: 3px 12px; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.impersonation-banner-end-btn:hover { background: var(--navy); color: #fff; }

/* ── URGENT BAR ──────────────────────────────────────────────────────────── */
.urgent-bar {
  background: var(--urgent); color: #fff;
  padding: 13px 24px; text-align: center;
  font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.urgent-bar .pulse {
  width: 10px; height: 10px; background: #ff6b6b; border-radius: 50%;
  animation: pulse 1.8s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d3f6e 100%);
  padding: 48px 24px 52px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.12) 0%, transparent 65%);
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.18); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 2px; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5vw, 44px); font-weight: 700;
  color: var(--white); line-height: 1.2;
  max-width: 780px; margin: 0 auto 16px; position: relative;
}
.hero h1 span { color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.75); font-size: 18px; max-width: 580px; margin: 0 auto; line-height: 1.6; position: relative; }

/* ── MAIN ────────────────────────────────────────────────────────────────── */
.main { max-width: 860px; margin: 0 auto; padding: 36px 20px 60px; }

/* ── SHARED CARD BASE ────────────────────────────────────────────────────── */
.card-base {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px;
  margin-bottom: 28px; box-shadow: var(--shadow);
}

/* ── SEARCH CARD ─────────────────────────────────────────────────────────── */
.lookup-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.lookup-card h2 {
  font-family: 'Playfair Display', serif; font-size: 21px;
  color: var(--navy); margin-bottom: 6px;
}
.lookup-card p { font-size: 16px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }

/* ── STAFF TOOLS DROPDOWN (8/16) ─────────────────────────────────────────── */
/* Replaced five separate .cancel-btn "links" floated right, which visually
   collided with the h2/p above once a fifth was added. */
.lookup-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.lookup-card-header > div:first-child { flex: 1; min-width: 240px; }
.staff-tools { position: relative; flex-shrink: 0; }
.staff-tools-trigger {
  background: var(--off-white); border: 1px solid var(--border); color: var(--navy);
  padding: 9px 16px; font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.staff-tools-trigger:hover { background: var(--gold-pale); border-color: var(--gold); }
.staff-tools-caret { font-size: 11px; }
.staff-tools-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 230px; padding: 6px;
}
.staff-tools-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-size: 14px; padding: 9px 12px; border-radius: 3px;
  cursor: pointer; font-family: 'Lato', sans-serif;
}
.staff-tools-item:hover { background: var(--gold-pale); color: var(--navy); }

/* ── AGENT VETTED FILTER + BADGE (8/16, Manage Agents panel) ────────────── */
.agent-vetted-filter { display: flex; gap: 6px; margin: 10px 0 12px; }
.agent-vetted-filter-btn {
  background: var(--off-white); border: 1px solid var(--border); color: var(--text-muted);
  padding: 5px 12px; font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; border-radius: 14px; cursor: pointer;
}
.agent-vetted-filter-btn:hover { border-color: var(--gold); color: var(--navy); }
.agent-vetted-filter-btn.active {
  background: var(--navy); border-color: var(--navy); color: var(--gold-light);
}
.vetted-badge {
  display: inline-block; background: var(--gold-pale); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 10px; vertical-align: middle;
}

/* Prominent "Already have an account? Sign in" callout (added 8/20,
   Shannon's direct request - the old copy was a small plain text link
   buried below the lookup form). Sits above "Look Up Your Claim" itself so
   a returning account holder sees it first. Gold-pale fill makes it read as
   a distinct, elevated prompt rather than one more line of body copy. */
.signin-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--gold-pale); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px;
}
.signin-callout p { font-size: 15px; color: var(--navy); margin: 0; }
.signin-callout .outline-btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .signin-callout { flex-direction: column; align-items: flex-start; }
}

/* Below-the-lookup-box action buttons (Forgot Claim #/ID, Agent/Staff
   Login) - added 8/20, replacing plain text links with real .outline-btn
   buttons per Shannon's direct request. flex-wrap for narrow viewports. */
.lookup-actions-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}

/* Compact search bar (added 8/24, Shannon's direct request - keep the
   search box reachable at the top of the page instead of a header "Return
   to Search" button bringing back a hidden form). Toggled on #searchSection
   itself once an identity resolves (search.js's _enterCompactSearchMode()) -
   shrinks the heading and hides the description + the below-the-box
   Forgot/Agent-Staff-Login row (both only relevant before an identity
   exists), but leaves the actual Claim Number/Claimant ID/Search table
   full-size and untouched - it's the one thing that has to stay just as
   usable, compact or not. */
.lookup-compact { padding-bottom: 20px; }
.lookup-compact #claimLookupHeading p,
.lookup-compact .lookup-actions-row { display: none; }
.lookup-compact #claimLookupHeading h2 { font-size: 15px; margin-bottom: 12px; }

/* Three-column Claim Number / Claimant ID / Search table (replaced the old
   two-row .lookup-row layout 8/17, Shannon's direct request - the Search
   button used to sit in its own row above Claimant ID, which read oddly and
   wasted vertical space on mobile). table-layout:fixed keeps the three
   columns evenly sized regardless of content length; the mobile media query
   below stacks all three into one column, same "wrap on mobile" pattern
   already used for .demo-actions-table. */
.lookup-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lookup-table td { padding: 0 8px; vertical-align: bottom; }
.lookup-table td:first-child { padding-left: 0; }
.lookup-table td:last-child { padding-right: 0; }
.lookup-table label {
  display: block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.lookup-table input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 3px;
  font-family: 'Lato', sans-serif; font-size: 17px; color: var(--text);
  background: var(--white); transition: border-color 0.2s;
}
.lookup-table input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.lookup-table .lookup-btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .lookup-table, .lookup-table tbody, .lookup-table tr, .lookup-table td {
    display: block; width: 100%;
  }
  .lookup-table td { padding: 0 0 12px; }
  .lookup-table td:last-child { padding-bottom: 0; }
}
.lookup-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 12px 28px; font-family: 'Lato', sans-serif; font-size: 15px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.lookup-btn:hover { background: var(--navy-light); }
.lookup-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── STATUS MESSAGES ─────────────────────────────────────────────────────── */
.status-msg {
  margin-top: 12px; padding: 10px 14px; border-radius: 3px;
  font-size: 15px; font-weight: 700; display: none;
}
.status-msg.error   { background: #fdf2f2; color: var(--urgent); border: 1px solid #e8c8c8; }
.status-msg.loading { background: #f0f4ff; color: var(--navy);   border: 1px solid #c8d4e8; }

/* ── CASE SELECTOR (same claim #, multiple claimants) ───────────────────── */
#caseSelectorSection {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.case-selector-title {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--navy); margin: 0 0 8px;
}
.case-selector-hint {
  font-size: 16px; color: var(--text-muted); margin: 0 0 24px;
}
.case-selector-list { display: flex; flex-direction: column; gap: 12px; }
.case-selector-card {
  border: 1.5px solid var(--border); border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.case-selector-card:hover {
  border-color: var(--navy); box-shadow: 0 2px 10px rgba(26,54,93,0.10);
}
.case-selector-card-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; gap: 16px; flex-wrap: wrap;
}
.case-selector-main  { flex: 1; min-width: 180px; }
.case-selector-name  { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.case-selector-address { font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.case-selector-surplus { font-size: 14px; color: var(--success); font-weight: 600; }
.case-selector-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 10px 20px; font-family: 'Lato', sans-serif; font-size: 14px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.case-selector-btn:hover { background: var(--navy-light); }
.case-selector-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.case-selector-manage-link:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: none; }
.case-selector-btn:disabled:hover { background: var(--navy); }

.case-selector-role-badge {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 10px;
  background: #eef1f8; color: var(--navy); margin-top: 2px;
}
.case-selector-role-badge.role-unset { background: #f3f3f3; color: #999; }
.case-selector-role-badge.role-reference { background: #fdf3e0; color: #8a6d1f; margin-left: 6px; }
.case-selector-reference-note {
  font-size: 14px; color: var(--text-muted); font-style: italic;
  margin: 0; flex-shrink: 0; max-width: 220px; text-align: right;
}
.case-selector-manage-row { width: 100%; margin-top: 8px; }
.case-selector-manage-link {
  background: none; border: none; padding: 0; font-family: 'Lato', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: underline;
  cursor: pointer;
}
.case-selector-manage-link:hover { color: var(--navy); }
.case-edit-panel {
  width: 100%; margin-top: 14px; padding: 16px; background: #f8f9fb;
  border: 1px solid var(--border); border-radius: 4px;
}
.case-edit-row { margin-bottom: 12px; }
.case-edit-row label {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.case-edit-copyfrom { display: flex; gap: 8px; flex-wrap: wrap; }
.case-edit-copyfrom select { flex: 1; min-width: 160px; }
.case-edit-copy-btn { white-space: nowrap; }
.rep-link-list {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 12px;
}
.rep-link-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; text-transform: none;
  letter-spacing: normal; color: var(--ink-1, #222);
}
.rep-link-checkbox input[type="checkbox"] { width: auto; margin: 0; }
.override-toggle-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; text-transform: none;
  letter-spacing: normal; color: var(--ink-1, #222);
}
.override-toggle-label input[type="checkbox"] { width: auto; margin: 0; }
.share-link-row { display: flex; gap: 8px; }
.share-link-row input[type="text"] {
  flex: 1; font-family: monospace; font-size: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 3px;
  padding: 8px 10px; color: var(--ink-1, #222);
}
.share-link-qr {
  margin: 14px 0 18px; width: 140px; height: 140px; box-sizing: content-box;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 8px;
}
.share-link-qr svg { width: 100%; height: 100%; }
.invoice-row { display: flex; align-items: center; gap: 8px; }
.invoice-row .invoice-dollar { font-weight: 700; color: var(--navy); }
.invoice-row input[type="text"] {
  width: 120px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
}
.case-edit-saved-msg { font-size: 15px; color: var(--success); font-weight: 600; margin-bottom: 10px; }
.case-edit-field-warning { color: var(--ink-3, #7a6a3a); font-weight: 500; }
.coupon-list { margin-bottom: 10px; }
.coupon-list-row {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 15px; margin-bottom: 6px; background: var(--bg-alt, #f7f7f5);
}
.coupon-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coupon-form input[type="text"] {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
}
.coupon-form select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
}
/* ── ADD AN EXISTING PERSON (8/15) ────────────────────────────────────────── */
.add-existing-results { margin: 10px 0; }
.add-existing-result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 15px; margin-bottom: 6px; background: var(--bg-alt, #f7f7f5);
}
.add-existing-result-row > div:first-child { flex: 1; }
.add-existing-add-btn { white-space: nowrap; }
/* ── INVOICE MANAGEMENT (8/5) ─────────────────────────────────────────────── */
.invoice-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 15px; margin-bottom: 6px; background: var(--bg-alt, #f7f7f5);
}
.invoice-list-row .invoice-cancel-row-btn {
  background: none; border: 1px solid var(--border); color: #a33;
  font-size: 14px; cursor: pointer; padding: 4px 10px; border-radius: 3px; white-space: nowrap;
}
.invoice-list-row .invoice-cancel-row-btn:hover { background: #fbeaea; border-color: #a33; }
.invoice-list-row .invoice-cancel-row-btn:disabled { opacity: 0.5; cursor: default; }
.cancel-btn.danger { color: #a33; }
.cancel-btn.danger:hover { color: #7a2424; }
.coupon-form input[id^="couponCode_"] { width: 130px; }
.coupon-form input[id^="couponMaxUses_"] { width: 170px; }
.coupon-form input[id^="couponNote_"] { flex: 1; min-width: 160px; }


#resultsSection {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.results-header { margin-bottom: 20px; }
.results-count { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.results-hint  { font-size: 15px; color: var(--text-muted); }
.result-card {
  border: 1.5px solid var(--border); border-radius: 3px;
  margin-bottom: 12px; transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.result-card:hover { border-color: var(--gold); box-shadow: 0 2px 10px rgba(201,168,76,0.15); }
.result-card-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; gap: 16px; flex-wrap: wrap;
}
.result-main   { flex: 1; min-width: 180px; }
.result-name   { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.result-address{ font-size: 15px; color: var(--text-muted); }
.result-case   { font-size: 14px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.04em; }
.result-right  { text-align: right; flex-shrink: 0; }
.result-surplus{ font-family: 'Playfair Display', serif; font-size: 24px; color: var(--success); font-weight: 700; }
.result-surplus-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.result-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 9px 18px; font-family: 'Lato', sans-serif; font-size: 14px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.result-btn:hover { background: var(--navy-light); }

/* ── PROPERTY CARD ───────────────────────────────────────────────────────── */
.property-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.property-card .section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.property-card h2 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 20px; }
.property-card h2 span { color: var(--gold); }
.property-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; background: var(--off-white); border: 1px solid var(--border);
  border-radius: 3px; padding: 20px; margin-bottom: 20px;
}
.detail-item .label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.detail-item .value { font-size: 17px; font-weight: 700; color: var(--navy); }
.detail-item .value.surplus {
  font-size: 24px; color: var(--success); font-family: 'Playfair Display', serif;
}
.entitlement-notice {
  background: linear-gradient(to right, #f0f7f4, #e8f5ee);
  border-left: 4px solid var(--success);
  padding: 16px 20px; border-radius: 0 3px 3px 0;
  font-size: 17px; line-height: 1.6; color: var(--text);
}
.entitlement-notice strong { color: var(--success); }

/* ── CONTACT FORM CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-num {
  width: 32px; height: 32px; background: var(--navy); color: var(--gold-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.card-header h3 { font-family: 'Playfair Display', serif; font-size: 21px; color: var(--navy); }
.card-header p  { font-size: 15px; color: var(--text-muted); margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 3px; font-family: 'Lato', sans-serif; font-size: 17px;
  color: var(--text); background: var(--white); transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.save-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 12px 28px; font-family: 'Lato', sans-serif; font-size: 15px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; margin-top: 20px;
  transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.save-btn:hover  { background: var(--navy-light); }
.save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.save-status { font-size: 15px; color: var(--success); font-weight: 700; margin-top: 10px; display: none; }

/* ── OWNERS SECTION ──────────────────────────────────────────────────────── */
#ownersSection {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
#ownersSection h3 {
  font-family: 'Playfair Display', serif; font-size: 21px; color: var(--navy);
  margin-bottom: 8px;
}
#ownersSection > p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.owners-loading { color: var(--text-muted); font-size: 16px; padding: 12px 0; }
/* ── OWNERS SECTION GROUPS ──────────────────────────────────────────────── */
.owners-section { margin-bottom: 28px; }
.owners-section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.owners-section-assignees .owners-section-label { color: #7a5c00; }
.owners-section-poa .owners-section-label       { color: #1a4060; }

/* ── OWNER ROW ───────────────────────────────────────────────────────────── */
.owner-card { margin-bottom: 8px; }
.owner-row {
  display: flex; align-items: flex-start; gap: 14px;
  flex-wrap: wrap; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.owner-row:last-child { border-bottom: none; }
.owner-row-unmatched { flex-direction: column; }

/* ── CHIPS ───────────────────────────────────────────────────────────────── */
.owner-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 9px; border-radius: 20px;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
  border: 1.5px solid transparent;
}
.chip-icon { font-size: 15px; }
.chip-name { color: inherit; }
.chip-role {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; opacity: 0.7; margin-left: 2px;
}

/* YOU chip - gold */
.chip-you {
  background: var(--gold-pale); color: var(--navy);
  border-color: var(--gold);
}
/* Known deed owner chip - navy */
.chip-owner {
  background: #eef1f8; color: var(--navy);
  border-color: #b0bbdd;
}
/* Added-this-session chip - green */
.chip-added {
  background: #e8f5ee; color: var(--success);
  border-color: #a8d4b8;
}
/* Unmatched (no GHL record) chip - amber */
.chip-unmatched {
  background: #fdf6e8; color: #7a5c00;
  border-color: #e0c060;
}
/* Deceased chip - muted */
.chip-deceased {
  background: #f4f4f4; color: #888;
  border-color: #ccc;
  font-style: italic;
}

.owner-status-note { font-size: 15px; color: var(--text-muted); align-self: center; }

/* ── DISPOSITION ─────────────────────────────────────────────────────────── */
.disposition-panel { flex: 1; min-width: 220px; }
.disp-prompt { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.disp-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.disp-btn {
  padding: 6px 14px; font-size: 14px; font-family: 'Lato', sans-serif;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--border); border-radius: 20px;
  background: #fff; color: var(--navy); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.disp-btn:hover { border-color: var(--gold); background: var(--gold-pale); }

.disposition-set { display: flex; align-items: center; gap: 10px; align-self: center; }
.disp-label {
  padding: 4px 12px; border-radius: 20px; font-size: 13px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.disp-deceased { background: #f0f0f0; color: #777; }
.disp-assigned { background: #fff3cd; color: #7a5c00; }
.disp-included { background: #e8f5ee; color: var(--success); }
.disp-separate { background: #eef1f8; color: var(--navy); }
.disp-unknown  { background: #fdf2f2; color: var(--urgent); }

.disp-change-btn {
  font-size: 13px; color: var(--text-muted); background: none;
  border: none; cursor: pointer; text-decoration: underline; padding: 0;
}
.disp-change-btn:hover { color: var(--navy); }

/* ── ADD MISSING / UNMATCHED FORMS ───────────────────────────────────────── */
.add-owner-form { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.add-owner-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.add-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.add-form-full { grid-column: 1 / -1; }
.add-owner-error { font-size: 15px; color: var(--urgent); font-weight: 700; margin-bottom: 8px; }
.add-owner-btn {
  background: var(--gold); color: var(--navy); border: none;
  padding: 10px 22px; font-family: 'Lato', sans-serif; font-size: 15px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.add-owner-btn:hover { background: var(--gold-light); }
.owners-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.begin-claim-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 14px 32px; font-family: 'Lato', sans-serif; font-size: 16px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.begin-claim-btn:hover   { background: var(--navy-light); }
.begin-claim-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.owners-hint { font-size: 15px; color: var(--text-muted); margin-top: 10px; }

/* ── PERCENT-OWNED VERIFICATION SCREEN (added 8/10) ─────────────────────── */
.percent-intro { font-size: 16px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.percent-rows { margin-bottom: 4px; }
.percent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.percent-row:last-child { border-bottom: none; }
.percent-row-locked { opacity: 0.7; }
.percent-row-name { font-size: 16px; color: var(--navy); font-weight: 600; }
.percent-row-input { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.percent-input {
  width: 84px; padding: 8px 10px; font-size: 16px; text-align: right;
  border: 1.5px solid var(--border); border-radius: 3px; font-family: 'Lato', sans-serif;
}
.percent-input:focus { outline: none; border-color: var(--gold); }
.percent-sign { font-size: 16px; color: var(--text-muted); }
.percent-locked-value { font-size: 16px; color: var(--text-muted); padding: 8px 10px; }
.percent-total-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 0 4px; font-size: 17px; font-weight: 700; color: var(--navy);
}
.percent-total-value { font-size: 19px; }
.percent-total-value.percent-total-ok  { color: var(--success); }
.percent-total-value.percent-total-bad { color: var(--urgent); }
.percent-error {
  font-size: 15px; color: var(--urgent); font-weight: 700;
  margin-top: 10px; text-align: right;
}
.percent-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.percent-actions .begin-claim-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── ASSIGNEE SELF-SERVICE: OTHER CONTACTS ON THIS CASE ───────────────────── */
.case-selector-other-contacts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.case-edit-subheading {
  font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy);
  margin-bottom: 12px;
}

/* ── ADD MISSING CO-OWNER ────────────────────────────────────────────────── */
.add-missing-toggle { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
.add-missing-btn {
  background: none; border: 1.5px dashed var(--border);
  color: var(--text-muted); font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 700; padding: 8px 16px;
  border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.add-missing-btn:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-pale); }
.add-missing-form { margin-top: 14px; }

/* ── CLOSABLE PANEL (added 8/24, Shannon's direct request) - a toggle panel
   with a Close button at the bottom needs to visually read as its own
   distinct box, not blend into the surrounding page with no visual cue
   about where it starts/ends. Applied alongside .add-missing-form on
   exactly the panels that have a real Close button (Resend a Link, Pending
   Agent Applications, Manage Agents, Merge Duplicate Contacts, Forgot Link,
   Agent Login) - deliberately NOT the persistent always-on agent search
   panel, which has no close concept at all and shouldn't look like a
   dismissible overlay. */
.closable-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-alt, #f7f7f5);
  padding: 14px 16px;
}
.add-missing-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.cancel-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 15px; cursor: pointer; text-decoration: underline; padding: 0;
}
.cancel-btn:hover { color: var(--navy); }

/* ── CONTAINED ACTION BUTTONS (added 8/17) ───────────────────────────────
   For "Attach Me as Assignee," "Browse Unclaimed Cases," "Reset Demo Data,"
   and the demo-entry buttons - a real bordered button, not .cancel-btn's
   plain-underlined-text look, which read as just a link despite already
   being a <button> element (Shannon's direct request: "contained and
   visually obvious"). */
.outline-btn {
  background: #fff; border: 1.5px solid var(--navy); color: var(--navy);
  font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700;
  padding: 8px 16px; border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.outline-btn:hover { background: var(--navy); color: #fff; }
.outline-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Constrained to at most 30% of the row's own width (added 8/17, Shannon's
   direct request - found on mobile, a long label like "Attach Me as
   Assignee for All 3 Owners" was taking up more space than the actual case
   data next to it). white-space:normal is already a <button>'s own default,
   so text was already wrapping - this just caps the box itself and lets the
   text div (flex:1, set elsewhere) take the rest. flex-shrink:0 keeps it
   from being squeezed thinner than its own content demands on top of the
   cap. Smaller font at narrow widths per Shannon's "shrinking the font a
   little is OK" - only kicks in below 480px, unaffected above that. */
.add-existing-result-row .outline-btn {
  flex-shrink: 0; max-width: 30%; white-space: normal; text-align: center;
}
@media (max-width: 480px) {
  .add-existing-result-row .outline-btn { font-size: 12px; padding: 6px 8px; }
}

/* ── AGENT SEARCH: multi-case contacts (added 8/17) ──────────────────────
   A found contact can have more than one case (Pemberton-style, migrated
   onto separate cases) - each gets its own sub-row with its own View
   Case/Add Me as Assignee action, nested under the one contact card. */
.agent-search-case-list { margin-top: 8px; }
.agent-search-case-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; font-size: 14px; color: var(--text-muted);
}
.agent-search-case-row:not(:last-child) { border-bottom: 1px dashed var(--border); }

/* ── AGENT SEARCH PANEL structure (added 8/17) ───────────────────────────
   The horizontal rules separating "Welcome, {name}" / the search box /
   Browse Unclaimed Cases into distinct visual sections, and the welcome
   line itself - matches .lookup-card h2's styling exactly (Shannon's
   direct request: "make that line match the styling for 'Look Up Your
   Claim' above that"), not a bolded body-text size. */
.agent-panel-hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
/* Specificity fix (8/17, found live - Shannon reported it still didn't
   match): .agent-welcome's <p> lives inside #searchSection, which carries
   class .lookup-card - and .lookup-card p (a compound selector, specificity
   0,1,1) was silently beating a bare .agent-welcome (0,1,0) for color AND
   font-size, since a higher-specificity selector wins regardless of source
   order. Qualifying with .lookup-card here too (0,2,0) decisively wins -
   confirmed by comparing which selector the browser's own CSSOM reports as
   the effective computed style. */
.lookup-card .agent-welcome {
  font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700;
  color: var(--navy); margin: 0 0 6px;
}

/* ── DEMO ACTIONS TABLE (added 8/17) ──────────────────────────────────────
   Two-column layout beneath the unclaimed-cases list: "Done exploring?" +
   Reset Demo Data on the left, "Just exploring?" + the two demo-entry
   buttons on the right. */
.demo-actions-table { width: 100%; border-collapse: collapse; margin-top: 18px; table-layout: fixed; }
.demo-actions-table td { vertical-align: top; padding: 0 10px; }
.demo-actions-table td:first-child { padding-left: 0; border-right: 1px solid var(--border); }
.demo-actions-table td:last-child { padding-right: 0; }
.demo-actions-table p { font-size: 14px; color: var(--text-muted); margin: 0 0 10px; }
.demo-actions-table .outline-btn { margin-right: 8px; margin-bottom: 8px; }

/* ── POA NOTE ────────────────────────────────────────────────────────────── */
.poa-note {
  background: #f0f4f8; border: 1px solid #b0bbdd; border-radius: 3px;
  padding: 14px 16px;
}
.poa-note p { font-size: 15px; color: var(--navy); line-height: 1.6; margin: 0; }

/* ── PICKER ──────────────────────────────────────────────────────────────── */
.picker-intro {
  font-size: 16px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6;
}
.picker-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.picker-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.picker-card:not(.picker-card-deceased):hover {
  border-color: var(--gold); box-shadow: 0 2px 8px rgba(201,168,76,0.15);
}
.picker-card-deceased {
  background: #f9f9f9; opacity: 0.75;
}

.picker-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 16px; flex-wrap: wrap;
}
.picker-entry-deceased { cursor: default; }

.picker-entry-info { flex: 1; min-width: 160px; }
.picker-entry-name {
  font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 3px;
}
.picker-entry-meta {
  font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
}
.picker-entry-role {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 20px;
  background: #eef1f8; color: var(--navy);
}
.picker-entry-deceased .picker-entry-role {
  background: #f0f0f0; color: #888;
}

.picker-select-btn {
  padding: 9px 20px; background: var(--navy); color: var(--gold-light);
  border: none; border-radius: 3px; font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.picker-select-btn:hover { background: var(--navy-light); }

.picker-deceased-badge {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #888;
  padding: 4px 12px; border-radius: 20px; background: #f0f0f0;
}

/* "I'm not listed" */
.picker-not-listed { padding-top: 16px; border-top: 1px dashed var(--border); }
.picker-not-listed-btn {
  background: none; border: 1.5px dashed var(--border);
  color: var(--text-muted); font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 700; padding: 10px 18px;
  border-radius: 3px; cursor: pointer; transition: all 0.2s; width: 100%;
  text-align: left;
}
.picker-not-listed-btn:hover {
  border-color: var(--gold); color: var(--navy); background: var(--gold-pale);
}
.picker-not-listed-hint {
  font-size: 14px; color: var(--text-muted); margin-top: 8px;
  line-height: 1.5; padding-left: 2px;
}

/* ── RETURN VISIT BANNER ─────────────────────────────────────────────────── */
.resume-banner {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  background: var(--gold-pale); border: 1.5px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
}
.resume-banner-icon { font-size: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.resume-banner-body { flex: 1; min-width: 200px; }
.resume-banner-title { font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.resume-banner-sub   { font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.resume-banner-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.resume-btn {
  padding: 9px 20px; font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.resume-btn-primary { background: var(--navy); color: var(--gold-light); border: none; }
.resume-btn-primary:hover { background: var(--navy-light); }
.resume-btn-ghost { background: none; color: var(--navy); border: 1.5px solid var(--navy); }
.resume-btn-ghost:hover { background: var(--navy); color: var(--gold-light); }

/* ── SUMMARY CARD ────────────────────────────────────────────────────────── */
.summary-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.summary-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 10px;
}
.summary-title {
  font-family: 'Playfair Display', serif; font-size: 21px; color: var(--navy);
}
.outcome-badge {
  padding: 4px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.outcome-badge-self_file { background: #e8f5ee; color: var(--success); }
.outcome-badge-consult   { background: var(--gold-pale); color: #7a5c00; }
.outcome-badge-info_only { background: #eef1f8; color: var(--navy); }
.outcome-badge-unknown   { background: #f4f4f4; color: #888; }

.summary-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.summary-section:last-of-type { border-bottom: none; }

.summary-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.summary-section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.summary-section-note { font-size: 14px; color: var(--text-muted); font-style: italic; }
.summary-edit-btn {
  font-size: 14px; font-weight: 700; color: var(--navy);
  background: none; border: 1.5px solid var(--border);
  padding: 4px 12px; border-radius: 20px; cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.15s;
}
.summary-edit-btn:hover { border-color: var(--gold); background: var(--gold-pale); }

.summary-fields { display: flex; flex-direction: column; gap: 8px; }
.summary-field {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 16px;
}
.summary-field-party { gap: 8px; }
.sf-label { font-weight: 700; color: var(--navy); min-width: 130px; font-size: 15px; }
.sf-value { color: var(--text); font-size: 15px; }
.sf-empty { font-size: 15px; color: var(--text-muted); font-style: italic; }

/* Small chip variant for summary card */
.chip-sm { font-size: 14px; padding: 4px 10px 4px 8px; }
.chip-sm .chip-role { font-size: 11px; }

.summary-purchased-note {
  background: #f0f4f8; border: 1px solid #b0bbdd; border-radius: 3px;
  padding: 18px 20px; margin-top: 8px;
}
.summary-purchased-note p { font-size: 15px; color: var(--navy); margin-bottom: 14px; line-height: 1.6; }
.summary-regen-btn { display: inline-block; text-decoration: none; }
.summary-proceed {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.summary-proceed p { font-size: 16px; color: var(--text-muted); margin: 0; }

/* ── WIZARD SECTION ──────────────────────────────────────────────────────── */
#wizardSection {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.wizard-progress {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.wizard-q {
  font-family: 'Playfair Display', serif; font-size: 23px;
  color: var(--navy); margin-bottom: 12px; line-height: 1.35;
}
.wizard-hint {
  font-size: 15px; color: var(--text-muted); margin-bottom: 20px;
  line-height: 1.6; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 10px 14px;
}
.wizard-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wizard-choice {
  text-align: left; background: var(--off-white); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 3px;
  padding: 14px 18px; font-family: 'Lato', sans-serif; font-size: 17px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.wizard-choice:hover {
  border-color: var(--gold); background: var(--gold-pale);
}
.wizard-choice:disabled { opacity: 0.5; cursor: not-allowed; }
.wizard-note {
  background: #fff8e8; border: 1px solid #e8d88a; border-radius: 3px;
  padding: 12px 16px; font-size: 15px; color: #6b5500;
  margin: 12px 0; line-height: 1.6;
}
.estate-rep-note, .override-note { text-align: left; }
.estate-doc-list {
  margin: 10px 0 4px 18px; padding: 0;
  font-size: 15px; color: #6b5500; line-height: 1.7;
}
.estate-doc-list li { margin-bottom: 6px; }
.payment-pending-notice {
  background: #fff8e8; border: 1px solid #e8d88a; border-radius: 3px;
  padding: 16px 20px; font-size: 16px; color: #6b5500;
  margin: 16px 0; line-height: 1.6; text-align: center;
}
.payment-pending-notice p { margin: 4px 0; }
.payment-pending-notice a { color: var(--navy); font-weight: 600; }

/* ── OUTCOME CARDS ───────────────────────────────────────────────────────── */
.outcome-card {
  border-radius: var(--radius); padding: 36px 32px;
  text-align: center; margin-bottom: 20px;
}
.outcome-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 2px; margin-bottom: 20px;
}
.outcome-selffile, .outcome-consult {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(201,168,76,0.3); box-shadow: 0 4px 24px rgba(26,35,64,0.25);
}
.outcome-selffile h3, .outcome-consult h3 {
  font-family: 'Playfair Display', serif; color: var(--white); font-size: 26px; margin-bottom: 10px;
}
.outcome-selffile p, .outcome-consult p {
  color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.6;
  max-width: 520px; margin: 0 auto 28px;
}
.outcome-info {
  background: var(--white); border: 1.5px solid var(--border);
}
.outcome-info h3  { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.outcome-info p   { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.consult-reason-box {
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px; padding: 12px 20px; margin-bottom: 24px;
  color: var(--gold-light); font-size: 16px; font-weight: 700; line-height: 1.5;
}
.price-display { margin-bottom: 28px; }
.price-display .amount {
  font-family: 'Playfair Display', serif; font-size: 54px;
  color: var(--gold-light); line-height: 1;
}
.price-display .amount sup { font-size: 26px; vertical-align: super; }
.price-display .note { color: rgba(255,255,255,0.55); font-size: 15px; margin-top: 4px; }
/* Already-paid state (added 8/17, Shannon's direct request) - a returning,
   already-purchased claimant/agent shouldn't see the price again once it's
   been paid. Reuses .amount's layout slot but in a success green, not gold,
   so it visually reads as "confirmed" rather than looking like a
   mis-rendered price. */
.price-display .amount.paid-check { font-size: 40px; color: #4caf7d; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy); border: none;
  padding: 17px 40px; font-family: 'Lato', sans-serif; font-size: 18px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35); text-decoration: none;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.45); }
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 24px; flex-wrap: wrap;
}
.trust-item {
  color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.consult-also { margin-top: 20px; }
.consult-also p { color: rgba(255,255,255,0.45); font-size: 15px; margin: 0; }
.consult-also a { color: var(--gold-light); }
.contact-also {
  color: rgba(255,255,255,0.4); font-size: 14px; margin-top: 20px; margin-bottom: 0;
}
.contact-also a { color: var(--gold-light); }

/* ── POST-PROPERTY OPTIONS ───────────────────────────────────────────────── */
.post-property-options {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-property-options > p {
  font-size: 16px; color: var(--text-muted); margin-bottom: 16px;
}
.post-property-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.next-property-btn {
  background: var(--navy); color: var(--gold-light); border: none;
  padding: 12px 24px; font-family: 'Lato', sans-serif; font-size: 15px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.next-property-btn:hover { background: var(--navy-light); }
.secondary-btn {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 12px 24px; font-family: 'Lato', sans-serif; font-size: 15px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: border-color 0.2s;
}
.secondary-btn:hover { border-color: var(--navy); }

/* ── RECOVERY ACTIONS (Phase 4 error/recovery contract) ──────────────────── */
.recovery-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.recovery-btn {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 8px 14px; font-family: 'Lato', sans-serif; font-size: 13px;
  font-weight: 700; border-radius: 3px; cursor: pointer; transition: border-color 0.2s;
}
.recovery-btn:hover { border-color: var(--navy); }

/* ── NOT FOUND / INQUIRY FORM ────────────────────────────────────────────── */
.inquiry-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.inquiry-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.inquiry-card > p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.submit-btn {
  background: var(--gold); color: var(--navy); border: none;
  padding: 13px 32px; font-family: 'Lato', sans-serif; font-size: 16px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; margin-top: 20px;
  transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.submit-btn:hover { background: var(--gold-light); }

/* ── DISCLAIMER ──────────────────────────────────────────────────────────── */
.disclaimer {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 3px; padding: 16px 20px; font-size: 14px;
  color: var(--text-muted); line-height: 1.6; margin-bottom: 28px;
}

/* ── PREVIEW CARD ────────────────────────────────────────────────────────── */
.preview-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 28px; overflow: hidden;
  box-shadow: var(--shadow);
}
.preview-header {
  background: var(--navy); padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.preview-header h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 21px; }
.preview-header span {
  background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px;
}
.preview-body { padding: 28px 32px; }
.preview-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.packet-preview-wrap {
  position: relative; border: 1.5px solid var(--border); border-radius: 3px;
  overflow: hidden; background: #fff; user-select: none; -webkit-user-select: none;
}
.packet-preview-inner { padding: 28px 32px; }
.packet-preview-inner::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.97));
  pointer-events: none;
}
.watermark-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.watermark-layer svg { width: 100%; height: 100%; opacity: 0.13; }
.preview-lock {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: linear-gradient(to bottom, transparent, rgba(26,35,64,0.97));
  padding: 60px 32px 32px; text-align: center;
}
.lock-icon {
  width: 48px; height: 48px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.preview-lock p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 20px; line-height: 1.5; }
.preview-lock strong { color: var(--gold-light); }
.doc-page { max-width: 640px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: #222; }
.doc-page .doc-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #222; }
.doc-page .doc-header h2 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Lato', sans-serif; }
.doc-page .doc-county { font-size: 15px; color: #555; margin-top: 4px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.checklist-item .box { width: 14px; height: 14px; border: 1.5px solid #555; flex-shrink: 0; margin-top: 3px; }
.packet-contents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.packet-contents .item { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text); }
.packet-contents .item svg { flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy); border-top: 3px solid var(--gold);
  padding: 24px; text-align: center; color: rgba(255,255,255,0.45);
  font-size: 14px; line-height: 1.8;
}
footer a { color: var(--gold-light); text-decoration: none; }

/* Case Information blocks (10/24/2026): two across on a wide screen, stacked in the same order on a phone; each block stays whole. */
.case-info-blocks { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0 12px; align-items: start; }
.case-info-block { border: 1px solid #dcd6c8; border-radius: 8px; padding: 12px 14px; background: #fff; break-inside: avoid; min-width: 0; }
/* 12-column grid; each field sets --span (wide) and --span-m (phone) from CONFIG.CASE_DETAIL_FIELD_GROUPS so a box is as wide as its content needs (10/24/2026). */
.case-info-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
/* Each field is a column with its box pinned to the bottom, so a label that wraps to two or three lines grows upward and every box in a row lines up. */
.case-info-fields > div { grid-column: span var(--span, 12); min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.case-info-fields > div > label { margin-bottom: 4px; }
.case-info-fields input, .case-info-fields select, .case-info-fields textarea { width: 100%; box-sizing: border-box; }
/* Two blocks across only when each has room for its widest rows; below that they stack, in the same order. */
@media (min-width: 1280px) { .case-info-blocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .case-info-fields > div { grid-column: span var(--span-m, 12); } }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .form-grid, .add-form-grid { grid-template-columns: 1fr; }
  .form-grid .full, .add-form-full { grid-column: 1; }
  .packet-contents { grid-template-columns: 1fr; }
  .card, .property-card, .preview-body, #ownersSection, #wizardSection { padding: 20px; }
  .lookup-card { padding: 20px; }
  .result-card-inner { flex-direction: column; align-items: flex-start; }
  .result-right { text-align: left; width: 100%; }
  .case-selector-card-inner { flex-direction: column; align-items: flex-start; }
  .case-selector-btn { width: 100%; text-align: center; margin-top: 8px; }
  .case-selector-reference-note { text-align: left; max-width: none; margin-top: 6px; }
  .outcome-card { padding: 24px 20px; }
  .cta-btn { width: 100%; justify-content: center; }
  .post-property-btns { flex-direction: column; }
}

/* ── PACKET GENERATION ───────────────────────────────────────────────── */
.packet-error {
  color: #8b1a1a; font-size: 15px; margin-top: 10px;
  background: #fdf2f2; border: 1px solid #e8c8c8;
  border-radius: 3px; padding: 8px 12px; display: none;
}
.packet-regen-note {
  font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 10px;
}
.packet-regen-note a { color: var(--gold-light); }
#generatePacketBtn:disabled { opacity: 0.7; cursor: wait; }

/* ── POST-PREVIEW CTA ────────────────────────────────────────────────── */
.post-preview-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 20px;
}
.post-preview-cta-card .outcome-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 2px; margin-bottom: 16px;
}
.post-preview-cta-card h3 { color: #fff; font-size: 24px; margin-bottom: 20px; }

/* ── SITE PASSWORD GATE (Session 26) ─────────────────────────────────────
   Frontend-side UX layer only - the real enforcement is in the Worker
   (index.ts), which rejects every request without the matching
   X-Site-Password header regardless of what this overlay does. This just
   keeps the page from looking broken (failed network calls everywhere)
   before that header is set, and re-appears if a call ever comes back 401
   (see the 'sg:unauthorized' listener in index.html). */
.site-password-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.site-password-card {
  background: #fff; max-width: 420px; width: 100%;
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.site-password-card h2 { color: var(--navy); margin-bottom: 8px; font-size: 22px; }
.site-password-card p  { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.site-password-card input {
  width: 100%; padding: 11px 14px; font-size: 17px;
  border: 1px solid #d8dce6; border-radius: 6px; margin-bottom: 14px;
  text-align: center; letter-spacing: 0.04em;
}
.site-password-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
/* Scoped to the ID (was a bare "button" selector until 8/17) - a bare
   element selector here was unintentionally overriding the new
   .outline-btn demo buttons added to this same card (higher specificity
   wins regardless of source order), turning them navy-filled instead of
   the intended white/bordered look. */
.site-password-card #sitePwSubmitBtn {
  width: 100%; background: var(--navy); color: var(--gold-light); border: none;
  padding: 12px; font-size: 16px; font-weight: 700; border-radius: 6px; cursor: pointer;
}
.site-password-card #sitePwSubmitBtn:hover { background: var(--navy-light); }
.site-password-card .status-msg { margin-top: 14px; margin-bottom: 0; text-align: left; }

/* ── WORKSPACE (Case Workspace, Phase 1, added 9/8) ──────────────────────────
   New, additive, app-like staff/agent screen - a sibling of .main, never
   subject to its 860px width constraint. No existing rule above this point
   is touched. See js/workspace.js's own header comment for the design. */
body.workspace-active .hero,
body.workspace-active .urgent-bar,
body.workspace-active .main,
body.workspace-active footer { display: none; }

/* #workspaceSection is pinned to the viewport height and never scrolls itself
   (9/27 redesign) - only .workspace-nav and .workspace-content scroll
   independently within it, so switching parties/screens never requires
   scrolling past other content first. */
#workspaceSection {
  background: var(--off-white);
  height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}

.workspace-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  flex-shrink: 0;
}
.workspace-topbar h2 { font-size: 18px; color: var(--navy); margin: 0 auto 0 0; font-family: 'Playfair Display', serif; }
.workspace-search { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.workspace-search input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
/* 10/8: "Your cases" picker - the signed-in agent's own cases, one click to switch. */
.workspace-case-select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
  background: var(--white); color: var(--navy); max-width: 260px;
}

/* 11/5: Admin Panel (js/admin.js) */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tab-on { background: var(--navy); color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr.admin-bad td { background: #fdecea; }
.admin-out { background: #f6f7f9; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; max-height: 340px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.admin-tool { border-top: 1px solid var(--border); padding: 10px 0; }
.admin-tool-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.admin-tool-fields label { font-size: 13px; display: flex; flex-direction: column; gap: 3px; }

/* 11/5: filter row under the top bar for the "Your cases" picker (open/closed, role, county, case number). */
.workspace-case-filters {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 28px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--navy);
}
.workspace-case-filters select, .workspace-case-filters input {
  padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--white);
}
.workspace-case-filters.hidden { display: none; }

/* 9/27 redesign: replaces the old two-column .workspace-grid (case panel +
   person panel, both tall enough to force page scrolling) with a persistent
   left nav and a single right-hand content pane - see js/workspace.js's
   header comment for Shannon's exact ask. */
.workspace-shell {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
}
.workspace-nav {
  flex: 0 0 280px; max-width: 280px; overflow-y: auto;
  background: var(--white); border-right: 1px solid var(--border);
  padding: 16px 14px;
}
.workspace-nav-header { padding: 4px 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.workspace-nav-header strong { color: var(--navy); font-size: 15px; }
.workspace-nav-divider {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); margin: 16px 4px 8px;
}
.workspace-content {
  flex: 1; min-width: 0; overflow-y: auto; padding: 20px 28px 60px;
}
@media (max-width: 980px) {
  .workspace-shell { flex-direction: column; overflow: visible; }
  .workspace-nav { flex: 0 0 auto; max-width: none; max-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .workspace-content { overflow-y: visible; }
  #workspaceSection { height: auto; overflow: visible; }
}

.workspace-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin: 20px 28px;
}
.workspace-people-list { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.workspace-person-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 3px;
  cursor: pointer; background: var(--off-white);
}
.workspace-person-row:hover  { border-color: var(--gold); }
.workspace-person-row.active { border-color: var(--navy); background: var(--gold-pale); }

.workspace-person-panel-empty {
  display: flex; align-items: center; justify-content: center; min-height: 300px;
  color: var(--text-muted); font-size: 15px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

.workspace-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.workspace-tab-btn {
  background: none; border: none; padding: 10px 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted);
  cursor: pointer; border-bottom: 3px solid transparent;
}
.workspace-tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.workspace-tab-btn.dirty::after { content: ' *'; color: var(--urgent); }

.workspace-savebar {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* Distribution screen (added 9/27) - every party's Percent Owned on one
   screen, same field/save mechanism as the Role & Ownership tab. */
.workspace-distribution-list { display: flex; flex-direction: column; gap: 8px; }
.workspace-distribution-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 3px; background: var(--off-white);
}
.workspace-distribution-name { display: flex; align-items: center; gap: 8px; }
.workspace-distribution-percent { display: flex; align-items: center; gap: 6px; }
.workspace-distribution-percent input { width: 90px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 3px; }

/* Case Actions "Acting on" picker (10/12/2026): compact radio tiles flowing into columns, name + role on one line, left-aligned.
   The global input/label rules (100% width, uppercase, block) would otherwise stretch each radio across its tile. */
.ws-person-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 10px; }
.case-edit-row .ws-person-picker label.ws-person-option {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 4px; cursor: pointer; text-align: left;
  text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 400; color: var(--text);
}
.case-edit-row .ws-person-picker label.ws-person-option.selected { border-color: var(--navy); background: #eef1f7; }
.ws-person-picker input[type="radio"] { width: auto; flex: 0 0 auto; margin: 0; padding: 0; }

.share-link-qr:empty { display: none; }

/* Case Status banner on the Workspace's Case Actions card (10/15/2026) */
.ws-status-box { border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; margin: 0 0 10px; background: #fff; }
.ws-status-box.ws-status-closed { border-left: 4px solid #b3541e; background: #fdf6f0; }

/* Tables on the Case Notes screen and the Case Overview (10/19/2026): spaced cells, wrapping, one person per line. */
.ws-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.ws-table th, .ws-table td { padding: 7px 14px 7px 0; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.ws-table th { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #666); border-bottom: 1px solid var(--border, #ddd); }
.ws-table td { border-bottom: 1px solid var(--border, #eee); }
.ws-table .ws-num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 14px; }
.ws-table .ws-who div { margin: 0 0 3px; }

/* SAMPLE mode (11/13/2026): shown while a demo session is active - see js/sample-mode.js */
body.sample-mode { padding-top: 30px; -webkit-user-select: none; user-select: none; }
body.sample-mode input, body.sample-mode textarea, body.sample-mode select { -webkit-user-select: text; user-select: text; }
#sampleBanner { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; height: 30px; line-height: 30px; text-align: center; font: 600 13px/30px sans-serif; color: #fff; background: #b00020; pointer-events: none; }
#sampleOverlay { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-35deg); color: rgba(200, 0, 0, 0.18); font-family: Helvetica, Arial, sans-serif; font-weight: 900; line-height: 1; text-align: center; }
#sampleOverlay .sample-big { font-size: min(22vw, 200px); }
#sampleOverlay .sample-small { font-size: min(9vw, 84px); margin-top: 0.15em; }
@media print { #sampleOverlay { display: flex !important; color: rgba(200, 0, 0, 0.25); } }
