/* ========================================
   Study Plan — Apple System Design
   iOS / macOS Ventura inspired
   ======================================== */

:root {
  /* Backgrounds */
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fafafa;
  --bg-elevated: rgba(255, 255, 255, 0.72);

  /* Text */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  /* Separator */
  --separator: rgba(0, 0, 0, 0.08);
  --separator-strong: rgba(0, 0, 0, 0.12);

  /* Accents */
  --accent-blue: #007aff;
  --accent-green: #34c759;
  --accent-orange: #ff9500;
  --accent-red: #ff3b30;
  --accent-purple: #af52de;
  --accent-teal: #5ac8fa;
  --accent-indigo: #5856d6;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Font */
  --font-display: -apple-system, "SF Pro Display", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Consolas", monospace;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* ========================================
   Login Page
   ======================================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(175, 82, 222, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.login-box {
  background: var(--bg-elevated);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.login-box .logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-box .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
}

.login-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s var(--ease-smooth);
  outline: none;
}

.login-box input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.login-box button[type="submit"] {
  width: 100%;
  padding: 13px;
  margin-top: 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.login-box button[type="submit"]:hover {
  background: #0066d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.login-box button[type="submit"]:active {
  transform: translateY(0);
}

.login-box .error {
  background: rgba(255, 59, 48, 0.08);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ========================================
   Header
   ======================================== */
.header {
  background: var(--bg-elevated);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--separator);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Top row: title + user */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-title .icon {
  font-size: 18px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-user .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.header-user .name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.header-user .role-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent-blue);
  font-weight: 500;
}

.header-user .logout-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-smooth);
}

.header-user .logout-btn:hover {
  background: var(--bg-tertiary);
  color: var(--accent-red);
}

/* Bottom row: progress + stats */
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.header-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ring-wrap {
  position: relative;
  width: 32px;
  height: 32px;
}

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

.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-stats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--separator);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.stat-chip.zl .dot { background: var(--accent-blue); }
.stat-chip.sl .dot { background: var(--accent-green); }
.stat-chip.gs .dot { background: var(--accent-purple); }

/* ========================================
   Main Content
   ======================================== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.main {
  padding-top: 16px;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.toolbar .today {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: auto;
}

.toolbar-btn {
  padding: 7px 14px;
  border: 1px solid var(--separator);
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--separator-strong);
}

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

.toolbar-btn.primary:hover {
  background: #0066d6;
}

/* Day navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--separator);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.nav-arrow:hover {
  background: var(--bg-tertiary);
  border-color: var(--separator-strong);
}

.nav-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--ease-smooth);
}

.nav-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

/* ========================================
   Day Card
   ======================================== */
.day-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--separator);
  margin-bottom: 12px;
  overflow: hidden;
}

.day-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--separator);
}

.day-header h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.day-header .progress-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.day-header .progress-pill.complete {
  background: rgba(52, 199, 89, 0.1);
  color: var(--accent-green);
}

.day-body {
  padding: 8px 12px 12px;
}

/* Session */
.session {
  margin-bottom: 8px;
}

.session:last-child {
  margin-bottom: 0;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.session-indicator {
  width: 3px;
  height: 16px;
  border-radius: 2px;
}

.session-indicator.morning { background: var(--accent-blue); }
.session-indicator.afternoon { background: var(--accent-orange); }
.session-indicator.evening { background: var(--accent-purple); }

.session-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
}

/* Task */
.task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s var(--ease-smooth);
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.task:hover {
  background: var(--bg-tertiary);
  border-color: var(--separator);
}

.task.done {
  opacity: 0.45;
}

.task.done .task-text {
  text-decoration: line-through;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--separator-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s var(--ease-smooth);
}

.task.done .task-checkbox {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.task-checkbox svg {
  opacity: 0;
  stroke: #fff;
  transition: opacity 0.15s var(--ease-smooth);
}

.task.done .task-checkbox svg {
  opacity: 1;
}

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

.task-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.task-badge.zl { background: rgba(0, 122, 255, 0.08); color: var(--accent-blue); }
.task-badge.sl { background: rgba(52, 199, 89, 0.08); color: var(--accent-green); }
.task-badge.gs { background: rgba(175, 82, 222, 0.08); color: var(--accent-purple); }

.task-badge.milestone { background: rgba(255, 149, 0, 0.1); color: var(--accent-orange); }
.task-badge.moved { background: rgba(255, 59, 48, 0.08); color: var(--accent-red); }

.task-duration {
  font-size: 11px;
  color: var(--text-tertiary);
}

.task-actions {
  display: flex;
  gap: 4px;
  /* 常显：触屏无 hover，操作按钮直接可见（用户要求 2026-10-06） */
  opacity: 1;
}

.task-action-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--separator);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.15s var(--ease-smooth);
}

.task-action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Rest day */
.rest-day {
  background: var(--bg-tertiary);
  border: 1px dashed var(--separator-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}

.rest-day-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.rest-day h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rest-day p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ========================================
   Comments
   ======================================== */
.comments-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--separator);
  margin-top: 16px;
  overflow: hidden;
}

.comments-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--separator);
}

.comments-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comments-list {
  padding: 12px 16px;
  max-height: 400px;
  overflow-y: auto;
}

.comment-item {
  margin-bottom: 12px;
}

.comment-main {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.comment-avatar.admin { background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo)); }
.comment-avatar.user { background: linear-gradient(135deg, var(--accent-green), var(--accent-teal)); }

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-body-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.comment-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-role {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent-blue);
}

.comment-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
}

.comment-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.comment-actions button {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s var(--ease-smooth);
}

.comment-actions button:hover {
  background: var(--bg-tertiary);
  color: var(--accent-blue);
}

.comments-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--separator);
  background: var(--bg-tertiary);
}

.comments-input input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--separator);
  border-radius: 20px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-smooth);
}

.comments-input input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.comments-input button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.comments-input button:hover {
  background: #0066d6;
}

/* ========================================
   Calendar Overview
   ======================================== */
.calendar {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--separator);
  margin-top: 16px;
  overflow: hidden;
}

.calendar summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  list-style: none;
}

.calendar summary::-webkit-details-marker {
  display: none;
}

.calendar summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s var(--ease-smooth);
}

.calendar[open] summary::before {
  transform: rotate(90deg);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 16px 12px;
}

.cal-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s var(--ease-smooth);
  border: 1.5px solid transparent;
  color: var(--text-primary);
}

.cal-day:hover {
  background: var(--bg-tertiary);
}

.cal-day.other-month {
  color: var(--text-tertiary);
}

.cal-day.today {
  border-color: var(--accent-blue);
  background: rgba(0, 122, 255, 0.05);
}

.cal-day.rest {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.cal-day.done {
  background: rgba(52, 199, 89, 0.08);
  color: var(--accent-green);
}

.cal-day.progress {
  background: rgba(0, 122, 255, 0.05);
}

.cal-day .pct {
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ========================================
   Toast
   ======================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  z-index: 1000;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease-smooth);
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  padding: 24px;
  animation: slideUp 0.25s var(--ease-spring);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 12px;
}

.modal input, .modal select, .modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-smooth);
}

.modal input:focus, .modal select:focus, .modal textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.modal .btns {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.modal .btns button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.modal .btns .cancel {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal .btns .cancel:hover {
  background: var(--separator);
}

.modal .btns .confirm {
  background: var(--accent-blue);
  color: #fff;
}

.modal .btns .confirm:hover {
  background: #0066d6;
}

.modal .btns .danger {
  background: var(--accent-red);
  color: #fff;
}

.modal .btns .danger:hover {
  background: #d93229;
}

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
  .header {
    padding: 6px 0;
  }

  .header-title {
    font-size: 14px;
  }

  .header-title .icon {
    font-size: 16px;
  }

  .header-user .name {
    display: none;
  }

  .header-bottom {
    gap: 8px;
  }

  .header-count {
    display: none;
  }

  .stat-chip {
    flex: 1;
    justify-content: center;
    padding: 3px 6px;
    font-size: 10px;
  }

  .day-header {
    padding: 12px 14px;
  }

  .day-body {
    padding: 6px 10px 10px;
  }

  .task {
    padding: 8px 10px;
  }

  .task-actions {
    opacity: 1;
  }
}

/* 「完成 / 补漏 / 取消」显式按钮（v2 补漏功能） */
.task-action-btn.act-done,
.task-action-btn.act-catchup,
.task-action-btn.act-undo {
  width: auto;
  height: auto;
  min-height: 28px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.task-action-btn.act-done {
  background: rgba(52, 199, 89, 0.10);
  color: #2E9E4F;
  border: 1px solid rgba(52, 199, 89, 0.35);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}
.task-action-btn.act-done:hover { background: rgba(52, 199, 89, 0.2); }
.task-action-btn.act-catchup {
  background: rgba(255, 159, 10, 0.10);
  color: #C77700;
  border: 1px solid rgba(255, 159, 10, 0.35);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}
.task-action-btn.act-catchup:hover { background: rgba(255, 159, 10, 0.2); }
.task-action-btn.act-undo {
  background: rgba(142, 142, 147, 0.10);
  color: #8E8E93;
  border: 1px solid rgba(142, 142, 147, 0.3);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}
.task-action-btn.act-undo:hover { background: rgba(142, 142, 147, 0.2); }
