/* Lumo schedule sheet — isolated from legacy base.css so it cannot disappear because of cache/order. */
#scheduleModal.lumo-schedule,
#scheduleModal.lumo-schedule[hidden]{
  position:fixed !important;
  inset:0 !important;
  z-index:9990 !important;
  align-items:flex-end !important;
  justify-content:center !important;
}
#scheduleModal.lumo-schedule:not([hidden]){display:flex !important;}
#scheduleModal.lumo-schedule[hidden]{display:none !important;}
#scheduleModal.lumo-schedule .schedule-back{
  position:absolute !important;
  inset:0 !important;
  background:rgba(2,6,18,.66) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
}
#scheduleModal.lumo-schedule .schedule-card{
  position:relative !important;
  z-index:1 !important;
  width:min(100%,520px) !important;
  box-sizing:border-box !important;
  padding:18px 18px calc(18px + var(--sab,0px)) !important;
  border:1px solid var(--line) !important;
  border-radius:26px 26px 0 0 !important;
  background:var(--panel) !important;
  color:var(--text) !important;
  box-shadow:0 -24px 70px rgba(0,0,0,.38) !important;
  animation:lumoScheduleIn .18s ease-out !important;
}
#scheduleModal.lumo-schedule .schedule-card header{
  display:flex !important; align-items:flex-start !important; justify-content:space-between !important;
  gap:12px !important; margin-bottom:16px !important;
}
#scheduleModal.lumo-schedule .schedule-card h3{margin:2px 0 0 !important;font-size:20px !important;}
#scheduleModal.lumo-schedule .schedule-kicker{font-size:10px !important;letter-spacing:.14em !important;font-weight:800 !important;color:var(--accent) !important;}
#scheduleModal.lumo-schedule .schedule-card label{display:grid !important;gap:8px !important;color:var(--muted) !important;font-size:12px !important;font-weight:700 !important;}
#scheduleModal.lumo-schedule .schedule-card input{
  width:100% !important; min-height:48px !important; box-sizing:border-box !important;
  padding:12px 13px !important; border-radius:14px !important;
  border:1px solid var(--line) !important; background:var(--panel-2) !important;
  color:var(--text) !important; font:inherit !important; font-size:16px !important;
  color-scheme:dark;
}
html[data-theme="light"] #scheduleModal.lumo-schedule .schedule-card input{color-scheme:light;}
#scheduleModal.lumo-schedule .schedule-preview{
  margin-bottom:15px !important; padding:12px 13px !important;
  border:1px solid var(--line) !important; border-radius:15px !important;
  background:var(--panel-2) !important; color:var(--text) !important;
  white-space:pre-wrap !important; overflow:hidden !important; max-height:110px !important;
}
#scheduleModal.lumo-schedule #scheduleClose{
  width:38px !important; height:38px !important; border:1px solid var(--line) !important;
  border-radius:12px !important; background:var(--panel-2) !important; color:var(--muted) !important;
  cursor:pointer !important; font-size:16px !important;
}
#scheduleModal.lumo-schedule .schedule-actions{display:flex !important;justify-content:flex-end !important;gap:8px !important;margin-top:17px !important;}
#scheduleModal.lumo-schedule .schedule-actions button{
  min-height:44px !important; border:1px solid var(--line) !important; border-radius:13px !important;
  padding:0 15px !important; background:var(--panel-2) !important; color:var(--text) !important; font-weight:750 !important;
}
#scheduleModal.lumo-schedule .schedule-actions button:last-child{background:var(--accent) !important;color:#fff !important;border-color:var(--accent) !important;}
@keyframes lumoScheduleIn{from{transform:translateY(16px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(max-width:600px){
  #scheduleModal.lumo-schedule .schedule-card{width:100% !important;border-radius:24px 24px 0 0 !important;padding-left:14px !important;padding-right:14px !important;}
  #scheduleModal.lumo-schedule .schedule-actions button{flex:1 !important;}
}

/* Poll action should never be visually swallowed by the compact composer. */
#pollBtn{flex:none !important;}
#pollBtn:not([hidden]){display:inline-flex !important;align-items:center !important;justify-content:center !important;visibility:visible !important;opacity:1 !important;}
#pollBtn[hidden]{display:none !important;}

/* Poll action in group chat header */
#pollHeaderBtn{flex:none !important;width:38px;height:38px;border-radius:12px;}
#pollHeaderBtn:not([hidden]){display:inline-flex !important;align-items:center;justify-content:center;visibility:visible;opacity:1;}
#pollHeaderBtn[hidden]{display:none !important;}
