/* Direct registration: one active task, centered in the visible viewport. */
#intakeModal.focus-flow .modal-sheet { max-width: 720px; }
#intakeModal.focus-flow .modal-header { min-height: 58px; border: 0; padding-bottom: 0; }
#intakeModal.focus-flow .modal-header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.flow-progress { font-size: 13px; color: var(--toss-text-sub); letter-spacing: .03em; }
#intakeModal.focus-flow .modal-body { display: flex; flex-direction: column; padding: 12px 24px; overflow: hidden; min-height: 0; }
.flow-summary { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; max-height: 88px; overflow: auto; padding: 2px; }
.flow-summary:empty { display: none; }
.flow-summary[hidden] { display: none; }
.flow-summary button { border: 0; border-radius: 9px; background: #f2f5f9; padding: 8px 11px; font: inherit; font-size: 13px; color: var(--toss-text-main); cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.flow-summary button span { color: var(--toss-text-sub); margin-right: 6px; }
.flow-stage { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.flow-panel { flex-shrink: 0; width: 100%; max-width: 520px; margin: auto; padding: 24px 2px; }
.flow-panel[hidden] { display: none !important; }
.flow-panel h3 { margin: 0 0 10px; font-size: clamp(23px, 4.5vw, 29px); line-height: 1.35; letter-spacing: -.7px; color: var(--toss-text-main); }
.flow-panel > p { color: var(--toss-text-sub); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
#intakeModal.focus-flow .intake-date-hint { background: transparent; padding: 0; margin: 0 0 18px; font-size: 13px; line-height: 1.5; }
#intakeModal.focus-flow .intake-date-hint button { padding: 6px 8px; flex-shrink: 0; }
#intakeModal.focus-flow .form-group, #intakeModal.focus-flow .intake-step { margin-bottom: 12px; }
#intakeModal.focus-flow #intakeName { height: 60px; font-size: 24px; font-weight: 700; }
#intakeModal.focus-flow .choice-chip { min-height: 44px; }
#intakeModal.focus-flow .choice-chip:focus-visible, .flow-summary button:focus-visible, .flow-review-row:focus-visible { outline: 3px solid #b2ceff; outline-offset: 2px; }
#intakeModal.focus-flow .modal-footer button { min-width: 0; flex: 1; }
.flow-error { color: #cc3548; font-size: 14px; margin: 0; padding: 0 2px; flex-shrink: 0; }
.flow-error:empty { display: none; }
.flow-storage-state { flex-shrink: 0; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--toss-text-sub); }
.flow-review { display: grid; gap: 8px; }
.flow-review-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; border: 1px solid var(--toss-border); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; }
.flow-review-row small { display: block; color: var(--toss-text-sub); margin-bottom: 4px; }
.flow-review-row strong { font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.flow-review-row > span:last-child { color: var(--toss-blue); font-size: 13px; flex-shrink: 0; }
@keyframes flowEnter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.flow-enter { animation: flowEnter 260ms cubic-bezier(.16,1,.3,1); }
#photoCropModal { z-index: 240; }
@media (max-width: 699px) {
  #intakeModal.focus-flow .modal-body { padding: 8px 20px; }
  .flow-panel { padding: 20px 2px; }
  .flow-summary { max-height: 76px; }
}
@media (max-height: 500px) {
  #intakeModal.focus-flow .modal-header { min-height: 42px; padding-top: 4px; }
  #intakeModal.focus-flow .modal-body { padding-top: 2px; }
  .flow-summary { max-height: 40px; flex-wrap: nowrap; }
  .flow-summary button { flex-shrink: 0; }
  .flow-panel { padding: 12px 2px; }
  .flow-panel > p { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .flow-enter { animation: none; } }
