/* plan.css — Today's plan time-blocking strip */

.plan-section {
  margin: 0 0 36px;
  padding: 22px 24px 24px;
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--fg);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
}
.plan-section.collapsed { padding-bottom: 18px; }

.plan-head { margin-bottom: 18px; }
.plan-section.collapsed .plan-head { margin-bottom: 0; }

.plan-title-row {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.plan-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; margin: 0;
}
.plan-window {
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.plan-stats-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-muted);
}
.plan-stat strong {
  font-family: var(--font-display);
  font-weight: 700; color: var(--fg);
  font-size: 14px; margin-right: 4px;
}
.plan-stat.dim { opacity: 0.5; }
.plan-actions {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}

/* ---------- Timeline ---------- */
.plan-timeline {
  display: flex; flex-direction: column; gap: 6px;
}
.plan-empty {
  padding: 24px 0; color: var(--fg-subtle);
  font-size: 13px; font-style: italic; text-align: center;
}

.plan-slot {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  align-items: stretch;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: background 120ms ease;
}
.plan-slot-time {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-muted);
  padding-top: 3px;
  letter-spacing: 0.02em;
}
.plan-slot-body {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  min-height: 22px;
  position: relative;
}
.plan-slot-meta {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-subtle);
  margin-left: auto;
  padding-right: 26px;  /* room for x button */
}
.plan-slot-x {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  border: 0; background: transparent;
  color: var(--fg-subtle); cursor: pointer;
  font-size: 16px; line-height: 1;
  border-radius: 4px;
  transition: background 120ms ease, color 120ms ease;
}
.plan-slot-x:hover { background: var(--fg); color: var(--bg); }

/* Free slot — invites a click */
.plan-slot--free {
  background: transparent;
  border: 1px dashed var(--border-soft);
  cursor: pointer;
}
.plan-slot--free:hover {
  background: var(--bg-soft, rgba(0,0,0,0.025));
  border-color: var(--fg-muted);
}
.plan-slot-free-label {
  font-size: 12px; color: var(--fg-subtle);
  font-style: italic;
}
.plan-slot-free-cta {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-left: auto;
  opacity: 0; transition: opacity 140ms ease;
}
.plan-slot--free:hover .plan-slot-free-cta { opacity: 1; }

/* Busy slot — quieter, fixed event */
.plan-slot--busy {
  background: var(--bg-soft, rgba(0,0,0,0.04));
  border-left-color: var(--fg-subtle);
}
.plan-slot-busy-label {
  font-size: 13px; font-weight: 500; color: var(--fg);
}

/* Scheduled slot — the work block */
.plan-slot--scheduled {
  background: var(--bg, #F8F6F1);
  border: 1px solid var(--border-soft);
  border-left-width: 3px;
}
.plan-slot-scheduled-main {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  flex: 1;
}
.plan-slot-client {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-slot-title {
  font-size: 14px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Schedule picker ---------- */
.plan-picker-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-soft);
}
.plan-picker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 120ms ease, padding-left 140ms ease;
}
.plan-picker-item:hover {
  background: var(--bg-soft, rgba(0,0,0,0.03));
  padding-left: 8px;
}
.plan-picker-accent {
  width: 4px; height: 28px; border-radius: 2px;
  flex-shrink: 0;
}
.plan-picker-main {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.plan-picker-client {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-picker-title {
  font-size: 14px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-picker-meta {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .plan-section {
    margin: 0 0 24px;
    padding: 18px 16px;
  }
  .plan-title { font-size: 22px; }
  .plan-window { font-size: 11px; }
  .plan-actions { width: 100%; margin-left: 0; margin-top: 4px; }
  .plan-slot { grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 10px; }
  .plan-slot-time { font-size: 10px; }
  .plan-slot-title { font-size: 13px; }
}
