/* Uncover editorial system. Shared across public, account and operator pages.
   Page styles own layout; this final stylesheet owns typography and components. */
:root {
  --ink: #111113; --muted: #6d6e76; --accent: #2424ff;
  --line: #e6e6eb; --paper: #f6f6f8; --canvas: #fff; --surface: #fff;
  --vermilion: var(--accent); --vermilion-hover: #1616c9; --focus: #2424ff;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif; --display: var(--body);
  --purple: var(--accent); --orange: var(--accent); --blue: var(--accent);
  --radius: 24px;
}
body { font-family: var(--body); background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body h1, body .page-title { font-family: var(--display); font-size: clamp(36px, 4.3vw, 64px); font-weight: 400; letter-spacing: -.055em; line-height: 1.04; text-wrap: balance; }
body h2 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; }
body h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
body:not(.uncover-home) .shell { padding: 64px 5% 100px; max-width: 1320px; }
body:not(.uncover-home) .intro, body .page-description { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 720px; }
body .eyebrow, body .database-eyebrow, body .workspace-eyebrow, body .recovery-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus)!important; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body input, body select, body textarea { font-family: var(--body); accent-color: var(--accent); border-color: #b9bac3; background: var(--surface); color: var(--ink); border-radius: 10px; font-size: 16px; }
body input::placeholder, body textarea::placeholder { color: var(--muted); }
body label { font-size: 14px; font-weight: 400; }
body input[type=checkbox], body input[type=radio] { width: auto; flex: none; }
#header-placeholder { position: sticky; top: 0; z-index: 40; }
[id] { scroll-margin-top: 120px; }
/* Persistent platform navigation. Native details works without JavaScript. */
body .site-header { position: relative; height: auto; padding: 0 32px; border: 0; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(20px); z-index: 40; }
body .site-header .header-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; position: relative; width: 100%; max-width: 1256px; min-height: 80px; margin: 0 auto; padding: 12px 0; gap: 32px; }
body .site-header .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 400 25px/1 var(--body); letter-spacing: -1px; text-transform: lowercase; text-decoration: none; white-space: nowrap; }
body .site-header .logo::before { content: ""; display: block; width: 28px; height: 28px; flex: none; background: url('/images/uncover-mark.svg') center/contain no-repeat; border-radius: 0; }
body .site-header .header-nav { display: flex; position: static; flex-direction: row; flex-basis: auto; align-items: center; gap: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; }
body .site-header .site-menu { position: static; border: 0; padding: 0; margin: 0; background: transparent; }
body .site-header .site-menu>summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 400 14px/1.4 var(--body); list-style: none; background: transparent; cursor: pointer; }
body .site-header .site-menu>summary::-webkit-details-marker { display: none; }
body .site-header .site-menu>summary:hover { background: var(--paper); }
.menu-icon { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 24px; height: 22px; }
.menu-icon>span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 180ms ease; }
.site-menu[open] .menu-icon>span:first-child { transform: translateY(4px) rotate(45deg); }
.site-menu[open] .menu-icon>span:last-child { transform: translateY(-4px) rotate(-45deg); }
body .site-header .site-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: calc(100vw - 32px); max-height: calc(100svh - 126px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 70px #15152914; z-index: 50; text-align: left; }
body .site-header .menu-label { margin: 0 10px 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.menu-account { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
body .site-header .site-menu-panel a, body .site-header .site-menu-panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; font: 400 16px/1.4 var(--body); color: var(--ink); padding: 10px; border: 0; border-radius: 8px; background: transparent; text-decoration: none; text-align: left; cursor: pointer; }
body .site-header .site-menu-panel a:hover, body .site-header .site-menu-panel button:hover { color: var(--accent); background: var(--paper); }
body .site-header .header-nav a[aria-current=page] { color: var(--accent); }
body .site-header .platform-links { display: flex; align-items: center; gap: 6px; }
body .site-header .platform-links a { color: var(--muted); font-size: 14px; padding: 10px 16px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
body .site-header .platform-links a:hover { color: var(--ink); background: var(--paper); }
body .site-header .platform-links a[aria-current=page] { color: var(--accent); background: #eeeeff; }
body .site-header [hidden][hidden] { display: none!important; }
/* Quiet surfaces, a single vivid action color, and generous form spacing. */
body .button, body button.primary, body .btn-primary, body .btn-action, body .btn-submit, #account-submit, #dialog-submit, .claim-workspace button:not(.claim-secondary) { background: var(--accent); border: 1px solid var(--accent); color: #fff; border-radius: 999px; font: 400 15px/1.4 var(--body); min-height: 46px; padding: 12px 23px; box-shadow: none; }
body .button:hover, body button.primary:hover, body .btn-primary:hover, body .btn-action:hover, body .btn-submit:hover, #account-submit:hover, #dialog-submit:hover, .claim-workspace button:not(.claim-secondary):hover { background: var(--vermilion-hover); border-color: var(--vermilion-hover); color: #fff; transform: none; box-shadow: none; }
body .button.secondary, .claim-workspace button.claim-secondary { color: var(--ink); background: transparent; border: 1px solid #c9c9d1; border-radius: 999px; }
body .button.secondary:hover, .claim-workspace button.claim-secondary:hover { background: var(--paper); border-color: var(--ink); }
body .search-panel { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 38px 0 26px; box-shadow: none; }
body .search-fields { gap: 24px; }
body .field { gap: 10px; }
body .notice { border: 0; border-left: 2px solid #bfc0ca; border-radius: 0; background: var(--paper); color: var(--muted); font-size: 14px; padding: 16px 22px; line-height: 1.7; }
body .notice[data-source-notice] { border: 0; background: none; padding: 0; margin: 18px 0 24px; max-width: 85ch; font-size: 13px; line-height: 1.65; text-wrap: pretty; }
body .help { color: var(--muted); font-size: 14px; line-height: 1.7; }
body .search-panel details { margin-top: 20px; }
body .search-panel summary { padding-block: 12px; font-size: 14px; font-weight: 400; }
body .results-status { font-size: 14px; font-weight: 400; margin: 30px 0 22px; }
body .result-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 30px; margin: 18px 0; box-shadow: none; }
body .result-card h2 { font-size: 25px; margin-bottom: 12px; }
body .result-card dt { color: var(--muted); font-size: 13px; }
body .result-card dd { font-size: 16px; line-height: 1.6; }
body .result-amount { color: var(--ink); font-size: 24px; font-weight: 400; letter-spacing: -.035em; }
body .result-card>a { font-size: 14px; }
body .steps { gap: 40px; padding-top: 36px; margin-top: 50px; }
body .step-number { color: var(--accent); font-weight: 400; font-size: 13px; }
/* Editorial and legal content retain a comfortable reading width. */
body .narrow, body .editorial:not(:has(.guide-grid)) { max-width: 76ch; margin-inline: auto; }
body .narrow h2 { margin: 46px 0 20px; padding-top: 26px; border-top: 1px solid var(--line); }
body .narrow p, body .narrow li, body .editorial p, body .editorial li { line-height: 1.8; }
body .narrow>p { color: var(--muted); }
body .editorial>h1 { max-width: 21ch; margin-bottom: 32px; }
body .editorial-meta, body .editorial-citation { font-size: 13px; color: var(--muted); }
body .guide-grid { gap: 32px; margin-top: 40px; }
body .guide-grid .result-card { padding: 30px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
body .guide-grid h3 { font-size: 28px; line-height: 1.2; }
/* Account entry mirrors the architectural framing from the homepage. */
body .account-entry { max-width: 1200px; margin: 64px auto 100px; padding: 0 5%; grid-template-columns: minmax(0,1fr) minmax(0,440px); gap: 70px; align-items: center; }
body .account-story { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 580px; padding: 44px 36px; border-radius: 28px; color: #fff; background: linear-gradient(0deg,#081329ec, #08132930 75%),url('/images/california-architecture.webp') center/cover; }
body .account-story h1 { font-size: clamp(38px,3.8vw,54px); color: #fff; margin: 0 0 22px; }
body .account-story>p:not(.eyebrow), body .account-story>a { color: #fff; font-size: 16px; }
body .account-story>a { margin-top: 20px; }
body .account-card { padding: 12px 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
body .account-card h2 { font-size: 36px; font-weight: 400; }
body .account-card>p { font-size: 16px; }
body .account-card input { border-radius: 8px; padding: 14px; margin-top: 9px; }
body .account-card label { font-size: 14px; font-weight: 400; }
body .account-card .account-footnote { font-size: 13px; color: var(--muted); line-height: 1.65; }
body .password-label a, body .password-input button { font-size: 13px; }
body .auth-box, body .success-card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
body .auth-box:hover, body .success-card:hover { border-color: var(--line); box-shadow: none; transform: none; }
body .highlight-blue, body .highlight-purple, body .highlight-cyan, body .highlight-orange { color: var(--accent); background: transparent; }
/* Dense tools keep their controls near the work, with the same visual system. */
body.database-page { --line: #e6e6eb; --muted: #6d6e76; background: var(--surface); }
body.database-page .page-header { padding-top: 56px; }
body.database-page .page-header-container { max-width: 1320px; }
body.database-page .filters-section { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: none; padding: 28px; }
body.database-page .filter-group label, body.database-page .filter-heading, body.database-page .results-toolbar h2 { font-weight: 400; font-size: 14px; }
body.database-page .filter-group input, body.database-page .filter-group select { font-size: 16px; }
body.database-page .table-cell { font-family: var(--body); color: var(--ink); font-size: 14px; }
body.database-page .table-header .table-cell, body.database-page .record-location { font-size: 12px; color: var(--muted); }
body.database-page .spreadsheet-container { border-color: var(--line); border-radius: 18px; background: var(--surface); box-shadow: none; }
body.database-page .table-header, body.database-page .table-row:hover { background: var(--paper); color: var(--ink); }
body.database-page .view-controls button[aria-pressed=true], body.database-page .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
body.database-page .active-filters button, body.database-page .recovery-selection-bar { background: var(--paper); border-color: var(--line); color: var(--ink); }
body.database-page .status-bar, body.database-page .pagination-controls, body.database-page .view-controls { flex-wrap: wrap; }
body.database-page .save-btn.saved svg { fill: var(--accent); stroke: var(--accent); }
body.database-page .save-btn:hover { background: var(--paper); }
body .workspace-home { max-width: 1280px; padding: 60px 5% 100px; }
body .workspace-heading { align-items: end; margin-bottom: 36px; }
body .workspace-heading>a { font-size: 14px; }
body .workspace-case { padding: 32px; border-radius: 22px; border-color: var(--line); }
body .workspace-start { padding-top: 48px; gap: 64px; }
body .workspace-help { gap: 64px; padding-top: 40px; }
body .workspace-home button, body .workspace-home .workspace-primary { font-weight: 400; font-size: 15px; }
body .workspace-next { border-left-color: var(--accent); }
body .requests-home { max-width: 1140px; }
body .requests-home #request-new { border-radius: 22px; }
body .requests-home #request-new>summary { font-weight: 400; }
body .request-property, body .request-message { border-radius: 14px; }
body .recovery-shell { padding: 40px 4% 90px; color: var(--ink); }
body .recovery-heading { margin: 32px 0 44px; }
body .recovery-heading h1 { max-width: 24ch; }
body .recovery-shell button, body dialog button { border-radius: 24px; font-weight: 400; }
body .recovery-shell .quiet, body dialog .quiet { color: var(--ink); border-color: #c9c9d1; }
body .case-workspace { border-color: var(--line); border-radius: 22px; box-shadow: 0 16px 64px #18182805; }
body .case-sidebar .case-choice { font-weight: 400; }
body .case-sidebar .case-choice[aria-current=true] { background: var(--paper); box-shadow: inset 2px 0 var(--accent); }
body .case-tabs button { border-radius: 0; font-size: 14px; }
body .case-tabs button[aria-current=page] { border-bottom-color: var(--accent); color: var(--ink); }
body .case-title h2 { font-size: 28px; }
body .metric-number { font-weight: 400; }
body .metric-label, body .metric-help, body .sidebar-title, body .record-detail, body .record-footer small { font-size: 12px; }
body .panel-heading h3 { font-size: 22px; }
body .panel-copy, body .panel-heading p { font-size: 14px; }
body .case-next-step { border-left-color: var(--accent); }
body .record-card { border-radius: 12px; }
body .record-name { font-weight: 400; font-size: 16px; }
body .record-amount { font-weight: 400; font-size: 22px; }
body .claim-workspace #claim-form { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
body .claim-workspace #claim-form>h2 { margin-top: 0; }
body .claim-workspace #claim-form>p { color: var(--muted); max-width: 68ch; font-size: 16px; }
body .claim-intro>p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.6; }
/* Full site directory and a restrained monochrome signature. */
body .site-footer { padding: 64px 5% 35px; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
body .site-footer .footer-container { display: block; max-width: 1320px; }
body .footer-directory { gap: 40px; padding-bottom: 44px; }
body .footer-link-group h2 { font: 400 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
body .footer-link-group a { min-height: 40px; font-size: 14px; color: var(--ink); }
body .footer-link-group a:hover { color: var(--accent); }
body .footer-bottom { padding-top: 30px; }
body .footer-copy strong { font-weight: 400; color: var(--ink); }
body .footer-home { font-size: 14px; color: var(--ink); }
@media(max-width:900px) {
  body .account-entry { gap: 36px; grid-template-columns: 1fr 1fr; }
  body .account-story { padding: 30px 24px; }
  body .workspace-start, body .workspace-help { gap: 32px; }
}
@media(max-width:760px) {
  body .site-header { padding: 0 16px; }
  body .site-header .header-container { min-height: 116px; padding: 14px 0 58px; gap: 12px; }
  body .site-header .header-nav { gap: 0; }
  body .site-header .logo { font-size: 23px; }
  body .site-header .platform-links { position: absolute; bottom: 6px; left: 0; right: 0; gap: 4px; }
  body .site-header .platform-links a { flex: 1; justify-content: center; padding: 10px 6px; font-size: 13px; }
  body .site-header .site-menu-panel { top: calc(100% + 8px); max-height: calc(100svh - 144px); padding: 16px; gap: 16px; grid-template-columns: 1fr; border-radius: 16px; }
  .menu-group+.menu-group { border-top: 1px solid var(--line); padding-top: 16px; }
  body:not(.uncover-home) .shell, body .workspace-home { padding: 44px 24px 64px; }
  body .search-panel, body .result-card, body .workspace-case { padding: 24px; }
  body .intro, body .page-description { font-size: 16px; }
  body .account-entry { margin: 40px auto 64px; padding: 0 24px; display: flex; flex-direction: column; gap: 38px; }
  body .account-story { min-height: 300px; width: 100%; padding: 32px; background-position: center 45%; }
  body .account-story h1 { font-size: 38px; }
  body .account-card { width: 100%; max-width: 480px; margin: auto; }
  body .site-footer { padding: 44px 24px 30px; }
  body .footer-directory { gap: 32px 24px; }
  body .footer-link-group a { min-height: 44px; }
  body .claim-workspace #claim-form { padding: 24px; }
  body.database-page .filters-section { padding: 22px; }
}
@media(max-width:480px) {
  body h1, body .page-title { font-size: 38px; }
  body .search-panel, body .result-card { padding: 20px; }
  body .recovery-heading, body .panel-heading, body .recovery-topline { flex-wrap: wrap; }
  body .case-title h2 { font-size: 24px; }
  body .result-amount { white-space: normal; overflow-wrap: anywhere; }
  body .claim-workspace legend span { display: block; margin-top: 5px; }
}
@media(prefers-reduced-motion:reduce) { .menu-icon>span { transition: none; } }
/* Account home groups retain their new workflow while sharing editorial surfaces. */
body .workspace-action { border-radius: 22px; border-left-width: 2px; padding: 32px; }
body .workspace-action h2 { font-size: 30px; }
body .workspace-action-business, body .workspace-stage { font-weight: 400; }
body .workspace-overview, body .workspace-search { border-radius: 20px; }
body .workspace-metric { padding: 24px 28px; }
body .workspace-metric strong { font-weight: 400; font-size: 32px; letter-spacing: -.04em; }
body .workspace-search>summary { font-weight: 400; font-size: 17px; }
body .workspace-section { margin-top: 44px; }
body .workspace-operator { border-radius: 18px; }
@media(max-width:700px) {
  body .workspace-action { padding: 24px; }
  body .workspace-action h2 { font-size: 26px; }
  body .workspace-metric { padding: 18px 12px; }
  body .workspace-metric strong { font-size: 25px; }
  body .workspace-metric span { font-size: 12px; }
}

/* Shared controls: retain specialized layout (tabs, icon buttons, homepage search). */
:root {
  --control-height: 46px;
  --control-radius: 10px;
  --status-error: #8c3026;
  --status-error-bg: #fff3f0;
  --status-success: #285b40;
  --status-success-bg: #eef6f0;
  --status-attention: #79520c;
  --status-attention-bg: #fff5df;
}
body :is(.search-panel, .filters-section, .account-card, .workspace-start, .requests-home, .case-form, .claim-workspace, dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), select, textarea) {
  min-height: var(--control-height); border: 1px solid #b9bac3; border-radius: var(--control-radius);
  padding: 12px 14px; font: 400 16px/1.4 var(--body); max-width: 100%; box-sizing: border-box;
}
body .account-card .password-input input { padding-right: 68px; }
body :is(.search-panel, .requests-home, .case-form, .claim-workspace, dialog) textarea { resize: vertical; min-height: 110px; }
body :is(.field, .filter-group, .case-form, .request-form, .request-review, .workspace-start, .account-card, dialog) label { font-size: 14px; line-height: 1.5; font-weight: 400; }
body :is(.button, button.primary, .btn-primary, .workspace-primary, .workspace-home button, .requests-home button, .recovery-shell button, dialog button, #resend-confirmation) {
  min-height: var(--control-height); font-family: var(--body); font-size: 15px; line-height: 1.4; border-radius: 999px;
}
body :is(.button, .workspace-primary) { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; box-sizing: border-box; }
body button:disabled { opacity: .5; cursor: not-allowed; }
body :is(.workspace-badge, .pill) { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.4; white-space: normal; }
body :is(.workspace-badge.attention, .pill.pending, .pill.quarantined) { background: var(--status-attention-bg); color: var(--status-attention); }
body :is(.results-status, .empty-state, .feedback-error, .callout, #workspace-status, #requests-status, #recovery-status, #account-message, #dialog-error):not(:empty) {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere;
}
body .results-status[data-state=results] { background: transparent; border: 0; padding: 0; }
body :is(.results-status[data-state=error], .feedback-error, #dialog-error, #account-message:not(.success)):not(:empty) { background: var(--status-error-bg); color: var(--status-error); border-color: #e7bdb6; }
body #account-message.success:not(:empty) { background: var(--status-success-bg); color: var(--status-success); border-color: #c7ddcc; }
body .account-entry[data-account-unavailable] #account-message { background: var(--paper); color: var(--muted); border-color: var(--line); }
body .empty-state { text-align: left; }
body #search-retry { margin: 0 0 24px; }
body .request-match-select { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; color: var(--ink); font-size: 14px; }
body .recovery-selection-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin: 18px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
body .recovery-selection-bar>span { font-size: 14px; line-height: 1.5; }
body .recovery-selection-bar>div { display: flex; gap: 12px; flex-wrap: wrap; }
body .recovery-selection-bar :is(a, button) { margin: 0; }
body .recovery-selection-bar[hidden] { display: none; }
@media(max-width:760px) {
  body:has(.recovery-selection-bar:not([hidden])) { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  body:has(.recovery-selection-bar:not([hidden])) :is(a, button, input, select, summary) { scroll-margin-bottom: 190px; }
  body .recovery-selection-bar { position: fixed; z-index: 35; bottom: 0; left: 0; right: 0; margin: 0; border-radius: 20px 20px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; background: var(--surface); box-shadow: 0 -8px 32px #1515290d; }
  body .recovery-selection-bar>div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  body .recovery-selection-bar :is(a, button) { padding: 12px; font-size: 14px; }
}

body .case-tabs button { border-radius: 0; }

/* Footer signature uses the same mark and wordmark treatment as navigation. */
body .footer-copy .footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 400 25px/1 var(--body); letter-spacing: -1px; color: var(--ink); text-transform: lowercase; text-decoration: none; }
body .footer-brand img { display: block; flex: none; }
body .footer-copy p { margin: 0; }
