.sfh-hero-portal,
.sfh-hero-public-withdrawal,
.sfh-hero-dialog {
  --sfh-ink: #17232b;
  --sfh-muted: #66727a;
  --sfh-line: #e3e8eb;
  --sfh-surface: #f5f7f8;
  --sfh-accent: #c7372f;
  --sfh-green: #15845d;
  --sfh-orange: #ad6700;
  color: var(--sfh-ink);
}

.sfh-hero-heading { margin: 0 0 1.75rem; }
.sfh-hero-heading h2 { margin: .5rem 0 .4rem; font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.08; }
.sfh-hero-heading p { color: var(--sfh-muted); }
.sfh-hero-heading--project { padding: 1.25rem 0 .25rem; }
.sfh-hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; color: var(--sfh-accent); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.sfh-hero-heading--project .sfh-hero-eyebrow { display: block; color: var(--sfh-muted); font-weight: 500; letter-spacing: normal; text-transform: none; }
.sfh-hero-tag { display: inline-flex; padding: .25rem .62rem; border: 1px solid var(--sfh-line); border-radius: 999px; background: #fff; color: var(--sfh-ink); }
.sfh-hero-back { display: inline-block; margin-bottom: 1rem; }

.sfh-hero-status { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .2rem .65rem; border: 1px solid var(--sfh-line); border-radius: 999px; background: #fff; color: var(--sfh-ink); font-size: .78rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.sfh-hero-status--success { border-color: #b8ddcf; background: #eaf7f1; color: #086646; }
.sfh-hero-status--danger { border-color: #efc2bf; background: #fff0ef; color: #a72c26; }
.sfh-hero-status--progress { border-color: #f0d19f; background: #fff8e9; color: #875000; }
.sfh-hero-status--neutral { background: #f6f8f9; color: #53616a; }

.sfh-hero-project-grid { display: grid; gap: 1rem; }
.sfh-hero-project-card,
.sfh-hero-document,
.sfh-hero-surface,
.sfh-hero-metric,
.sfh-hero-dashboard__lead,
.sfh-hero-logbook { border: 1px solid var(--sfh-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 30px rgba(23,35,43,.055); }
.sfh-hero-project-card { padding: 1.25rem; }
.sfh-hero-project-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.sfh-hero-project-card__head .sfh-hero-status { flex: 0 0 auto; }
.sfh-hero-project-card h3 { margin: 0; font-size: 1.12rem; }
.sfh-hero-project-card h3 span { color: #9aa4aa; font-weight: 400; }
.sfh-hero-project-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1rem 0; }
.sfh-hero-project-facts > div { padding: .8rem 1rem; border-radius: 10px; background: var(--sfh-surface); }
.sfh-hero-project-facts span,
.sfh-hero-metric > span,
.sfh-hero-document__meta span,
.sfh-hero-document__amount span { display: block; color: var(--sfh-muted); font-size: .76rem; }
.sfh-hero-project-facts strong { display: block; margin-top: .2rem; }
.sfh-hero-project-facts small { display: block; margin-top: .35rem; color: var(--sfh-muted); font-size: .75rem; line-height: 1.4; }
.sfh-hero-amount--overdue { color: #a72c26; }
.sfh-hero-amount--upcoming { color: #086646; }
.sfh-hero-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sfh-hero-card-footer small { color: var(--sfh-muted); }

.sfh-hero-tabs { display: flex; gap: .35rem; margin: 1.25rem 0 1.5rem; padding: .35rem; overflow-x: auto; border: 1px solid var(--sfh-line); border-radius: 12px; background: var(--sfh-surface); }
.sfh-hero-tabs a { flex: 0 0 auto; padding: .72rem .92rem; border-radius: 9px; color: var(--sfh-ink); text-decoration: none; }
.sfh-hero-tabs a[aria-current="page"] { background: #fff; box-shadow: 0 2px 9px rgba(23,35,43,.09); font-weight: 700; }
.sfh-hero-panel { min-height: 12rem; }

.sfh-hero-dashboard { display: grid; gap: 1rem; }
.sfh-hero-dashboard__lead { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem; padding: 1.3rem; }
.sfh-hero-dashboard__lead h3 { margin: 0 0 .35rem; }
.sfh-hero-dashboard__lead p { margin: 0; color: var(--sfh-muted); }
.sfh-hero-progress { display: grid; place-items: center; width: 122px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--sfh-accent) calc(var(--sfh-progress) * 1%), #e8edef 0); }
.sfh-hero-progress::before { content: ""; grid-area: 1/1; width: 92px; aspect-ratio: 1; border-radius: inherit; background: #fff; }
.sfh-hero-progress > div { z-index: 1; grid-area: 1/1; text-align: center; }
.sfh-hero-progress strong { display: block; font-size: 1.55rem; line-height: 1; }
.sfh-hero-progress span { color: var(--sfh-muted); font-size: .7rem; }
.sfh-hero-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.sfh-hero-metric { padding: 1rem; }
.sfh-hero-metric strong { display: block; margin: .28rem 0; font-size: 1.25rem; }
.sfh-hero-metric p { min-height: 3.2em; margin: 0; color: var(--sfh-muted); font-size: .77rem; line-height: 1.4; }
.sfh-hero-bar { height: 5px; margin-top: .75rem; overflow: hidden; border-radius: 999px; background: #e6eaec; }
.sfh-hero-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--sfh-green),var(--sfh-accent)); }
.sfh-hero-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.sfh-hero-surface { padding: 1.15rem; }
.sfh-hero-surface h3 { margin-top: 0; }
.sfh-hero-surface dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem 1rem; margin-bottom: 0; }
.sfh-hero-surface dt { color: var(--sfh-muted); }
.sfh-hero-surface dd { margin: 0; font-weight: 700; text-align: right; }

.sfh-hero-logbook { padding: 1.15rem; }
.sfh-hero-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sfh-hero-section-heading h3 { margin: 0; }
.sfh-hero-section-heading > span { color: var(--sfh-muted); font-size: .82rem; }
.sfh-hero-timeline { position: relative; display: grid; gap: 1rem; margin: 0; padding: .25rem 0 .25rem 1.3rem; list-style: none; }
.sfh-hero-timeline::before { content: ""; position: absolute; inset: .3rem auto .3rem .25rem; width: 2px; background: var(--sfh-line); }
.sfh-hero-timeline li { position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.sfh-hero-timeline li::before { content: ""; position: absolute; left: -1.3rem; top: .4rem; width: .55rem; height: .55rem; border: 3px solid #fff; border-radius: 50%; background: var(--sfh-accent); box-shadow: 0 0 0 1px var(--sfh-line); }
.sfh-hero-timeline time { color: var(--sfh-muted); font-size: .78rem; }
.sfh-hero-timeline h4 { margin: 0 0 .2rem; }
.sfh-hero-timeline p { margin: 0; color: var(--sfh-muted); }

.sfh-hero-document { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.25rem; margin-bottom: .8rem; padding: 1.15rem; }
.sfh-hero-document__title { display: flex; align-items: center; gap: .65rem; }
.sfh-hero-document h4 { margin: 0; }
.sfh-hero-document__meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin-top: .9rem; }
.sfh-hero-document__meta > div { padding: .62rem .75rem; border-radius: 9px; background: var(--sfh-surface); }
.sfh-hero-document__meta strong { display: block; margin-top: .15rem; font-size: .85rem; }
.sfh-hero-document__amount { min-width: 9rem; text-align: right; }
.sfh-hero-document__amount strong { display: block; margin: .1rem 0 .65rem; }
.sfh-hero-document-note { align-self: center; max-width: 38rem; color: var(--sfh-muted); font-size: .8rem; }
.sfh-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }
.sfh-hero-icon-button { display: inline-grid; place-items: center; min-width: 2.45rem; min-height: 2.45rem; border: 1px solid var(--sfh-line); border-radius: 8px; background: #fff; text-decoration: none; }

.sfh-hero-notice,
.sfh-hero-empty { padding: 1rem 1.15rem; border-left: 4px solid #637785; border-radius: 8px; background: var(--sfh-surface); }
.sfh-hero-empty p { margin-bottom: 0; }
.sfh-hero-notice--warning { border-color: var(--sfh-orange); }
.sfh-hero-notice--error { border-color: var(--sfh-accent); }
.sfh-hero-upload,
.sfh-hero-public-withdrawal form { display: grid; gap: 1rem; max-width: 44rem; }
.sfh-hero-upload label,
.sfh-hero-public-withdrawal label,
.sfh-hero-dialog label { display: grid; gap: .4rem; font-weight: 650; }
.sfh-hero-public-withdrawal input,
.sfh-hero-public-withdrawal textarea,
.sfh-hero-dialog input { width: 100%; }
.sfh-hero-dialog { width: min(44rem,calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 70px rgba(0,0,0,.24); }
.sfh-hero-dialog::backdrop { background: rgba(10,20,26,.58); }
.sfh-hero-dialog__body { display: grid; gap: 1rem; padding: 1.5rem; overflow-y: auto; }
.sfh-hero-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.sfh-hero-payment-options { display: grid; gap: .75rem; }
.sfh-hero-payment-option { padding: 1rem; border: 1px solid var(--sfh-line); border-radius: 12px; background: var(--sfh-surface); }
.sfh-hero-payment-option h3 { margin-top: 0; }
.sfh-hero-payment-option dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .5rem 1rem; }
.sfh-hero-payment-option dd { margin: 0; word-break: break-word; }
.sfh-hero-dialog label:has(input[type="checkbox"]) { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.sfh-hero-dialog input[type="checkbox"] { width: auto; margin-top: .25rem; }
.sfh-hero-portal :focus-visible,
.sfh-hero-public-withdrawal :focus-visible,
.sfh-hero-dialog :focus-visible { outline: 3px solid #1677a3; outline-offset: 3px; }

@media (max-width: 860px) {
  .sfh-hero-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.sfh-hero-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); gap: 1.2rem; }
.sfh-hero-gallery__item { min-width: 0; margin: 0; border: 1px solid var(--sfh-line,#e2e8e4); border-radius: 12px; overflow: hidden; background: #fff; }
.sfh-hero-gallery__item > a { display: block; background: #f3f5f3; }
.sfh-hero-gallery__item img { display: block; width: 100%; height: 220px; object-fit: contain; }
.sfh-hero-gallery__item figcaption { display: flex; flex-direction: column; gap: .45rem; padding: .9rem 1rem; overflow-wrap: anywhere; font-size: .85rem; }
.sfh-hero-gallery__item figcaption a { font-weight: 600; }
.sfh-hero-gallery-pages { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.sfh-hero-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.sfh-hero-pagination a { padding: .55rem .85rem; border: 1px solid var(--sfh-line); color: var(--sfh-ink); text-decoration: none; }
.sfh-hero-pagination a:hover { background: var(--sfh-surface); }
.sfh-hero-pagination span { color: var(--sfh-muted); }
.sfh-hero-pagination[hidden], .sfh-hero-pagination [hidden] { display: none !important; }
.sfh-hero-paper-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sfh-hero-paper-filters button { appearance: none; margin: 0; padding: 8px 13px; border: 1px solid #dedede; border-radius: 999px; background: #fafafa; color: #252525; font: inherit; font-size: .84rem; line-height: 1.3; text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer; }
.sfh-hero-paper-filters button[aria-pressed="true"] { background: #d4af37; border-color: #a48626; color: #171717; }
.sfh-hero-paper-filters button:focus-visible, .sfh-hero-paper-card:focus-visible { outline: 2px solid #a48626; outline-offset: 3px; }
.sfh-hero-paper-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.sfh-hero-paper-list > li { display: block; list-style: none; margin: 0; padding: 0; min-width: 0; }
.sfh-hero-paper-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 18px; border: 1px solid #dedede; border-radius: 0 !important; background: #fff; color: #000; text-decoration: none !important; box-shadow: none; }
.sfh-hero-paper-card:hover { border-color: #a48626; color: #000; }
.sfh-hero-paper-card strong { color: #000; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.sfh-hero-paper-card small { color: #707070; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.sfh-hero-file-icon { display: block; width: 35px; height: 35px; flex: 0 0 35px; margin-bottom: 4px; color: #6b7280; }
.sfh-hero-paper-count { color: #707070; font-size: .8rem; }
.sfh-hero-papers [hidden] { display: none !important; }

/* Native modal top layer keeps theme headers behind the private image viewer. */
dialog.sfh-hero-lightbox { box-sizing: border-box; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 54px 70px 50px; border: 0; border-radius: 0; background: #fff; color: #161616; overflow: hidden; box-shadow: none; }
dialog.sfh-hero-lightbox:not([open]), .sfh-hero-lightbox [hidden] { display: none !important; }
.sfh-hero-lightbox::backdrop { background: #fff; }
.sfh-hero-lightbox button { position: absolute; display: grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #161616; font-family: Arial, sans-serif; font-size: 40px; font-weight: 400; line-height: 1; cursor: pointer; text-decoration: none; z-index: 2; }
.sfh-hero-lightbox button:hover { background: #f3f3f3; color: #000; }
.sfh-hero-lightbox button:focus-visible { outline: 2px solid #a48626; outline-offset: -3px; }
.sfh-hero-lightbox__close { top: 8px; right: 12px; }
.sfh-hero-lightbox__prev { left: 12px; top: calc(50% - 24px); }
.sfh-hero-lightbox__next { right: 12px; top: calc(50% - 24px); }
.sfh-hero-lightbox__stage, .sfh-hero-lightbox__image { width: 100%; height: 100%; min-height: 0; }
.sfh-hero-lightbox__stage { position: relative; touch-action: pan-y; }
.sfh-hero-lightbox__image { display: flex; align-items: center; justify-content: center; }
.sfh-hero-lightbox__image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; user-select: none; }
.sfh-hero-lightbox__status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; text-align: center; color: #666; font-size: 14px; pointer-events: none; }
.sfh-hero-lightbox__caption { position: absolute; bottom: 12px; left: 65px; right: 65px; margin: 0; color: #666; font-size: 12px; line-height: 20px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) {
  dialog.sfh-hero-lightbox { padding: 62px 48px 48px; }
  .sfh-hero-lightbox__prev { left: 0; }
  .sfh-hero-lightbox__next { right: 0; }
  .sfh-hero-lightbox__close { right: 4px; }
  .sfh-hero-lightbox__caption { left: 20px; right: 20px; }
}
@media (max-width: 680px) {
  .sfh-hero-card-footer,
  .sfh-hero-document__title { align-items: flex-start; flex-direction: column; }
  .sfh-hero-project-facts,
  .sfh-hero-kpis,
  .sfh-hero-info-grid,
  .sfh-hero-document,
  .sfh-hero-document__meta { grid-template-columns: 1fr; }
  .sfh-hero-dashboard__lead { grid-template-columns: 1fr; justify-items: start; }
  .sfh-hero-document__amount { text-align: left; }
  .sfh-hero-timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 0.4.10: calm, compact document rows and comparable financial/time rings. */
.sfh-hero-status--planned { background: #f0f6d7; border-color: #c7d77a; color: #536b0e; }
.sfh-hero-card-footer { justify-content: flex-end; }
.sfh-hero-portal .sfh-hero-amount--overdue { color: #b32620; }
.sfh-hero-portal .sfh-hero-amount--upcoming { color: #087247; }
.sfh-hero-portal .sfh-hero-amount--unknown { color: var(--sfh-ink); }
.sfh-hero-amount strong { color: inherit; }
a.sfh-hero-amount { text-decoration: none; }
a.sfh-hero-amount:hover { text-decoration: underline; }
.sfh-hero-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sfh-hero-metric p:empty { display: none; }
.sfh-hero-metric > h3 { margin: 0 0 1.1rem; font-size: 1rem; }
.sfh-hero-chart__body { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.sfh-hero-donut { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--sfh-green) calc(var(--sfh-progress) * 1%), #dfe5e8 0); }
.sfh-hero-donut > div { display: grid; justify-items: center; align-content: center; width: 84px; height: 84px; border-radius: 50%; background: white; }
.sfh-hero-donut svg { width: 30px; height: 30px; color: var(--sfh-green); }
.sfh-hero-donut strong { font-size: .9rem; margin: .15rem 0 0; }
.sfh-hero-donut--unknown { background: #dfe5e8; }
.sfh-hero-legend { display: grid; gap: 1rem; margin: 0; }
.sfh-hero-legend dt { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--sfh-muted); }
.sfh-hero-legend dd { margin: .25rem 0 0 1.1rem; font-weight: 750; font-size: 1rem; overflow-wrap: anywhere; }
.sfh-hero-swatch { display: inline-block; flex: 0 0 .65rem; width: .65rem; height: .65rem; border-radius: 2px; }
.sfh-hero-swatch--total { background: #dfe5e8; border: 1px solid #c1cbd0; }
.sfh-hero-swatch--used { background: var(--sfh-green); }
.sfh-hero-document-head,
.sfh-hero-document { display: grid; grid-template-columns: 6.5rem minmax(0,1fr) 8.5rem minmax(9rem,auto); gap: 1.1rem; align-items: center; }
.sfh-hero-document-head { padding: .4rem 1.3rem .8rem; font-size: .85rem; color: var(--sfh-muted); }
.sfh-hero-document { --document-color: #78868d; --document-tint: #eef1f3; padding: 1.2rem; border-radius: 5px; border-left: 6px solid var(--document-color); box-shadow: none; }
.sfh-hero-document--paid,
.sfh-hero-document--success { --document-color: #17804e; --document-tint: #e7f3df; }
.sfh-hero-document--upcoming { --document-color: #17804e; --document-tint: #edf7f0; }
.sfh-hero-document--overdue,
.sfh-hero-document--danger { --document-color: #b32620; --document-tint: #fdecea; }
.sfh-hero-document--due-soon { --document-color: #976000; --document-tint: #fff4cf; }
.sfh-hero-document--progress { --document-color: #976000; --document-tint: #fff4cf; border-left-color: #970000; }
.sfh-hero-document--planned { --document-color: #637d15; --document-tint: #f0f6d7; }
.sfh-hero-document__main { min-width: 0; }
.sfh-hero-document__main h4 { font-size: 1.08rem; font-weight: 750; overflow-wrap: anywhere; }
.sfh-hero-document__main h4 a { color: var(--sfh-ink); text-decoration: underline; text-underline-offset: .2em; }
.sfh-hero-document__main > small { display: block; margin-bottom: .2rem; font-size: .72rem; color: var(--sfh-muted); }
.sfh-hero-document__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .65rem; }
.sfh-hero-document__meta > div { padding: 0; border-radius: 0; background: none; }
.sfh-hero-document__meta strong { font-size: .78rem; font-weight: 500; }
.sfh-hero-document__date { font-size: .85rem; }
.sfh-hero-document__amount { min-width: 0; text-align: left; }
.sfh-hero-document__amount > strong { font-size: 1.2rem; margin-bottom: .3rem; white-space: nowrap; }
.sfh-hero-document__amount > small { display: block; font-size: .73rem; color: var(--sfh-muted); }
.sfh-hero-document__state { justify-self: end; max-width: 12rem; text-align: right; }
.sfh-hero-document-badge { display: inline-flex; gap: .4rem; align-items: center; color: var(--document-color); background: var(--document-tint); border-radius: 5px; padding: .35rem .65rem; font-size: .8rem; font-weight: 750; }
.sfh-hero-document-badge > span { font-size: 1.15rem; line-height: 1; }
.sfh-hero-document__state .sfh-hero-actions { justify-content: flex-end; }
.sfh-hero-document-note { margin: .6rem 0 0; }
.sfh-hero-mobile-label { display: none; }
.sfh-hero-paypal-buttons { max-width: 420px; width: 100%; margin: .6rem auto 0; }
.sfh-hero-dialog [data-paypal-note]:empty { display: none; }
@media (max-width: 1000px) {
  .sfh-hero-document-head { display: none; }
  .sfh-hero-document { grid-template-columns: minmax(0,1fr) auto; gap: .7rem 1rem; }
  .sfh-hero-document__date { grid-column: 1; grid-row: 1; }
  .sfh-hero-document__main { grid-column: 1; grid-row: 2; }
  .sfh-hero-document__amount { grid-column: 2; grid-row: 1; text-align: right; }
  .sfh-hero-document__state { grid-column: 2; grid-row: 2; }
  .sfh-hero-chart__body { grid-template-columns: 96px minmax(0,1fr); gap: .8rem; }
  .sfh-hero-donut { width: 96px; height: 96px; }
  .sfh-hero-donut > div { width: 72px; height: 72px; }
}
@media (max-width: 680px) {
  .sfh-hero-kpis { grid-template-columns: minmax(0,1fr); }
  .sfh-hero-project-card__head { flex-wrap: wrap; }
  .sfh-hero-document { grid-template-columns: minmax(0,1fr); }
  .sfh-hero-document__date, .sfh-hero-document__main, .sfh-hero-document__amount, .sfh-hero-document__state { grid-column: auto; grid-row: auto; text-align: left; justify-self: start; }
  .sfh-hero-document__state { max-width: none; }
  .sfh-hero-document__state .sfh-hero-actions { justify-content: flex-start; }
  .sfh-hero-document__amount > strong { white-space: normal; }
  .sfh-hero-payment-option dl { grid-template-columns: minmax(0,1fr); }
  .sfh-hero-payment-option dd { margin-bottom: .7rem; }
  .sfh-hero-mobile-label { display: block; color: var(--sfh-muted); font-size: .72rem; }
}
.sfh-hero-upload-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:1rem; }
.sfh-hero-upload-toolbar h3 { margin:0; }
.sfh-hero-upload-toolbar .button { display:inline-flex; align-items:center; gap:.65rem; margin-left:auto; padding:10px 16px; background:#d4af37; border:1px solid #a48626; color:#181818; font:inherit; cursor:pointer; }
.sfh-hero-upload-badge { display:inline-flex; align-items:center; gap:.4rem; background:#fff; color:#222; border-radius:1rem; padding:.2rem .55rem; font-size:.8em; font-weight:700; }
.sfh-hero-upload-badge[hidden] { display:none!important; }
.sfh-hero-upload-spinner { display:inline-block; width:.85em; height:.85em; border:2px solid #ccc; border-top-color:#333; border-radius:50%; animation:sfh-upload-spin .8s linear infinite; }
@keyframes sfh-upload-spin { to { transform:rotate(360deg); } }
.sfh-hero-upload-dialog { width:min(680px,calc(100vw - 32px)); max-height:85vh; overflow:auto; box-sizing:border-box; border:1px solid #dedede; padding:clamp(18px,4vw,32px); background:#fff; color:#222; font:inherit; }
.sfh-hero-upload-dialog::backdrop { background:rgba(0,0,0,.45); }
.sfh-hero-upload-dialog h2 { margin:0 0 24px; font-size:1.5rem; }
.sfh-hero-upload-drop { padding:40px 20px; text-align:center; background:#fafafa; border:2px dashed #d8d8d8; border-radius:4px; }
.sfh-hero-upload-drop p { margin:16px 0 0; color:#666; }
.sfh-hero-upload-drop.is-dragging { background:#fff9e6; border-color:#a48626; }
.sfh-hero-upload-selection { list-style:none; padding:0; margin:20px 0; }
.sfh-hero-upload-selection li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #eee; }
.sfh-hero-upload-selection span { overflow-wrap:anywhere; }
.sfh-hero-upload-selection button { flex-shrink:0; background:transparent; color:#444; border:1px solid #ddd; padding:2px 10px; font-size:1.2rem; cursor:pointer; }
.sfh-hero-upload-dialog .button { border:1px solid #ccc; padding:10px 18px; font:inherit; cursor:pointer; background:#fff; color:#222; }
.sfh-hero-upload-dialog .button.alt { background:#d4af37; border-color:#a48626; color:#181818; }
.sfh-hero-upload-dialog button:disabled { opacity:.45; cursor:not-allowed; }
.sfh-hero-upload-dialog :focus-visible { outline:3px solid #a48626; outline-offset:3px; }
.sfh-hero-upload-dialog .sfh-hero-dialog__actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:24px; }
.sfh-hero-upload-help { background:#faf7ed; border:1px solid #e6d8ad; padding:12px; font-size:.9rem; line-height:1.5; }
.sfh-hero-upload-dialog [data-upload-error] { color:#ad2828; }
.sfh-hero-upload-history { margin:12px 0 24px; font-size:.9rem; }
.sfh-hero-upload-history summary { cursor:pointer; }
.sfh-hero-upload-history li { overflow-wrap:anywhere; padding:4px 0; }
.sfh-hero-upload-history [data-state=transferred] { color:#237534; }
.sfh-hero-upload-history [data-state=failed] { color:#ad2828; }
@media(prefers-reduced-motion:reduce) { .sfh-hero-upload-spinner { animation:none; } }
.sfh-hero-papers [data-paper-empty] { margin-top:10px; }
.sfh-hero-papers .sfh-hero-paper-list[hidden] { display:none!important; }
.sfh-hero-upload-queue { margin:12px 0 24px; font-size:.9rem; }
.sfh-hero-upload-queue[hidden] { display:none!important; }
.sfh-hero-upload-queue li { overflow-wrap:anywhere; padding:4px 0; }
.sfh-hero-upload-hub [data-upload-notice]:empty { display:none; }
