/* Page-level base styles are handled by base.css/theme.css */

/* Clean dashboard layout */
.analytics-container {
  max-width: none;
  margin: 0;
  padding: 0 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* ===== HERO SECTION (Canva-style) ===== */
.dashboard-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 1.5rem;
  margin: 0 -0.5rem 0.5rem;
}

.dashboard-hero__heading {
  font-size: var(--text-3xl, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.25rem;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-hero__tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.hero-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.hero-tab--active {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
}

.hero-tab i {
  font-size: 0.8rem;
}

/* Search bar */
.dashboard-hero__search {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-bottom: 0.75rem;
}

.dashboard-hero__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.dashboard-hero__input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-hero__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 108, 240, 0.08);
}

.dashboard-hero__input::placeholder {
  color: var(--text-subtle, var(--text-muted));
}

.dashboard-hero__ai-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.dashboard-hero__ai-btn:hover {
  background: var(--primary-bg, rgba(91, 108, 240, 0.08));
  color: var(--primary);
}

.dashboard-hero__ai-btn.hero-ai-active {
  background: var(--primary);
  color: white;
}

/* Inline task area below search */
.dashboard-hero__tasks {
  width: 100%;
  max-width: 640px;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-hero__tasks .live-task-list {
  max-height: 240px;
  overflow-y: auto;
  min-height: 0;
}

.dashboard-hero__tasks .save-all-btn {
  width: 100%;
}

/* ===== MAIN GRID ===== */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
  margin-bottom: 0;
  align-items: start;
}

.today-schedule-section {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  min-height: 500px;
  --dayview-max-height: 800px;
  max-height: var(--dayview-max-height);
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/* ===== TODAY'S FOCUS PANEL (left column: tasks + backlog) ===== */
.dashboard-focus-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  /* Match dayview height */
  max-height: var(--dayview-max-height, 800px);
}
.dashboard-focus-panel__header {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dashboard-focus-panel__header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dashboard-focus-panel__header h3 i {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.dashboard-focus-panel__scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.dashboard-focus-panel__scroll::-webkit-scrollbar { width: 5px; }
.dashboard-focus-panel__scroll::-webkit-scrollbar-track { background: transparent; }
.dashboard-focus-panel__scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Sub-sections inside focus panel */
.focus-sub-section {
  padding: 0.25rem 0.4rem;
}
.focus-sub-section + .focus-sub-section {
  border-top: 1px solid var(--border);
}
.focus-sub-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.25rem;
}
.focus-sub-section__head--collapsible {
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
}
.focus-sub-section__head--collapsible:hover {
  background: var(--surface-2);
}
.focus-sub-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.focus-sub-section__title i {
  font-size: 0.7rem;
}
.focus-sub-section__chevron {
  font-size: 0.55rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.focus-sub-section.collapsed .focus-sub-section__chevron {
  transform: rotate(-90deg);
}
.focus-sub-section.collapsed .focus-sub-section__body {
  display: none;
}

/* "A Look into the Future" sub-section */
.focus-sub-section--future .focus-sub-section__title {
  color: var(--primary);
}

/* Day dividers in future view */
.future-day-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.25rem;
  margin-top: 0.25rem;
}
.future-day-divider__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.future-day-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Schedule Section Header */
.schedule-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 1rem 1rem 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  /* Prevent header from shrinking */
}

.schedule-section-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.schedule-section-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.schedule-task-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle, rgba(91, 108, 240, 0.1));
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.view-full-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.view-full-link:hover {
  color: var(--primary-strong);
  gap: 0.75rem;
}

/* Keyboard Hint */
.keyboard-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.keyboard-hint kbd {
  padding: 0.125rem 0.375rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.7rem;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .dashboard-focus-panel {
    max-height: 500px;
  }

  .today-schedule-section {
    min-height: 400px;
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .dashboard-hero {
    padding: 1.5rem 1rem 1rem;
  }

  .dashboard-hero__heading {
    font-size: var(--text-2xl, 1.5rem);
  }

  .dashboard-hero__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dashboard-hero__tabs::-webkit-scrollbar {
    display: none;
  }
}

/* Dashboard two-column layout - half and half */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  height: fit-content;
  /* Prevent unnecessary expansion */
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Removed unused grid utility classes */

/* Inline date in header */
.date-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.page-date-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

.date-inline .nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.date-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  /* allow arrows and title to spread */
  margin: 0;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  backdrop-filter: none;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.nav-arrow:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.date-info {
  text-align: center;
  flex: 1;
  margin: 0 1rem;
}

.date-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.date-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-badge.today {
  background: var(--success);
  color: var(--text);
}

.date-badge.future {
  background: var(--primary);
  color: var(--text);
}

.date-badge.past {
  background: var(--surface-3);
  color: var(--text);
}

.return-today {
  text-align: center;
  margin-top: 1rem;
}

.btn-return-today {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-return-today:hover {
  background: var(--primary-strong);
}

/* Header section */
.header-section {
  grid-column: 1 / -1;
  background: transparent;
  backdrop-filter: none;
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  box-shadow: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dashboard Header */
.dashboard-container .page-header {
  padding: 0.5rem 0 0.75rem 0;
}

.dashboard-container .page-header .page-header-content {
  padding: 0;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.dashboard-container .page-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
}

.dashboard-container .page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.dashboard-container .page-subtitle {
  margin-top: 0.25rem;
  margin-bottom: 0;
  margin-left: 0;
  text-align: left;
}

.dashboard-container .header-quote {
  margin: 0;
  margin-bottom: 0;
  text-align: left;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.header-info {
  flex: 1;
}

.header-date {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.header-quote {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.header-goal {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.study-timer {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(91, 108, 240, 0.2);
}

.study-timer:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91, 108, 240, 0.3);
}

/* Dashboard Layout handled by layout.css */

/* Clean KPI Section - First Column */
.kpi-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 240px;
  flex-shrink: 0;
}

@media (max-width: 240px) {
  .kpi-section {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent !important;
  border: none !important;
  padding: 0;
  box-shadow: none !important;
}

.kpi-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1;
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.05);
}

/* Removed unused placeholder dashboard layout classes */

/* Clean Dashboard Content */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.action-content p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Compact quick-add textarea height to avoid pushing down header area */
#quickTaskInput {
  min-height: 64px;
}

/* Priority Section */
.priority-section {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.priority-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem 0;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.priority-item:last-child {
  border-bottom: none;
}

.priority-item.urgent .priority-indicator {
  background: #ef4444;
}

.priority-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.priority-content {
  flex: 1;
}

.priority-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.priority-content p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.priority-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-minimal {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-minimal:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-complete {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  background: var(--success);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-complete:hover {
  background: var(--success-strong);
}

/* Quick Task Section - Left Column */
.quick-task-section {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .quick-task-section {
    height: auto;
    min-height: 40vh;
  }
}

.quick-task-header {
  margin-bottom: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-task-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.task-input-container {
  margin-bottom: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.task-input {
  width: 100%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.task-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.task-input::placeholder {
  color: var(--text-muted);
}

.live-task-list {
  flex: 1;
  min-height: 150px;
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.live-task-list::-webkit-scrollbar {
  width: 6px;
}

.live-task-list::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 3px;
}

.live-task-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.live-task-list::-webkit-scrollbar-thumb:hover {
  background: var(--border-2);
}

.task-item-live {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease;
}

.task-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.task-item-expand {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.task-item-expand:hover {
  color: var(--primary);
  background: var(--surface-3);
}

.task-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.quick-add-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 120px;
  flex: 1;
}

.quick-add-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-add-field input,
.quick-add-field select {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}

.quick-add-field input:focus,
.quick-add-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.quick-add-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.quick-add-topic-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.quick-add-topic-label:hover {
  background: var(--surface-3);
}

.quick-add-topic-label input[type="checkbox"] {
  width: 0.8rem;
  height: 0.8rem;
}

.task-item-live:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}

.task-item-content {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 0;
  /* Allow text to shrink */
}

/* Type selection buttons container */
.task-type-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Individual type button - Inactive/Dimmed state */
.type-btn {
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  opacity: 0.6;
}

.type-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  opacity: 0.8;
}

/* Active state for selected type - Bright and prominent */
.type-btn.active {
  opacity: 1;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.type-btn.active:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Specific button colors */
.type-btn-task.active {
  background: #5B6CF0;
  border-color: #5B6CF0;
}

.type-btn-hw.active {
  background: #EF4444;
  border-color: #EF4444;
}

.type-btn-exam.active {
  background: #EF4444;
  border-color: #EF4444;
}

.task-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.task-item-delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.save-all-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-shrink: 0;
  margin-top: auto;
}

.save-all-btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.save-all-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mini Day View Section - Right Column */
.mini-dayview-section {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  /* Fill available grid space */
  min-height: 400px;
  /* Match quick task section */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.5rem 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(148, 142, 142, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .mini-dayview-section {
    min-height: 40vh;
  }
}

.mini-dayview-section:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mini-dayview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-dayview-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.mini-dayview-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-dayview-content {
  position: relative;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mini-dayview-content::-webkit-scrollbar {
  width: 4px;
}

.mini-dayview-content::-webkit-scrollbar-track {
  background: transparent;
}

.mini-dayview-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Timeline container like day view but scaled down */
.mini-timeline-container {
  position: relative;
  height: 480px;
  /* 24 hours * 20px per hour */
  width: calc(100% - 60px);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  margin-left: 60px;
  overflow: visible;
  /* Allow hour markers to show outside container */
}

.mini-time-slot {
  position: absolute;
  left: -60px;
  width: 60px;
  height: 20px;
  /* Remove border-top so it doesn't obscure the marker */
  border: none;
  display: flex;
  align-items: flex-start;
}

.mini-hour-marker {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Monaco', 'Menlo', monospace;
  position: relative;
  left: 0;
  top: 0;
  background: transparent;
  padding: 0 2px;
  z-index: 2;
  pointer-events: none;
  border-radius: 0;
  opacity: 0.7;
  border: none;
  letter-spacing: 0.5px;
  box-shadow: none;
  line-height: 1.2;
}

/* Event blocks positioned absolutely like day view */
.mini-event-block {
  position: absolute;
  background: rgba(var(--event-color-rgb, 59, 130, 246), 0.15);
  border: 1px solid rgba(var(--event-color-rgb, 59, 130, 246), 0.3);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 18px;
  /* Fallback background and border for visibility */
  background: rgba(91, 108, 240, 0.15) !important;
  border: 1px solid rgba(91, 108, 240, 0.3) !important;
}

.mini-event-block:hover {
  background: rgba(var(--event-color-rgb, 59, 130, 246), 0.25);
  border-color: rgba(var(--event-color-rgb, 59, 130, 246), 0.5);
  transform: translateX(2px);
  z-index: 100 !important;
}

.mini-event-content {
  padding: 0.2rem 0.4rem;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
}

/* Compact styling for short events */
.mini-event-block.compact .mini-event-content {
  padding: 0.1rem 0.3rem;
  justify-content: center;
}

.mini-event-block.compact .mini-event-time {
  font-size: 0.45rem;
  margin-bottom: 0;
}

.mini-event-block.compact .mini-event-title {
  font-size: 0.5rem;
  line-height: 1;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.mini-event-block.compact .mini-event-duration {
  display: none;
}

.mini-event-time {
  font-size: 0.55rem;
  color: var(--event-color, var(--primary));
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', monospace;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-bottom: 1px;
}

.mini-event-title {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.mini-event-duration {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Monaco', 'Menlo', monospace;
  line-height: 1;
  flex-shrink: 0;
  min-width: 35px;
}

/* Compact variant for very short events: show only title */
.mini-event-block.compact .mini-event-duration {
  display: none;
}

.mini-event-block.compact .mini-event-title {
  font-size: 0.72rem;
  padding: 2px 6px;
}

/* Unscheduled tasks section */
.mini-unscheduled-section {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-unscheduled-header {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-unscheduled-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-event-unscheduled {
  position: relative;
  left: 0;
  right: 0;
  top: 0;
  border-left: 3px solid var(--event-color, var(--primary)) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 4px 4px 0 !important;
  margin-bottom: 0;
}

.mini-event-unscheduled .mini-event-title {
  font-size: 0.6rem;
  opacity: 0.9;
}

.mini-dayview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.mini-dayview-empty i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.mini-dayview-empty p {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.mini-dayview-empty small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Color mapping for events */
.mini-event-block[style*="--event-color: #5B6CF0"] {
  --event-color-rgb: 59, 130, 246;
}

.mini-event-block[style*="--event-color: #EF4444"] {
  --event-color-rgb: 239, 68, 68;
}

.mini-event-block[style*="--event-color: #10B981"] {
  --event-color-rgb: 16, 185, 129;
}

.mini-event-block[style*="--event-color: #F59E0B"] {
  --event-color-rgb: 245, 158, 11;
}

.mini-event-block[style*="--event-color: #8B5CF6"] {
  --event-color-rgb: 139, 92, 246;
}

.mini-event-block[style*="--event-color: #8B96F9"] {
  --event-color-rgb: 6, 182, 212;
}

/* Card headers */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Task items spacing handled by margin on .task-item */

.task-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
  background: transparent;
  backdrop-filter: none;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
}

.task-item:hover {
  background: transparent;
  border-color: transparent;
  transform: translateX(2px);
}

.task-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.task-content {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.task-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.task-overdue {
  background: var(--danger-bg);
  color: var(--danger-strong);
}

.task-time {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  background: transparent;
  backdrop-filter: none;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: auto;
}

.task-time.past-time {
  background: color-mix(in oklab, var(--danger), white 90%);
  color: var(--danger);
}

.task-status.task-past {
  background: color-mix(in oklab, var(--danger), white 90%);
  color: var(--danger);
}

.task-item.past-task {
  opacity: 0.7;
}

.task-item.past-time {
  opacity: 0.8;
}

.past-day-notice {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: color-mix(in oklab, var(--danger), white 90%);
  border-radius: 6px;
  border-left: 3px solid var(--danger);
}

.past-day-notice small {
  color: var(--danger);
  font-weight: 500;
}

/* Priority text styling */
.priority-content {
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}

.priority-list {
  list-style: none;
  padding: 0;
}

.priority-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text);
  line-height: 1.5;
}

.priority-list li:last-child {
  border-bottom: none;
}

/* Suggestions styling */
.suggestion-content {
  background: transparent;
  backdrop-filter: none;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  color: var(--text);
  line-height: 1.6;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1.25rem;
}

/* Modal styling */
.study-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }

  to {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
  }
}

.modal-content {
  background: white;
  backdrop-filter: none;
  border-radius: 20px;
  padding: 0;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.5rem 2rem;
  text-align: left;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header i {
  color: #8b5cf6;
}

.modal-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.modal-stat:last-child {
  border-bottom: none;
}

.modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.modal-btn-primary {
  background: var(--primary);
  color: white;
}

.modal-btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.modal-btn-secondary {
  background: transparent;
  backdrop-filter: none;
  color: var(--text);
}

.modal-btn-secondary:hover {
  background: transparent;
}

/* Responsive design */
@media (max-width: 1024px) {
  /* grid overrides removed; container uses flex */
}

@media (max-width: 768px) {
  /* grid overrides removed; container uses flex */

  .header-section {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .modal-buttons {
    flex-direction: column;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* All theming is now handled by theme.css tokens */

/* Ensure embedded Smart Prioritize spans full width in grid */
.smart-prioritize-embed {
  grid-column: 1 / -1;
}


/* Removed unused insights card styles to lean bundle */

/* .smart-prioritize {
    grid-column: 1 / -1;
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    flex: 1;
  } */

.pri-card {
  border-radius: 5px;
}

.pri-card>* {
  padding: 10px;
}

.pri-card .completed {
  display: none;
}

/* ===== SIMPLIFIED BACKLOG ITEMS ===== */
.backlog-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  position: relative;
}

.backlog-item:hover {
  background: var(--surface-2);
}

.backlog-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.backlog-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.backlog-item__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backlog-item__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.backlog-item__overdue {
  color: var(--danger, #ef4444);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

/* Backlog action buttons (schedule + done) */
.backlog-item__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.backlog-item:hover .backlog-item__actions {
  opacity: 1;
}

.backlog-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.backlog-action-btn--schedule:hover {
  background: var(--primary-bg, rgba(91, 108, 240, 0.1));
  color: var(--primary);
}

.backlog-action-btn--done:hover {
  background: var(--success-bg, rgba(16, 185, 129, 0.1));
  color: var(--success, #10b981);
}

/* Datepicker for backlog items */
.backlog-item__datepicker {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 101;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0.25rem;
}

.backlog-datepicker__chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.recommendations-section-grid {
  display: flex;
  flex-direction: column;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
}

.save-all-btn:disabled {
  background: var(--surface-3, #e2e8f0);
  color: var(--text-muted, #94a3b8);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Legacy AI section styles kept for potential reuse */

.exams-compact-list::-webkit-scrollbar {
  width: 4px;
}

.exams-compact-list::-webkit-scrollbar-track {
  background: transparent;
}

.exams-compact-list::-webkit-scrollbar-thumb {
  background: var(--primary-subtle, rgba(91, 108, 240, 0.2));
  border-radius: 10px;
}

/* Exams Section */
.exams-section {
  grid-column: span 1;
}

.exams-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.exam-compact-item {
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.exam-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.exam-compact-info {
  flex: 1;
  min-width: 0;
}

.exam-compact-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.exam-compact-group {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.exam-compact-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.exam-compact-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(91, 108, 240, 0.3);
}

.exam-compact-badge i {
  font-size: 0.7rem;
}

.exam-compact-progress {
  margin-top: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background: var(--surface-3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.375rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-strong) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  position: relative;
  min-width: 30px;
}

.progress-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-stats {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.hours-spent {
  font-weight: 600;
  color: var(--primary);
}

.hours-separator {
  color: var(--text-muted);
}

.hours-needed {
  color: var(--text);
}

/* Recommendations Placeholder */
.placeholder-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.placeholder-message i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.placeholder-message p {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
}

/* Today's Tasks Checklist */
.tasks-checklist-container {
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-height: 300px;
}

.tasks-checklist-container::-webkit-scrollbar {
  width: 4px;
}

.tasks-checklist-container::-webkit-scrollbar-track {
  background: transparent;
}

.tasks-checklist-container::-webkit-scrollbar-thumb {
  background: var(--primary-subtle, rgba(91, 108, 240, 0.2));
  border-radius: 10px;
}

/* Compact checklist items */
.task-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  transition: background 0.1s ease;
  cursor: pointer;
  order: 0;
}

.task-checklist-item:hover {
  background: var(--surface-2);
}

.task-checklist-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-2, var(--border));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  background: transparent;
}

.task-checklist-checkbox i {
  font-size: 0.5rem;
  color: transparent;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.task-checklist-item.completed .task-checklist-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.task-checklist-item.completed .task-checklist-checkbox i {
  color: white;
}

.task-checklist-title {
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: 500;
  min-width: 0;
}

.task-checklist-item.completed {
  order: 1;
  opacity: 0.45;
}

.task-checklist-item.completed .task-checklist-title {
  text-decoration: line-through;
}

.task-checklist-empty {
  padding: 1.5rem 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== SCHEDULE CONTINUATION BANNER ===== */
.schedule-continue-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
  background: color-mix(in oklab, var(--primary), var(--surface) 92%);
  border: 1px solid color-mix(in oklab, var(--primary), var(--border) 60%);
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.schedule-continue-banner__icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.schedule-continue-banner__body {
  flex: 1;
  min-width: 0;
}

.schedule-continue-banner__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.15rem;
}

.schedule-continue-banner__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.schedule-continue-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .schedule-continue-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .schedule-continue-banner__actions {
    width: 100%;
  }
  .schedule-continue-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Responsive - legacy AI box rule removed */