.auto-send-box {
  border: 1px solid rgba(255, 176, 102, 0.3);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.cue-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bg-3);
  background: #ffb066;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.cue-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.cue-form-row {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .cue-form-row {
    flex-direction: column;
  }
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.weekday-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}

.weekday-chip:has(input:checked) {
  color: var(--bg-3);
  background: var(--accent);
  border-color: var(--accent);
}

.weekday-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cue-advanced {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cue-advanced summary {
  cursor: pointer;
  padding: 0.2rem 0;
}

.cue-advanced > .field {
  margin-top: 0.6rem;
}

.log-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-list li.empty {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
}

.log-list li {
  font-size: 0.75rem;
  color: var(--text-dim);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.6rem;
}

.log-list li.ok {
  border-left-color: #7dffb3;
}

.log-list li.err {
  border-left-color: #ff8080;
}

/* ---------- Schedule timeline ---------- */
/* Each row draws its own line segment through the marker column; adjacent
   segments touch (no row gap) so scrolling reveals one continuous rundown
   line rather than a flat stack of disconnected cards. */

.timeline {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.timeline li.empty {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 20px 1fr;
  column-gap: 0.6rem;
  align-items: start;
}

.timeline-time {
  text-align: right;
  padding-top: 0.65rem;
  font-family: var(--font-time);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.timeline-item.due .timeline-time {
  color: var(--accent);
}

.timeline-track {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item:first-child .timeline-track::before {
  top: 50%;
}

.timeline-item:last-child .timeline-track::before {
  bottom: 50%;
}

.timeline-item.due .timeline-track::before {
  background: var(--accent-soft);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.timeline-item.due .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 14px var(--accent-soft); }
}

.timeline-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin: 0.25rem 0 0.75rem;
}

.timeline-item.due .timeline-card {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.cue-info {
  flex: 1;
  min-width: 0;
}

.cue-label {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-result {
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.cue-result.ok {
  color: #7dffb3;
}

.cue-result.err {
  color: #ff8080;
}

.cue-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-send {
  font-family: inherit;
  font-size: 0.76rem;
  background: var(--accent);
  color: var(--bg-3);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-del {
  font-family: inherit;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  border-radius: 6px;
  width: 26px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .timeline-item {
    grid-template-columns: 40px 16px 1fr;
  }
}
