/* ── The Thread (Today view) ─────────────────────────────────────────────────── */

.at-thread-scheduled-task {
  margin: 2px var(--at-space-3) 2px;
  padding: var(--at-space-2) var(--at-space-3);
  background: var(--at-brand-50);
  border-radius: var(--at-radius-md);
  border: 0.5px solid var(--at-brand-100);
  cursor: pointer;
  transition: background var(--at-transition-fast);
}

.at-thread-scheduled-task:hover { background: var(--at-brand-100); }

/* Task card action row */
.at-thread-card-actions {
  display: flex;
  gap: var(--at-space-1);
  margin-top: var(--at-space-2);
  padding-top: var(--at-space-2);
  border-top: 0.5px solid var(--at-border);
}

.at-thread-action-btn {
  flex: 1;
  border-radius: var(--at-radius-sm);
  padding: 5px 4px;
  font-size: 11px;
  font-weight: var(--at-weight-medium);
  cursor: pointer;
  border: 1px solid var(--at-border-medium);
  background: var(--at-gray-100);
  color: var(--at-text-secondary);
  transition: all var(--at-transition-fast);
  min-height: 30px;
  -webkit-tap-highlight-color: transparent;
}

.at-thread-action-btn:active { opacity: 0.7; }

.at-thread-action-start {
  background: var(--at-brand-50);
  color: var(--at-brand-800);
  border-color: var(--at-color-brand);
}

.at-thread-action-done {
  background: var(--at-teal-50);
  color: var(--at-teal-800);
  border-color: var(--at-teal-600);
}

/* Free block droppable highlight */
.at-free-block--droppable:hover {
  background: var(--at-teal-100);
  border-color: var(--at-teal-400);
}

.at-free-block--drag-over {
  background: var(--at-teal-100);
  border: 2px dashed var(--at-teal-600);
  outline: none;
}

/* Conflict badge on scheduled blocks */
.at-conflict-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--at-amber-50);
  color: var(--at-amber-800);
  border: 1px solid var(--at-amber-400);
  border-radius: var(--at-radius-full);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: var(--at-weight-medium);
  margin-left: 4px;
}

/* Generate plan button */
.at-generate-plan-btn {
  background: var(--at-brand-50);
  color: var(--at-brand-800);
  border: 1.5px solid var(--at-color-brand);
  border-radius: var(--at-radius-md);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: var(--at-weight-medium);
  cursor: pointer;
  min-height: 34px;
  transition: all var(--at-transition-fast);
}

.at-generate-plan-btn:hover { background: var(--at-brand-100); }

/* ── Focus Session (The Tether) ───────────────────────────────────────────────── */

.at-tether-screen {
  position: fixed;
  inset: 0;
  background: var(--at-surface-app);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding-top: var(--at-safe-top);
  padding-bottom: var(--at-safe-bottom);
}

.at-tether-task {
  font-size: var(--at-text-xl);
  font-weight: var(--at-weight-medium);
  color: var(--at-text-primary);
  line-height: var(--at-line-tight);
  max-width: 320px;
  text-align: center;
}

.at-tether-timer {
  font-size: 64px;
  font-weight: var(--at-weight-medium);
  color: var(--at-color-brand);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color var(--at-transition-normal);
}

/* Pomodoro progress ring (placeholder — enhanced in future) */
.at-pomodoro-ring {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto;
}

/* ── Work Rooms ───────────────────────────────────────────────────────────────── */

.at-room-card {
  background: var(--at-surface-card);
  border-radius: var(--at-radius-lg);
  border: 0.5px solid var(--at-border);
  padding: var(--at-space-4);
  margin: var(--at-space-2) var(--at-space-3);
}

.at-room-name {
  font-size: var(--at-text-base);
  font-weight: var(--at-weight-medium);
  color: var(--at-text-primary);
  margin-bottom: var(--at-space-2);
}

.at-room-participants {
  display: flex;
  flex-wrap: wrap;
  gap: var(--at-space-2);
  margin-bottom: var(--at-space-3);
}

.at-room-participant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--at-gray-100);
  border-radius: var(--at-radius-full);
  padding: 4px var(--at-space-2);
  font-size: 12px;
  color: var(--at-text-primary);
}

.at-room-participant-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--at-brand-50);
  color: var(--at-brand-800);
  font-size: 10px;
  font-weight: var(--at-weight-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.at-room-join-btn {
  background: var(--at-color-brand);
  color: var(--at-brand-50);
  border: none;
  border-radius: var(--at-radius-md);
  padding: var(--at-space-2) var(--at-space-4);
  font-size: 13px;
  font-weight: var(--at-weight-medium);
  cursor: pointer;
  width: 100%;
  min-height: 40px;
  transition: opacity var(--at-transition-fast);
}

.at-room-join-btn:active { opacity: 0.8; }

/* ── Calendar placeholder (Phase 5) ──────────────────────────────────────────── */

.at-calendar-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.at-calendar-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--at-radius-lg);
  background: var(--at-brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
