/* EduOS User Portal Styles */
:root {
  --primary: #4361EE;
  --primary-light: #E8ECFD;
  --success: #2EC4B6;
  --warning: #FF9F1C;
  --bg: #F0F4FF;
  --card-bg: #FFFFFF;
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(67, 97, 238, 0.08);
  --shadow-sm: 0 2px 8px rgba(67, 97, 238, 0.06);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Auth Card (Login/Register) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-card .brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card .brand h1 {
  color: var(--primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.auth-card .brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Header Bar */
.header-bar {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bar h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.header-bar .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-bar .header-actions a,
.header-bar .header-actions button {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.header-bar .header-actions a:hover,
.header-bar .header-actions button:hover {
  opacity: 1;
}

/* Bottom Nav (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.bottom-nav a i {
  font-size: 1.3rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--primary);
}

/* Cards */
.edu-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.edu-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* Metrics */
.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Progress Ring */
.progress-ring-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.progress-ring {
  width: 120px;
  height: 120px;
  position: relative;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring .ring-bg {
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 10;
}

.progress-ring .ring-fill {
  stroke: var(--primary);
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-ring .ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring .ring-text .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-ring .ring-text .label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Progress Bars */
.mastery-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--primary-light);
  overflow: hidden;
}

.mastery-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.mastery-bar .fill.mastered { background: var(--success); }
.mastery-bar .fill.learning { background: var(--primary); }
.mastery-bar .fill.new { background: #dee2e6; }

/* Status Chips */
.chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.chip-mastered {
  background: rgba(46, 196, 182, 0.12);
  color: var(--success);
}

.chip-learning {
  background: var(--primary-light);
  color: var(--primary);
}

.chip-new {
  background: #f0f0f0;
  color: #999;
}

.chip-warning {
  background: rgba(255, 159, 28, 0.12);
  color: var(--warning);
}

.chip-info {
  background: var(--primary-light);
  color: var(--primary);
}

/* Glass chip (connection status) */
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  color: #fff;
}

.glass-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.glass-chip .dot.offline {
  background: #ff6b6b;
}

/* Session List */
.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.session-item .session-info {
  flex: 1;
}

.session-item .session-info .subject {
  font-weight: 500;
  font-size: 0.9rem;
}

.session-item .session-info .meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.session-item .session-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Notification Item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.notif-item .notif-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.notif-item .notif-badge.info { background: var(--primary); }
.notif-item .notif-badge.warn { background: var(--warning); }
.notif-item .notif-badge.success { background: var(--success); }

.notif-item .notif-content {
  flex: 1;
}

.notif-item .notif-content .title {
  font-size: 0.85rem;
  font-weight: 500;
}

.notif-item .notif-content .time {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.notif-item .notif-action {
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

/* Quick Action Cards */
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.15s;
}

.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

.quick-action .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.quick-action .action-label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Next Action Card */
.next-action-card {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.next-action-card .action-type {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-action-card .action-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.3rem 0;
}

.next-action-card .action-desc {
  font-size: 0.8rem;
  opacity: 0.85;
}

.next-action-card .btn-start {
  margin-top: 1rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1rem;
}

.segmented-control .seg-btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.segmented-control .seg-btn.active {
  background: var(--card-bg);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

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

.btn-primary:hover {
  background: #3451d1;
  border-color: #3451d1;
}

/* Learner Selector */
.learner-selector {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.learner-selector .learner-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--card-bg);
  border: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.learner-selector .learner-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.learner-selector .learner-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* Page content spacing */
.page-content {
  padding: 1rem;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  max-width: 600px;
  margin: 0 auto;
}

/* Role badge */
.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-badge.guardian {
  background: rgba(255, 159, 28, 0.12);
  color: var(--warning);
}

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

/* Mastery Node Grid */
.mastery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.mastery-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.btn-challenge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-challenge:hover {
  background: var(--primary);
  color: #fff;
}

.challenge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.challenge-item:last-child { border-bottom: none; }
.challenge-info .challenge-node {
  font-size: 0.85rem;
  font-weight: 500;
}
.challenge-info .challenge-progress {
  font-size: 0.75rem;
  color: #666;
}
.challenge-actions {
  display: flex;
  gap: 0.5rem;
}

.mastery-node .node-info {
  flex: 1;
  min-width: 0;
}

.mastery-node .node-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mastery-node .mastery-bar {
  width: 100%;
}

/* Loading state */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 1rem;
}

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

/* Responsive */
@media (min-width: 576px) {
  .mastery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .page-content {
    padding-bottom: 2rem;
  }
  
  .auth-card {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .page-content {
    max-width: 800px;
  }
}

/* ═══════════ Session / Chat Page ═══════════ */
.session-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.session-page .header-bar {
  flex-shrink: 0;
}

.btn-end-session {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 16px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.chat-welcome {
  text-align: center;
  padding: 3rem 1rem;
}

.chat-welcome .welcome-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.chat-welcome h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.chat-welcome p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.subject-chips {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subject-chip {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.subject-chip:hover {
  background: var(--primary);
  color: #fff;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 85%;
}

.chat-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-msg.user .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.chat-msg.assistant .msg-bubble {
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.system {
  justify-content: center;
  max-width: 100%;
}

.chat-msg.system .msg-bubble {
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
}

.msg-bubble {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.msg-avatar.user-avatar {
  background: rgba(67, 97, 238, 0.15);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.typing-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chat-input-area {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--card-bg);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--bg);
  border-radius: 20px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
}

.input-wrapper textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 120px;
  padding: 0.3rem 0;
}

.btn-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.btn-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ═══════════ Review Page ═══════════ */
.review-summary {
  display: flex;
  justify-content: space-around;
  padding: 1.25rem 1rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.summary-item {
  text-align: center;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.summary-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.badge-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.debt-alert {
  border-left: 4px solid var(--warning);
}

.review-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.review-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.review-item.overdue {
  border-left: 3px solid #ff6b6b;
}

.review-item.today {
  border-left: 3px solid var(--primary);
}

.review-item-left {
  flex: 1;
  min-width: 0;
}

.review-node-name {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-subject {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.strength-ring {
  position: relative;
  width: 40px;
  height: 40px;
}

.strength-ring svg {
  transform: rotate(-90deg);
}

.strength-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: 600;
}

.review-ratings {
  padding-top: 1rem;
}

.rating-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
}

.rating-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.25rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

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

.rating-emoji {
  font-size: 1.5rem;
}

.rating-text {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.review-node-info .node-detail {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 0.75rem;
}

.empty-state h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.85rem;
}

/* ═══════════ Plan Page ═══════════ */
.date-display {
  font-size: 0.8rem;
  opacity: 0.9;
}

.plan-overview {
  display: flex;
  justify-content: space-around;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: #fff;
}

.plan-stat {
  text-align: center;
}

.plan-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-stat-label {
  font-size: 0.72rem;
  opacity: 0.8;
}

.plan-section {
  margin-bottom: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.section-header i {
  color: var(--primary);
}

.section-count {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.plan-task {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s;
}

.plan-task.completed {
  opacity: 0.5;
}

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

.task-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

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

.task-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.task-subject {
  font-size: 0.7rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.task-reason {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.task-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.task-time i {
  font-size: 0.65rem;
}

.task-action-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 14px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.task-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.gap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.gap-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.gap-score {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
