/* Applicant workspace refinement. Shared menus, type roles and report data stay intact. */
body.ow-applicant-profile #rw-workspace .rw-section-tabs { display: none; }
body.ow-applicant-profile #rw-workspace .ow-profile-nav { margin: 0 0 12px; }
body.ow-applicant-profile #rw-workspace .ow-profile-head {
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center;
  gap: 12px 16px; padding: 18px; margin: 0 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
body.ow-applicant-profile #rw-workspace .ow-profile-head > .ow-pavatar { width: 48px; height: 48px; margin: 0; font-size: 20px; border-radius: 14px; }
body.ow-applicant-profile #rw-workspace .ow-profile-id { min-width: 0; }
body.ow-applicant-profile #rw-workspace .ow-profile-id h1 { --ui-title: 26px; margin: 4px 0 0; line-height: 1.3; }
body.ow-applicant-profile #rw-workspace .ap-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
body.ow-applicant-profile #rw-workspace .ap-meta .ow-eyebrow { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-stage { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 0 7px 0 6px; color: #fff; background: #64748b; font-size: 12px; font-weight: 600; line-height: 18px; }
body.ow-applicant-profile #rw-workspace .ap-stage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.ow-applicant-profile #rw-workspace .ow-profile-actions { gap: 8px; justify-content: flex-end; }
body.ow-applicant-profile #rw-workspace .ow-menu-list .ap-menu-action { display: flex; align-items: center; gap: 8px; min-height: 44px; }
body.ow-applicant-profile #rw-workspace .ap-menu-action .ow-btn-ico { flex: none; }
body.ow-applicant-profile #rw-workspace #applicant-message-delivery { margin: 0 0 8px; }
body.ow-applicant-profile #rw-workspace .ap-context { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border-hairline); min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-property { font-size: 22px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
body.ow-applicant-profile #rw-workspace .ap-property > :is(a,span) { color: var(--text); text-decoration: none; }
body.ow-applicant-profile #rw-workspace .ap-property > a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.ow-applicant-profile #rw-workspace .ow-profile-contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; }
body.ow-applicant-profile #rw-workspace .ow-profile-contacts a { display: inline-flex; align-items: center; min-height: 28px; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; max-width: 100%; }
body.ow-applicant-profile #rw-workspace .ow-profile-contacts a:hover { color: var(--brand-purple); text-decoration: underline; }
body.ow-applicant-profile #rw-workspace .ow-profile-contacts img { display: block; width: 30px; height: 30px; flex: none; }
body.ow-applicant-profile #rw-workspace .ow-tabs { gap: 5px; padding: 4px; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-alt); overflow-x: auto; flex-wrap: nowrap; }
body.ow-applicant-profile #rw-workspace .ow-tabs a { flex: 1 0 auto; justify-content: center; text-align: center; margin: 0; padding: 10px 14px; min-height: 44px; border: 0; border-radius: var(--radius-md); font-size: 14px; color: var(--text-secondary); }
body.ow-applicant-profile #rw-workspace .ow-tabs a.is-on { background: var(--surface); color: var(--brand-deep-purple); box-shadow: var(--elev-1); font-weight: 600; }
body.ow-applicant-profile #rw-workspace .sr-report-shell { padding: 0; border: 0; background: transparent; box-shadow: none; }
/* The report draws its own white panel; its shell card adds no second frame (border via the card token, padding past #ow-main). */
body.ow-applicant-profile #ow-main #rw-workspace .sr-report-shell:has(> .sr-report) { --card-border-width: 0px; padding: 0; }
body.ow-applicant-profile #rw-workspace .sr-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.ow-applicant-profile #rw-workspace .sr-heading-copy { flex: 1 1 340px; min-width: 0; }
body.ow-applicant-profile #rw-workspace .sr-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
body.ow-applicant-profile #rw-workspace .sr-report h2 { --ui-section: 22px; font-family: var(--ui-font); }
body.ow-applicant-profile #rw-workspace .sr-meta { align-items: center; gap: 6px 14px; margin-top: 8px; }
body.ow-applicant-profile #rw-workspace .sr-received { line-height: 2; }
body.ow-applicant-profile #rw-workspace .sr-meta-value { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
body.ow-applicant-profile #rw-workspace .sr-meta-id { font-variant-numeric: tabular-nums; }
body.ow-applicant-profile #rw-workspace .sr-provider-brand { display: inline-flex; padding: 0; margin: 0; border: 0; }
body.ow-applicant-profile #rw-workspace .sr-provider-brand img { width: 96px; height: 24px; }
body.ow-applicant-profile #rw-workspace .sr-provenance { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
body.ow-applicant-profile #rw-workspace .sr-provenance summary { width: fit-content; cursor: pointer; min-height: 28px; }
body.ow-applicant-profile #rw-workspace .sr-provenance dl { margin: 6px 0 0; display: grid; gap: 6px; }
body.ow-applicant-profile #rw-workspace .sr-provenance dl > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 4px 12px; align-items: baseline; }
body.ow-applicant-profile #rw-workspace .sr-provenance dt { min-width: 64px; font-weight: 600; }
body.ow-applicant-profile #rw-workspace .sr-provenance dd { margin: 0; overflow-wrap: anywhere; }
body.ow-applicant-profile #rw-workspace .sr-actions { justify-content: flex-end; padding-top: 2px; }
body.ow-applicant-profile #rw-workspace [data-report-refresh-status]:empty { display: none; }
body.ow-applicant-profile #rw-workspace [data-report-refresh-status]:not(:empty) { flex-basis: 100%; order: 2; }
body.ow-applicant-profile #rw-workspace .sr-nav { position: sticky; top: 0; z-index: 1; background: var(--surface-alt); border: 1px solid var(--border); padding: 5px 54px 5px 5px; gap: 3px; border-radius: var(--radius-lg); }
body.ow-applicant-profile #rw-workspace :is(.sr-overview,.sr-group,.sr-section,.sr-help) { scroll-margin-top: 88px; }
body.ow-applicant-profile #rw-workspace .sr-nav > a { min-height: 42px; display: inline-flex; align-items: center; }
body.ow-applicant-profile #rw-workspace .sr-nav > a[aria-current] { background: var(--surface); color: var(--brand-deep-purple); box-shadow: var(--elev-1); }
body.ow-applicant-profile #rw-workspace .sr-report { --sr-space: 20px; }
body.ow-applicant-profile #rw-workspace .sr-overview { gap: 16px; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); align-items: start; }
body.ow-applicant-profile #rw-workspace .sr-score-card { background: var(--surface); border-top: 1px solid var(--border); padding: 0; overflow: hidden; }
body.ow-applicant-profile #rw-workspace .sr-score-number { font-family: var(--ui-font); font-size: 52px; letter-spacing: -1px; margin: 8px 0; }
body.ow-applicant-profile #rw-workspace .sr-score-number.sr-value-muted { font-size: 26px; letter-spacing: 0; margin: 20px 0 12px; }
body.ow-applicant-profile #rw-workspace .sr-verification-card { border-top: 1px solid var(--border); background: var(--surface); }
body.ow-applicant-profile #rw-workspace .sr-check-row { padding: 9px 0; }
body.ow-applicant-profile #rw-workspace .sr-record-tiles { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
body.ow-applicant-profile #rw-workspace .sr-record-tile { grid-template-columns: minmax(0,1fr) 54px; grid-template-rows: auto 38px auto; gap: 8px; padding: 16px; border-radius: var(--radius-lg); transition: border-color .15s ease, box-shadow .15s ease; }
body.ow-applicant-profile #rw-workspace .sr-record-tile:hover { border-color: var(--brand-purple); background: var(--surface); box-shadow: var(--elev-1); }
body.ow-applicant-profile #rw-workspace .sr-record-tile:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }
body.ow-applicant-profile #rw-workspace .sr-record-tile .sr-record-label { font-size: 13px; color: var(--text); align-self: center; }
body.ow-applicant-profile #rw-workspace .sr-record-arrow { position: absolute; right: 12px; bottom: 14px; color: var(--ai); font-size: 16px; line-height: 1; }
body.ow-applicant-profile #rw-workspace .sr-record-art { grid-column: 2; grid-row: 1 / 3; align-self: start; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--ai-bg); width: 54px; height: 54px; }
body.ow-applicant-profile #rw-workspace .sr-record-art img { display: block; width: 48px; height: 42px; max-width: 100%; object-fit: contain; }
body.ow-applicant-profile #rw-workspace .sr-record-tile > b { grid-column: 1; grid-row: 2; align-self: center; font-size: 28px; margin: 0; }
body.ow-applicant-profile #rw-workspace .sr-record-tile .sr-value-muted { font-size: 14px; font-weight: 600; }
body.ow-applicant-profile #rw-workspace .sr-record-tile > :is(.sr-caption,.sr-status) { grid-column: 1 / -1; grid-row: 3; align-self: start; justify-self: start; margin-right: 16px; }
body.ow-applicant-profile #rw-workspace .sr-group-heading { padding: 12px 14px; background: var(--surface-card-sky); border-radius: var(--radius-lg); gap: 12px; }
body.ow-applicant-profile #rw-workspace .sr-section-number { background: var(--surface); border: 0; color: var(--text-secondary); }
body.ow-applicant-profile #rw-workspace .sr-section { border-radius: var(--radius-md); padding: 0; }
body.ow-applicant-profile #rw-workspace .sr-section > summary { min-height: 56px; padding: 12px 16px; }
body.ow-applicant-profile #rw-workspace .sr-section[open] > summary { background: var(--surface-alt); }
body.ow-applicant-profile #rw-workspace .sr-section-body { padding: 16px; }
body.ow-applicant-profile #rw-workspace .sr-report .ow-table { min-width: 0; font-variant-numeric: tabular-nums; }
body.ow-applicant-profile #rw-workspace .sr-report .ow-table :is(th,td) { padding: 12px; min-width: 95px; }
body.ow-applicant-profile #rw-workspace .sr-report .ow-table th { background: var(--surface-alt); white-space: nowrap; }
body.ow-applicant-profile #rw-workspace .sr-report .ow-table tbody tr:nth-child(even) { background: var(--surface-canvas); }
body.ow-applicant-profile #rw-workspace .sr-financial-card { padding: 0; overflow: hidden; }
body.ow-applicant-profile #rw-workspace :is(.sr-score-card,.sr-financial-card) > .sr-card-top { padding: 15px 18px; margin: 0; border-bottom: 1px solid var(--border); background: var(--ai-bg); }
body.ow-applicant-profile #rw-workspace .sr-financial-card > .sr-card-top { background: var(--surface-card-sky); }
body.ow-applicant-profile #rw-workspace :is(.sr-score-body,.sr-financial-body) { padding: 16px 18px; }
body.ow-applicant-profile #rw-workspace .sr-score-reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
body.ow-applicant-profile #rw-workspace .sr-score-model { color: var(--text-muted); margin: 0; }
body.ow-applicant-profile #rw-workspace .sr-financial-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-hairline); }
body.ow-applicant-profile #rw-workspace .sr-report h4[data-type-role="label"] { --ui-card-title: var(--ui-label); }
body.ow-applicant-profile #rw-workspace .sr-coverage { margin-top: 16px; }
body.ow-applicant-profile #rw-workspace .sr-coverage h4 { color: var(--text-secondary); margin: 0 0 8px; }
body.ow-applicant-profile #rw-workspace .sr-coverage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
body.ow-applicant-profile #rw-workspace .sr-coverage-grid .sr-check-row { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0; border: 0; }
body.ow-applicant-profile #rw-workspace .sr-coverage-grid .sr-status { max-width: 100%; white-space: normal; }
body.ow-applicant-profile #rw-workspace .sr-profile-compact { grid-template-columns: 1fr; gap: 12px; }
body.ow-applicant-profile #rw-workspace .sr-profile-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
body.ow-applicant-profile #rw-workspace .sr-profile-counts > div { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; border: 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-canvas); }
body.ow-applicant-profile #rw-workspace .sr-profile-counts dd { font-size: var(--ui-metric); }
body.ow-applicant-profile #rw-workspace .sr-summary-note { color: var(--text-muted); }
body.ow-applicant-profile #rw-workspace .sr-account-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 12px 0; }
body.ow-applicant-profile #rw-workspace .sr-account-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
body.ow-applicant-profile #rw-workspace .sr-account-balance { margin-left: auto; display: grid; text-align: right; flex-shrink: 0; }
body.ow-applicant-profile #rw-workspace .sr-account-balance b { font-size: var(--ui-body); font-variant-numeric: tabular-nums; }
body.ow-applicant-profile #rw-workspace .sr-detail-card > summary:hover { background: var(--surface-canvas); }
body.ow-applicant-profile #rw-workspace .sr-report :is(.sr-section,.sr-detail-card) > summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }
body.ow-applicant-profile #rw-workspace .sr-detail-fields > div { padding-bottom: 8px; border-bottom: 1px solid var(--border-hairline); }
body.ow-applicant-profile #rw-workspace .sr-offense > h4 { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-alt); overflow-wrap: anywhere; }
@container ow-layout (max-width:700px) {
  body.ow-applicant-profile #rw-workspace .ow-profile-head { grid-template-columns: 44px minmax(0,1fr); padding: 14px; gap: 10px; }
  body.ow-applicant-profile #rw-workspace .ow-profile-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  body.ow-applicant-profile #rw-workspace .ow-profile-id h1 { --ui-title: 23px; }
  body.ow-applicant-profile #rw-workspace .ap-property { font-size: 19px; }
  body.ow-applicant-profile #rw-workspace .ap-context { grid-row: 2; }
  body.ow-applicant-profile #rw-workspace .sr-heading-copy { flex-basis: auto; }
  body.ow-applicant-profile #rw-workspace .sr-overview { grid-template-columns: 1fr; }
  body.ow-applicant-profile #rw-workspace .sr-record-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.ow-applicant-profile #rw-workspace .sr-record-tile { padding: 12px; grid-template-columns: minmax(0,1fr) 40px; grid-template-rows: minmax(36px,auto) 38px auto; gap: 6px; }
  body.ow-applicant-profile #rw-workspace .sr-record-art { width: 40px; height: 44px; }
  body.ow-applicant-profile #rw-workspace .sr-record-art img { width: 38px; height: 36px; }
  body.ow-applicant-profile #rw-workspace .sr-actions { justify-content: flex-start; }
  body.ow-applicant-profile #rw-workspace .sr-profile-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.ow-applicant-profile #rw-workspace :is(.sr-score-body,.sr-financial-body) { padding: 14px; }
  body.ow-applicant-profile #rw-workspace .sr-financial-metrics { gap: 14px; }
  body.ow-applicant-profile #rw-workspace .sr-financial-metric > span { min-height: 42px; }
  body.ow-applicant-profile #rw-workspace .sr-coverage-grid { gap: 7px; }
  body.ow-applicant-profile #rw-workspace .sr-record-tile .sr-value-muted { font-size: 12px; }
  body.ow-applicant-profile #rw-workspace .sr-nav { position: static; flex-wrap: nowrap; overflow-x: auto; padding-right: 5px; }
  body.ow-applicant-profile #rw-workspace .sr-nav > * { flex-shrink: 0; white-space: nowrap; }
  body.ow-applicant-profile #rw-workspace .ow-tabs { margin-bottom: 18px; }
}

body.ow-applicant-profile #rw-workspace #sr-transactions td:is(:nth-child(5),:nth-child(6),:nth-child(8),:nth-child(9)) { white-space: nowrap; }

/* Application overview: each fact carries the app's own drawing at 32px, and the facts sit two to a row
   until the card is too narrow for it (preview application-overview-card.html). */
body.ow-applicant-profile #rw-workspace .ow-overview-tiles svg { width: 28px; height: 28px; }
body.ow-applicant-profile #rw-workspace .ow-overview-tiles svg.ow-nav-art { flex: none; width: 32px; height: 32px; fill: none; color: var(--illustration-ink); stroke: var(--illustration-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.ow-applicant-profile #rw-workspace .ow-overview-tiles .ow-overview-art { display: block; flex: none; width: 32px; height: 32px; }
body.ow-applicant-profile #rw-workspace .ow-overview-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container ow-layout (max-width: 620px) { body.ow-applicant-profile #rw-workspace .ow-overview-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Screening report card: the four record counts as centred tiles in one row. The illustrated head is at the end of this file. */
body.ow-applicant-profile #rw-workspace .ap-score-ends { display: flex; justify-content: space-between; margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
body.ow-applicant-profile #rw-workspace .ap-screen-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body.ow-applicant-profile #rw-workspace .ap-screen-counts li { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 12px 8px; border: 0; border-radius: var(--radius-md); background: var(--surface, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 20px -6px rgba(15, 23, 42, 0.16); text-align: center; }
body.ow-applicant-profile #rw-workspace .ap-screen-counts li::before { content: none; }
body.ow-applicant-profile #rw-workspace .ap-screen-counts .sc-count-art { flex: none; width: 56px; height: 56px; margin: 0 0 4px !important; order: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-what { display: contents; }
body.ow-applicant-profile #rw-workspace .ap-screen-what > span { order: 1; font-size: 16px; font-weight: 700; line-height: 22px; color: var(--text); }
body.ow-applicant-profile #rw-workspace .ap-screen-what > small { order: 3; font-size: 14px; color: var(--text-secondary); }
body.ow-applicant-profile #rw-workspace .ap-screen-counts b { order: 2; font-size: 28px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.ow-applicant-profile #rw-workspace .ap-screen-counts b.is-ok { color: var(--success-ink); }
body.ow-applicant-profile #rw-workspace .ap-screen-counts b.is-bad { color: var(--danger); }
@container ow-layout (max-width:700px) {
  body.ow-applicant-profile #rw-workspace .ap-screen-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Header in two lines: name, date and stage, then the address and contacts. */
body.ow-applicant-profile #rw-workspace .ow-profile-head { grid-template-rows: auto auto; gap: 2px 12px; }
body.ow-applicant-profile #rw-workspace .ow-profile-head > .ow-pavatar { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
body.ow-applicant-profile #rw-workspace .ow-profile-id { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
body.ow-applicant-profile #rw-workspace .ow-profile-id h1 { order: -1; margin: 0; }
body.ow-applicant-profile #rw-workspace .ow-profile-actions { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
body.ow-applicant-profile #rw-workspace .ap-context { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding: 0; border: 0; }
body.ow-applicant-profile #rw-workspace .ap-context > p { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-property { font-size: 16px; line-height: 1.5; }
body.ow-applicant-profile #rw-workspace .ap-context .ow-profile-contacts { margin: 0; }
@container ow-layout (max-width:700px) {
  body.ow-applicant-profile #rw-workspace .ow-profile-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 8px; }
  body.ow-applicant-profile #rw-workspace .ap-property { font-size: 16px; }
  /* With only the three-dot menu, it stays at the top right. */
  body.ow-applicant-profile #rw-workspace .ow-profile-head:not(:has(.ow-profile-actions > .ow-btn)) { grid-template-columns: 44px minmax(0,1fr) 44px; }
  body.ow-applicant-profile #rw-workspace .ow-profile-head:not(:has(.ow-profile-actions > .ow-btn)) .ow-profile-actions { grid-column: 3; grid-row: 1 / span 2; align-self: start; margin: 0; }
}

/* One-column screening report: plain section rows with no band behind the title. */
body.ow-applicant-profile #rw-workspace .sr-report.sr-tt .sr-heading { margin-bottom: 0; }
body.ow-applicant-profile #rw-workspace .sr-report.sr-tt .sr-section { border-radius: 0; }
body.ow-applicant-profile #rw-workspace .sr-report.sr-tt .sr-section > summary,
body.ow-applicant-profile #rw-workspace .sr-report.sr-tt .sr-section[open] > summary { min-height: 60px; padding: 8px 0; background: transparent; }
body.ow-applicant-profile #rw-workspace .sr-report.sr-tt .sr-section-body { padding: 0 0 20px; }

/* Verification card: the income drawing sits beside the title (preview verification-card.html). */
body.ow-applicant-profile #rw-workspace .ap-verify-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
body.ow-applicant-profile #rw-workspace .ap-verify-head h3 { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-verify-head .ap-verify-art { flex: none; width: 64px; height: auto; }
@container ow-layout (max-width: 620px) { body.ow-applicant-profile #rw-workspace .ap-verify-head .ap-verify-art { width: 48px; } }

/* Screening report card: an illustrated head across the card, with the score on a red-to-green bar
   (preview screening-report-card.html). The counts sit beneath at full width. */
body.ow-applicant-profile #ow-main #rw-workspace .ap-screen-card { padding: 0; overflow: hidden; }
body.ow-applicant-profile #rw-workspace .ap-screen-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: center; padding: 18px 20px 20px; border-bottom: 1px solid var(--border-hairline, var(--border)); background: linear-gradient(180deg, #f1ecff 0%, #faf8ff 100%); }
body.ow-applicant-profile #rw-workspace .ap-screen-hero > .ap-screen-head { grid-row: 1 / span 2; width: 132px; height: 132px; object-fit: contain; }
body.ow-applicant-profile #rw-workspace .ap-screen-hero.is-small > .ap-screen-head { grid-row: 1; width: 96px; height: 96px; }
body.ow-applicant-profile #rw-workspace .ap-screen-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-hero-top .ow-textbtn { white-space: nowrap; }
body.ow-applicant-profile #rw-workspace .ap-screen-hero-top h3 { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-partner { display: inline-flex; align-items: center; gap: 8px; }
body.ow-applicant-profile #rw-workspace .ap-screen-partner small { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
body.ow-applicant-profile #rw-workspace .ap-screen-provider { display: block; width: auto; height: 30px; }
body.ow-applicant-profile #rw-workspace .ap-screen-gauge { min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-gauge .ow-score { flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 24px; }
body.ow-applicant-profile #rw-workspace .ap-screen-gauge .ow-score .ow-pill { align-self: center; }
body.ow-applicant-profile #rw-workspace .ap-screen-unit { color: var(--text-secondary); font-size: 14px; }
body.ow-applicant-profile #rw-workspace .ap-score-fill { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--danger) 0%, var(--attention-gold, #ffcd00) 50%, var(--success) 100%); }
body.ow-applicant-profile #rw-workspace .ap-score-pin { position: absolute; top: -18px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
body.ow-applicant-profile #rw-workspace .ap-score-pin::before { content: ""; width: 0; height: 0; border: 6px solid transparent; border-top-color: var(--text); border-bottom: 0; }
body.ow-applicant-profile #rw-workspace .ap-score-pin::after { content: ""; width: 4px; height: 20px; margin-top: -1px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
body.ow-applicant-profile #rw-workspace .ap-screen-under { padding: 16px 20px 20px; }
body.ow-applicant-profile #rw-workspace .ap-screen-under > :first-child { margin-top: 0; }
body.ow-applicant-profile #rw-workspace .ap-screen-under > .ow-muted { margin: 12px 0 0; }
@container ow-layout (max-width: 620px) {
  body.ow-applicant-profile #rw-workspace .ap-screen-hero { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 14px 16px; }
  body.ow-applicant-profile #rw-workspace .ap-screen-hero > .ap-screen-head { grid-row: auto; width: 104px; height: 104px; margin: 0 auto; }
  body.ow-applicant-profile #rw-workspace .ap-screen-hero.is-small { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  body.ow-applicant-profile #rw-workspace .ap-screen-hero.is-small > .ap-screen-head { width: 64px; height: 64px; margin: 0; }
  body.ow-applicant-profile #rw-workspace .ap-screen-under { padding: 12px; }
  body.ow-applicant-profile #rw-workspace .ap-screen-under .ap-screen-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Showings card: the calendar drawing beside the title, as on the Verification card. */
body.ow-applicant-profile #rw-workspace .ap-show-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-show-title h3 { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-show-title .ap-show-art { flex: none; width: 64px; height: auto; }
@container ow-layout (max-width: 620px) { body.ow-applicant-profile #rw-workspace .ap-show-title .ap-show-art { width: 48px; } }

/* Pre-screener answers card: one tile per answer, with the drawing the Application overview uses for the same fact. */
body.ow-applicant-profile #rw-workspace .ap-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-answers > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-canvas); }
body.ow-applicant-profile #rw-workspace .ap-answers > div.is-wide { grid-column: 1 / -1; }
body.ow-applicant-profile #rw-workspace .ap-answers svg.ow-nav-art { grid-row: 1 / span 2; width: 32px; height: 32px; fill: none; color: var(--illustration-ink); stroke: var(--illustration-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.ow-applicant-profile #rw-workspace .ap-answers dt { grid-column: 2; align-self: end; margin: 0; color: var(--text-secondary); font-size: 14px; font-weight: 600; line-height: 20px; }
body.ow-applicant-profile #rw-workspace .ap-answers dd { grid-column: 2; align-self: start; margin: 0; color: var(--text); font-size: 16px; font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
@container ow-layout (max-width: 620px) { body.ow-applicant-profile #rw-workspace .ap-answers { grid-template-columns: minmax(0, 1fr); } }

/* Messages tab: a head with the messages drawing, the thread as a conversation with a line for each day, and
   one writing box (preview messages-tab-new.html). */
body.ow-applicant-profile #ow-main #rw-workspace .ap-msg-card { padding: 0; overflow: hidden; }
body.ow-applicant-profile #rw-workspace .ap-msg-hero { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-hairline, var(--border)); background: linear-gradient(180deg, #f1ecff 0%, #faf8ff 100%); }
body.ow-applicant-profile #rw-workspace .ap-msg-hero .ap-msg-art { flex: none; width: 84px; height: auto; }
body.ow-applicant-profile #rw-workspace .ap-msg-hero h3 { margin: 0; }
body.ow-applicant-profile #rw-workspace .ap-msg-with { margin: 2px 0 0; color: var(--text-secondary); }
body.ow-applicant-profile #rw-workspace .ap-thread { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 6px; }
body.ow-applicant-profile #rw-workspace .ap-day { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 12px; font-weight: 600; line-height: 16px; }
body.ow-applicant-profile #rw-workspace .ap-day::before, body.ow-applicant-profile #rw-workspace .ap-day::after { content: ""; flex: 1; height: 1px; background: var(--border-hairline, var(--border)); }
body.ow-applicant-profile #rw-workspace .ap-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 78%; }
body.ow-applicant-profile #rw-workspace .ap-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
body.ow-applicant-profile #rw-workspace .ap-msg-av { flex: none; }
body.ow-applicant-profile #rw-workspace .ap-msg-av.is-me { background: var(--brand-purple-ink, #6b48e0); color: #fff; font-size: 12px; }
body.ow-applicant-profile #rw-workspace .ap-msg-body { min-width: 0; }
body.ow-applicant-profile #rw-workspace .ap-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 4px; color: var(--text-secondary); font-size: 12px; line-height: 18px; }
body.ow-applicant-profile #rw-workspace .ap-msg-meta > * { white-space: nowrap; }
body.ow-applicant-profile #rw-workspace .ap-msg-meta b { color: var(--text); font-weight: 600; }
body.ow-applicant-profile #rw-workspace .ap-msg.is-me .ap-msg-meta { justify-content: flex-end; }
body.ow-applicant-profile #rw-workspace .ap-msg-body > p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #f1f3f6; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
body.ow-applicant-profile #rw-workspace .ap-msg.is-me .ap-msg-body > p { border-radius: 14px 14px 4px 14px; background: #e6dbfd; }
body.ow-applicant-profile #rw-workspace .ap-msg-none { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 20px 6px; text-align: center; }
body.ow-applicant-profile #rw-workspace .ap-msg-none b { font-size: 18px; font-weight: 600; line-height: 24px; }
body.ow-applicant-profile #rw-workspace .ap-msg-none span { color: var(--text-secondary); }
body.ow-applicant-profile #ow-main #rw-workspace .ap-compose { margin: 12px 20px 16px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
body.ow-applicant-profile #ow-main #rw-workspace .ap-compose:hover, body.ow-applicant-profile #ow-main #rw-workspace .ap-compose:focus-within { border-color: var(--brand-purple-ink, #6b48e0); }
body.ow-applicant-profile #ow-main #rw-workspace .ap-compose:focus-within { box-shadow: 0 0 0 1px var(--brand-purple-ink, #6b48e0); }
body.ow-applicant-profile #ow-main #rw-workspace .ap-compose .ow-label { display: block; margin: 0; padding: 10px 14px 0; }
body.ow-applicant-profile #ow-main #rw-workspace .ap-compose textarea.ow-input { display: block; width: 100%; min-height: 64px; margin: 0; padding: 4px 14px 8px; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; resize: vertical; }
body.ow-applicant-profile #rw-workspace .ap-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--border-hairline, var(--border)); border-radius: 0 0 7px 7px; background: var(--surface-canvas); }
body.ow-applicant-profile #rw-workspace .ap-compose-foot p { margin: 0; color: var(--text-secondary); }
body.ow-applicant-profile #rw-workspace .ap-compose-foot .ow-btn { flex: none; }
@container ow-layout (max-width: 620px) {
  body.ow-applicant-profile #rw-workspace .ap-msg-hero { gap: 12px; padding: 12px; }
  body.ow-applicant-profile #rw-workspace .ap-msg-hero .ap-msg-art { width: 56px; }
  body.ow-applicant-profile #rw-workspace .ap-thread { padding: 12px 12px 4px; }
  body.ow-applicant-profile #rw-workspace .ap-msg { max-width: 92%; }
  body.ow-applicant-profile #ow-main #rw-workspace .ap-compose { margin: 10px 12px 12px; }
  body.ow-applicant-profile #rw-workspace .ap-compose-foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px 10px; }
  body.ow-applicant-profile #rw-workspace .ap-compose-foot .ow-btn { width: 100%; }
}

/* Answers to check: mismatches shown above a submitted application. */
body.ow-applicant-profile .ap-checks { margin-bottom: 12px; }
body.ow-applicant-profile .ap-checks .ow-card-head { flex-wrap: wrap; }
body.ow-applicant-profile .ap-checks-source { font-size: 14px; color: var(--text-muted, #5d6470); }
body.ow-applicant-profile .ap-checks-list { list-style: none; margin: 0; padding: 0; }
body.ow-applicant-profile .ap-checks-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #eceef2); }
body.ow-applicant-profile .ap-checks-list li:first-child { border-top: 0; padding-top: 2px; }
body.ow-applicant-profile .ap-checks-list .ow-pill { flex: none; margin-top: 2px; }
body.ow-applicant-profile .ap-checks-what { flex: 1; min-width: 0; }
body.ow-applicant-profile .ap-checks-what b { display: block; font-size: 16px; font-weight: 600; }
body.ow-applicant-profile .ap-checks-what span { display: block; font-size: 14px; color: var(--text-muted, #5d6470); }
body.ow-applicant-profile .ap-checks-list .ow-textbtn { flex: none; white-space: nowrap; margin-top: 2px; }
@media (max-width: 600px) {
  body.ow-applicant-profile .ap-checks-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  body.ow-applicant-profile .ap-checks-list .ow-textbtn { grid-column: 2; justify-self: start; }
}
