/* PLACE88 small-phone containment overrides. Loaded after the main bundle. */
@media(max-width:640px){
  .place88-life-backdrop{align-items:end;padding:max(5px,var(--safe-top,0px)) 0 0;overflow:hidden}
  .place88-life-modal{box-sizing:border-box;width:100vw;max-width:100vw;max-height:calc(var(--vzf-viewport-h,100dvh) - max(5px,var(--safe-top,0px)));border-radius:12px 12px 0 0}
  .place88-life-modal>header{padding:12px 12px}
  .place88-life-modal>header>div{min-width:0}
  .place88-life-modal>header>button{flex:0 0 42px;min-width:42px!important}
  .place88-life-modal>main{box-sizing:border-box;width:100%;min-width:0;overflow-x:hidden;padding:12px}
  .place88-life-month{width:100%;grid-template-columns:38px minmax(0,1fr) 38px 48px}
  .place88-life-month>*{min-width:0!important}
  .place88-life-week,.place88-life-grid{width:100%;min-width:0}
  .place88-life-day{box-sizing:border-box;width:auto;min-width:0!important;min-height:58px;padding:4px;overflow:hidden}
  .place88-life-list{box-sizing:border-box;width:100%;min-width:0;padding:12px}
  .place88-life-list>header,.place88-life-event{min-width:0}
  .place88-life-list>header h3{min-width:0}
  .place88-life-list>header button{flex:0 0 auto;min-width:0!important;padding:0 12px}
  .place88-life-event>button{min-width:0!important;padding:0 8px}
}

/* PLACE89 schedule density: spend space on the date cells, not gutters. */
.place88-life-week,.place88-life-grid{gap:2px!important}
.place88-life-day{min-height:104px;border-radius:8px;padding:8px}
.place89-reminders,.place89-channels{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:12px;border:1px solid #d9e4eb;border-radius:12px;background:#fff}
.place89-reminders legend,.place89-channels legend{padding:0 4px;color:#31536b;font-size:12px;font-weight:700}
.place89-reminders legend small{color:#0274b6;font-size:12px}
.place89-reminders label,.place89-channels label{display:flex;align-items:center;gap:4px;min-height:34px;padding:0 8px;border:1px solid #d6e2ea;border-radius:8px;background:#f7fafc;font-size:12px;font-weight:700}
.place89-reminders input,.place89-channels input{width:16px!important;height:16px!important;min-height:0!important;margin:0;accent-color:#1672c4}
.place89-channels>small{align-self:center;color:#708596;font-size:12px}
.place89-plan-backdrop{position:fixed;inset:0;z-index:52000;display:grid;place-items:center;padding:12px;background:rgba(5,25,42,.68);backdrop-filter:blur(8px)}
.place89-plan-modal{width:min(540px,100%);max-height:calc(100dvh - 28px);overflow:auto;border-radius:12px;background:#fff;color:#17344d;box-shadow:0 28px 80px rgba(4,22,37,.42)}
.place89-plan-modal>header{display:flex;justify-content:space-between;gap:12px;padding:16px 16px;border-bottom:1px solid #dde6ec}.place89-plan-modal>header span{color:#0274b6;font-size:12px;font-weight:700;letter-spacing:.08em}.place89-plan-modal>header h2{margin:4px 0;font-size:22px}.place89-plan-modal>header p{margin:0;color:#718697;font-size:12px}.place89-plan-modal>header button{flex:0 0 40px;width:40px;height:40px;border:1px solid #d4e0e8;border-radius:50%;background:#fff;font-size:22px}.place89-plan-modal form{display:grid;gap:12px;padding:16px}.place89-plan-when{display:grid;grid-template-columns:1fr 1fr;gap:8px}.place89-plan-when label,.place89-plan-note{display:grid;gap:4px;color:#536d80;font-size:12px;font-weight:700}.place89-plan-when input,.place89-plan-note textarea{min-height:44px;padding:8px;border:1px solid #cad9e4;border-radius:8px;background:#fff}.place89-plan-note textarea{min-height:70px;resize:vertical}.place89-plan-modal footer{display:grid;grid-template-columns:.8fr 1.2fr;gap:8px}.place89-plan-modal footer button{min-height:46px;border:1px solid #cbd9e4;border-radius:12px;background:#fff;color:#31536b;font-weight:700}.place89-plan-modal footer button[type=submit]{border-color:#216cf0;background:#216cf0;color:#fff}
@media(max-width:640px){.place88-life-week,.place88-life-grid{gap:1px!important}.place88-life-day{min-height:74px!important;border-radius:4px!important;padding:4px!important}.place88-life-week b{padding:4px 0}.place89-plan-backdrop{align-items:end;padding:max(5px,var(--safe-top,0px)) 0 0}.place89-plan-modal{box-sizing:border-box;width:100vw;max-width:100vw;max-height:calc(var(--vzf-viewport-h,100dvh) - max(5px,var(--safe-top,0px)));border-radius:12px 12px 0 0;padding-bottom:max(8px,var(--safe-bottom,0px))}.place89-plan-modal>header{padding:12px 12px}.place89-plan-modal form{padding:12px}.place89-reminders,.place89-channels{gap:4px;padding:8px}.place89-reminders label,.place89-channels label{min-height:32px;padding:0 8px}}
.life91-event-actions{display:flex;gap:4px}.life91-event-actions>button{min-height:32px;padding:0 8px;border:1px solid #cbd9e4;border-radius:8px;background:#fff;color:#31536b;font-weight:700}.life91-form-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px}.life91-form-actions>button{min-height:40px;border:1px solid #c8d8e3;border-radius:8px;background:#fff;color:#31536b;font-weight:700}.life91-form-actions>button[type="submit"]{border-color:#216cf0;background:#216cf0;color:#fff}.life91-photo-import{margin-left:8px}@media(max-width:640px){.life91-event-actions{flex-direction:column}.life91-event-actions>button{min-height:30px;padding:0 8px}.collection-footer .life91-photo-import{margin-left:0}.collection-footer:has(.life91-photo-import){display:grid!important;grid-template-columns:1fr 1fr!important}.collection-footer:has(.life91-photo-import) .action-button{width:100%!important}}
