/* The scroll area is inside the rounded shell; it never cuts the outer corners. */
#modal{padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 32px);border-radius:20px}
#modal .modal-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 36px);min-height:0;overflow:hidden;border-radius:inherit;background:var(--surface)}
#modal .modal-shell>header{flex-shrink:0;position:static!important;padding:24px 26px 18px!important;margin:0!important;gap:16px;background:var(--surface);border-bottom:1px solid var(--line)}
#modal .modal-shell>header h2{margin:0;line-height:1.3;font-size:23px}
#modal .modal-shell>.modal-body{overflow:auto;min-height:0;padding:22px 26px 26px;scrollbar-gutter:stable;overscroll-behavior:contain}
body:has(#modal[open]){overflow:hidden}
.call-next-step{display:grid;gap:5px;margin:16px 0 10px;padding:14px 0 0;border-top:1px solid var(--line);min-height:100px;align-content:start;font-size:12px;line-height:1.5}
.call-next-step-label{color:var(--muted);font-size:11px}
.call-next-step strong{font-size:13px;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.call-next-step>small{color:var(--muted);font-size:11px}
.call-next-step-empty{color:var(--muted)}
.next-step-detail{border-top:1px solid var(--line);padding:18px 0}
.next-step-detail h3{margin:8px 0;font-size:17px}
.next-step-detail .next-step-when{color:var(--accent);font-size:14px;margin:5px 0}
.next-step-detail .next-step-person{font-size:12px;color:var(--muted);margin:5px 0}
.next-step-description{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.next-step-basis{font-size:12px;color:var(--muted);line-height:1.7}
.next-step-supporting{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;font-size:12px;color:var(--muted)}
.next-step-supporting summary{cursor:pointer}
.next-step-supporting li{margin-top:8px;line-height:1.6}
.calendar-origin-call{border:1px solid var(--line);padding:13px 15px;border-radius:10px;background:var(--surface2);margin:18px 0;display:grid;gap:6px;font-size:13px}
.calendar-origin-call>span{font-size:11px;color:var(--muted)}
.calendar-origin-call strong{font-size:14px;font-weight:600}
.calendar-detail-when>span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}
@media(max-width:600px){#modal{border-radius:16px;max-height:calc(100dvh - 20px)}#modal .modal-shell{max-height:calc(100dvh - 24px)}#modal .modal-shell>header{padding:18px!important;gap:12px}#modal .modal-shell>header h2{font-size:20px}#modal .modal-shell>.modal-body{padding:18px}.call-next-step{min-height:94px}}
