@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #FF6B6B;
  --primary-dark: #FFA07A;
  --primary-light: #FFD93D;
  --primary-ghost: #6BCB77;
  --secondary: #4D96FF;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

::selection {
  background: var(--primary);
  color: white;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

input, textarea, select, button {
  font-family: inherit;
}

/* ====== LAYOUT ====== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.app-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-icon {
  font-size: 1.5rem;
}

.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-bar {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-icon {
  font-size: 1rem;
}

.app-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
}

/* ====== LOADING ====== */
.loading-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====== MEETING LIST ====== */
.list-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.5;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.8rem 0.6rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--bg-card);
  transition: all 0.2s ease;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ====== BUTTONS ====== */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-compact {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0.2rem;
}

.btn-icon:hover {
  opacity: 1;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.btn-close:hover {
  color: var(--danger);
}

.btn-delete-small {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.meeting-card:hover .btn-delete-small {
  opacity: 0.5;
}

.btn-delete-small:hover {
  opacity: 1 !important;
}

.btn-small-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-small-secondary {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem 0.5rem;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ====== FORMS ====== */
.meeting-form, .action-form {
  padding: 1rem 1.5rem 1.5rem;
}

.action-form {
  background: var(--primary-ghost);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hint {
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  letter-spacing: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-row-thirds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ====== MEETING CARDS ====== */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meeting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: cardEntrance 0.35s ease both;
}

.meeting-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.meeting-card.upcoming {
  border-left: 3px solid var(--primary);
}

.meeting-card.past {
  border-left: 3px solid var(--text-muted);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-upcoming {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-past {
  background: var(--border-light);
  color: var(--text-muted);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.card-attendees {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.attendee-label {
  font-size: 0.85rem;
}

.attendee-chip {
  font-size: 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
}

.attendee-more {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  opacity: 0.4;
}

/* ====== EMPTY STATE ====== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-inline {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ====== MEETING DETAIL ====== */
.meeting-detail {
  animation: fadeIn 0.3s ease;
}

.detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.detail-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.detail-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.attendees-section {
  margin-bottom: 0.8rem;
}

.attendees-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.attendee-tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-remove {
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tag-remove:hover {
  opacity: 1;
}

.btn-add-attendee {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-attendee:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.progress-bar-container {
  margin-top: 0.3rem;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.progress-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ====== SECTION TABS ====== */
.section-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.section-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.section-tab:hover {
  color: var(--text-secondary);
  background: var(--bg);
}

.section-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-ghost);
}

.section-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem;
  min-height: 300px;
}

/* ====== NOTES EDITOR ====== */
.editor-container {
  min-height: 250px;
}

.editor-container .dx-editor-toolbar {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.editor-container [contenteditable] {
  min-height: 200px;
  outline: none;
  font-size: 0.92rem;
  line-height: 1.7;
}

.editor-container [contenteditable]:empty::before {
  color: var(--text-muted);
}

/* ====== AGENDA ====== */
.agenda-list {
  list-style: none;
}

@keyframes itemSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  animation: itemSlide 0.3s ease both;
  transition: background 0.2s;
}

.agenda-item:hover {
  background: var(--bg);
}

.agenda-item:hover .agenda-actions {
  opacity: 1;
}

.agenda-item.discussed .agenda-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.agenda-check, .action-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.agenda-check input, .action-check input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkmark::after {
  content: '✓';
  font-size: 0.75rem;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

input:checked + .checkmark {
  background: var(--success);
  border-color: var(--success);
}

input:checked + .checkmark::after {
  opacity: 1;
}

.agenda-text {
  flex: 1;
  font-size: 0.92rem;
}

.agenda-edit-input {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--primary-ghost);
}

.agenda-edit-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.agenda-actions {
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-add-agenda {
  background: none;
  border: 1px dashed var(--border);
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all 0.2s;
}

.btn-add-agenda:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}

.add-agenda-inline {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.6rem;
}

.add-agenda-inline input {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.add-agenda-inline input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ====== ACTION ITEMS ====== */
.action-list, .dashboard-action-list {
  list-style: none;
}

.action-item, .dashboard-action-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  animation: itemSlide 0.3s ease both;
  transition: background 0.2s;
}

.action-item:hover, .dashboard-action-item:hover {
  background: var(--bg);
}

.action-item.completed .action-title,
.dashboard-action-item.completed .action-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.action-item.overdue,
.dashboard-action-item.overdue {
  background: var(--danger-light);
}

.action-content {
  flex: 1;
  min-width: 0;
}

.action-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-title {
  font-size: 0.92rem;
  font-weight: 500;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.action-assignee {
  color: var(--accent);
  font-weight: 500;
}

.action-due {
  color: var(--text-muted);
}

.due-overdue {
  color: var(--danger);
  font-weight: 600;
}

.priority-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-high {
  background: var(--danger-light);
  color: var(--danger);
}

.priority-medium {
  background: var(--warning-light);
  color: var(--warning);
}

.priority-low {
  background: var(--border-light);
  color: var(--text-muted);
}

.meeting-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
  transition: color 0.2s;
}

.meeting-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ====== DASHBOARD ====== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-pending .stat-number { color: var(--primary); }
.stat-pending { border-top: 3px solid var(--primary); }
.stat-overdue .stat-number { color: var(--danger); }
.stat-overdue { border-top: 3px solid var(--danger); }
.stat-high .stat-number { color: var(--warning); }
.stat-high { border-top: 3px solid var(--warning); }
.stat-done .stat-number { color: var(--success); }
.stat-done { border-top: 3px solid var(--success); }

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
  .app-main {
    padding: 1rem;
  }

  .header-content {
    padding: 0.8rem 1rem 0.3rem;
  }

  .tab-bar {
    padding: 0 1rem;
  }

  .list-toolbar {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .meetings-grid {
    grid-template-columns: 1fr;
  }

  .form-row, .form-row-thirds {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    justify-content: center;
  }

  .section-tab {
    font-size: 0.78rem;
    padding: 0.65rem 0.5rem;
  }

  .detail-title {
    font-size: 1.2rem;
  }

  .agenda-actions {
    opacity: 1;
  }

  .btn-delete-small {
    opacity: 0.5;
  }
}

@media (max-width: 380px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 1.4rem;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Meeting Notes tool! This is your hub for organizing meetings, taking notes, and tracking action items.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Click '+ New Meeting' to create your first meeting. Add a title, date, attendees, and agenda items.", "view": "user", "highlight_selector": ".btn-primary", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Click on any meeting card to open it and start taking notes.", "view": "user", "highlight_selector": ".meetings-grid", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Inside a meeting, use the Notes tab to type rich-text meeting notes with formatting.", "view": "user", "highlight_selector": ".editor-container", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Switch to the Agenda tab to check off discussion items as you go through them.", "view": "user", "highlight_selector": ".section-tabs", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Use the Actions tab to create action items with assignees, due dates, and priority levels.", "view": "user", "highlight_selector": ".actions-section", "wait_for": "user_interaction"},
  {"step": 7, "narration": "The Action Items dashboard gives you a cross-meeting view of all tasks — filter by status, priority, or sort by due date.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"}
]
-->

.login-gate {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

.login-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.login-button {
  width: 100%;
}

.detail-header-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-ghost);
  border: 1px solid var(--primary-light);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Real-time sync status for meeting notes */
.notes-section {
  position: relative;
}

.notes-sync-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.notes-sync-live {
  color: var(--success);
  font-weight: 600;
}

.presence-section {
  margin: 0.75rem 0;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.presence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.presence-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.presence-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.presence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.presence-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.presence-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.presence-name {
  font-weight: 500;
}

.presence-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .presence-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.action-identity {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-light);
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  line-height: 1.4;
}

.summary-section {
  display: block;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.summary-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.summary-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.summary-block {
  margin-bottom: 1rem;
}

.summary-block h4 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.summary-block p,
.summary-block li {
  font-size: 0.92rem;
  color: var(--text);
}

.summary-block ul {
  margin-left: 1.1rem;
}
