html, body { background: #f3f4f6; }
h1:focus { outline: none; }
.public-container { padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
.public-intake { min-width: 0; }
.intake-header h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.25; }
.intake-header p { max-width: 65ch; line-height: 1.65; }
.intake-introduction { color: #4b5563; }
.brand { display: flex; align-items: center; min-height: 44px; padding: 4px 8px; background: white; border-radius: 6px; }
.brand img { width: 88px; height: 32px; object-fit: contain; }
.entry-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.entry-paths > button { min-width: 0; min-height: 48px; text-transform: none; font-size: 1rem; border-radius: 10px; }
.form-shortcuts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; }
.form-shortcuts a { display: flex; align-items: center; min-height: 44px; color: var(--mud-palette-primary); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.form-shortcuts a:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 3px; border-radius: 3px; }
.form-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.intake-card { border: 1px solid #e5e7eb; border-radius: 14px; scroll-margin-top: 80px; }
.intake-card h2 { line-height: 1.4; }
.intake-card .mud-grid-item { min-width: 0; }
.photo-pickers { display: grid; grid-template-columns: 1fr; gap: 12px; }
.photo-picker { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border: 1px dashed var(--mud-palette-primary); border-radius: 10px; background: #5b4ee808; }
.photo-picker:hover { background: #5b4ee812; }
.photo-picker:focus-within { outline: 3px solid var(--mud-palette-primary); outline-offset: 3px; }
.photo-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-picker-label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--mud-palette-primary); font-weight: 600; pointer-events: none; text-align: center; line-height: 1.4; }
.photo-picker-disabled { opacity: .55; }
.photo-picker-disabled .photo-input { cursor: not-allowed; }
.camera-picker { display: none; }
.photo-summary { display: grid; gap: 4px; margin: 16px 0 8px; color: #4b5563; }
.photo-list { list-style: none; padding: 0; margin: 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.file-row:last-child { border-bottom: 0; }
.photo-thumbnail { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.photo-placeholder { display: flex; align-items: center; justify-content: center; color: #6b7280; }
.file-details { flex: 1; min-width: 0; display: grid; gap: 4px; }
.file-name { font-size: .95rem; overflow-wrap: anywhere; line-height: 1.4; }
.file-size { color: #6b7280; font-size: .85rem; }
.file-row .mud-icon-button { flex-shrink: 0; min-width: 44px; min-height: 44px; color: #b91c1c; }
.clear-photos { min-height: 44px; margin-top: 8px; text-transform: none; }
.intake-card .mud-checkbox { align-items: flex-start; margin-left: -8px; }
.intake-card .mud-checkbox .mud-button-root { min-width: 44px; min-height: 44px; }
.intake-card .mud-checkbox .mud-typography { padding-top: 10px; line-height: 1.65; }
.submission-actions { display: grid; gap: 16px; }
.completion-help { background: white; border: 1px solid #d1d5db; border-radius: 10px; }
.completion-help summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-weight: 500; color: #374151; }
.completion-help summary:focus-visible { outline: 2px solid var(--mud-palette-primary); border-radius: 10px; }
.completion-help ul { margin: 0; padding: 0 24px 16px 36px; color: #4b5563; line-height: 1.65; overflow-wrap: anywhere; }
.sending-status { padding: 4px 0; }
.submit-action { display: block; width: 100%; border-radius: 10px; }
.submit-action > button { min-height: 52px; border-radius: 10px; text-transform: none; }
.submit-action:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 3px; }
.submit-blockers { text-align: left; white-space: normal; max-width: min(440px, calc(100vw - 32px)); }
.submit-blockers ul { margin: 8px 0 0; padding-left: 20px; max-height: 45vh; overflow-y: auto; }
.validation-summary { color: #b91c1c; }
.validation-summary:empty { display: none; }
.validation-summary ul { padding-left: 24px; margin-bottom: 16px; }
.receipt-reference { overflow-wrap: anywhere; }
.confirmation-card .mud-button-root { min-height: 48px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 16px; background: #fee2e2; color: #991b1b; z-index: 2000; }
.language-selector { min-height: 44px; color: white !important; text-transform: none !important; background: #ffffff20; border-radius: 6px; }
.language-selector .mud-button-label { gap: 8px; }
.language-selector img, .language-option img { display: block; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px #ffffff66; }
.language-option { display: flex; align-items: center; gap: 10px; min-width: 150px; min-height: 40px; }
.language-option .mud-icon-root { margin-left: auto; }
.language-option-selected { background-color: #5b4ee810; }
@media (max-width: 1100px) { .public-app-title { display: none; } }
@media (pointer: coarse) {
    .photo-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camera-picker { display: flex; }
}
@media (max-width: 600px) {
    .public-container { padding: 20px max(12px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
    .intake-card.pa-6 { padding: 20px 16px !important; }
    .intake-card h2 { font-size: 1.1rem; }
    .entry-paths { gap: 8px; }
    .form-shortcuts { justify-content: space-between; gap: 4px 8px; }
    .form-shortcuts a { font-size: .82rem; }
    .public-intake .mud-input input, .public-intake .mud-input textarea, .public-intake .mud-select-input { font-size: 16px; }
    .public-intake .mud-input-helper-text { line-height: 1.5; }
    .photo-picker-label { flex-direction: column; font-size: .9rem; }
    .file-row { gap: 8px; }
    .photo-thumbnail { flex-basis: 56px; width: 56px; height: 56px; }
    .brand img { width: 64px; }
    .confirmation-card .mud-button-root { width: 100%; }
}
@media (max-width: 359px) {
    .photo-pickers { grid-template-columns: 1fr; }
    .photo-picker-label { flex-direction: row; }
}
