/* ── Google Calendar & Workspace Design System ── */
:root {
  --g-blue: #1a73e8;
  --g-blue-hover: #1557b0;
  --g-blue-light: #e8f0fe;
  --g-surface: #ffffff;
  --g-bg: #f8fafd;
  --g-border: #dadce0;
  --g-border-light: #f1f3f4;
  --g-text-primary: #202124;
  --g-text-secondary: #5f6368;
  --g-text-muted: #80868b;
  
  --role-hermes: #7b1fa2;
  --role-hermes-bg: #f3e5f5;
  --role-hermes-border: #ce93d8;
  
  --role-hybrid: #e65100;
  --role-hybrid-bg: #fff3e0;
  --role-hybrid-border: #ffb74d;
  
  --role-human: #1a73e8;
  --role-human-bg: #e8f0fe;
  --role-human-border: #90caf9;

  --status-done: #188038;
  --status-done-bg: #e6f4ea;
  --status-pending: #d93025;
  --status-pending-bg: #fce8e6;

  --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 64px;
  --sidebar-width: 256px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--g-bg);
  color: var(--g-text-primary);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.calendar-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── Top Header Bar ── */
.app-header {
  height: var(--header-height);
  background-color: var(--g-surface);
  border-bottom: 1px solid var(--g-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--g-text-secondary);
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: #c44018;
  background: rgba(240, 90, 40, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.current-date-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--g-text-primary);
  min-width: 170px;
  margin-left: 6px;
}

/* ── Header Center: Progreso Global ── */
.header-center {
  flex: 1;
  max-width: 440px;
}

.global-progress-card {
  background: #f1f3f4;
  border: 1px solid var(--g-border);
  border-radius: var(--radius-md);
  padding: 6px 14px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--g-text-secondary);
}

.progress-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g-blue);
}

.progress-bar-track {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8, #34a853);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.progress-subtext {
  font-size: 0.72rem;
  color: var(--g-text-muted);
  margin-top: 3px;
  text-align: right;
}

/* ── Header Right: View Switcher & Action ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset:hover {
  color: #d93025 !important;
  border-color: #fce8e6 !important;
  background-color: #fef7f6 !important;
}

.view-switcher {
  display: flex;
  background-color: #f1f3f4;
  border-radius: var(--radius-pill);
  padding: 2px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--g-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn.active {
  background-color: var(--g-surface);
  color: var(--g-blue);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--g-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--g-blue-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--g-border);
  color: var(--g-text-secondary);
}

.btn-outline:hover {
  background-color: #f1f3f4;
  color: var(--g-text-primary);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--g-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: #f1f3f4;
}

/* ── App Body Layout ── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ── */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--g-surface);
  border-right: 1px solid var(--g-border);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: margin-left 0.3s ease;
}

.app-sidebar.is-collapsed {
  margin-left: calc(-1 * var(--sidebar-width));
}

/* ── Mini Calendar ── */
.mini-calendar-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
}

.mini-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mini-cal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g-text-primary);
}

.mini-cal-nav {
  display: flex;
  gap: 4px;
}

.mini-nav-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--g-text-secondary);
}

.mini-nav-btn:hover {
  background: #f1f3f4;
}

.mini-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  color: var(--g-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px;
}

.mini-day {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 0.75rem;
  border-radius: 50%;
  margin: 0 auto;
  cursor: pointer;
  color: var(--g-text-primary);
}

.mini-day:hover {
  background: #f1f3f4;
}

.mini-day.is-today {
  background: var(--g-blue);
  color: #ffffff;
  font-weight: 700;
}

.mini-day.other-month {
  color: var(--g-text-muted);
  opacity: 0.5;
}

.mini-day.has-events {
  font-weight: 700;
  position: relative;
}

.mini-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--g-blue);
}

/* ── Sidebar Filters ── */
.sidebar-section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--g-text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--g-text-primary);
  cursor: pointer;
  user-select: none;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.custom-checkbox:hover {
  background: #f1f3f4;
}

.custom-checkbox input {
  display: none;
}

.checkbox-indicator {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid #5f6368;
  position: relative;
  transition: all 0.2s;
}

.custom-checkbox input:checked + .checkbox-indicator {
  border-color: transparent;
}

.checkbox-indicator.role-hermes { background: var(--role-hermes); }
.checkbox-indicator.role-hybrid { background: var(--role-hybrid); }
.checkbox-indicator.role-human { background: var(--role-human); }
.checkbox-indicator.type-once { background: #3c4043; }
.checkbox-indicator.type-recurring { background: #1a73e8; }

.custom-checkbox input:not(:checked) + .checkbox-indicator {
  background: transparent !important;
  border-color: #9aa0a6 !important;
}

.filter-label {
  flex: 1;
}

.filter-count {
  font-size: 0.75rem;
  background: #e8eaed;
  color: var(--g-text-secondary);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-info-card {
  background: #fdf5e6;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
  color: #795548;
}

.sidebar-info-card h4 {
  color: #e65100;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.sidebar-info-card ul {
  padding-left: 18px;
  margin: 6px 0;
  line-height: 1.4;
}

.small-hint {
  font-size: 0.72rem;
  color: #8d6e63;
  font-style: italic;
  margin-top: 6px;
}

/* ── Main Content Area ── */
.main-content {
  flex: 1;
  background-color: var(--g-surface);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── SECCIÓN 1: Calendario Mensual ── */
.calendar-view-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--g-surface);
  overflow-x: hidden;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--g-border);
  background: var(--g-surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.grid-header-col {
  padding: 10px 4px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid var(--g-border-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-header-col:last-child {
  border-right: none;
}

.calendar-grid-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(130px, auto);
  background: #dadce0;
  gap: 1px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--g-border);
}

.cal-cell {
  background: var(--g-surface);
  padding: 6px 4px;
  min-height: 130px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.cal-cell:hover {
  background: #fafafa;
}

.cal-cell.is-other-month {
  background: #fbfbfb;
  color: var(--g-text-muted);
}

.cal-cell-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.day-number-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--g-text-primary);
}

.cal-cell.is-today .day-number-pill {
  background: var(--g-blue);
  color: #ffffff;
  font-weight: 700;
}

.cal-cell-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100% - 28px);
}

/* ── Event Chip estilo Google Calendar ── */
.event-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border-left: 3px solid transparent;
  user-select: none;
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.event-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2;
}

/* Role Themes */
.event-chip.role-hermes {
  background-color: var(--role-hermes-bg);
  color: var(--role-hermes);
  border-left-color: var(--role-hermes);
}

.event-chip.role-hybrid {
  background-color: var(--role-hybrid-bg);
  color: var(--role-hybrid);
  border-left-color: var(--role-hybrid);
}

.event-chip.role-human {
  background-color: var(--role-human-bg);
  color: var(--role-human);
  border-left-color: var(--role-human);
}

/* Completed Event */
.event-chip.is-completed {
  background-color: var(--status-done-bg) !important;
  color: var(--status-done) !important;
  border-left-color: var(--status-done) !important;
  text-decoration: line-through;
  opacity: 0.85;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: currentColor;
}

.chip-progress-pill {
  font-size: 0.65rem;
  background: rgba(0,0,0,0.08);
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  font-weight: 700;
}

.chip-time {
  font-size: 0.68rem;
  opacity: 0.8;
  margin-right: 2px;
}

.chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  flex: 1;
}

/* ── Separador / Espaciador entre Calendario y Matriz ── */
.calendar-matrix-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 56px 32px 24px;
  background: #f8fafd;
  border-top: 2px solid #e8eaed;
}

.calendar-matrix-divider .divider-line {
  flex: 1;
  height: 1px;
  background: #dadce0;
}

.calendar-matrix-divider .divider-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #dadce0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--g-text-secondary);
  box-shadow: 0 1px 3px rgba(60,64,67,0.12);
  user-select: none;
}

/* ── SECCIÓN 2: Matriz Maestra de 29 Tareas ── */
.matrix-view-container {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 32px 96px;
  background: #f8fafd;
  overflow-x: hidden;
}

.matrix-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.matrix-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g-text-primary);
  margin-bottom: 6px;
}

.matrix-desc {
  font-size: 0.9rem;
  color: var(--g-text-secondary);
}

.search-input {
  width: 280px;
  padding: 8px 14px;
  border: 1px solid var(--g-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
  background: #ffffff;
}

.search-input:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.matrix-table-container {
  background: #ffffff;
  border: 1px solid var(--g-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.matrix-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--g-text-secondary);
  border-bottom: 1px solid var(--g-border);
  white-space: nowrap;
}

.matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--g-border-light);
  vertical-align: middle;
}

.matrix-table tr:hover {
  background-color: #f8fafd;
}

.matrix-table tr.is-row-completed {
  background-color: rgba(230, 244, 234, 0.4);
}

.task-id-badge {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--g-text-secondary);
}

.task-cell-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-cell-name {
  font-weight: 600;
  color: var(--g-text-primary);
  cursor: pointer;
}

.task-cell-name:hover {
  color: var(--g-blue);
  text-decoration: underline;
}

.task-cell-tool {
  font-size: 0.75rem;
  color: var(--g-text-muted);
}

.group-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: #e8eaed;
  color: var(--g-text-secondary);
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.role-pill.role-hermes { background: var(--role-hermes-bg); color: var(--role-hermes); }
.role-pill.role-hybrid { background: var(--role-hybrid-bg); color: var(--role-hybrid); }
.role-pill.role-human { background: var(--role-human-bg); color: var(--role-human); }

/* Progress cell in table */
.progress-cell-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-cell-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-cell-fill {
  height: 100%;
  background: var(--g-blue);
  border-radius: var(--radius-pill);
  transition: width 0.3s;
}

.progress-cell-fill.completed {
  background: var(--status-done);
}

.progress-cell-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--g-text-muted);
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
}

.status-badge.progress {
  background: #fff8e1;
  color: #f57f17;
}

.status-badge.completed {
  background: var(--status-done-bg);
  color: var(--status-done);
}

/* Action button in table */
.btn-action-check {
  padding: 6px 12px;
  border: 1px solid var(--g-border);
  background: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-check:hover {
  background: var(--g-blue-light);
  border-color: var(--g-blue);
  color: var(--g-blue);
}

.btn-action-check.is-done {
  background: var(--status-done-bg);
  border-color: var(--status-done);
  color: var(--status-done);
}

/* ── Modal Dialog ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--g-border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--g-blue);
  background: var(--g-blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 6px;
}

.modal-task-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g-text-primary);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--g-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--g-text-primary);
}

.modal-section h4 {
  font-size: 0.9rem;
  color: var(--g-text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.modal-section p {
  font-size: 0.88rem;
  color: var(--g-text-secondary);
  line-height: 1.5;
}

.diag-text {
  background: #fff8e1;
  border-left: 3px solid #ffb300;
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #795548;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--g-blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.tool-link:hover {
  text-decoration: underline;
}

.modal-progress-zone {
  background: #f8fafd;
  border: 1px solid #d2e3fc;
  border-radius: var(--radius-md);
  padding: 14px;
}

.modal-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.modal-progress-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--g-blue);
}

.modal-reps-counter {
  font-size: 0.78rem;
  color: var(--g-text-muted);
  margin-top: 4px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--g-border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .app-sidebar {
    position: absolute;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
  .header-center {
    display: none;
  }
}
