.appt-space { max-width: 700px; margin: 0 auto; padding: 20px; }
.appt-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.appt-header h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 0; flex-shrink: 0; }
.appt-filters { display: flex; gap: 4px; background: var(--surface); border-radius: 8px; padding: 3px; }
.appt-filter { background: none; border: none; padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.appt-filter.active { background: rgba(196, 149, 106, 0.12); color: var(--accent); border: 1px solid rgba(196, 149, 106, 0.4); }
.appt-add-btn { margin-left: auto; background: transparent; color: var(--accent); border: 1px solid rgba(196, 149, 106, 0.5); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; }
.appt-add-btn:hover { opacity: 0.9; }

.appt-list { display: flex; flex-direction: column; gap: 10px; }
.appt-card { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 10px; border: 1px solid var(--border); transition: all 0.2s; }
.appt-card:hover { border-color: var(--accent-muted); }
.appt-card.completed { opacity: 0.5; }
.appt-card.completed .appt-title { text-decoration: line-through; }

.appt-card-left { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.appt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); transition: all 0.2s; }
.appt-check.checked { background: var(--accent); border-color: var(--accent); color: white; }
.appt-emoji { font-size: 1.2rem; }

.appt-card-main { flex: 1; min-width: 0; }
.appt-title { font-weight: 500; color: var(--text); margin-bottom: 3px; }
.appt-datetime { font-size: 0.82rem; color: var(--accent); font-weight: 500; }
.appt-location { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.appt-notes-preview { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.appt-card-actions { display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.appt-card:hover .appt-card-actions { opacity: 1; }
.appt-edit-btn, .appt-delete-btn { background: none; border: none; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }
.appt-edit-btn:hover { color: var(--accent); }
.appt-delete-btn:hover { color: var(--rosé, #e57373); }

.appt-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.appt-modal { max-width: 480px; }
.appt-modal .form-input { width: 100%; margin-bottom: 10px; }
.appt-form-row { display: flex; gap: 10px; }
.appt-form-field { flex: 1; }
.appt-form-field label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }

@media (max-width: 600px) {
  .appt-header { flex-direction: column; align-items: stretch; }
  .appt-add-btn { margin-left: 0; }
  .appt-form-row { flex-direction: column; gap: 0; }
  .appt-card-actions { opacity: 1; }
}
