/* Messages ↔ Schedule controls only. No changes to Midnight Glass materials. */
#screen .ms-page #sb-to-schedule{
 display:block;
 width:100%;
 box-sizing:border-box;
 margin:20px 0 0!important;
 min-height:44px;
 text-align:center;
}
#screen .ms-page #sb-to-schedule + .ms-send{
 display:block;
 width:100%;
 box-sizing:border-box;
 margin-top:12px!important;
}
#screen .sb-transfer-details{
 margin:0 0 16px;
 line-height:1.55;
 overflow-wrap:anywhere;
}
#screen #sb-schedule-summary{
 min-width:0;
 overflow-wrap:anywhere;
}
#screen #sb-schedule-edit{
 flex-shrink:0;
}
@media(max-width:390px){
 #screen #sb-schedule-summary{font-size:14px}
}

/* Scheduler Discord previews and balanced mobile actions. */
#screen .sb-discord-preview{
 position:relative;overflow:hidden;min-width:0;
 margin:14px 0 16px;padding:16px;border-radius:14px;
 background:rgba(17,19,25,.82);border:1px solid rgba(255,255,255,.075);
 color:#e5e7eb;font-size:14px;line-height:1.55;overflow-wrap:anywhere;
}
#screen .sb-discord-botline{display:flex;align-items:center;gap:8px;margin-bottom:12px}
#screen .sb-discord-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#B388EB;color:#1a1028;font-weight:800}
#screen .sb-discord-badge{padding:1px 5px;border-radius:4px;background:#5865f2;color:#fff;font-size:10px;font-weight:700}
#screen .sb-discord-message{white-space:normal;margin:0 0 12px}
#screen .sb-discord-embed{position:relative;min-width:0;overflow:hidden;border-left:4px solid #B388EB;border-radius:5px;background:rgba(32,34,40,.95);padding:13px}
#screen .sb-discord-author{font-weight:600;font-size:12px;margin-bottom:9px;display:flex;align-items:center;gap:6px}
#screen .sb-discord-title{font-weight:700;font-size:15px;margin-bottom:9px}
#screen .sb-discord-desc{margin-bottom:10px}
#screen .sb-discord-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
#screen .sb-discord-fields>div{grid-column:1/-1;min-width:0}
#screen .sb-discord-fields>div.sb-discord-inline{grid-column:auto}
#screen .sb-discord-fields strong,#screen .sb-discord-fields span{display:block}
#screen .sb-discord-fields strong{margin-bottom:3px}
#screen .sb-discord-image{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:7px;margin-top:10px}
#screen .sb-discord-thumb{max-width:80px;max-height:80px;object-fit:cover;border-radius:5px;margin-top:10px}
#screen .sb-discord-author img,#screen .sb-discord-footer img{width:19px;height:19px;object-fit:cover;border-radius:50%}
#screen .sb-discord-footer{font-size:11px;opacity:.8;margin-top:12px;display:flex;align-items:center;gap:5px}
#screen .sb-scheduled-heading{display:grid;gap:6px;min-width:0}
#screen .sb-scheduled-heading small{opacity:.7;overflow-wrap:anywhere}
#screen .sb-scheduled-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;margin-top:14px}
#screen .sb-scheduled-actions button{width:100%;min-width:0;min-height:44px;margin:0!important;text-align:center}
#screen .sb-scheduled-item+.sb-scheduled-item{border-top:1px solid rgba(255,255,255,.09);margin-top:20px;padding-top:20px}
#screen .sb-discord-current{margin-bottom:22px}

/* v4: compact, aligned Scheduler composition header. */
#screen .sb-schedule-intro{margin:0 0 20px!important;line-height:1.5}
#screen .sb-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
#screen .sb-schedule-head-copy{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
#screen .sb-schedule-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:700;color:#c5a6ee;opacity:.9}
#screen .sb-schedule-head #sb-schedule-summary{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
#screen .sb-schedule-head #sb-schedule-edit{flex:0 0 auto;min-height:42px;padding:10px 15px;margin:0!important}
#screen .sb-transfer-details{font-size:12px;line-height:1.5;margin:10px 0 0!important;opacity:.8}
#screen .sb-discord-current{margin-top:18px;margin-bottom:8px}
#screen .sb-schedule-demo-note{font-size:12px;line-height:1.45;margin:0 0 24px!important;opacity:.72}
@media(max-width:390px){
 #screen .sb-schedule-head{gap:10px}
 #screen .sb-schedule-head #sb-schedule-edit{padding:9px 12px;font-size:13px}
 #screen .sb-schedule-head #sb-schedule-summary{font-size:16px}
}
