@font-face { font-family: 'BM HANNA Air'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/BMHANNAAir.woff2') format('woff2'); }
@font-face { font-family: 'BM JUA'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/BMJUA.woff2') format('woff2'); }
    #app { padding: 28px 12px 24px; color-scheme: light dark; }
    #app { --sd-bg: light-dark(#FDFAF5,#221d18); --sd-soft: light-dark(#F4EDE0,#302820); --sd-ink: light-dark(#1C1409,#f5ece0); --sd-sub: light-dark(#5A4430,#cdbca8); --sd-line: light-dark(#ddd0be,#564638); --sd-brand: light-dark(#7A5530,#e4bd8c); --sd-action: light-dark(#7A5530,#d9b384); --sd-on-action: light-dark(#FDF8F0,#24180d); --sd-selected: light-dark(#EEE1CF,#433425); --sd-good: light-dark(#3d6650,#a1c1a6); max-width: 420px; margin: 0 auto; border-radius: 24px; background: var(--sd-bg); color: var(--sd-ink); box-shadow: 0 12px 48px light-dark(#3b27181a,#0000002e); font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: -.025em; overflow: clip; }
    #app * { box-sizing: border-box; font-family: inherit; }
    #app [hidden] { display: none !important; }
    #app h1, #app h2, #app h3, #app p { margin: 0; }
    #app button, #app input, #app select { font: inherit; letter-spacing: inherit; }
    #app button { -webkit-tap-highlight-color: transparent; }
    #app .sd-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--sd-line); }
    #app .sd-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--sd-brand); font-size: 18px; font-weight: 750; }
    #app .sd-brand svg { width: 21px; height: 21px; }
    #app .sd-header-note { font-size: 12px; color: var(--sd-sub); white-space: nowrap; }
    #app .sd-main { padding: 30px 24px 26px; }
    #app .sd-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sd-brand); margin-bottom: 5px; }
    #app .sd-scope-note { font-size: 12px; line-height: 1.6; color: var(--sd-sub); margin-bottom: 20px !important; }
    #app .sd-eyebrow svg { width: 15px; height: 15px; }
    #app .sd-hero h1 { font-size: 34px; line-height: 1.28; font-weight: 750; letter-spacing: -.055em; word-break: keep-all; }
    #app .sd-hero h1 span { color: var(--sd-brand); }
    #app .sd-fee { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 19px 18px; background: var(--sd-soft); border-radius: 16px; }
    #app .sd-fee-label { font-size: 13px; font-weight: 600; color: var(--sd-sub); }
    #app .sd-fee-amount { margin: 3px 0 7px; font-size: 31px; line-height: 1.15; font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
    #app .sd-fee-amount small { font-size: 17px; font-weight: 650; margin-left: 2px; }
    #app .sd-fee-note { font-size: 13px; color: var(--sd-sub); line-height: 1.5; }
    #app .sd-envelope { display: block; width: 82px; height: 106px; object-fit: cover; object-position: center 22%; border-radius: 10px; flex: 0 0 auto; }
    #app .sd-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--sd-action); color: var(--sd-on-action); font-size: 17px; font-weight: 700; }
    #app .sd-primary svg { width: 19px; height: 19px; }
    #app .sd-primary:disabled { opacity: .5; cursor: default; }
    #app .sd-hero-actions { margin-top: 20px; }
    #app .sd-secondary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 46px; padding: 9px 12px; background: transparent; border: 0; color: var(--sd-sub); font-size: 14px; font-weight: 500; }
    #app .sd-secondary svg { width: 16px; height: 16px; }
    #app .sd-flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
    #app .sd-flow li { min-width: 0; }
    #app .sd-flow-num { display: block; color: var(--sd-brand); font-size: 12px; letter-spacing: .02em; margin-bottom: 7px; font-weight: 650; }
    #app .sd-flow-title { display: block; font-size: 14px; font-weight: 650; }
    #app .sd-flow-copy { display: block; margin-top: 5px; color: var(--sd-sub); font-size: 12px; line-height: 1.6; word-break: keep-all; }
    #app .sd-guide-facts { margin: 14px 0 0; padding: 12px 0 0 16px; border-top: 1px solid var(--sd-line); color: var(--sd-sub); font-size: 13px; line-height: 1.7; word-break: keep-all; }
    #app .sd-guide-facts li + li { margin-top: 4px; }
    #app .sd-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; border: 0; background: transparent; color: var(--sd-sub); padding: 0 4px 0 0; font-size: 14px; }
    #app .sd-back svg { width: 17px; height: 17px; }
    #app .sd-step-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--sd-sub); font-size: 12px; }
    #app .sd-step-label strong { color: var(--sd-brand); font-weight: 650; }
    #app .sd-input { width: 100%; min-width: 0; min-height: 49px; border: 1px solid var(--sd-line); border-radius: 10px; padding: 12px 14px; color: var(--sd-ink); background: var(--sd-bg); font-size: 16px; }
    #app .sd-input::placeholder { color: var(--sd-sub); opacity: .85; }
    #app .sd-help { margin-top: 8px !important; color: var(--sd-sub); font-size: 12px; line-height: 1.6; }
    #app .sd-option { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--sd-line); border-radius: 10px; background: var(--sd-bg); }
    #app .sd-option:has(input:checked) { background: var(--sd-selected); border-color: var(--sd-brand); }
    #app .sd-option input { accent-color: var(--sd-brand); width: 17px; height: 17px; margin: 0; }
    #app .sd-option-copy { flex: 1; min-width: 0; }
    #app .sd-option-copy strong { display: block; font-size: 14px; font-weight: 650; }
    #app .sd-option-copy small { display: block; margin-top: 2px; color: var(--sd-sub); font-size: 12px; }
    @media (max-width: 370px) {
      #app { padding: 20px 6px; }
      #app .sd-header { padding-left: 20px; padding-right: 20px; }
      #app .sd-main { padding-left: 20px; padding-right: 20px; }
      #app .sd-hero h1 { font-size: 30px; }
      #app .sd-envelope { width: 66px; height: 94px; }
      #app .sd-fee { padding: 17px 14px; gap: 8px; }
      #app .sd-fee-amount { font-size: 29px; }
      #app .sd-flow { gap: 9px; }
      #app .sd-header-note { font-size: 11px; }
    }

    #app .sd-add-hospital { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:54px; margin:12px 0 0; padding:0 14px; border:1px solid var(--sd-brand); border-radius:10px; background:var(--sd-selected); color:var(--sd-ink); font-size:16px; font-weight:600; cursor:pointer; line-height:1; }
    #app button.sd-add-hospital .sd-add-hospital-label { display:flex; align-items:center; gap:10px; min-height:24px; }
    #app button.sd-add-hospital .sd-add-hospital-label svg { display:block; width:18px; height:18px; flex:0 0 18px; color:var(--sd-brand); }
    #app button.sd-add-hospital .sd-add-hospital-label span { display:block; line-height:20px; padding-top:1px; }
    #app button.sd-add-hospital small { display:block; font-size:14px; font-weight:400; color:var(--sd-sub); white-space:nowrap; line-height:20px; padding-top:1px; }
    #app .upload-area::before { content:""; width:16px; height:16px; flex:none; color:var(--sd-brand); background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat; }
    #app .sd-delivery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    #app .sd-delivery-grid .sd-option { padding: 13px 11px; gap: 8px; min-height: 74px; }
    #app .sd-delivery-grid .sd-option input { flex: 0 0 auto; }
    #app .sd-delivery-grid .sd-option-copy strong { font-size: 13px; }
    #app .sd-delivery-grid .sd-option-copy small { font-size: 12px; }

    #app .sd-header { min-height: 64px; padding-top: 18px; padding-bottom: 18px; }
    #app .sd-header-note { font-size: 11px; }
    #app .sd-step-label { min-height: 44px; font-size: 12px; }
    #app .sd-step-label .sd-back { font-size: 12px; min-height: 44px; gap: 5px; }
    #app .sd-step-label .sd-back svg { width: 15px; height: 15px; }
    #app .sd-delivery-grid .sd-option { min-height: 64px; padding: 11px 12px; }
    #app .sd-delivery-grid .sd-option input { width: 16px; height: 16px; }

    #app .sd-header { padding-top: 18px; padding-bottom: 18px; }
    #app .sd-brand { font-size: 17px; font-weight: 700; gap: 8px; }
    #app .sd-brand svg { width: 20px; height: 20px; }
    #app .sd-step-label { min-height: 40px; }
    #app .sd-step-label .sd-back { min-height: 40px; }
    #app .sd-delivery-grid { gap: 10px; }
    #app .sd-delivery-grid .sd-option { min-height: 66px; border-radius: 10px; padding: 12px; }
    #app .sd-delivery-grid .sd-option-copy strong { font-size: 14px; font-weight: 600; }
    #app .sd-delivery-grid .sd-option-copy small { margin-top: 1px; }
    #app .sd-primary { font-size: 16px; font-weight: 600; border-radius: 10px; }

    #app .sd-main { padding:24px 24px 24px; }
    #app .sd-eyebrow { font-size:12px; font-weight:500; gap:6px; margin-bottom:4px; }
    #app .sd-scope-note { font-size:11px; margin-bottom:22px !important; }
    #app .sd-hero h1 { font-size:30px; font-weight:700; line-height:1.35; letter-spacing:-.045em; }
    #app .sd-fee { margin-top:24px; padding:18px 16px; border-radius:14px; gap:12px; }
    #app .sd-fee-label { font-size:12px; font-weight:500; }
    #app .sd-fee-amount { font-size:28px; font-weight:700; margin:4px 0 6px; }
    #app .sd-fee-amount small { font-size:16px; font-weight:500; }
    #app .sd-fee-note { font-size:12px; }
    #app .sd-envelope { width:64px; height:82px; border-radius:8px; }
    #app .sd-hero-actions { margin-top:16px; }
    #app .sd-hero-actions .sd-secondary { font-size:12px; margin-top:4px; }
    #app .sd-flow { gap:12px; }
    #app .sd-flow-num { font-size:11px; font-weight:500; margin-bottom:6px; }
    #app .sd-flow-title { font-size:13px; font-weight:600; }
    #app .sd-flow-copy { font-size:12px; margin-top:4px; }
    @media (max-width:370px) {
      #app .sd-main { padding-left:20px; padding-right:20px; }
      #app .sd-hero h1 { font-size:27px; }
      #app .sd-fee { padding:16px 14px; }
      #app .sd-envelope { width:56px; height:72px; }
      #app .sd-flow { gap:8px; }
    }
  
.sd-icon { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Production adapters retain the existing intake, OCR and search handlers. */
body { background:#f4ede0; }
#app { max-width:420px; min-height:100svh; margin:0 auto; border-radius:0; padding:0; color-scheme:light; overflow:clip; }
#app .welcome-screen { display:flex; flex-direction:column; flex:1; }
#app .sd-secondary { text-decoration:none; }
#app .form-screen { flex:1; }
#app .fhdr { padding:4px 24px 0; border:0; background:var(--sd-bg); }
#app .progress { gap:6px; margin:0 0 10px; padding-top:0; }
#app .progress-step { height:3px; border:0; background:var(--sd-line); }
#app .progress-step.active,#app .progress-step.done { background:var(--sd-brand); }
#app .step-meta { display:block; margin:0; }
#app .step-title { font-size:25px; line-height:1.35; font-weight:700; padding:12px 0 18px; }
#app .fscroll { padding:0 24px 22px; overflow:visible; flex:none; }
#app .bottom { position:static; flex-direction:column; margin-top:auto; padding:18px 24px max(24px,calc(12px + env(safe-area-inset-bottom,0px))); border:0; border-top:1px solid var(--sd-line); background:var(--sd-bg); gap:12px; }
#app .btn-next { min-height:56px; border-radius:10px; font-size:16px; font-weight:600; box-shadow:none; background:var(--sd-action); color:var(--sd-on-action); }
#app .field { margin:0 0 18px; }
#app .fscroll > .field:last-child { margin-bottom:0; }
#app .field-label { font-size:13px; font-weight:600; margin-bottom:8px; color:var(--sd-ink); letter-spacing:inherit; }
#app .field-label .req { display:inline; color:var(--danger); font-size:12px; }
#app .field-error { flex:0 0 100%; color:var(--danger); font-size:13px; line-height:1.5; margin:6px 0 0; word-break:keep-all; }
#app [aria-invalid=true] { outline:1px solid var(--danger); outline-offset:-1px; }
#app input:not([type=checkbox]):not([type=radio]):not([type=file]) { min-width:0; width:100%; min-height:52px; padding:12px 14px; font-size:16px; border:1px solid var(--sd-line); border-radius:10px; background:var(--sd-bg); color:var(--sd-ink); box-shadow:none; }
#app input:not([type=checkbox]):not([type=radio]):not([type=file]):focus { border-color:var(--sd-brand); outline:1px solid var(--sd-brand); outline-offset:-1px; }
#app input:not([type=checkbox]):not([type=radio]):not([type=file])[aria-invalid=true] { border-color:var(--danger); outline:1px solid var(--danger); outline-offset:-1px; }
#app #hospitalBlocks { display:grid; gap:12px; }
#app .scard { border:0; box-shadow:none; padding:16px 12px; margin:0; background:var(--sd-soft); border-radius:12px; overflow:visible; }
#app .scard-head { padding:0 0 12px; background:none; border:0; font-size:12px; color:var(--sd-sub); }
#app .scard-num { display:none; }
#app .scard-body { padding:0; }
#app .scard-body .field:last-child { margin-bottom:0; }
#app .hosp-search-wrap { position:relative; z-index:2; }
#app .hosp-dropdown { position:absolute; top:calc(100% + 6px); left:0; right:0; width:100%; z-index:20; border:1px solid var(--sd-line); border-radius:10px; padding:4px; background:var(--sd-bg); box-shadow:0 8px 24px #3b27181f; max-height:320px; overflow:auto; }
#app .hosp-item { display:block; width:100%; padding:11px 10px; border:0; border-radius:7px; min-height:60px; text-align:left; background:transparent; color:var(--sd-ink); }
#app .hosp-item-name { display:block; font-size:14px; font-weight:600; }
#app .hosp-item-addr { display:block; font-size:12px; color:var(--sd-sub); }
#app .hosp-manual { min-height:44px; color:var(--sd-brand); border-top:1px solid var(--sd-line); border-radius:0; }
#app .hosp-selected-badge { display:block; margin:8px 0 0; padding:0 14px; font-size:12px; font-weight:400; color:var(--sd-sub); border:0; border-radius:0; background:none; }
#app .sd-field-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#app .sd-field-heading .field-label { margin:0; }
#app .sd-period-check { display:inline-flex; align-items:center; gap:8px; min-height:42px; color:var(--sd-sub); font-size:14px; cursor:pointer; white-space:nowrap; }
#app .sd-period-check input { width:17px; height:17px; flex:none; margin:0; accent-color:var(--sd-brand); }
#app .sd-period-group > span { display:block; color:var(--sd-sub); font-size:16px; line-height:1.4; }
#app [hidden] { display:none!important; }
#app .fee-preview { background:none; border:0; padding:0; margin:0; border-radius:0; }
#app .fp-total { border:0; padding:0; margin:0; align-items:baseline; gap:8px; }
#app .sd-field-note { margin-top:4px; color:var(--sd-sub); font-size:13px; line-height:1.5; }
#app .fp-total-label { color:var(--sd-sub); font-size:14px; font-weight:400; }
#app .fp-total-val { color:var(--sd-ink); font-size:24px; font-weight:700; }
#app .upload-area { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin:0; padding:12px 16px; min-height:54px; background:var(--sd-selected); border:1px solid var(--sd-brand); border-radius:10px; color:var(--sd-ink); font-size:16px; font-weight:600; cursor:pointer; transition:none; }
#app .upload-title { color:inherit; font-size:16px; font-weight:600; margin:0; }
#app .upload-area .req { color:var(--sd-ink); font-size:16px; }
#app .upload-sub { margin-top:6px; color:var(--sd-sub); font-size:13px; line-height:1.5; }
#app .upload-sub:empty { display:none; }
#app .upload-area.has-file { background:var(--sd-selected); border-color:var(--sd-brand); }
#app .sig-wrap { border:0; border-radius:0; overflow:visible; background:none; margin:0; }
#app .sig-bar { background:none; padding:0 0 6px; border:0; }
#app .sig-hint { color:var(--sd-ink); font-size:13px; font-weight:600; }
#app .sig-clear { min-height:44px; font-size:12px; color:var(--sd-sub); }
#app #signaturePad1 { border:1px solid var(--sd-line); border-radius:10px; }
#app .success { padding:28px 24px; text-align:left; align-items:stretch; justify-content:flex-start; }
#app .success-h { font-size:28px; font-weight:700; margin:0 0 6px; }
#app .success-p { font-size:15px; margin:0 0 18px; }
#app .receipt-bank { text-align:left; border:1px solid var(--sd-line); border-radius:12px; background:var(--sd-soft); padding:16px; margin:0 0 16px; }
#app .receipt-payment { display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:0 0 12px; border-bottom:1px solid var(--sd-line); color:var(--sd-sub); font-size:14px; }
#app .receipt-payment strong { color:var(--sd-ink); font-family:var(--sd-font-title); font-size:27px; font-weight:400; text-align:right; overflow-wrap:anywhere; }
#app .receipt-bank-info { padding:12px 0; font-size:14px; color:var(--sd-sub); }
#app #successAccount { display:block; color:var(--sd-ink); font-size:22px; line-height:1.35; margin:4px 0 8px; font-weight:700; }
#app .receipt-bank-info p + p { margin-top:4px; }
#app #successBank button { width:100%; min-height:48px; }
#app .receipt-box { background:none; border:1px solid var(--sd-line); border-radius:10px; padding:12px; margin:0; }
#app .receipt-label { font-size:13px; margin:0 0 4px; }
#app .receipt-num { font-size:17px; overflow-wrap:anywhere; }
#app .receipt-meta { font-size:13px; color:var(--sd-sub); overflow-wrap:anywhere; }
#app .receipt-meta:not(:empty) { margin-top:5px; }
#app .kakao-contact { display:flex; align-items:center; justify-content:center; min-height:48px; margin-top:14px; padding:8px; background:transparent; border:1px solid var(--sd-line); border-radius:10px; font-size:14px; font-weight:500; color:var(--sd-sub); }
@media (max-width:767px) { #app:not(.sd-home) { min-height:calc(100svh - 64px); } }
@media (min-width:768px) { #app { margin:24px auto; border-radius:24px; min-height:0; } #app.sd-home { min-height:min(calc(100svh - 48px),780px); margin-block:max(24px,calc((100svh - 780px)/2)); } }
@media (max-width:370px) { #app .fhdr,#app .fscroll,#app .bottom,#app .success { padding-left:20px; padding-right:20px; } #app .step-title { font-size:23px; } }
body { color:var(--t1); }
#app .sd-delivery-choice { border:0; margin:0 0 18px; padding:0; min-width:0; }
#app .sd-delivery-grid .sd-option { min-height:72px; }
#app .sd-option { text-align:left; color:var(--sd-ink); min-height:66px; }
#app .sd-option[aria-pressed=true] { border-color:var(--sd-brand)!important; background:var(--sd-selected)!important; }
#app .delivery-radio { width:16px; height:16px; border:1px solid var(--sd-sub); border-radius:50%; flex:0 0 auto; }
#app .sd-option[aria-pressed=true] .delivery-radio { border:4px solid var(--sd-brand); }
#app .intake-notice { margin:0; font-size:13px; line-height:1.5; color:var(--sd-sub); }
#app .scard-head { justify-content:space-between; }
#app #hospitalBlocks>div:only-child .scard-head { display:none; }
#app .sd-step-label { min-height:40px; }
#app .sd-main .sd-fee-amount { margin:4px 0 6px; }

/* Balance the landing page vertically while allowing long content to scroll. */
#app .sd-header { min-height:calc(60px + env(safe-area-inset-top,0px)); padding-top:calc(14px + env(safe-area-inset-top,0px)); padding-bottom:14px; }
#app #screen0 .sd-main { display:flex; flex-direction:column; gap:12px; width:100%; margin-block:auto; padding-top:24px; padding-bottom:max(24px,env(safe-area-inset-bottom,0px)); }
#app .sd-home-guide { margin-top:0; border-top:1px solid var(--sd-line); flex-shrink:0; }
#app #screen0 .sd-hero { display:flex; flex-direction:column; gap:18px; }
#app #screen0 .sd-home-scope { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; margin-bottom:12px; }
#app #screen0 .sd-eyebrow { margin:0; }
#app #screen0 .sd-scope-note { margin:0 !important; }
#app #screen0 .sd-fee { margin-top:0; padding:14px 16px; }
#app #screen0 .sd-envelope { width:56px; height:72px; }
#app .sd-guide-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 0; font-size:13px; font-weight:550; color:var(--sd-sub); list-style:none; cursor:pointer; }
#app .sd-guide-toggle::-webkit-details-marker { display:none; }
#app .sd-guide-toggle svg { width:17px; height:17px; flex-shrink:0; }
#app .sd-home-guide[open]>.sd-guide-toggle svg { transform:rotate(180deg); }
#app .sd-guide-toggle:focus-visible { outline:2px solid var(--sd-brand); outline-offset:3px; border-radius:4px; }
#app .sd-guide-content { padding:6px 0 12px; }

#app.sd-home ~ #legalFooter { display:none; }
#app .sd-legal-toggle { align-self:center; background:none; border:0; min-height:40px; padding:8px 4px; font:inherit; font-size:12px; color:var(--sd-sub); cursor:pointer; }
#legalFooter, #legalSection { max-width:420px; margin:0 auto; }

/* Keep processing time beside the existing fee details, before intake. */
#app #screen0 .sd-processing-time { margin-top:3px; }

/* 배민 한나체 Air (본문) + 주아체 (제목). 웹폰트 로딩 실패 시 기존 한글 글꼴 유지. */
:root { --sd-font-body:'BM HANNA Air','Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif; --sd-font-title:'BM JUA',var(--sd-font-body); }
body, #app { font-family:var(--sd-font-body); font-size:16px; letter-spacing:-.015em; }
button, input, textarea, select { font-family:inherit; }
#app .sd-brand, #app .sd-hero h1, #app .step-title, #app .success-h { font-family:var(--sd-font-title); font-weight:400; letter-spacing:-.015em; }
#app .sd-brand { font-size:18px; }
#app .sd-hero h1 { font-size:31px; }
#app .step-title { font-size:26px; }
#app .success-h { font-size:29px; }
#app .sd-header-note, #app .sd-scope-note, #app .sd-flow-num { font-size:12px; }
#app .sd-eyebrow, #app .sd-fee-label, #app .sd-fee-note, #app .sd-flow-copy, #app .sd-legal-toggle, #app .sd-step-label, #app .sd-step-label .sd-back, #app .receipt-label, #app .intake-notice, #app .sig-clear { font-size:13px; }
#app .success-p, #app .fp-total-label { font-size:15px; }
#app .sd-fee-amount { font-size:29px; }
#app .sd-fee-amount small, #app .sd-primary, #app .btn-next { font-size:17px; }
#app .sd-flow-title, #app .sd-guide-toggle, #app .field-label, #app .sig-hint { font-size:14px; }
#app .sd-hero-actions .sd-secondary, #app .hosp-item-addr, #app .hosp-selected-badge, #app .scard-head, #app .sd-help { font-size:13px; }
#app .hosp-item-name, #app .sd-option-copy strong { font-size:15px; }
#app .sd-option-copy small { font-size:13px; }
#app .sd-delivery-grid .sd-option-copy strong { font-size:15px; }
#app .sd-delivery-grid .sd-option-copy small { font-size:13px; }
#app input:not([type=checkbox]):not([type=radio]):not([type=file]) { font-size:17px; }
#app .sd-add-hospital:disabled { opacity:.65; cursor:default; }
#app .fp-total-val { font-size:25px; }
#app .upload-area, #app .hosp-item { overflow-wrap:anywhere; }
#app .hosp-item { cursor:pointer; }
#app :is(button, a, input[type=checkbox], input[type=radio], [role=button], summary):focus-visible { outline:2px solid var(--sd-brand); outline-offset:2px; }
#app .hosp-dropdown .hosp-item:focus-visible { outline-offset:-2px; }
#successAccount { overflow-wrap:anywhere; }
#checkModalSheet, #warningModalSheet { max-height:calc(100dvh - env(safe-area-inset-top, 0px)); overflow-y:auto; }
@media (max-width:370px) {
  #app .sd-hero h1 { font-size:28px; }
  #app .step-title { font-size:24px; }
  #app .sd-header { gap:8px; }
  #app .sd-header-note { white-space:normal; text-align:right; }
}
@media (prefers-reduced-motion:reduce) {
  #app *, #checkModalSheet, #warningModalSheet { animation-duration:0.01ms!important; transition-duration:0.01ms!important; }
}


#app #payerDialog {
  position:fixed;
  inset:auto 0 0;
  margin:0 auto;
  width:min(100%,420px);
  max-width:100%;
  max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)));
  overflow:auto;
  overscroll-behavior:contain;
  padding:0;
  border:1px solid var(--sd-line);
  border-radius:18px 18px 0 0;
  background:var(--sd-bg);
  color:var(--sd-ink);
  box-shadow:0 20px 56px #372e2733;
}
#app #payerDialog::backdrop { background:rgba(35,29,24,.52); }
html:has(#payerDialog[open]) { overflow:hidden; }
#app .sd-dialog-body { padding:22px 24px max(24px,calc(12px + env(safe-area-inset-bottom,0px))); }
#app .sd-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#app #payerTitle { font:400 24px/1.35 var(--sd-font-title); margin:0; word-break:keep-all; }
#app .sd-dialog-close { min-width:44px; min-height:44px; flex:none; padding:4px; border:0; border-radius:6px; background:none; color:var(--sd-sub); font-size:15px; cursor:pointer; }
#app #payerHint { margin:8px 0 18px; font-size:14px; }
#app .sd-dialog-actions { display:grid; gap:10px; }
#app .sd-dialog-actions button { width:100%; min-height:54px; margin:0; cursor:pointer; }
#app .sd-dialog-actions .sd-secondary { border:1px solid var(--sd-brand); border-radius:10px; background:var(--sd-selected); color:var(--sd-ink); font-size:16px; }
#app #depositorCustom > .sd-back { margin-bottom:8px; }
@media (max-width:370px) { #app .sd-dialog-body { padding-left:20px; padding-right:20px; } }
@media (min-width:600px) { #app #payerDialog { inset:0; margin:auto; width:min(384px,calc(100% - 32px)); max-height:calc(100dvh - 32px); border-radius:16px; } }
