/* 我的定时 — compact dock above 备忘 */
.sched-dock {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--rule-section);
  background: var(--bg);
  z-index: 5;
}
.sched-dock:not(.hidden) {
  margin-top: auto;
}
.sched-dock.hidden {
  display: none !important;
}
.sched-dock.is-expanded {
  max-height: min(42vh, 420px);
  overflow: hidden;
}
.workspace-rail.week-only .sched-dock:not(.hidden) {
  margin-top: 0;
  border-top: none;
}
.sched-dock:not(.hidden) + .memo-dock {
  margin-top: 0;
  border-top: 1px solid var(--rule-section);
}
.sched-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
}
.sched-strip:hover {
  background: var(--hover);
}
.sched-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 70%, var(--muted));
  flex-shrink: 0;
}
.sched-strip-label {
  font-weight: 550;
}
.sched-strip-meta {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-left: auto;
}
.sched-strip-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.15s;
}
.sched-dock.is-expanded .sched-strip-chevron {
  transform: rotate(180deg);
}
.sched-panel-dock {
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--rule-section);
}
.sched-panel-dock[hidden] {
  display: none !important;
}
.sched-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 8px 12px 12px;
}
.sched-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sched-list[hidden] {
  display: none !important;
}
.sched-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule-section);
  font-size: var(--text-sm);
}
.sched-row:last-child {
  border-bottom: none;
}
.sched-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}
.sched-row-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  align-items: center;
}
.sched-icon-btn {
  margin: 0;
  padding: 3px 6px;
  border: none;
  border-radius: var(--radius-frame);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  opacity: 0.72;
}
.sched-icon-btn:hover {
  background: color-mix(in oklch, var(--fg) 6%, transparent);
  opacity: 1;
}
.sched-icon-btn-danger {
  color: var(--err);
}
.sched-icon-btn .sched-ico {
  display: block;
  flex-shrink: 0;
}
.sched-pill {
  font-size: var(--text-xs);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-ctrl, 4px);
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  color: var(--muted);
}
.sched-pill.is-on {
  background: color-mix(in oklab, var(--accent, #2a6) 14%, transparent);
  color: var(--accent);
}
.sched-nl-form {
  display: flex;
  gap: 2px;
  align-items: center;
}
.sched-nl-form.is-empty-primary {
  margin-top: 0.15rem;
}
.sched-nl-form.is-compact {
  margin-top: 0.15rem;
}
.sched-add-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 3px 6px;
  border: none;
  border-radius: var(--radius-frame);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}
.sched-add-btn:hover {
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  opacity: 1;
}
/* Input chrome via shared .ui-search (glass / radius / density) */
.sched-nl-form .ui-search {
  flex: 1;
  min-width: 0;
  width: auto;
}
.sched-nl-status {
  margin: 0;
  font-size: var(--text-xs);
  min-height: 1em;
}
.sched-boss-details {
  font-size: var(--text-sm);
  color: var(--muted);
}
.sched-boss-details summary {
  cursor: pointer;
}
.sched-mini-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
html[data-bg-ambient="1"] .sched-dock {
  background: transparent;
}
@media (max-width: 768px) {
  .sched-dock.is-expanded {
    max-height: min(48vh, 480px);
  }
}
