.mobile-dialog-body,.mobile-dialog-footer{display:contents}
.mobile-dialog-help{font-size:13px}
.start-purpose-buttons{border:0;padding:0;margin:12px 0}
.start-purpose-buttons legend{font-size:14px;line-height:1.4;margin-bottom:8px;padding:0}
.start-purpose-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.start-purpose-options button{min-width:0;min-height:60px;padding:12px 8px;border:1px solid #c5cbbf;border-radius:16px;background:#f5f6f0;color:var(--ink,#11150e);font-size:14px;line-height:1.3}
.start-purpose-options button[aria-pressed=true]{background:#d5ff00;border-color:#566623;color:#152000;box-shadow:inset 0 0 0 1px #566623;font-weight:600}
@media(max-width:760px){
 dialog.compact-mobile-dialog{width:calc(100% - 24px);max-width:470px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px;overflow:hidden;border-radius:20px}
 .compact-mobile-dialog form{display:flex;flex-direction:column;max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);min-height:0;margin:0}
 .compact-mobile-dialog .mobile-dialog-body{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 8px;scroll-padding:8px}
 .compact-mobile-dialog .mobile-dialog-footer{display:block;flex:none;padding:10px 0 0;background:var(--cream,#f5f4f0);border-top:1px solid var(--line,#dedfd3)}
 .compact-mobile-dialog .mobile-dialog-footer .actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:0}
 .compact-mobile-dialog .mobile-dialog-footer button{min-height:44px;font-size:13px;line-height:1.3;padding:10px 14px;margin:0}
 .compact-mobile-dialog .mobile-dialog-footer button[type=submit],.compact-mobile-dialog #startVisitSave,.compact-mobile-dialog #planningSave,.compact-mobile-dialog #pastVisitSave,.compact-mobile-dialog #finishVisitSave,.compact-mobile-dialog #ownTimesSave{flex:1 1 130px}
 .compact-mobile-dialog .mobile-dialog-footer p:empty{display:none}
 .compact-mobile-dialog .mobile-dialog-footer p:not(:empty){font-size:13px;line-height:1.4;margin:0 0 8px;max-height:90px;overflow:auto}
 .compact-mobile-dialog h2{font-size:25px;line-height:1.15;margin:0 0 12px;letter-spacing:-1px}
 .compact-mobile-dialog p{font-size:13px;line-height:1.45;margin:8px 0 12px}
 .compact-mobile-dialog label{font-size:13px;line-height:1.35}
 .compact-mobile-dialog input:not([type=radio]):not([type=checkbox]),.compact-mobile-dialog select,.compact-mobile-dialog textarea{display:block;width:100%;min-height:44px;padding:10px;font-size:16px;margin:6px 0 12px}
 .compact-mobile-dialog .row{gap:10px}
 .compact-mobile-dialog .mobile-dialog-help{border-top:1px solid var(--line,#dedfd3);margin-top:10px;padding-top:8px}
 .compact-mobile-dialog summary{font-size:13px;line-height:1.4;min-height:44px;display:flex;align-items:center}
 .compact-mobile-dialog summary:before{content:'▸';margin-right:7px}
 .compact-mobile-dialog details[open]>summary:before{content:'▾'}
 #pastVisitForm .flow-options{gap:8px;margin:10px 0}
 #pastVisitForm .flow-options label{padding:10px;gap:8px;margin:0}
 #pastVisitForm .flow-options small{font-size:12px;line-height:1.3;margin-top:4px}
 #pastVisitForm .flow-options input{min-height:0;margin:2px 0}
}
