  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --duck-green: #b8c96e;
    --duck-yellow: #f5b942;
    --duck-brown: #3d2b1f;
    --duck-cream: #f5f0e6;
    --duck-light: #faf8f4;
    --work: #e74c3c;
    --work-bg: #fdeaea;
    --life: #3498db;
    --life-bg: #e8f4fd;
    --study: #9b59b6;
    --study-bg: #f3e8fd;
    --health: #27ae60;
    --health-bg: #e8fdef;
    --bg-page: #e8e4da;
    --text-main: #3d2b1f;
    --text-sub: #5a4a3a;
    --card-bg: #ffffff;
    --input-border: #e8e0d4;
    --progress-low: #e74c3c;
    --progress-mid: #f5b942;
    --progress-high: #27ae60;
  }
  body.theme-dark { --duck-green: #7a8a3e; --duck-yellow: #d4a035; --duck-brown: #f5f0e6; --duck-cream: #2a2a2a; --duck-light: #333333; --work: #ff6b6b; --work-bg: #4a2c2c; --life: #4dabf7; --life-bg: #1a2f3f; --study: #da77f2; --study-bg: #3a2a45; --health: #69db7c; --health-bg: #1f3a25; --bg-page: #1a1a1a; --text-main: #f5f0e6; --text-sub: #b8b0a0; --card-bg: #333333; --input-border: #555555; --progress-low: #ff6b6b; --progress-mid: #f5b942; --progress-high: #69db7c; }
  body.theme-pink { --duck-green: #e8a0bf; --duck-yellow: #f5b942; --duck-brown: #5a3d4a; --duck-cream: #fff0f5; --duck-light: #fff8fb; --work: #e74c3c; --work-bg: #fdeaea; --life: #3498db; --life-bg: #e8f4fd; --study: #9b59b6; --study-bg: #f3e8fd; --health: #27ae60; --health-bg: #e8fdef; --bg-page: #f5e6ec; --text-main: #5a3d4a; --text-sub: #7a5a6a; --card-bg: #ffffff; --input-border: #ecd0db; --progress-low: #e74c3c; --progress-mid: #f5b942; --progress-high: #27ae60; }
  body.theme-ocean { --duck-green: #5dacbd; --duck-yellow: #f5b942; --duck-brown: #1f3a4d; --duck-cream: #eef7fb; --duck-light: #f7fbfd; --work: #e74c3c; --work-bg: #fdeaea; --life: #3498db; --life-bg: #e8f4fd; --study: #9b59b6; --study-bg: #f3e8fd; --health: #27ae60; --health-bg: #e8fdef; --bg-page: #d6eaf0; --text-main: #1f3a4d; --text-sub: #4a6572; --card-bg: #ffffff; --input-border: #c5dde6; --progress-low: #e74c3c; --progress-mid: #f5b942; --progress-high: #27ae60; }

  body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-page);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    color: var(--text-main);
  }
  .app-container {
    width: 100%; max-width: 440px;
    background: var(--duck-cream);
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 22px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 36px rgba(0,0,0,0.12);
    display: flex; flex-direction: column;
  }
  .title-bar {
    display: none; align-items: center; justify-content: space-between;
    height: 32px; padding: 0 8px 0 14px;
    background: var(--duck-green);
    border-radius: 22px 22px 0 0;
    flex-shrink: 0;
    -webkit-app-region: drag;
    user-select: none;
  }
  .is-electron .title-bar { display: flex; }
  .is-electron .header { border-radius: 0 0 22px 22px; }
  .is-electron .app-container { max-width: 100%; width: 100%; min-height: 100vh; max-height: 100vh; border-radius: 0; box-shadow: none; }
  .is-electron body { background: var(--duck-cream); padding: 0; margin: 0; }
  .title-bar-text {
    font-size: 11px; color: rgba(255,255,255,0.85); font-weight: 600;
    letter-spacing: 0.5px;
  }
  .title-bar-btns {
    display: flex; gap: 2px;
    -webkit-app-region: no-drag;
  }
  .title-bar-btn {
    width: 28px; height: 28px; border: none; background: transparent;
    color: rgba(255,255,255,0.8); font-size: 14px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; border-radius: 6px;
    transition: background 0.15s; font-family: inherit; line-height: 1;
  }
  .title-bar-btn:hover { background: rgba(255,255,255,0.2); }
  .title-bar-close:hover { background: #e81123; color: #fff; }
  .header {
    -webkit-app-region: drag;
    background: var(--duck-green);
    background-size: cover;
    background-position: center;
    padding: 0 14px 10px;
    border-radius: 0 0 22px 22px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
    overflow: hidden;
  }
  .header-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; -webkit-app-region: no-drag; }
  .header-actions button, .duck-quote, .progress-area { -webkit-app-region: no-drag; }
  .duck-avatar {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    overflow: hidden;
    font-size: 28px;
  }
  .duck-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

  /* 自定义 SVG 图标系统 */
  .icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; }
  .icon svg { width: 100%; height: 100%; display: block; }
  .icon-16 { width: 16px; height: 16px; }
  .icon-18 { width: 18px; height: 18px; }
  .icon-20 { width: 20px; height: 20px; }
  .icon-22 { width: 22px; height: 22px; }
  .icon-24 { width: 24px; height: 24px; }
  .icon-26 { width: 26px; height: 26px; }
  .icon-28 { width: 28px; height: 28px; }
  .icon-32 { width: 32px; height: 32px; }
  .icon-36 { width: 36px; height: 36px; }
  .icon-40 { width: 40px; height: 40px; }
  .icon-44 { width: 44px; height: 44px; }
  /* 按钮中的图标悬停动效 */
  button .icon, .clickable .icon { transition: transform 0.2s ease; }
  button:hover .icon, .clickable:hover .icon { transform: scale(1.12); }
  button:active .icon, .clickable:active .icon { transform: scale(0.95); }
  /* 分类标签图标 */
  .filter-btn .icon, .category-select .icon { margin-right: 3px; }
  /* 明暗主题适配：图标无底色，由容器决定背景 */
  .icon svg [fill="#FFFFFF"] { fill: inherit; }
  /* 暗色主题下保持白色填充 */
  [data-theme] .icon svg [fill="#FFFFFF"] { fill: var(--card-bg, #fff); }
  .header-title h1 { margin: 0; font-size: 17px; color: var(--duck-brown); font-weight: 700; letter-spacing: 1px; }
  .header-title p { margin: 2px 0 0; font-size: 11px; color: var(--text-sub); opacity: 0.85; }
  .header-actions { margin-left: auto; display: flex; gap: 6px; position: relative; }
  .header-decor { position: absolute; top: -8px; right: -10px; width: 80px; height: 80px; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.15; transform: rotate(-15deg); pointer-events: none; z-index: 0; }
  .header-actions button {
    width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.35);
    color: var(--duck-brown); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-family: inherit; transition: all 0.2s;
  }
  .header-actions button:hover { background: rgba(255,255,255,0.6); transform: scale(1.05); }
  .duck-quote {
    margin-top: 6px; padding: 5px 8px; background: rgba(255,255,255,0.35); border-radius: 10px;
    font-size: 10px; color: var(--duck-brown); font-weight: 500; display: inline-flex; align-items: center; gap: 4px;
    position: relative; z-index: 1; cursor: pointer; transition: background 0.2s;
  }
  .duck-quote:hover { background: rgba(255,255,255,0.55); }
  .progress-area { margin-top: 6px; position: relative; z-index: 1; }
  .progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
  .progress-label span:first-child { font-size: 11px; color: var(--text-sub); font-weight: 600; }
  .progress-label span:last-child { font-size: 11px; color: var(--duck-brown); font-weight: 700; }
  .progress-track { background: rgba(255,255,255,0.5); border-radius: 5px; height: 5px; overflow: hidden; cursor: pointer; }
  .progress-fill { background: var(--duck-yellow); height: 100%; width: 0%; border-radius: 5px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
  .category-progress-list { display: none; margin-top: 5px; flex-direction: column; gap: 3px; padding: 5px 6px; background: rgba(255,255,255,0.45); border-radius: 10px; animation: fadeIn 0.2s ease; }
  .progress-area:hover .category-progress-list, .progress-area.expanded .category-progress-list { display: flex; }
  .category-progress-item { display: flex; align-items: center; gap: 5px; font-size: 10px; }
  .category-progress-label { width: 40px; color: var(--text-sub); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
  .category-progress-track { flex: 1; height: 4px; background: rgba(255,255,255,0.6); border-radius: 2px; overflow: hidden; }
  .category-progress-fill { height: 100%; border-radius: 2px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
  .category-progress-text { width: 24px; text-align: right; color: var(--duck-brown); font-weight: 700; flex-shrink: 0; font-size: 9px; }
  .progress-toggle-icon { display: inline-block; font-size: 10px; color: #999; cursor: pointer; margin-left: 3px; transition: transform 0.2s; }
  .progress-area.expanded .progress-toggle-icon { transform: rotate(180deg); }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
  .stats-bar { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
  .stat-card {
    flex: 1; min-width: 60px; background: var(--card-bg); border-radius: 12px; padding: 6px 2px;
    text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: transform 0.2s; cursor: pointer;
  }
  .stat-card:hover { transform: translateY(-2px); }
  .stat-card .num { font-size: 15px; font-weight: 700; color: var(--duck-brown); }
  .stat-card .label { font-size: 9px; color: #999; margin-top: 1px; }
  .stat-card .duck-icon { font-size: 12px; margin-bottom: 1px; display: flex; align-items: center; justify-content: center; }
  .stat-card .duck-icon .icon { opacity: 0.7; }
  .routine-section { margin: 10px 16px 0; background: var(--card-bg); border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
  .routine-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .routine-header h3 { font-size: 13px; color: var(--duck-brown); font-weight: 700; display: flex; align-items: center; gap: 5px; }
  .routine-header .routine-actions { display: flex; gap: 6px; }
  .routine-header .routine-actions button { padding: 4px 10px; border-radius: 10px; border: none; font-size: 11px; cursor: pointer; font-family: inherit; font-weight: 600; transition: all 0.2s; }
  .btn-migrate { background: var(--duck-green); color: #fff; }
  .btn-migrate:hover { transform: scale(1.05); }
  .btn-add-routine { background: var(--input-border); color: var(--text-sub); }
  .btn-add-routine:hover { background: #ddd5c8; }
  .routine-list { display: flex; flex-direction: column; gap: 6px; }
  .routine-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--duck-light); border-radius: 10px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
  .routine-item:hover { background: rgba(184,201,110,0.15); }
  .routine-item .routine-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid #d4c8b8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
  .routine-item .routine-check.checked { background: var(--duck-green); border-color: var(--duck-green); }
  .routine-item .routine-check.checked::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }
  .routine-item .routine-text { flex: 1; color: var(--duck-brown); }
  .routine-item .routine-tag { font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
  .routine-item .routine-del { width: 20px; height: 20px; border-radius: 6px; border: none; background: transparent; color: #ccc; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
  .routine-item .routine-del:hover { color: #e74c3c; }
  .routine-empty { text-align: center; padding: 12px; color: #bbb; font-size: 12px; }
  .routine-form { display: none; flex-direction: column; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .routine-form.active { display: flex; }
  .routine-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 14px; color: var(--text-main); font-family: inherit; outline: none; }
  .routine-input:focus { border-color: var(--duck-green); }
  .routine-select { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 13px; color: var(--text-main); font-family: inherit; outline: none; cursor: pointer; }
  .routine-form-actions { display: flex; gap: 8px; margin-top: 4px; }
  .routine-form-actions button { flex: 1; padding: 8px; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .filter-bar { padding: 8px 14px 0; display: flex; gap: 5px; flex-wrap: wrap; }
  .filter-btn { padding: 4px 9px; border-radius: 14px; border: none; font-size: 11px; cursor: pointer; background: var(--input-border); color: var(--text-sub); font-weight: 600; transition: all 0.2s; font-family: inherit; }
  .filter-btn.active { background: var(--duck-green); color: #fff; }
  .task-list { padding: 8px 14px 160px; position: relative; }
  .task-item { display: flex; align-items: center; gap: 10px; background: var(--card-bg); padding: 10px 12px; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: all 0.2s; cursor: pointer; animation: slideIn 0.3s ease forwards; position: relative; overflow: hidden; }
  .task-item:hover { transform: translateX(3px); box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
  .task-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 14px 0 0 14px; opacity: 0; transition: opacity 0.2s; }
  .task-item:hover::before { opacity: 1; }
  @keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .checkbox-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d4c8b8; background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); position: relative; }
  .checkbox-circle.checked { border-color: #27ae60; background: #27ae60; animation: checkPop 0.3s ease; }
  .checkbox-circle .pct-text { position: absolute; font-size: 8px; color: #fff; font-weight: 700; pointer-events: none; }
  .progress-gauge { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--duck-green); background: #f0faf4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 0.3s; font-size: 8px; font-weight: 700; color: var(--duck-green); }
  .progress-gauge .pct-text { position: absolute; font-size: 8px; color: var(--duck-green); font-weight: 700; pointer-events: none; }
  @keyframes checkPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .task-text-area { flex: 1; min-width: 0; }
  .task-text { font-size: 14px; color: var(--text-main); font-weight: 500; transition: all 0.3s; word-break: break-word; }
  .task-text.done { color: #bbb; text-decoration: line-through; }
  .task-progress-bar { height: 6px; background: #eee; border-radius: 3px; margin-top: 5px; overflow: visible; position: relative; }
  .task-progress-fill { height: 100%; background: var(--duck-green); border-radius: 3px; transition: width 0.3s; }
  .progress-duck { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 16px; transition: left 0.3s ease; pointer-events: none; line-height: 1; }
  .task-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
  .task-tag { font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
  .task-time { font-size: 10px; color: #bbb; }
  .delete-btn { width: 24px; height: 24px; border-radius: 6px; border: none; background: transparent; color: #ccc; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: inherit; line-height: 1; }
  .delete-btn:hover { background: #fdeaea; color: #e74c3c; }

  /* 子任务类型样式 */
  .subtask-input-area { padding: 0 12px 8px; }
  .subtask-textarea { width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 12px; color: var(--text-main); outline: none; resize: vertical; font-family: inherit; line-height: 1.6; box-sizing: border-box; }
  .subtask-textarea:focus { border-color: var(--duck-green); }
  .subtask-toggle { display: inline-block; width: 16px; cursor: pointer; color: var(--duck-green); font-size: 11px; margin-right: 4px; transition: transform 0.2s; user-select: none; -webkit-app-region: no-drag; }
  .subtask-toggle.expanded { transform: rotate(0deg); }
  .subtask-list { margin-top: 6px; padding-left: 20px; }
  .subtask-summary { font-size: 10px; color: #999; margin-bottom: 4px; }
  .subtask-item { display: flex; align-items: center; padding: 3px 0; }
  .subtask-check { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--duck-green); background: #f0faf4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; margin-right: 8px; transition: all 0.2s; -webkit-app-region: no-drag; }
  .subtask-check.checked { background: var(--duck-green); }
  .subtask-check img, .subtask-check svg { width: 10px; height: 10px; }
  .subtask-text { font-size: 12px; color: var(--text-main); }
  .subtask-text.done { text-decoration: line-through; color: #bbb; }

  /* 编辑模态框子任务列表 */
  .edit-subtask-header { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; font-weight: 600; }
  .edit-subtask-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
  .edit-subtask-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--duck-green); background: #f0faf4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 0.2s; }
  .edit-subtask-check.checked { background: var(--duck-green); }
  .edit-subtask-check img, .edit-subtask-check svg { width: 12px; height: 12px; }
  .edit-subtask-input { flex: 1; padding: 6px 8px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 12px; color: var(--text-main); outline: none; font-family: inherit; box-sizing: border-box; }
  .edit-subtask-input:focus { border-color: var(--duck-green); }
  .edit-subtask-del { width: 24px; height: 24px; border-radius: 50%; border: none; background: #fdeaea; color: #e74c3c; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .edit-subtask-del:hover { background: #f8d0d0; }
  .btn-add-subtask { width: 100%; padding: 8px; border-radius: 8px; border: 2px dashed var(--input-border); background: transparent; color: var(--duck-green); font-size: 12px; cursor: pointer; margin-top: 4px; }
  .btn-add-subtask:hover { border-color: var(--duck-green); background: var(--duck-light); }
  .empty-state { text-align: center; padding: 30px 16px; color: #aaa; }
  .empty-state .emoji { width: 120px; height: 120px; margin: 0 auto 10px; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.6; }
  .empty-state .emoji img, .empty-state .emoji span { width: 100%; height: 100%; object-fit: contain; display: block; }
  .empty-state .text { font-size: 14px; }
  .bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: var(--card-bg); border-radius: 18px 18px 0 0; box-shadow: 0 -3px 18px rgba(0,0,0,0.08); padding: 10px 14px 12px; z-index: 100; }
  .input-row { display: flex; gap: 5px; margin-bottom: 6px; }
  .category-select { padding: 6px 8px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 11px; color: var(--text-main); outline: none; cursor: pointer; font-family: inherit; }
  .task-input { flex: 1; padding: 6px 10px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 12px; color: var(--text-main); outline: none; transition: border-color 0.2s; font-family: inherit; }
  .task-input:focus { border-color: var(--duck-green); }
  .progress-toggle { padding: 6px 8px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 11px; color: var(--text-main); outline: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
  .task-date-input { width: 68px; min-width: 68px; max-width: 68px; padding: 4px 5px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--duck-light); font-size: 9px; color: var(--text-main); outline: none; cursor: pointer; font-family: inherit; }
  .task-date-input::-webkit-calendar-picker-indicator { width: 12px; height: 12px; padding: 0; margin: 0 0 0 2px; cursor: pointer; }
  .task-date-input:focus { border-color: var(--duck-green); }
  .add-btn { width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--duck-green); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-family: inherit; line-height: 1; padding-bottom: 2px; }
  .add-btn:hover { transform: scale(1.05); }
  .bottom-actions { display: flex; justify-content: center; gap: 6px; padding-top: 2px; flex-wrap: wrap; }
  .bottom-actions button { background: none; border: none; color: #999; font-size: 11px; cursor: pointer; display: flex; align-items: center; gap: 3px; font-family: inherit; padding: 6px 10px; border-radius: 8px; transition: all 0.2s; }
  .bottom-actions button:hover { color: #666; background: var(--duck-light); }
  .celebration { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; display: none; justify-content: center; align-items: center; flex-direction: column; background: rgba(0,0,0,0.5); }
  .celebration-inner { text-align: center; animation: bounce 0.6s ease; }
  .celebration-img { width: 160px; height: 160px; margin: 0 auto; background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 24px; }
  .celebration-img img, .celebration-img span { width: 100%; height: 100%; object-fit: contain; display: block; }
  .celebration-text { font-size: 20px; color: var(--duck-brown); font-weight: 700; margin-top: 12px; background: rgba(255,255,255,0.95); padding: 10px 24px; border-radius: 20px; display: inline-block; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
  @keyframes bounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.1); } }
  .calendar-panel { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 300; justify-content: center; align-items: center; padding: 20px; }
  .calendar-panel.active { display: flex; }
  .calendar-content { background: var(--duck-cream); border-radius: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
  .calendar-header { background: var(--duck-green); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
  .calendar-header h2 { color: var(--duck-brown); font-size: 18px; font-weight: 700; }
  .calendar-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); color: var(--duck-brown); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
  .calendar-close:hover { background: rgba(255,255,255,0.6); }
  .calendar-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: rgba(184,201,110,0.15); }
  .calendar-nav button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--duck-brown); padding: 4px 12px; border-radius: 8px; transition: background 0.2s; }
  .calendar-nav button:hover { background: rgba(184,201,110,0.3); }
  .calendar-nav span { font-size: 16px; font-weight: 700; color: var(--duck-brown); }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px 20px; position: relative; }
  .calendar-weekday { text-align: center; font-size: 12px; color: #999; font-weight: 600; padding: 6px 0; }
  .calendar-day { aspect-ratio: 1; min-height: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; position: relative; font-size: 14px; font-weight: 600; color: var(--duck-brown); }
  .calendar-day:hover { transform: scale(1.08); border-color: var(--duck-green); }
  .calendar-day.today { border-color: var(--duck-brown); }
  .calendar-day.selected { box-shadow: 0 0 0 3px var(--duck-yellow); }
  .calendar-day .day-num { font-size: 15px; font-weight: 700; }
  .calendar-day .day-lunar { font-size: 9px; font-weight: 400; color: #999; margin-top: 1px; line-height: 1; }
  .calendar-day .day-lunar.festival { color: #e74c3c; font-weight: 600; }
  .calendar-day.today .day-lunar { color: var(--duck-brown); }
  .calendar-day.today .day-lunar.festival { color: #c0392b; }
  .calendar-day.empty { cursor: default; }
  .calendar-day.empty:hover { transform: none; border-color: transparent; }
  .challenge-bar-row { position: absolute; height: 5px; border-radius: 3px; pointer-events: none; }
  .anniversary-dot { position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }
  .day-detail { padding: 0 20px 20px; min-height: 120px; }
  .day-detail-title { font-size: 14px; font-weight: 700; color: var(--duck-brown); margin-bottom: 10px; padding: 8px 12px; background: rgba(184,201,110,0.2); border-radius: 10px; display: inline-block; }
  .day-detail-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card-bg); border-radius: 10px; margin-bottom: 6px; font-size: 13px; color: #666; }
  .day-detail-item.done { text-decoration: line-through; color: #bbb; }
  .day-detail-empty { text-align: center; padding: 20px; color: #aaa; font-size: 13px; }
  .day-detail-anniversary { margin-bottom: 8px; }
  .day-detail-anniversary-item { font-size: 12px; padding: 6px 10px; background: #fef5f5; border-radius: 8px; color: #c0392b; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
  .anniversary-count-text { font-size: 10px; color: #e74c3c; opacity: 0.8; }
  .progress-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 400; justify-content: center; align-items: center; padding: 20px; }
  .progress-modal.active { display: flex; }
  .progress-modal-content { background: var(--card-bg); border-radius: 20px; padding: 24px; width: 100%; max-width: 320px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
  .progress-modal-content h3 { margin: 0 0 16px; font-size: 16px; color: var(--duck-brown); }
  .progress-slider { width: 100%; height: 8px; border-radius: 4px; -webkit-appearance: none; appearance: none; background: var(--input-border); outline: none; margin: 16px 0; }
  .progress-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--duck-green); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  .progress-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--duck-green); cursor: pointer; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  .progress-value { font-size: 32px; font-weight: 700; color: var(--duck-green); }
  .progress-input-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; }
  .progress-number { width: 70px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); font-size: 18px; font-weight: 700; text-align: center; font-family: inherit; outline: none; }
  .progress-number:focus { border-color: var(--duck-green); }
  .progress-input-row span { font-size: 18px; font-weight: 700; color: var(--duck-green); }
  .progress-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .progress-modal-actions button { flex: 1; padding: 10px; border-radius: 12px; border: none; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 600; }
  .btn-cancel { background: var(--input-border); color: var(--text-sub); }
  .btn-confirm { background: var(--duck-green); color: #fff; }
  .side-duck { position: fixed; right: calc(50% - 300px); bottom: 180px; width: 80px; height: 80px; background: url("../assets/images/bg_003.jpg") center/contain no-repeat; opacity: 0.2; pointer-events: none; z-index: 0; animation: float 3s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #d4c8b8; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #b8a890; }
  .modal-panel { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 500; justify-content: center; align-items: center; padding: 20px; }
  .modal-panel.active { display: flex; }
  .modal-content { background: var(--duck-cream); border-radius: 24px; width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative; }
  .modal-header { background: var(--duck-green); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
  .modal-header h3 { color: var(--duck-brown); font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
  .modal-header h3 .icon { margin-right: 1px; }
  .calendar-header h2 { font-size: 16px; color: var(--duck-brown); display: flex; align-items: center; gap: 6px; }
  .modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); color: var(--duck-brown); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
  .modal-close:hover { background: rgba(255,255,255,0.6); }
  .modal-actions-top { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .modal-actions-top button { flex: 1; padding: 10px; border-radius: 12px; border: none; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; }
  .notes-input-area { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .notes-textarea { width: 100%; min-height: 90px; padding: 12px; border-radius: 14px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 14px; color: var(--text-main); font-family: inherit; resize: vertical; outline: none; }
  .notes-textarea:focus { border-color: var(--duck-green); }
  .notes-save { width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; border: none; background: var(--duck-green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .notes-list { padding: 10px 20px 20px; overflow-y: auto; max-height: 280px; }
  .note-item { background: var(--card-bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; }
  .note-text { font-size: 14px; color: var(--text-main); line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
  .note-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
  .note-time { font-size: 11px; color: #bbb; }
  .note-del { background: transparent; border: none; color: #ccc; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; font-family: inherit; }
  .note-del:hover { color: #e74c3c; background: #fdeaea; }
  .notes-empty { text-align: center; padding: 30px 20px; color: #bbb; font-size: 13px; }
  .category-select.flash { animation: flashGreen 0.6s ease; }
  @keyframes flashGreen { 0% { border-color: var(--input-border); } 50% { border-color: var(--duck-green); box-shadow: 0 0 0 3px rgba(184,201,110,0.3); } 100% { border-color: var(--input-border); } }
  .weight-input-area { padding: 10px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .weight-input-row { display: flex; gap: 8px; align-items: center; }
  .weight-input { flex: 1; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 15px; color: var(--text-main); font-family: inherit; outline: none; }
  .weight-input:focus { border-color: var(--duck-green); }
  .weight-unit { font-size: 13px; color: #999; font-weight: 600; }
  .weight-save { padding: 8px 14px; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .weight-tip { font-size: 10px; color: #bbb; margin-top: 4px; }
  .weight-chart-area { padding: 10px 20px; height: 170px; position: relative; }
  .weight-chart { width: 100%; height: 100%; overflow: visible; }
  .weight-chart-line { fill: none; stroke: var(--duck-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .weight-chart-area-fill { fill: rgba(184,201,110,0.15); stroke: none; }
  .weight-chart-dot { fill: var(--duck-green); stroke: #fff; stroke-width: 2; }
  .weight-chart-axis { stroke: var(--input-border); stroke-width: 1; }
  .weight-chart-grid { stroke: var(--input-border); stroke-width: 1; opacity: 0.35; }
  .weight-chart-label { font-size: 9px; fill: #999; }
  .weight-empty { text-align: center; padding: 40px 20px; color: #bbb; font-size: 13px; }
  .weight-list { padding: 0 20px 20px; max-height: 120px; overflow-y: auto; }
  .weight-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: var(--card-bg); border-radius: 10px; margin-bottom: 6px; font-size: 13px; }
  .weight-item .weight-value { font-weight: 700; color: var(--duck-brown); }
  .weight-item .weight-time { font-size: 11px; color: #bbb; }
  .weight-item .weight-del { background: transparent; border: none; color: #ccc; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; font-family: inherit; }
  .weight-item .weight-del:hover { color: #e74c3c; background: #fdeaea; }
  .stat-card .challenge-count { font-size: 20px; font-weight: 700; color: var(--duck-yellow); }
  .challenge-form { display: none; flex-direction: column; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .challenge-form.active { display: flex; }
  .challenge-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 14px; color: var(--text-main); font-family: inherit; outline: none; }
  .challenge-input:focus { border-color: var(--duck-green); }
  .challenge-select { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 13px; color: var(--text-main); font-family: inherit; outline: none; cursor: pointer; }
  .challenge-row { display: flex; gap: 8px; }
  .challenge-row .challenge-input { flex: 1; }
  .challenge-form-actions { display: flex; gap: 8px; margin-top: 4px; }
  .challenge-form-actions button { flex: 1; padding: 8px; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .challenge-list { padding: 10px 20px 20px; overflow-y: auto; max-height: 320px; }
  .challenge-item { background: var(--card-bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; }
  .challenge-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
  .challenge-item-title { font-size: 14px; color: var(--text-main); font-weight: 600; flex: 1; word-break: break-word; }
  .challenge-item-tag { font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 600; flex-shrink: 0; }
  .challenge-item-meta { font-size: 11px; color: #999; margin-bottom: 6px; }
  .challenge-item-progress { display: flex; align-items: center; gap: 8px; }
  .challenge-item-track { flex: 1; height: 5px; background: #eee; border-radius: 3px; overflow: hidden; }
  .challenge-item-fill { height: 100%; background: var(--duck-green); border-radius: 3px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
  .challenge-item-text { font-size: 11px; color: var(--duck-brown); font-weight: 700; flex-shrink: 0; width: 48px; text-align: right; }
  .challenge-item-del { background: transparent; border: none; color: #ccc; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; font-family: inherit; }
  .challenge-item-del:hover { color: #e74c3c; background: #fdeaea; }
  .anniversary-form { display: none; flex-direction: column; gap: 10px; padding: 0 20px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .anniversary-form.active { display: flex; }
  .anniversary-input { padding: 10px 14px; border-radius: 12px; border: 2px solid #e0e0e0; font-size: 14px; font-family: inherit; background: #fff; transition: border-color 0.2s; }
  .anniversary-input:focus { border-color: var(--duck-green); outline: none; }
  .anniversary-row { display: flex; gap: 8px; }
  .anniversary-row .anniversary-input { flex: 2; }
  .anniversary-select { flex: 1; padding: 10px 12px; border-radius: 12px; border: 2px solid #e0e0e0; font-size: 13px; font-family: inherit; background: #fff; cursor: pointer; }
  .anniversary-form-actions { display: flex; gap: 8px; margin-top: 4px; }
  .anniversary-form-actions button { flex: 1; padding: 10px; border-radius: 12px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; }
  .anniversary-list { padding: 10px 20px 20px; overflow-y: auto; max-height: 320px; }
  .anniversary-item { background: linear-gradient(135deg, #fff 0%, #fafafa 100%); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); position: relative; border-left: 4px solid #e0e0e0; transition: all 0.2s; }
  .anniversary-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  .anniversary-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
  .anniversary-item-title { font-size: 15px; color: var(--text-main); font-weight: 700; flex: 1; word-break: break-word; }
  .anniversary-item-date { font-size: 11px; color: #999; margin-bottom: 4px; }
  .anniversary-item-count { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: inline-block; }
  .anniversary-item-count.today { background: #ffeaea; color: #e74c3c; }
  .anniversary-item-count.upcoming { background: #eaf4fd; color: #3498db; }
  .anniversary-item-count.past { background: #f0f0f0; color: #999; }
  .anniversary-item-count.far { background: #eafaf1; color: #27ae60; }
  .anniversary-item-del { background: none; border: none; color: #ccc; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; transition: color 0.2s; }
  .anniversary-item-del:hover { color: #e74c3c; }
  .task-item.challenge { border: 2px solid rgba(245, 183, 66, 0.45); background: linear-gradient(135deg, var(--card-bg) 0%, #fffaf2 100%); }
  .task-item.challenge::before { background: var(--duck-yellow); opacity: 1; }
  .challenge-badge { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: #fff3d6; color: #c98a1a; font-weight: 600; margin-left: 4px; }
  .overdue-tag { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: #fdeaea; color: #e74c3c; font-weight: 600; margin-left: 4px; }
  .challenge-tip { font-size: 10px; color: #c98a1a; margin-top: 4px; opacity: 0.85; }
  .task-item.challenge { border: 2px solid rgba(245, 183, 66, 0.55); background: linear-gradient(135deg, var(--card-bg) 0%, #fffaf2 100%); }
  .task-item.challenge .task-text { font-weight: 600; }
  .challenge-progress-wrap { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
  .challenge-segment-bar { flex: 1; display: flex; gap: 3px; height: 8px; }
  .challenge-segment { flex: 1; background: #eee; border-radius: 2px; transition: background 0.3s; min-width: 2px; }
  .challenge-segment.filled { background: var(--duck-yellow); }
  .challenge-long-bar { flex: 1; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
  .challenge-long-bar .task-progress-fill { background: var(--duck-yellow); border-radius: 4px; transition: width 0.3s; }
  .challenge-progress-text { font-size: 10px; color: #999; font-weight: 600; flex-shrink: 0; }
  .duck-avatar { animation: waddle 3s ease-in-out infinite; }
  @keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
  .side-duck { background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; border-radius: 12px; animation: floatDuck 2.5s ease-in-out infinite; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  @keyframes floatDuck { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
  .input-row-secondary { align-items: center; margin-bottom: 0; }
  .date-hint { font-size: 10px; color: #bbb; white-space: nowrap; }
  .modal-duck { position: absolute; width: 50px; height: 50px; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.2; pointer-events: none; }
  .modal-duck.top-left { top: 10px; left: 10px; transform: rotate(-15deg); }
  .modal-duck.bottom-right { bottom: 10px; right: 10px; transform: rotate(15deg); }
  .empty-state .emoji { background-size: contain; background-repeat: no-repeat; background-position: center; }
  .celebration-img { background-size: contain; background-repeat: no-repeat; background-position: center; }
  @keyframes popDuck { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes flyUp { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-80px) scale(1.3); opacity: 0; } }
  .pop-duck { position: fixed; width: 70px; height: 70px; background: url("../assets/images/bg_003.jpg") no-repeat center/contain; z-index: 300; pointer-events: none; animation: popDuck 0.4s ease forwards, flyUp 1s ease 0.4s forwards; }
  .task-done-toast { position: fixed; width: 80px; height: 80px; z-index: 350; pointer-events: none; margin-left: -40px; margin-top: -40px; animation: popDuck 0.4s ease forwards, flyUp 1s ease 0.4s forwards; }
  .task-done-toast img, .task-done-toast span { width: 100%; height: 100%; object-fit: contain; display: block; }

  #duck-confirm { z-index: 1000; }
  #duck-confirm .modal-content { max-width: 280px; text-align: center; padding: 24px 20px 20px; border-radius: 24px; }
  .duck-confirm-img { width: 100px; height: 100px; margin: 0 auto 12px; background-size: contain; background-repeat: no-repeat; background-position: center; animation: duckBounce 0.5s ease; }
  .duck-confirm-img img, .duck-confirm-img span { width: 100%; height: 100%; object-fit: contain; display: block; }
  @keyframes duckBounce { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
  .duck-confirm-title { font-size: 17px; font-weight: 700; color: var(--duck-brown); margin-bottom: 8px; }
  .duck-confirm-msg { font-size: 13px; color: #666; margin-bottom: 18px; line-height: 1.5; white-space: pre-line; }
  .duck-confirm-btns { display: flex; gap: 12px; justify-content: center; }
  .duck-confirm-btn { padding: 9px 22px; border-radius: 20px; border: none; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; transition: transform 0.15s; }
  .duck-confirm-btn:active { transform: scale(0.95); }
  .duck-confirm-btn.cancel { background: var(--input-border); color: var(--duck-brown); }
  .duck-confirm-btn.confirm { background: var(--duck-yellow); color: #fff; box-shadow: 0 3px 10px rgba(245,185,66,0.35); }

  /* 设置面板 */
  .settings-section { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .settings-section h4 { font-size: 13px; color: var(--duck-brown); margin-bottom: 10px; }
  .theme-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .theme-option { padding: 8px 12px; border-radius: 12px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 12px; cursor: pointer; transition: all 0.2s; color: var(--text-main); }
  .theme-option.active { border-color: var(--duck-green); background: rgba(184,201,110,0.15); }
  .lang-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .lang-option { padding: 8px 12px; border-radius: 12px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 12px; cursor: pointer; transition: all 0.2s; color: var(--text-main); }
  .lang-option.active { border-color: var(--duck-green); background: rgba(184,201,110,0.15); }
  .user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .user-avatar-input { width: 42px; height: 42px; font-size: 24px; text-align: center; border-radius: 50%; border: 2px solid var(--input-border); background: var(--card-bg); cursor: pointer; }
  .user-name-input { flex: 1; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--input-border); background: var(--card-bg); font-size: 13px; color: var(--text-main); outline: none; }
  .user-list { max-height: 120px; overflow-y: auto; }
  .user-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--card-bg); border-radius: 10px; margin-bottom: 6px; font-size: 13px; }
  .user-item .name { font-weight: 600; color: var(--text-main); }
  .user-item .actions { display: flex; gap: 6px; }
  .user-item button { border: none; background: transparent; cursor: pointer; font-size: 12px; padding: 4px 8px; border-radius: 6px; font-family: inherit; }
  .user-item .switch { background: var(--duck-green); color: #fff; }
  .user-item .delete { background: #fdeaea; color: #e74c3c; }
  .user-item.current { box-shadow: 0 0 0 2px var(--duck-yellow); }
  .settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .settings-actions button { flex: 1; min-width: 100px; padding: 10px; border-radius: 12px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .category-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
  .category-edit-row { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--card-bg); border-radius: 10px; }
  .category-edit-row input { border: 2px solid var(--input-border); background: var(--duck-light); border-radius: 8px; padding: 6px; font-size: 12px; color: var(--text-main); font-family: inherit; outline: none; }
  .category-edit-row input:focus { border-color: var(--duck-green); }
  .cat-icon-input { width: 34px; text-align: center; }
  .cat-name-input { flex: 1; min-width: 50px; }
  .cat-color-input { width: 32px; height: 28px; padding: 0; border: none; background: transparent; cursor: pointer; }
  .cat-keywords-input { flex: 1.5; min-width: 60px; }
  .cat-delete-btn { width: 24px; height: 24px; border-radius: 6px; border: none; background: #fdeaea; color: #e74c3c; font-size: 14px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; }
  .category-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .category-actions button { flex: 1; min-width: 100px; padding: 10px; border-radius: 12px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .hidden-file { display: none; }
