/* Compact Codex CTA; instructions live in an accessible, explicitly opened dialog. */
.dispatch-floating-bar.codex-compact-bar { width: min(48rem, calc(100% - 2rem)); padding: 0.75rem 1rem; border-radius: 0.85rem; transition: background-color 160ms ease, box-shadow 160ms ease; }
.codex-banner-toggle { position: absolute; top: 0.65rem; right: 0.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--app-border); border-radius: 0.6rem; background: var(--app-surface-raised); color: var(--app-muted); }
.codex-banner-toggle:hover { background: #fff1f3; color: var(--app-accent); }
.codex-banner-toggle:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
.codex-banner-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms ease; }
.codex-banner-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.codex-banner-toggle[hidden], .codex-banner-summary[hidden], [data-codex-banner-content][hidden] { display: none; }
.codex-banner-summary { display: flex; align-items: center; min-height: 2.75rem; padding-right: 3.5rem; font-size: var(--text-body); font-weight: 600; }
.codex-banner-label { cursor: pointer; text-align: left; color: inherit; border-radius: 0.35rem; }
.codex-banner-summary.codex-banner-label { width: 100%; }
.codex-banner-label:hover { color: var(--app-accent); }
.codex-banner-label:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
.codex-banner-label .codex-launch-context { text-align: left; }
.codex-compact-bar [data-codex-launch] > .dispatch-floating-content { padding-right: 3.3rem; }
.dispatch-floating-bar.codex-compact-bar.is-minimized { width: min(22rem, calc(100% - 2rem)); min-height: 4.1rem; padding: 0.5rem 1rem; border-color: rgb(214 218 225 / 55%); border-top-width: 1px; background: rgb(255 255 255 / 45%); backdrop-filter: blur(2px); box-shadow: 0 6px 22px rgb(28 35 43 / 10%); }
.dispatch-floating-bar.codex-compact-bar.is-minimized:is(:hover, :focus-within) { background: rgb(255 255 255 / 70%); }
.codex-compact-bar.is-minimized .codex-banner-toggle { background: rgb(255 255 255 / 35%); border-color: rgb(214 218 225 / 55%); }
.codex-compact-bar .dispatch-floating-content { gap: 0.75rem; }
.codex-compact-bar .dispatch-floating-description { gap: 0.1rem; }
.codex-compact-bar .dispatch-floating-description > strong { font-size: var(--text-body); }
.codex-compact-bar .codex-launch-context { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-meta); }
.codex-compact-bar .dispatch-action-row { flex: 0 0 auto; gap: 0.7rem; }
.codex-compact-bar .dispatch-send-button { min-height: 2.75rem; padding: 0.55rem 0.85rem; }
.codex-compact-bar .dispatch-refresh-link { font-size: var(--text-meta); }
.codex-compact-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.65rem; margin-top: 0.4rem; }
.codex-help-toggle { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0.1rem 0; color: var(--app-muted); font-size: var(--text-meta); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2rem; }
.codex-help-toggle:hover { color: var(--app-accent); }
.codex-help-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.codex-permission-chip { padding: 0.2rem 0.5rem; border-radius: 0.4rem; color: #80520b; background: #fff4da; font-size: var(--text-meta); font-weight: 600; }
.codex-launch-feedback { margin-top: 0.4rem; color: var(--app-muted); font-size: var(--text-meta); font-weight: 500; line-height: var(--leading-meta); }
.codex-launch-feedback:empty { display: none; }
.codex-compact-bar [data-dispatch-prepare-form]:not([hidden]) { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--app-border); }
.codex-help-dialog { width: min(35rem, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--app-border); border-top: 3px solid var(--app-accent); border-radius: 1rem; background: var(--app-surface); color: var(--app-text); box-shadow: 0 24px 80px rgb(28 35 43 / 24%); }
.codex-help-dialog[open] { animation: codex-help-in 180ms ease-out both; }
.codex-help-dialog::backdrop { background: rgb(22 30 40 / 40%); backdrop-filter: blur(4px); animation: codex-backdrop-in 180ms ease-out both; }
.codex-help-dialog.is-closing { animation: codex-help-out 140ms ease-in both; }
.codex-help-dialog.is-closing::backdrop { animation: codex-backdrop-out 140ms ease-in both; }
html.codex-help-is-open { overflow: hidden; }
.codex-help-card { padding: 1.5rem; }
.codex-help-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.codex-help-header h2 { margin-top: 0.2rem; font-size: var(--text-heading); line-height: var(--leading-heading); font-weight: 650; }
.codex-help-close { display: grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 1px solid var(--app-border); border-radius: 0.65rem; background: var(--app-surface-raised); }
.codex-help-close:hover { background: #fff1f3; color: var(--app-accent); }
.codex-help-close svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.codex-help-card p { font-size: var(--text-body); line-height: var(--leading-body); }
.codex-help-steps { display: grid; gap: 1rem; margin: 1.25rem 0; }
.codex-help-steps li { display: flex; align-items: flex-start; gap: 0.8rem; }
.codex-help-steps li > span { display: grid; place-items: center; flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 0.55rem; background: #fff1f3; color: var(--app-accent); font-size: var(--text-meta); font-weight: 650; }
.codex-help-steps strong { display: block; font-weight: 650; font-size: var(--text-body); }
.codex-help-steps p { margin-top: 0.25rem; color: var(--app-muted); }
.codex-help-permission { padding: 0.85rem 1rem; border: 1px solid #ead7b7; border-radius: 0.65rem; background: #fffaf0; }
.codex-help-permission strong { font-weight: 650; }
.codex-help-permission p { margin-top: 0.3rem; }
.codex-help-account { margin-top: 1rem; color: var(--app-muted); overflow-wrap: anywhere; }
.codex-help-footer { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.codex-help-dialog :focus-visible, .codex-help-toggle:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
@keyframes codex-help-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes codex-help-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes codex-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes codex-backdrop-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .codex-help-dialog[open], .codex-help-dialog::backdrop, .codex-help-dialog.is-closing, .codex-help-dialog.is-closing::backdrop { animation: none; } }
@media (prefers-reduced-motion: reduce) { .dispatch-floating-bar.codex-compact-bar, .codex-banner-toggle svg { transition: none; } }
@media (max-width: 640px) {
  .dispatch-floating-bar.codex-compact-bar { width: calc(100% - 1.5rem); padding: 0.65rem 0.8rem; }
  .codex-compact-bar .dispatch-floating-content { gap: 0.4rem; }
  .codex-compact-bar [data-codex-launch] > .dispatch-floating-content { padding-right: 0; }
  .codex-compact-bar [data-codex-launch] .dispatch-floating-description { padding-right: 3.3rem; }
  .dispatch-floating-bar.codex-compact-bar.is-minimized { width: min(22rem, calc(100% - 1.5rem)); }
  .codex-compact-bar .dispatch-action-row { flex-wrap: nowrap; align-items: center; gap: 0.8rem; }
  .codex-compact-bar .dispatch-action-row > :is(a, button) { flex: 0 1 auto; }
  .codex-compact-bar .dispatch-action-row .dispatch-send-button { width: auto; flex: 1 1 auto; }
  .codex-permission-chip { background: transparent; padding: 0; }
  .codex-help-card { padding: 1.1rem; }
  .codex-help-dialog { max-height: calc(100dvh - 2rem); }
}

/* Four business columns; responsive cards retain every status and action. */
.workflow-dashboard .dashboard-filters { display: flex; flex-wrap: wrap; }
.workflow-dashboard .dashboard-filter { white-space: nowrap; flex: 0 0 auto; }
.workflow-filter-count { margin-left: 0.25rem; color: var(--app-muted); font-size: var(--text-meta); font-weight: 600; }
.dashboard-reason-panel { margin: 0 0 1rem; padding: 0.9rem 1rem; border: 1px solid var(--app-border); border-radius: 0.7rem; background: var(--app-surface-raised); }
.dashboard-reason-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.dashboard-reason-header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; }
.dashboard-reason-context-count { color: var(--app-muted); font-size: var(--text-meta); line-height: var(--leading-meta); }
.dashboard-reason-reset, .dashboard-active-reason-reset { color: var(--app-muted); font-size: var(--text-meta); text-decoration: underline; text-underline-offset: 0.18rem; }
.dashboard-reason-shortcuts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.dashboard-information-filter { border-style: dashed; }
.dashboard-active-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.7rem; font-size: var(--text-meta); }
.dashboard-active-reasons > span:first-child { color: var(--app-muted); font-weight: 600; }
.dashboard-active-reason { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; padding: 0.3rem 0.5rem; border: 1px solid #e4b6bd; border-radius: 999px; background: #fff7f8; color: #7e1e2c; line-height: var(--leading-meta); }
.dashboard-active-reason:hover { border-color: var(--app-accent); }
.dashboard-reason-drawer { margin-top: 0.75rem; border-top: 1px solid var(--app-border); }
.dashboard-reason-drawer > summary { width: max-content; max-width: 100%; padding-top: 0.7rem; color: var(--app-text); font-size: var(--text-control); font-weight: 600; cursor: pointer; }
.dashboard-reason-form { display: grid; gap: 1rem; margin-top: 0.9rem; }
.dashboard-reason-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dashboard-reason-form legend { margin-bottom: 0.55rem; font-size: var(--text-control); font-weight: 600; }
.dashboard-reason-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; }
.dashboard-reason-options legend { grid-column: 1 / -1; }
.dashboard-reason-options label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.45rem; font-size: var(--text-control); line-height: var(--leading-control); }
.dashboard-reason-options input, .dashboard-reason-modes input, .dashboard-information-option input { margin-top: 0.15rem; accent-color: var(--app-accent); }
.dashboard-reason-modes { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.dashboard-reason-modes legend { flex-basis: 100%; }
.dashboard-reason-modes label, .dashboard-information-option { display: flex; align-items: flex-start; gap: 0.4rem; font-size: var(--text-control); line-height: var(--leading-control); }
.dashboard-reason-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.dashboard-reason-selects label { display: grid; gap: 0.35rem; color: var(--app-muted); font-size: var(--text-meta); font-weight: 600; }
.dashboard-reason-selects select { width: 100%; min-width: 0; min-height: 2.6rem; padding: 0.45rem 0.6rem; border: 1px solid var(--app-border); border-radius: 0.45rem; background: #fff; color: var(--app-text); font: inherit; }
.dashboard-information-option { padding: 0.65rem 0.75rem; border: 1px dashed var(--app-border); border-radius: 0.5rem; background: #fff; }
.dashboard-reason-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.workflow-table.dashboard-table { width: 100%; min-width: 0; table-layout: fixed; }
.workflow-table .workflow-col-listing { width: 28%; }
.workflow-table .workflow-col-eligibility { width: 27%; }
.workflow-table .workflow-col-contact { width: 19%; }
.workflow-table .workflow-col-actions { width: 26%; }
.workflow-table th, .workflow-table td { vertical-align: top; overflow-wrap: anywhere; }
.workflow-listing-heading { display: flex; align-items: flex-start; gap: 0.65rem; }
.workflow-select-form { padding-top: 0.3rem; flex: 0 0 auto; }
.workflow-select-form input { width: 1.1rem; height: 1.1rem; accent-color: var(--app-accent); }
.workflow-listing-info { min-width: 0; flex: 1; }
.workflow-title-button { display: flex; align-items: flex-start; gap: 0.35rem; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: var(--app-text); font-size: var(--text-body); line-height: var(--leading-body); font-weight: 600; overflow-wrap: anywhere; cursor: pointer; }
.workflow-title-button:hover { color: var(--app-accent); }
.workflow-chevron { flex: 0 0 auto; margin-left: auto; }
.workflow-title-button[aria-expanded="true"] .workflow-chevron { transform: rotate(180deg); }
.workflow-provider { display: block; margin-top: 0.3rem; font-size: var(--text-table); }
.workflow-meta, .workflow-evidence { display: block; margin: 0.35rem 0 0; color: var(--app-muted); font-size: var(--text-meta); line-height: var(--leading-meta); overflow-wrap: anywhere; }
.workflow-facts { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; margin-top: 0.25rem; color: var(--app-muted); font-size: var(--text-meta); line-height: var(--leading-meta); }
.workflow-eligibility { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 0.4rem; background: #f1f3f5; color: #46515c; font-size: var(--text-badge); line-height: var(--leading-badge); font-weight: 600; }
.workflow-status-eligible { color: #17603b; background: #e8f5ec; }
.workflow-status-ineligible { color: #a32720; background: #fcebea; }
.workflow-status-duplicate_review, .workflow-status-unclear { color: #7c510b; background: #fff4d9; }
.workflow-status-already_contacted { color: #285780; background: #eaf2fa; }
.workflow-status-in_progress { color: #444a80; background: #eeeffa; }
.workflow-status-analysis_open { color: #46515c; background: #f1f3f5; }
.workflow-short-reason { margin: 0.5rem 0 0; font-size: var(--text-table); line-height: var(--leading-table); }
.workflow-reason-chips, .workflow-information-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.workflow-reason-chip, .workflow-information-chip { display: inline-flex; max-width: 100%; padding: 0.25rem 0.45rem; border-radius: 0.35rem; font-size: var(--text-badge); line-height: var(--leading-badge); font-weight: 600; overflow-wrap: anywhere; }
.workflow-reason-chip { border: 1px solid #efc6c2; background: #fff4f2; color: #8f251f; }
.workflow-reason-chip.is-legal-threat { border-color: #cb726a; background: #fbe1de; color: #731b16; }
.workflow-information-chip { border: 1px dashed #9eabb7; background: #f5f7f9; color: #44515d; }
.workflow-commission-note, .workflow-provider-context { margin: 0.35rem 0 0; color: var(--app-muted); font-size: var(--text-meta); line-height: var(--leading-meta); }
.workflow-reason-proofs { margin-top: 0.45rem; }
.workflow-reason-proofs details { margin-top: 0.3rem; font-size: var(--text-meta); line-height: var(--leading-meta); }
.workflow-reason-proofs summary { color: var(--app-muted); cursor: pointer; }
.workflow-reason-proofs blockquote { margin: 0.35rem 0 0; padding-left: 0.55rem; border-left: 2px solid #cb726a; white-space: pre-wrap; }
.workflow-reason-proofs p { margin: 0.2rem 0 0; color: var(--app-muted); overflow-wrap: anywhere; }
.workflow-reason-proofs .is-informational blockquote { border-left-color: #9eabb7; }
.workflow-contact { font-weight: 600; font-size: var(--text-table); line-height: var(--leading-table); }
.workflow-core-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.workflow-core-actions .workflow-copy-button { width: 100%; }
.workflow-core-actions .btn-secondary { padding: 0.4rem 0.6rem; }
.workflow-delete-button, .workflow-text-button { border: 0; padding: 0.3rem 0; background: transparent; font-size: var(--text-control); line-height: var(--leading-control); text-align: left; text-decoration: underline; text-underline-offset: 0.18rem; cursor: pointer; }
.workflow-delete-button { color: #a32720; }
.workflow-text-button { color: var(--app-muted); }
.workflow-log-link { display: inline-block; margin-top: 0.6rem; color: var(--app-muted); font-size: var(--text-meta); line-height: var(--leading-meta); text-decoration: underline; text-underline-offset: 0.18rem; }
.workflow-detail .draft-heading { align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.workflow-detail .draft-heading h3 { margin: 0; font-size: var(--text-card); line-height: var(--leading-card); }
.workflow-detail .draft-copy, .workflow-historical-message pre { font-family: inherit; font-size: var(--text-message); line-height: var(--leading-message); white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.workflow-detail-actions .workflow-log-link { margin: 0; }
.workflow-empty-draft { margin: 0; color: var(--app-muted); font-size: var(--text-body); }
.workflow-historical-message { margin-top: 1rem; padding: 1rem; border: 1px solid var(--app-border); border-radius: 0.5rem; }
.workflow-manual-contact:has(form:not([hidden])) { padding-top: 1rem; border-top: 1px solid var(--app-border); }
.workflow-manual-contact form:not([hidden]) { display: grid; gap: 0.65rem; max-width: 46rem; }
.workflow-manual-contact :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { width: 100%; min-width: 0; padding: 0.65rem; border: 1px solid var(--app-border); border-radius: 0.45rem; }
.workflow-manual-contact button { justify-self: start; }
.workflow-result-options { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; padding: 0; border: 0; }
.workflow-result-options legend { margin-bottom: 0.7rem; font-weight: 600; }
.workflow-result-options label, .workflow-confirm-label { display: flex; align-items: flex-start; gap: 0.4rem; font-size: var(--text-control); line-height: var(--leading-control); }
.workflow-result-options input, .workflow-confirm-label input { margin-top: 0.2rem; flex: 0 0 auto; }
.workflow-manual-contact [data-manual-contact-feedback]:empty { display: none; }
.workflow-manual-contact [data-manual-contact-feedback][data-error="true"] { color: #a32720; }
.economic-review form { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.economic-review form > label, .economic-review form > p { flex: 1 0 100%; }
.economic-review form > label { display: grid; gap: 0.4rem; color: var(--app-text); font-size: var(--text-control); font-weight: 600; }
.economic-review textarea { width: 100%; min-width: 0; min-height: 5.5rem; padding: 0.7rem; border: 1px solid var(--app-border); border-radius: 0.45rem; background: #fff; color: var(--app-text); font: inherit; line-height: var(--leading-body); resize: vertical; }
.economic-review textarea[name="message"] { min-height: 8rem; }
.economic-review textarea:focus-visible, .economic-review button:focus-visible, .economic-review summary:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
.economic-review form > button { flex: 0 1 auto; }
.economic-review details { margin-top: 1rem; }
.economic-review details article { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--app-border); }
.economic-review details pre { max-width: 100%; margin: 0.5rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.workflow-table :focus-visible, .workflow-detail :focus-visible { outline: 2px solid var(--app-accent); outline-offset: 3px; }
.workflow-table [disabled] { opacity: 0.6; cursor: not-allowed; }
.analysis-log { max-width: 64rem; margin: 0 auto; overflow-wrap: anywhere; }
.analysis-log > h1 { margin: 0.5rem 0 1.5rem; font-size: var(--text-title); line-height: var(--leading-title); font-weight: 600; }
.analysis-log > .customer-eyebrow { margin-top: 1.5rem; }
.analysis-log section { margin: 1rem 0; padding: 1.5rem; border: 1px solid var(--app-border); border-radius: 0.75rem; background: #fff; }
.analysis-log h2 { margin: 0 0 0.75rem; font-size: var(--text-card); font-weight: 600; }
.analysis-log h3 { margin: 1.25rem 0 0.5rem; font-size: var(--text-body); font-weight: 600; }
.analysis-log p { margin: 0.5rem 0; line-height: var(--leading-body); }
.analysis-location-grid { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 0.7rem 1rem; }
.analysis-location-grid dt { font-weight: 600; }
.analysis-location-grid dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .analysis-location-grid { grid-template-columns: 1fr; } }
.analysis-log article + article { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--app-border); }
.analysis-log blockquote { margin: 0.75rem 0; padding: 0.75rem 1rem; border-left: 3px solid var(--app-accent); background: #fff7f8; white-space: pre-wrap; }
.analysis-log details { margin: 1rem 0; }
.analysis-log summary { cursor: pointer; font-weight: 600; }
.analysis-log .draft-copy { max-width: 100%; font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .analysis-log section { padding: 1rem; } }
@media (max-width: 1100px) {
  .workflow-table .workflow-col-listing { width: 27%; }
  .workflow-table .workflow-col-eligibility { width: 27%; }
  .workflow-table .workflow-col-contact { width: 20%; }
  .workflow-table .workflow-col-actions { width: 26%; }
  .workflow-table.dashboard-table th, .workflow-table.dashboard-table td { padding: 0.8rem 0.55rem; }
}
@media (max-width: 760px) {
  .dashboard-reason-options, .dashboard-reason-selects { grid-template-columns: 1fr; }
  .dashboard-reason-options legend { grid-column: auto; }
  .dashboard-reason-header { align-items: flex-start; }
  .workflow-table.dashboard-table, .workflow-table.dashboard-table tbody { display: block; min-width: 0; }
  .workflow-table.dashboard-table colgroup, .workflow-table.dashboard-table thead { display: none; }
  .workflow-table.dashboard-table [data-dashboard-row] { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0.75rem 0.5rem; gap: 0.55rem; border-bottom: 1px solid var(--app-border); }
  .workflow-table.dashboard-table [data-dashboard-row] > td { display: block; width: auto; min-width: 0; padding: 0.3rem 0.5rem; border: 0; }
  .workflow-contact-cell::before { content: "Kontakt: "; font-size: var(--text-meta); color: var(--app-muted); }
  .workflow-table .workflow-core-actions .workflow-copy-button { width: auto; }
  .workflow-table .mini-listing-detail-row:not([hidden]), .workflow-table .mini-listing-detail-row > td { display: block; width: 100%; }
  .workflow-detail-actions > .btn-primary { width: 100%; }
  .economic-review form > button { flex: 1 1 100%; width: 100%; }
}
/* Explicit, server-rendered group selection and authoritative text previews. */
.preparation-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:0; padding:0; margin:20px 0; }
.preparation-group-option { display:flex; gap:12px; align-items:flex-start; padding:14px; border:1px solid #dbe4eb; border-radius:12px; background:#fff; cursor:pointer; }
.preparation-group-option input { margin-top:3px; flex-shrink:0; }
.preparation-group-option span { display:grid; gap:5px; }
.preparation-group-option small { color:#526373; font-size:13px; }
.preparation-group-option:has(input:checked) { border-color:#1b5968; background:#f1f8fa; }
.preparation-marked-option, .preparation-remove-option, .preparation-confirm-option { display:flex; align-items:flex-start; gap:10px; margin:16px 0; }
.preparation-form-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0 0; }
.preparation-preview-item { padding:20px 0; border-top:1px solid #dbe4eb; }
.dispatch-overview-card.preparation-preview-item { padding:20px; }
.preparation-preview-item header { display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.preparation-preview-item h3 { margin:0; font-size:18px; }
.preparation-preview-item select { display:block; width:100%; max-width:650px; margin:8px 0; }
.preparation-suitability { font-weight:650; margin:12px 0 8px; }
.preparation-text-preview, .preparation-template-snapshot { margin:16px 0; }
.preparation-text-preview summary, .preparation-template-snapshot summary { font-weight:600; cursor:pointer; }
.preparation-text-preview pre, .preparation-template-snapshot pre, .preparation-final-text, .preparation-runtime-rules { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.65; color:#263747; background:#f7f9fb; border:1px solid #dbe4eb; border-radius:10px; padding:16px; margin:12px 0; }
.preparation-item-errors { color:#9b2929; padding-left:20px; }
.acquisition-placeholder-help dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
.acquisition-placeholder-help dt { font-weight:650; }
.acquisition-placeholder-help dd { margin:4px 0 0; color:#526373; }
.acquisition-template-list { padding:0 24px 24px; }
.acquisition-template-item { padding:24px 0; border-top:1px solid #dbe4eb; scroll-margin-top:24px; }
.acquisition-template-item header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; }
.acquisition-template-item h3 { font-size:18px; margin:0; }
.acquisition-template-item .settings-form { padding:16px 0 0; }
.acquisition-template-item textarea { width:100%; line-height:1.6; resize:vertical; }
.acquisition-template-state { color:#315d46; font-size:13px; font-weight:600; }
.acquisition-template-state.is-missing { color:#9b2929; }
@media (max-width:640px) { .preparation-group-grid, .acquisition-placeholder-help dl { grid-template-columns:minmax(0,1fr); } .acquisition-template-list { padding:0 16px 16px; } .preparation-form-actions .btn-primary, .preparation-form-actions .btn-secondary { width:100%; text-align:center; } }

/* One understated loading treatment; contents stay readable during requests. */
.app-loading-bar { position:fixed; inset:0 0 auto; width:100%; height:3px; z-index:100; border:0; border-radius:0; accent-color:#1b5968; background:#dbe4eb; }
.app-loading-bar[hidden] { display:none; }
.app-action-status { min-height:1.5em; margin:6px 0; color:#526373; font-size:13px; line-height:1.5; }
.app-action-status[role="alert"] { color:#9b2929; }
.dashboard-table tr.is-selected { background:#edf6f8; }
.dashboard-selection-sync { flex-basis:100%; }
[data-selection-pending="true"] [data-dashboard-selected-count]::after { content:" · lokal"; font-weight:400; }
.preparation-progress { margin:16px 0; }
.preparation-progress progress { width:100%; height:12px; accent-color:#1b5968; }
.preparation-progress-summary { margin:8px 0; font-weight:600; }
[aria-busy="true"] button:disabled { cursor:progress; }
@media (prefers-reduced-motion:reduce) { .app-loading-bar, .preparation-progress progress { animation:none !important; transition:none !important; } }

/* One action bar, driven by the confirmed selection and preparation endpoints. */
.cta-action-bar { --cta-tone:#718096; --cta-wash:#eef1f5; position:fixed; z-index:35; bottom:max(1rem,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(1360px,calc(100% - 3rem)); display:grid; grid-template-columns:minmax(240px,1fr) minmax(250px,1.1fr) auto 48px; align-items:center; gap:18px; padding:16px; border:1px solid var(--app-border,#dbe1ea); border-radius:12px; background:var(--app-surface,#fff); color:var(--app-text,#172338); box-shadow:0 6px 24px rgb(28 35 43 / 12%); }
.cta-action-bar[data-state="empty"] { grid-template-columns:minmax(240px,1fr) auto 48px; }
.cta-action-bar[data-state="selected"] { --cta-tone:var(--app-accent,#d51336); --cta-wash:#fff0f2; }
.cta-action-bar[data-state="missing_template"] { --cta-tone:#b8760a; --cta-wash:#fff5e3; }
.cta-action-bar[data-state="blocked"] { --cta-tone:#d51336; --cta-wash:#fff0f2; }
.cta-action-bar[data-state="processing"] { --cta-tone:#2875ee; --cta-wash:#eef4ff; }
.cta-action-bar[data-state="prepared"] { --cta-tone:#23804a; --cta-wash:#eaf8ef; }
.cta-action-bar[data-state="handoff_unknown"] { --cta-tone:#6743dc; --cta-wash:#f3efff; }
.cta-summary { display:flex; align-items:center; gap:16px; min-width:0; }
.cta-status-icon { display:grid; place-items:center; width:52px; height:52px; flex:0 0 52px; border-radius:12px; color:var(--cta-tone); background:var(--cta-wash); }
.cta-status-icon svg { width:31px; height:31px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }
.cta-summary-text { min-width:0; }
.cta-summary-text strong { display:block; font-size:18px; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.cta-summary-text p { margin:4px 0 0; color:var(--app-muted,#637089); font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.cta-status { min-width:0; padding:9px 13px; border-radius:9px; color:var(--cta-tone); background:var(--cta-wash); font-size:14px; line-height:1.45; }
.cta-action-bar[data-state="selected"] .cta-status { color:#52709a; background:#f3f7fb; }
.cta-status strong { display:block; font-weight:650; }
.cta-status p { margin:3px 0 0; color:var(--app-muted,#637089); }
.cta-status a { display:inline-flex; align-items:center; gap:5px; margin-top:4px; color:#246999; text-decoration:underline; text-underline-offset:3px; font-weight:600; }
.cta-status a svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; }
.cta-status progress { display:block; width:100%; height:10px; margin:8px 0 4px; accent-color:#2875ee; border:0; border-radius:8px; overflow:hidden; }
.cta-status progress::-webkit-progress-bar { background:#dfe7f4; border-radius:8px; }
.cta-status progress::-webkit-progress-value { background:#2875ee; border-radius:8px; }
.cta-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
.cta-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:46px; padding:10px 15px; border:1px solid var(--app-border,#dbe1ea); border-radius:8px; background:var(--app-surface-raised,#f7f9fc); color:var(--app-text,#172338); font-size:14px; font-weight:600; line-height:1.4; text-align:center; cursor:pointer; text-decoration:none; }
.cta-button:hover:not(:disabled) { background:#edf1f6; }
.cta-button svg { width:19px; height:19px; flex:0 0 19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.cta-button.cta-primary { color:#fff; border-color:var(--app-accent,#d51336); background:var(--app-accent,#d51336); }
.cta-button.cta-primary:hover:not(:disabled) { filter:brightness(.94); background:var(--app-accent,#d51336); }
.cta-button:disabled { cursor:not-allowed; background:#e2e6ec; border-color:#e2e6ec; color:#69778d; }
.cta-help { color:var(--app-muted,#637089); }
.cta-chevron { width:48px; padding:10px; align-self:center; }
.cta-chevron[aria-expanded="false"] svg { transform:rotate(180deg); }
.cta-feedback, .cta-secondary-context { grid-column:1/-1; margin:0; font-size:14px; line-height:1.5; color:var(--app-muted,#637089); overflow-wrap:anywhere; }
.cta-feedback:empty, .cta-secondary-context:has(a[hidden]):has(button[hidden]) { display:none; }
.cta-action-bar.is-minimized { padding:10px 14px; gap:12px; }
.cta-action-bar.is-minimized .cta-status progress, .cta-action-bar.is-minimized .cta-help, .cta-action-bar.is-minimized [data-cta-copy] { display:none; }
.cta-action-bar.is-minimized .cta-summary-text strong { font-size:16px; }
.cta-action-bar.is-minimized .cta-status-icon { width:40px; height:40px; flex-basis:40px; }
.cta-action-bar.is-minimized .cta-status-icon svg { width:25px; height:25px; }
.cta-action-bar [hidden], .cta-detail-dialog [hidden] { display:none !important; }
.cta-action-bar :focus-visible, .cta-detail-dialog :focus-visible { outline:3px solid var(--app-accent,#d51336); outline-offset:3px; }
.cta-detail-dialog { width:min(860px,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); margin:auto; padding:24px; overflow:auto; border:1px solid var(--app-border,#dbe1ea); border-radius:14px; background:var(--app-surface,#fff); color:var(--app-text,#172338); box-shadow:0 24px 80px rgb(28 35 43 / 24%); }
.cta-detail-dialog::backdrop { background:rgb(22 30 40 / 45%); backdrop-filter:blur(3px); }
.cta-detail-header { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.cta-detail-header h2 { font-size:22px; line-height:1.35; font-weight:650; }
.cta-detail-close { width:44px; padding:8px; flex:0 0 44px; }
.cta-detail-intro { margin-bottom:12px; font-size:15px; line-height:1.55; }
.cta-detail-item { padding:18px 0; border-top:1px solid var(--app-border,#dbe1ea); }
.cta-detail-item h3 { font-size:17px; font-weight:650; margin-bottom:6px; overflow-wrap:anywhere; }
.cta-detail-item p { margin:6px 0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.cta-detail-item select { display:block; width:100%; min-height:44px; margin:8px 0; border:1px solid var(--app-border); border-radius:8px; padding:8px; }
.cta-detail-item pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; line-height:1.6; padding:14px; margin:10px 0; border:1px solid var(--app-border); border-radius:9px; background:var(--app-surface-raised,#f7f9fb); }
.cta-detail-blockers { color:#ad1434; margin:10px 0; padding-left:20px; font-size:14px; line-height:1.6; }
.cta-detail-footer { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.cta-copy-fallback { display:block; width:100%; min-height:180px; margin-top:16px; padding:12px; font:inherit; border:1px solid var(--app-border); border-radius:8px; }
@media (max-width:1280px) { .cta-action-bar { grid-template-columns:minmax(240px,1fr) minmax(260px,1fr) 48px; gap:14px; } .cta-actions { grid-column:1/3; justify-content:flex-end; } .cta-chevron { grid-column:3; grid-row:1/3; } .cta-action-bar[data-state="empty"] { grid-template-columns:1fr auto 48px; } .cta-action-bar[data-state="empty"] .cta-actions { grid-column:2; } .cta-action-bar[data-state="empty"] .cta-chevron { grid-row:1; } }
@media (max-width:768px) { .cta-action-bar { width:calc(100% - 1.5rem); grid-template-columns:minmax(0,1fr) 46px; padding:14px; gap:12px; } .cta-summary { grid-column:1; gap:12px; } .cta-status { grid-column:1/-1; } .cta-actions { grid-column:1/-1; justify-content:flex-start; } .cta-actions .cta-primary { flex:1 1 100%; } .cta-actions > :not(.cta-primary) { flex:1 1 auto; } .cta-chevron { grid-column:2; grid-row:1; width:46px; } .cta-action-bar[data-state="empty"] { grid-template-columns:minmax(0,1fr) 46px; } .cta-action-bar[data-state="empty"] .cta-actions { grid-column:1/-1; } .cta-action-bar[data-state="empty"] .cta-chevron { grid-column:2; grid-row:1; } .cta-action-bar.is-minimized .cta-actions { grid-column:1/-1; } .cta-action-bar.is-minimized .cta-actions .cta-primary { flex:1 1 auto; } .cta-action-bar.is-minimized [data-cta-details] { display:none; } .cta-action-bar.is-minimized .cta-status { padding:7px 10px; } .cta-detail-dialog { padding:18px; } .cta-detail-footer .cta-button { flex:1 1 auto; } }
@media (max-height:540px) { .cta-action-bar { position:relative; left:auto; bottom:auto; transform:none; width:100%; margin-top:20px; } }
.cta-action-bar.is-narrow { grid-template-columns:minmax(0,1fr) 46px; padding:14px; gap:12px; }
.cta-action-bar.is-narrow .cta-summary { grid-column:1; gap:12px; }
.cta-action-bar.is-narrow .cta-status { grid-column:1/-1; }
.cta-action-bar.is-narrow .cta-actions { grid-column:1/-1; justify-content:flex-start; }
.cta-action-bar.is-narrow .cta-actions .cta-primary { flex:1 1 100%; }
.cta-action-bar.is-narrow .cta-actions > :not(.cta-primary) { flex:1 1 auto; }
.cta-action-bar.is-narrow .cta-chevron { grid-column:2; grid-row:1; width:46px; }
.cta-action-bar.is-narrow[data-state="empty"] { grid-template-columns:minmax(0,1fr) 46px; }
.cta-action-bar.is-narrow[data-state="empty"] .cta-actions { grid-column:1/-1; }
.cta-action-bar.is-narrow[data-state="empty"] .cta-chevron { grid-column:2; grid-row:1; }
.cta-action-bar.is-narrow.is-minimized .cta-actions { grid-column:1/-1; }
.cta-action-bar.is-narrow.is-minimized .cta-actions .cta-primary { flex:1 1 auto; }
.cta-action-bar.is-narrow.is-minimized [data-cta-details] { display:none; }
.cta-action-bar.is-narrow.is-minimized .cta-status { padding:7px 10px; }
@media (prefers-reduced-motion:reduce) { .cta-action-bar progress { animation:none !important; } }

/* Approved dashboard worklist and one lazy property detail panel. */
.workflow-dashboard { container:dashboard-worklist / inline-size; }
.workflow-dashboard .listing-list-shell { margin-top:0; border:1px solid var(--app-border,#dbe1e7); border-radius:12px; background:#fff; box-shadow:0 3px 14px rgb(28 35 43 / 4%); overflow:visible; }
.workflow-dashboard .dashboard-table-scroll { overflow:visible; border-radius:0; }
.workflow-dashboard .workflow-table { border-collapse:collapse; table-layout:fixed; }
.workflow-dashboard .workflow-col-listing { width:42%; }
.workflow-dashboard .workflow-col-eligibility { width:23%; }
.workflow-dashboard .workflow-col-contact { width:19%; }
.workflow-dashboard .workflow-col-actions { width:16%; }
.workflow-dashboard .workflow-table thead { background:#f6f8fa; }
.workflow-dashboard .workflow-table th { padding:12px 16px; border-top:1px solid #e5eaf0; border-bottom:1px solid #e5eaf0; color:#36445b; font-size:14px; font-weight:550; }
.workflow-dashboard .workflow-table td { padding:16px; border-bottom:1px solid #e6eaf0; color:var(--app-text,#172338); }
.workflow-dashboard .workflow-table tbody tr { background:#fff; }
.workflow-dashboard .workflow-table tbody tr:hover { background:#fafbfc; }
.workflow-dashboard .workflow-table tbody tr.is-selected { background:#fff9fa; }
.workflow-dashboard .workflow-table tbody tr:last-child td { border-bottom:0; }
.workflow-dashboard .workflow-listing-heading { gap:12px; align-items:flex-start; }
.workflow-dashboard .workflow-select-form { flex:none; margin:0; padding-top:3px; }
.workflow-dashboard .workflow-select-form input { width:19px; height:19px; margin:0; cursor:pointer; }
.listing-thumbnail { position:relative; display:block; flex:0 0 108px; width:108px; height:84px; overflow:hidden; border:1px solid #e2e7ee; border-radius:6px; background:#f3f5f7; }
.listing-thumbnail img { display:block; width:100%; height:100%; object-fit:cover; }
.listing-image-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; width:100%; height:100%; padding:8px; color:#68768a; text-align:center; font-size:12px; line-height:1.35; }
.listing-image-placeholder svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; }
.workflow-dashboard .workflow-title-button { font-size:16px; font-weight:650; line-height:1.38; }
.workflow-dashboard .workflow-location { display:block; margin-top:3px; color:#4b5d74; font-size:14px; line-height:1.4; }
.workflow-dashboard .workflow-facts { margin-top:3px; gap:2px 8px; font-size:14px; line-height:1.4; }
.workflow-facts > :not(:last-child)::after { content:'·'; margin-left:8px; color:#77849a; font-weight:400; }
.listing-price { color:#24364f; font-weight:650; white-space:nowrap; }
.workflow-dashboard .workflow-meta, .workflow-dashboard .workflow-provider { margin-top:3px; font-size:13px; line-height:1.45; color:#65748a; }
.workflow-dashboard .workflow-reason-chips, .workflow-dashboard .workflow-information-chips { margin-top:6px; gap:4px; }
.workflow-dashboard .workflow-reason-chip, .workflow-dashboard .workflow-information-chip { font-size:13px; font-weight:500; line-height:1.35; padding:4px 6px; border-radius:4px; }
.workflow-dashboard .workflow-information-chip { border-style:solid; }
.listing-classification { display:inline-flex; align-items:flex-start; gap:5px; padding:5px 7px; font-size:14px; line-height:1.4; }
.listing-classification svg, .listing-preparation svg, .workflow-contact svg { flex:none; width:16px; height:16px; margin-top:1px; fill:none; stroke:currentColor; stroke-width:1.8; }
.listing-classification-suitable { background:#eaf8f0; color:#117146; }
.listing-classification-unsuitable { background:#fff0f2; color:#ba1333; }
.listing-classification-open { background:#fff5e4; color:#925600; }
.listing-classification-conditional { background:#fff3d4; color:#805200; }
.workflow-feature-chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.workflow-feature-chip { padding:4px 6px; border:1px solid #dbe2e9; border-radius:4px; background:#f3f6f9; color:#44566b; font-size:13px; line-height:1.35; }
.workflow-feature-chip.is-abroad { background:#fff8e8; border-color:#e9d6a4; color:#805200; }
.workflow-feature-source { margin:6px 0 0; font-size:13px; line-height:1.5; color:#607087; overflow-wrap:anywhere; }
.listing-no-findings { margin-top:6px; color:#24734c; font-size:14px; }
.workflow-dashboard .workflow-short-reason, .workflow-dashboard .workflow-commission-note { margin-top:6px; color:#607087; font-size:13px; line-height:1.5; }
.workflow-dashboard .workflow-availability-warning, .listing-panel-document .workflow-availability-warning { padding:8px 10px; border-radius:8px; background:#fff5e4; color:#925600; }
.workflow-contact { display:inline-flex; align-items:flex-start; gap:7px; font-size:14px; line-height:1.45; font-weight:450; }
.listing-preparation { display:inline-flex; align-items:flex-start; gap:6px; max-width:100%; margin-top:9px; padding:6px 8px; border-radius:5px; font-size:14px; line-height:1.4; color:#3f536f; background:#f1f4f8; }
.listing-preparation-ready, .listing-preparation-conditional { color:#0e794c; background:#edf9f2; }
.listing-preparation-missing_template, .listing-preparation-assignment_required { color:#935700; background:#fff3df; }
.listing-preparation-fixed_blocked { color:#aa1430; background:#ffe9ee; border:1px solid #eeadb9; font-weight:650; }
.listing-blocker { margin-top:6px; color:#951830; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.listing-action { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:40px; padding:8px 10px; border:1px solid #dbe2ec; border-radius:6px; color:#1f304b; background:#fbfcfe; font-size:14px; line-height:1.35; font-weight:550; text-decoration:none; cursor:pointer; }
.listing-action:hover { background:#f2f5f9; border-color:#bdc9d8; }
.listing-action svg { flex:none; width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; }
.listing-action:disabled { cursor:default; color:#7f8b9d; background:#f0f2f5; }
.listing-action [hidden], .listing-panel-document [hidden], [data-listing-image][hidden], .listing-image-placeholder[hidden], [data-listing-panel]:not([open]) { display:none !important; }
.workflow-dashboard .workflow-core-actions { display:grid; gap:7px; }
.listing-details-button { justify-content:flex-start; }
.listing-actions-secondary { display:flex; align-items:stretch; gap:6px; }
.listing-actions-secondary > .listing-action { flex:1; padding:7px; white-space:normal; }
.listing-action-menu { position:relative; flex:none; }
.listing-menu-toggle { min-width:38px; padding:7px; font-size:20px; font-weight:650; list-style:none; }
.listing-menu-toggle::-webkit-details-marker { display:none; }
.listing-menu-items { position:absolute; z-index:45; top:calc(100% + 5px); right:0; width:225px; max-width:calc(100vw - 32px); padding:6px; border:1px solid #dbe2ec; border-radius:8px; background:#fff; box-shadow:0 9px 28px rgb(28 35 43 / 16%); }
.listing-action-menu[data-open-above='true'] .listing-menu-items { top:auto; bottom:calc(100% + 5px); }
.listing-menu-items :is(a,button) { display:block; width:100%; padding:10px; text-align:left; font-size:14px; line-height:1.45; border:0; border-radius:4px; background:transparent; cursor:pointer; }
.listing-menu-items :is(a,button):hover { background:#f5f7fa; }
.listing-menu-items .listing-delete-action { color:#be1637; }
.listing-original-missing { font-size:13px; color:#65748a; }
[data-listing-panel] { position:fixed; inset:18px 24px 18px auto; width:520px; max-width:calc(100vw - 32px); height:calc(100dvh - 36px); max-height:none; margin:0; padding:0; border:1px solid #d9e1eb; border-radius:12px; overflow:auto; overscroll-behavior:contain; background:#fff; color:var(--app-text,#172338); box-shadow:0 12px 45px rgb(21 36 55 / 18%); z-index:90; }
[data-listing-panel]::backdrop { background:rgb(20 33 50 / 38%); }
html.listing-modal-open { overflow:hidden; }
html.listing-modal-open .cta-action-bar { pointer-events:none; }
html.listing-docked-open .workflow-dashboard { margin-right:540px; }
html.listing-docked-open [data-listing-panel] { width:500px; right:max(24px, calc((100vw - 100rem) / 2 + 32px)); }
.listing-panel-document { padding:0; }
.listing-gallery { position:relative; height:235px; background:#f0f3f6; overflow:hidden; }
.listing-gallery > img { width:100%; height:100%; display:block; object-fit:cover; }
.listing-gallery .listing-image-placeholder { font-size:14px; }
.listing-gallery .listing-image-placeholder svg { width:40px; height:40px; }
.gallery-control { position:absolute; display:grid; place-items:center; width:38px; height:38px; border-radius:6px; background:rgb(255 255 255 / 92%); color:#263a56; font-size:27px; line-height:1; cursor:pointer; box-shadow:0 2px 8px rgb(21 36 55 / 10%); }
.gallery-control svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; }
.gallery-previous { top:calc(50% - 19px); left:12px; }
.gallery-next { top:calc(50% - 19px); right:12px; }
.gallery-zoom { right:12px; bottom:14px; }
.gallery-control:disabled { opacity:.5; cursor:default; }
.listing-panel-close { right:12px; top:12px; }
.gallery-count { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); padding:4px 9px; border-radius:5px; background:rgb(15 29 43 / 78%); color:#fff; font-size:14px; }
.listing-detail-heading { padding:18px 20px 14px; }
.listing-detail-heading h2 { font-size:20px; line-height:1.38; font-weight:650; overflow-wrap:anywhere; }
.listing-detail-location { margin-top:9px; color:#455c79; font-size:14px; }
.listing-detail-heading .workflow-facts { font-size:14px; line-height:1.5; margin-top:5px; }
.listing-detail-provider { margin-top:6px; font-size:14px; color:#526983; }
.listing-detail-origin { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; margin-top:7px; color:#68788d; font-size:13px; }
.listing-detail-origin a { text-decoration:underline; text-underline-offset:3px; color:#425b7a; }
.listing-detail-tabs { display:grid; grid-template-columns:.95fr .8fr 1.7fr .75fr; padding:0 10px; border-bottom:1px solid #dfe5ed; }
.listing-detail-tabs button { padding:13px 6px; border-bottom:2px solid transparent; color:#465c78; font-size:14px; font-weight:550; background:#fff; overflow-wrap:anywhere; }
.listing-detail-tabs button[aria-selected='true'] { color:#162640; border-bottom-color:var(--app-accent,#d51336); }
.listing-tab-body { padding:18px 20px 22px; font-size:15px; line-height:1.6; }
.listing-tab-body h3 { margin:18px 0 10px; font-size:16px; font-weight:650; }
.listing-tab-body h3:first-child { margin-top:0; }
.listing-tab-body h4 { margin:14px 0 7px; font-weight:650; }
.listing-tab-body p { overflow-wrap:anywhere; }
.listing-overview-classification { padding:13px; border:1px solid #ecedf1; border-radius:8px; background:#fafbfc; }
.listing-overview-classification:has(.listing-classification-unsuitable) { background:#fff6f8; border-color:#fae6eb; }
.listing-overview-classification .workflow-reason-chips { margin-top:7px; }
.listing-overview-classification .workflow-short-reason, .listing-tab-body .workflow-meta, .listing-tab-body .workflow-commission-note { font-size:14px; line-height:1.55; }
.listing-detail-statuses { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.listing-detail-statuses .listing-preparation { margin:0; }
.listing-detail-statuses .listing-blocker { flex:1 1 100%; }
.listing-preparation-notice { margin-bottom:16px; padding:12px; border-radius:7px; }
.listing-preparation-notice[data-listing-preparation-notice='fixed_blocked'] { border:1px solid #eeadb9; background:#fff2f5; }
.listing-overview-actions { display:flex; flex-wrap:wrap; gap:8px; }
.listing-detail-feedback { margin:0 20px 14px; color:#526983; font-size:14px; line-height:1.5; }
.listing-detail-feedback:empty { display:none; }
.listing-detail-feedback[data-error='true'] { padding:10px; border:1px solid #edb7c2; background:#fff4f6; color:#a51937; border-radius:6px; }
[data-listing-panel][aria-busy='true'] [data-listing-panel-content] { opacity:.8; }
.listing-message-assignment { margin-bottom:16px; padding:12px; border:1px solid #e1e7ef; border-radius:7px; background:#f7f9fc; }
.listing-message .draft-heading { display:flex; align-items:center; justify-content:space-between; }
.listing-message .draft-source { color:#63748b; font-size:14px; }
.listing-message :is(.draft-display,.draft-editor) { margin-top:16px; }
.listing-message .draft-copy { padding:14px; background:#f9fafc; border:1px solid #dde4ee; border-radius:8px; }
.listing-message .draft-editor textarea { width:100%; min-height:200px; padding:12px; border:1px solid #c4cfdd; border-radius:7px; font:inherit; }
.listing-message .workflow-detail-actions, .listing-message .listing-detail-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.listing-message .workflow-historical-message pre, .listing-source-text pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; line-height:1.6; }
.listing-analysis ul { list-style:disc; padding-left:20px; }
.listing-analysis-evidence { margin:12px 0; padding:12px; border:1px solid #e0e6ef; border-radius:7px; }
.listing-analysis blockquote { margin:8px 0; padding:8px 12px; border-left:3px solid #aebdce; color:#425773; background:#f7f9fb; white-space:pre-wrap; }
.listing-source-text { margin:15px 0; padding-top:12px; border-top:1px solid #e1e7ef; }
.listing-source-text summary { cursor:pointer; font-weight:550; }
.listing-source-text p { margin:8px 0; color:#63748b; }
.listing-history ol { padding:0 0 0 12px; list-style:none; border-left:2px solid #e1e7ef; }
.listing-history li { position:relative; margin:0 0 18px; padding-left:10px; }
.listing-history li::before { content:''; position:absolute; left:-18px; top:6px; width:9px; height:9px; border:2px solid #8c9db2; border-radius:50%; background:#fff; }
.listing-history time { display:block; color:#667a91; font-size:13px; }
.listing-history strong { display:block; margin:2px 0; font-weight:650; }
.listing-history a { color:#425b7a; text-decoration:underline; }
.listing-review-panel { padding:20px; }
.listing-review-panel > button { margin-bottom:16px; }
.listing-direct-heading { display:flex; align-items:center; flex-wrap:wrap; gap:16px; max-width:800px; margin:0 auto 18px; color:#607087; }
.listing-direct-detail { max-width:800px; margin:auto; border:1px solid #dce4ee; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 3px 18px rgb(28 35 43 / 7%); }
.listing-direct-detail .listing-gallery { height:320px; }
.listing-image-dialog { width:min(1100px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:14px; border:1px solid #dce4ee; border-radius:10px; background:#fff; color:#24364f; }
.listing-image-dialog::backdrop { background:rgb(8 19 34 / 70%); }
.listing-image-dialog button { display:flex; margin:0 0 12px auto; }
.listing-image-dialog img { display:block; max-width:100%; width:auto; max-height:calc(100dvh - 108px); height:auto; margin:auto; object-fit:contain; }
.workflow-dashboard :focus-visible, [data-listing-panel] :focus-visible, .listing-image-dialog :focus-visible { outline:3px solid var(--app-accent,#d51336); outline-offset:3px; }
@media (min-width:901px) {
  .workflow-dashboard .workflow-table :is(thead,tbody) { display:table-row-group; }
  .workflow-dashboard .workflow-table thead { display:table-header-group; }
  .workflow-dashboard .workflow-table tr { display:table-row; }
  .workflow-dashboard .workflow-table :is(th,td) { display:table-cell; }
  .workflow-dashboard .workflow-table td::before { display:none; }
}
@media (min-width:901px) and (max-width:1200px) {
  .workflow-dashboard .workflow-col-listing { width:39%; }
  .workflow-dashboard .workflow-col-eligibility { width:24%; }
  .workflow-dashboard .workflow-col-contact { width:19%; }
  .workflow-dashboard .workflow-col-actions { width:18%; }
  .workflow-dashboard .workflow-table :is(th,td) { padding:13px 10px; }
  .listing-thumbnail { flex-basis:96px; width:96px; height:78px; }
  .workflow-dashboard .workflow-listing-heading { gap:9px; }
}
@media (max-width:900px) {
  .workflow-dashboard .workflow-table, .workflow-dashboard .workflow-table tbody { display:block; }
  .workflow-dashboard .workflow-table :is(thead,colgroup) { display:none; }
  .workflow-dashboard .workflow-table [data-dashboard-row] { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:16px; border-bottom:1px solid #e1e7ef; border-radius:0; box-shadow:none; margin:0; }
  .workflow-dashboard .workflow-table [data-dashboard-row] > td { display:block; width:auto; min-width:0; padding:0; border:0; }
  .workflow-dashboard .workflow-table td::before { display:none; }
  .workflow-dashboard .workflow-listing-cell { grid-column:1/-1; margin-bottom:13px; }
  .workflow-dashboard .workflow-contact-cell { padding-left:14px !important; }
  .workflow-dashboard .workflow-actions-cell { grid-column:1/-1; margin-top:14px; }
  .workflow-dashboard .workflow-core-actions { display:flex; flex-wrap:wrap; }
  .workflow-dashboard .listing-details-button { flex:1; }
  .listing-actions-secondary { flex:1 1 auto; }
  .workflow-dashboard .workflow-title-button { font-size:16px; }
  .workflow-dashboard .workflow-provider, .workflow-dashboard .workflow-meta { font-size:13px; }
  .workflow-dashboard .workflow-table tbody tr:last-child { border-bottom:0; }
}
@media (max-width:520px) {
  .workflow-dashboard .workflow-table [data-dashboard-row] { display:block; padding:14px 12px; }
  .workflow-dashboard .workflow-listing-heading { position:relative; display:grid; grid-template-columns:92px minmax(0,1fr); gap:3px 10px; padding-left:0; padding-right:26px; }
  .workflow-dashboard .workflow-select-form { position:absolute; right:0; top:0; }
  .workflow-dashboard .workflow-listing-info { display:contents; }
  .workflow-dashboard .workflow-listing-info > :is(button,.workflow-location,.workflow-facts) { grid-column:2; }
  .workflow-dashboard .workflow-listing-info > :is(time,.workflow-provider) { grid-column:1/-1; }
  .workflow-dashboard .listing-recorded-label { display:none; }
  .listing-thumbnail { width:92px; height:76px; flex-basis:92px; }
  .workflow-dashboard .listing-thumbnail { grid-row:1/4; align-self:start; }
  .workflow-dashboard .workflow-title-button { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:15px; }
  .workflow-dashboard .workflow-facts, .workflow-dashboard .workflow-location { font-size:13px; }
  .workflow-dashboard .workflow-eligibility-cell { margin-top:12px; }
  .workflow-dashboard .workflow-contact-cell { padding-left:0 !important; margin-top:10px; }
  .workflow-dashboard .workflow-contact-cell .listing-preparation { margin-top:7px; }
  .workflow-dashboard .workflow-core-actions { flex-wrap:nowrap; gap:7px; }
  .listing-action { min-height:42px; font-size:13px; padding:8px; }
  .workflow-dashboard .listing-details-button { flex:0 0 auto; }
  .listing-actions-secondary { min-width:0; }
  [data-listing-panel] { inset:0; width:100%; max-width:100%; height:100dvh; border-radius:0; border:0; padding-bottom:env(safe-area-inset-bottom); }
  .listing-gallery { height:215px; }
  .listing-direct-detail .listing-gallery { height:215px; }
  .listing-detail-heading { padding:16px; }
  .listing-detail-heading h2 { font-size:19px; }
  .listing-tab-body { padding:16px; }
  .listing-detail-tabs { padding:0 4px; }
  .listing-detail-tabs button { font-size:13px; padding:12px 4px; }
  .listing-detail-origin { font-size:13px; }
}
@container dashboard-worklist (max-width:900px) {
  .workflow-dashboard .workflow-table, .workflow-dashboard .workflow-table tbody { display:block; min-width:0; }
  .workflow-dashboard .workflow-table :is(thead,colgroup) { display:none; }
  .workflow-dashboard .workflow-table [data-dashboard-row] { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:16px; border-bottom:1px solid #e1e7ef; border-radius:0; box-shadow:none; margin:0; }
  .workflow-dashboard .workflow-table [data-dashboard-row] > td { display:block; width:auto; min-width:0; padding:0; border:0; }
  .workflow-dashboard .workflow-table td::before { display:none; }
  .workflow-dashboard .workflow-listing-cell { grid-column:1/-1; margin-bottom:13px; }
  .workflow-dashboard .workflow-contact-cell { padding-left:14px !important; }
  .workflow-dashboard .workflow-actions-cell { grid-column:1/-1; margin-top:14px; }
  .workflow-dashboard .workflow-core-actions { display:flex; flex-wrap:wrap; }
  .workflow-dashboard .listing-details-button { flex:1; }
  .listing-actions-secondary { flex:1 1 auto; }
}
@container dashboard-worklist (max-width:520px) {
  .workflow-dashboard .workflow-table [data-dashboard-row] { display:block; padding:14px 12px; }
  .workflow-dashboard .workflow-listing-heading { position:relative; display:grid; grid-template-columns:92px minmax(0,1fr); gap:3px 10px; padding-left:0; padding-right:26px; }
  .workflow-dashboard .workflow-select-form { position:absolute; right:0; top:0; }
  .workflow-dashboard .workflow-listing-info { display:contents; }
  .workflow-dashboard .workflow-listing-info > :is(button,.workflow-location,.workflow-facts) { grid-column:2; }
  .workflow-dashboard .workflow-listing-info > :is(time,.workflow-provider) { grid-column:1/-1; }
  .workflow-dashboard .listing-recorded-label { display:none; }
  .workflow-dashboard .listing-thumbnail { width:92px; height:76px; flex-basis:92px; grid-row:1/4; align-self:start; }
  .workflow-dashboard .workflow-title-button { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:15px; }
  .workflow-dashboard .workflow-contact-cell { padding-left:0 !important; margin-top:10px; }
  .workflow-dashboard .workflow-core-actions { flex-wrap:nowrap; gap:7px; }
  .workflow-dashboard .listing-details-button { flex:0 0 auto; }
}
@media print {
  .workflow-dashboard .listing-list-shell { border:0; box-shadow:none; }
  .workflow-dashboard .dashboard-table-scroll { overflow:visible; contain:none; }
  .workflow-dashboard .workflow-table { display:table; table-layout:auto; }
  .workflow-dashboard .workflow-table thead { display:table-header-group; }
  .workflow-dashboard .workflow-table tbody { display:table-row-group; }
  .workflow-dashboard .workflow-table [data-dashboard-row] { display:table-row; break-inside:avoid; background:white !important; }
  .workflow-dashboard .workflow-table th, .workflow-dashboard .workflow-table [data-dashboard-row] > td { display:table-cell; border-bottom:1px solid #aaa; padding:9px; }
  .workflow-dashboard .workflow-table colgroup { display:table-column-group; }
  .workflow-dashboard .workflow-actions-cell, .workflow-dashboard .workflow-table th:last-child, .workflow-select-form, .listing-action-menu, .cta-action-bar, [data-listing-panel], .listing-image-dialog { display:none !important; }
  .workflow-dashboard .workflow-listing-heading { display:flex; padding:0; }
  .workflow-dashboard .workflow-listing-info { display:block; }
  .workflow-dashboard .workflow-title-button { display:block; overflow:visible; -webkit-line-clamp:unset; }
  .workflow-dashboard .workflow-col-listing { width:45%; }
  .workflow-dashboard .workflow-col-eligibility { width:30%; }
  .workflow-dashboard .workflow-col-contact { width:25%; }
  html.listing-docked-open .workflow-dashboard { margin-right:0; }
  .listing-thumbnail { flex-basis:80px; width:80px; height:64px; }
  .workflow-dashboard .listing-thumbnail { pointer-events:none; }
}
