/* Send with time (web): time roller, composer chip and waiting messages. Light and dark mode;
   motion comes from web/styles/motion.css (dialogs spring in, items rise in, deletes collapse). */
:root { --st-ink: #0b285b; --st-muted: #52698f; --st-line: #9fb4d2; --st-panel: #f5f8ff; --st-field: #ffffff; --st-violet: #9b6cff; --st-danger: #c52c53; }
html[data-theme="dark"] { --st-ink: #f5f8ff; --st-muted: #9fb4d2; --st-line: #52698f; --st-panel: #08172b; --st-field: #0b1d34; }
html:root body dialog.send-time-dialog { width: min(380px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border: 1px solid var(--st-line); border-radius: 28px; background: var(--st-panel); color: var(--st-ink); }
dialog.send-time-dialog::backdrop { background: rgba(11, 40, 91, .24); }
html[data-theme="dark"] dialog.send-time-dialog::backdrop { background: rgba(8, 23, 43, .6); }
dialog.send-time-dialog h2 { margin: 0; font-size: 19px; font-weight: 800; }
.send-time-hint { margin: 2px 0 8px; color: var(--st-muted); font-size: 13px; }
.send-time-wheels { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0; }
.send-time-sep { font-size: 24px; font-weight: 800; }
.send-time-col { position: relative; width: 64px; height: 132px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 12px; outline-offset: 2px; }
.send-time-col::-webkit-scrollbar { display: none; }
.send-time-col::before { content: ""; position: sticky; display: block; top: 44px; height: 44px; margin-bottom: -44px; border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); pointer-events: none; }
.send-time-list { padding: 44px 0; }
.send-time-cell { display: block; width: 100%; height: 44px; scroll-snap-align: start; border: 0; background: none; color: var(--st-muted); font-family: inherit; font-weight: 600; font-size: 18px; line-height: 44px; font-variant-numeric: tabular-nums; cursor: pointer; }
.send-time-cell.is-on { color: var(--st-ink); font-size: 24px; font-weight: 800; }
.send-time-readout { margin: 6px 0; text-align: center; font-size: 15px; font-weight: 700; }
.send-time-actions { display: flex; gap: 10px; margin-top: 8px; }
.send-time-actions button { flex: 1; min-height: 48px; border-radius: 16px; border: 1px solid var(--st-line); background: transparent; color: var(--st-ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.send-time-actions button.is-primary { background: #2167f5; border-color: #2167f5; color: #fff; font-weight: 800; }
.scheduled-edit-dialog textarea { width: 100%; box-sizing: border-box; min-height: 72px; padding: 12px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-field); color: var(--st-ink); font: inherit; }
.scheduled-edit-time { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 12px; border: 1px solid var(--st-violet); border-radius: 14px; background: transparent; color: var(--st-ink); font-weight: 700; cursor: pointer; }
.scheduled-edit-time svg, .vibe-scheduled-meta svg, .message-send-time-chip svg { color: var(--st-violet); flex: none; }
/* The composer chip: "Sends at 09:30 PM", tap to change, × to send normally. */
.message-send-time-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 0 0 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--st-violet); border-radius: 14px; background: rgba(155, 108, 255, .1); color: var(--st-ink); }
html[data-theme="dark"] .message-send-time-chip { background: rgba(155, 108, 255, .16); }
.message-send-time-chip[hidden] { display: none; }
.message-send-time-chip button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 0; background: none; color: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.message-media-icon.is-send-time { color: var(--st-violet); }
/* Waiting messages: at the end of the chat, on your side. */
.vibe-scheduled { display: flex; flex-direction: column; gap: 12px; }
.vibe-scheduled-item { align-self: flex-end; max-width: 82%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vibe-scheduled-bubble { margin: 0; padding: 11px 14px; border: 1.5px dashed var(--st-violet); border-radius: 18px 18px 6px 18px; color: var(--st-ink); background: transparent; white-space: pre-wrap; overflow-wrap: anywhere; }
.vibe-scheduled-bubble strong { display: block; font-weight: 800; font-size: 14px; }
.vibe-scheduled-item.is-failed .vibe-scheduled-bubble { border-color: var(--st-danger); }
.vibe-scheduled-meta { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--st-muted); font-size: 12px; font-weight: 700; }
.vibe-scheduled-item.is-failed .vibe-scheduled-meta, .vibe-scheduled-item.is-failed .vibe-scheduled-meta svg { color: var(--st-danger); }
.vibe-scheduled-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vibe-scheduled-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--st-line); border-radius: 12px; background: transparent; color: var(--st-ink); font-weight: 700; font-size: 13px; cursor: pointer; }
