/* Full-screen menus share the visible viewport; the message composer remains attached. */
html body #modal:has(.v46-menu){background:#fff!important;justify-content:stretch!important}
html body #modal:has(.v46-menu) #modalbox{width:100%!important;max-width:100%!important;left:0!important;right:0!important}
.v47-form-status{margin:14px 5px;padding:12px;border:1px solid #d3dcd5;background:#fff;border-radius:12px;color:#111;font-size:13px;line-height:1.7}
.v47-form-status button{padding:10px 12px;border:1px solid #bacbbf;border-radius:9px;background:#edf4ef;color:#111;font-weight:650}
html body #modal:has(.v47-calendar){padding:0!important;top:var(--visible-top41,0px)!important;bottom:auto!important;height:var(--visible-height41,100dvh)!important;align-items:stretch!important}
html body #modal:has(.v47-calendar) #modalbox{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important;outline:0!important}
body .v47-calendar{display:flex;flex-direction:column;background:#f5f7f5;color:#111!important;height:100%;min-height:0}
body .v47-calendar .v47-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;min-height:66px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 12px!important;border-bottom:1px solid #dfe5e0;background:#fff}
.v47-header>div{flex:1}.v47-header small{font-size:12px;color:#777!important}.v47-header h2{font-size:23px;line-height:1.45;margin:2px 0 0;color:#111!important}.v47-header>strong{flex:1;text-align:center;font-size:16px;font-weight:700}
body .v47-header>button{width:44px;height:44px;flex-shrink:0;border:0;background:none;border-radius:10px;color:#111!important;font-size:26px}
.v47-day-summary{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;flex-shrink:0}
.v47-day-summary strong{font-size:14px;color:#111!important}.v47-day-summary strong span{font-size:12px;color:#777!important;margin-left:5px}
.v47-day-summary button{min-height:40px;border:1px solid #c8d6cd;background:#fff;color:#111!important;padding:8px 13px;border-radius:12px;font-size:13px;font-weight:700}
body .v47-day-list{flex:1;min-height:0;overflow-y:auto;padding:0 14px calc(22px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
body .v47-day-event{width:100%;display:flex;align-items:center;gap:13px;padding:17px 14px;margin-bottom:10px;border:1px solid #dce4de;border-radius:15px;background:#fff;box-shadow:0 2px 7px #16251a04;text-align:left;color:#111!important;min-height:95px}
.v47-event-time{width:65px;flex:0 0 65px;align-self:flex-start;font-size:17px;font-weight:750;line-height:1.5;color:#111!important;padding-top:3px}
.v47-event-time small{display:block;margin-top:4px;font-size:10px;color:#777!important;font-weight:400;line-height:1.5}
.v47-event-copy{flex:1;min-width:0;border-left:2px solid #d3e4d8;padding-left:13px}
body .v47-event-copy>strong{display:block;font-size:17px;line-height:1.5;font-weight:700;color:#111!important;overflow-wrap:anywhere}
body .v47-event-copy>small{font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#777!important;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}
.v47-chevron{color:#777!important;font-size:22px;flex:0 0 10px}
.v47-label{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #dce3dd;border-radius:8px;background:#f6f8f6;font-size:11px;font-weight:600;line-height:1.3;color:#111!important;margin-bottom:6px;max-width:100%;overflow-wrap:anywhere}
.v47-label:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--label47,#bdd1c3);flex-shrink:0}
.v47-empty{margin:30px 0;text-align:center;padding:25px 12px;color:#111}.v47-empty strong{font-size:17px}.v47-empty p{font-size:13px;color:#777;line-height:1.7}
body .v47-event-scroll{flex:1;min-height:0;overflow-y:auto;padding:23px 20px 28px!important;overscroll-behavior:contain}
.v47-event-hero{margin:0 0 20px}.v47-event-hero h1{font-size:26px;line-height:1.45;letter-spacing:-.5px;overflow-wrap:anywhere;margin:4px 0 8px;font-weight:750;color:#111!important}.v47-event-hero>small{font-size:12px;color:#777!important}
.v47-datetime{background:#fff;border:1px solid #d7e2da;border-radius:16px;padding:4px 16px}
.v47-datetime>div{display:flex;gap:16px;align-items:flex-start;padding:15px 0}.v47-datetime>div+div{border-top:1px solid #e7ece8}
.v47-datetime>div>span{width:28px;flex-shrink:0;font-size:12px;color:#777!important;padding-top:3px}.v47-datetime p{margin:0;font-size:14px;line-height:1.6;color:#111!important}.v47-datetime strong{display:block;font-size:21px;line-height:1.5;margin-top:3px;font-weight:650;color:#111!important}
.v47-description{margin:25px 0}.v47-description h2{font-size:13px;margin:0 0 10px;color:#111!important}.v47-description p{font-size:16px;line-height:1.9;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#111!important}
.v47-management{margin:20px 0;border:1px solid #dce3de;border-radius:12px;padding:12px;background:#fff;font-size:13px}.v47-management summary{min-height:25px;color:#111!important}.v47-management button{display:block;width:100%;padding:12px 6px;text-align:left;background:#fff;border:0;border-top:1px solid #e4e9e5;font-size:13px;color:#111!important}
.v47-event-tools{display:flex;gap:8px;padding-top:18px;border-top:1px solid #dce4de}.v47-event-tools button{flex:1;min-height:44px;padding:10px 8px;font-size:12px;line-height:1.5;color:#111!important;background:#fff;border:1px solid #ccd8cf;border-radius:11px}
body .v47-event-footer{flex-shrink:0;display:flex;gap:9px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dce4de}
.v47-event-footer button{min-height:46px;padding:10px 20px;border:1px solid #cbd8cf;background:#fff;border-radius:12px;font-size:14px;color:#111!important}.v47-event-footer .v47-edit{flex:1;background:#256951;border-color:#256951;color:#fff!important;font-weight:700}
.v47-thread:not(:empty){margin-top:20px;padding-top:18px;border-top:1px solid #dce4de}.v47-thread .v44-comment p{font-size:15px;line-height:1.8}.v47-thread textarea{min-height:90px;font-size:16px;border:1px solid #ccd8cf;border-radius:12px;padding:12px;margin:12px 0 8px}
