/* ============================================================================
   主应用皮肤 · app-skin（氛围天空背景 + 折叠式左侧 dock）
   作用域：全部规则限定在 #mainView 之内 —— 绝不污染登录页 #authView。
   参考：touhub.cn 的「随时段变化的天空 + 山峦剪影 + 时间场景」。
   ========================================================================== */

/* ---------- 0. 可过渡的自定义色（天空/山峦随时刻平滑渐变） ---------- */
@property --sky-top    { syntax: "<color>"; inherits: true; initial-value: #7fb0ea; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #cfe6fb; }
@property --hill-back  { syntax: "<color>"; inherits: true; initial-value: #9dbfdf; }
@property --hill-front { syntax: "<color>"; inherits: true; initial-value: #b9d4ea; }

/* ---------- 1. 设计 token ---------- */
#mainView {
  --surface: #ffffff;
  --surface-2: #fafbfc;

  /* 表面 / 文字 / 主色 全部跟随时段配色（JS 每秒写入 --ts-* 与 --glass-*，非固定值） */
  --ts-text: #1f2329;
  --ts-text-soft: #646a73;
  --ts-accent: #3370ff;
  --ts-line: #d6e2ef;
  --ts-raised: #e9f1fb;
  --glass-surface: rgba(255, 255, 255, 0.55);
  --glass-raised: rgba(233, 241, 251, 0.55);
  --glass-solid: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(214, 226, 239, 0.65);

  --sidebar: var(--glass-surface);
  --sidebar-hover: rgba(127, 148, 175, 0.14);
  --sidebar-active: var(--glass-raised);

  --text: var(--ts-text);
  --text-soft: var(--ts-text-soft);
  --text-mute: var(--ts-text-soft);

  --border: var(--glass-border);
  --border-soft: rgba(127, 138, 155, 0.16);

  --accent: var(--ts-accent);
  --accent-2: var(--ts-accent);
  --accent-grad: linear-gradient(135deg, var(--ts-accent) 0%, var(--ts-accent) 100%);
  --accent-soft: var(--glass-raised);
  --accent-glow: rgba(51, 112, 255, 0.20);

  --accent-teal: #00b578;
  --accent-teal-grad: linear-gradient(135deg, #00b578 0%, #37c98a 100%);
  --accent-teal-soft: #e7f7f0;

  --c-blue: #3370ff;   --c-blue-2: #5b8cff;   --c-blue-soft: #eef3ff;   --c-blue-grad: linear-gradient(135deg, #3370ff, #5b8cff);
  --c-green: #00b578;  --c-green-2: #37c98a;  --c-green-soft: #e7f7f0;  --c-green-grad: linear-gradient(135deg, #00b578, #37c98a);
  --c-orange: #ff9f0a; --c-orange-2: #ffb74d; --c-orange-soft: #fff5e6; --c-orange-grad: linear-gradient(135deg, #ff9f0a, #ffb74d);
  --c-purple: #7b61ff; --c-purple-2: #9b87ff; --c-purple-soft: #f1eeff; --c-purple-grad: linear-gradient(135deg, #7b61ff, #9b87ff);
  --c-pink: #f5455c;   --c-pink-2: #ff7a8a;   --c-pink-soft: #feecef;   --c-pink-grad: linear-gradient(135deg, #f5455c, #ff7a8a);
  --c-cyan: #00b2b2;   --c-cyan-2: #37caca;   --c-cyan-soft: #e6f7f7;   --c-cyan-grad: linear-gradient(135deg, #00b2b2, #37caca);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --shadow-accent: 0 2px 8px rgba(51, 112, 255, 0.22);

  /* 天空 / 山峦默认值（白昼帧，JS 会每秒覆写为当前时刻的插值色） */
  --sky-top: #bfdff6;
  --sky-bottom: #edf7ff;
  --hill-back: #91bdda;
  --hill-front: #689cbf;
  --scene-text: #182638;
  --scene-muted: #576378;
  --sun-progress: 0.5;
  --sun-altitude: 1;
  --sun-opacity: 1;
  --night-opacity: 0;

  transition:
    --sky-top 1.5s ease,
    --sky-bottom 1.5s ease,
    --hill-back 1.5s ease,
    --hill-front 1.5s ease;
}

/* ---------- 2. 时段配色 ----------
   色值不写死在这里：JS（tsPaletteAt）按 touhub 的真实帧（night/dawn/day/sunset）
   在 0/5/6.5/8/16.5/17.67/20/24 点之间**连续插值**，每秒写入
   --sky-top/--sky-bottom/--hill-back/--hill-front 及各玻璃表面/文字色。
   下面的 @property + transition 负责让变化平滑过渡。 */

/* ---------- 3. 氛围背景层（固定铺满，位于内容之下） ---------- */
#mainView .ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-top) 320px, var(--sky-bottom) 100%);
}
#mainView .ambient-clouds {
  position: absolute; inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 29% 4% at 82% 350px, #ffffff35, transparent 100%),
    radial-gradient(ellipse 19% 2% at 72% 380px, #ffffff20, transparent 100%),
    radial-gradient(ellipse 38% 5% at 19% 500px, #ffffff18, transparent 100%);
}
#mainView[data-daypart="night"] .ambient-clouds { opacity: 0.12; }
#mainView .ambient-landscape {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: clamp(200px, 30vh, 380px);
  display: block;
}
#mainView .ambient-hill-far   { fill: var(--hill-back);  opacity: 0.38; }
#mainView .ambient-hill-back  { fill: var(--hill-back);  opacity: 0.58; }
#mainView .ambient-hill-front { fill: var(--hill-front); opacity: 0.72; }
#mainView .ambient-trees      { fill: var(--hill-front); opacity: 0.88; }

/* ---------- 4. 外壳：左侧浮动 dock + 透明主区 ---------- */
#mainView.app { flex-direction: row; background: transparent; }

#mainView .sidebar {
  width: 224px;
  height: calc(100vh - 24px);
  margin: 12px 0 12px 12px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--sidebar);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 10px 30px rgba(20, 36, 61, 0.08);
  overflow: visible; /* 关键：不能 hidden，否则用户下拉菜单被裁掉 */
  z-index: 30;
}
#mainView .sidebar::after { display: none; }

#mainView .brand {
  height: 58px;
  padding: 0 18px;
  gap: 10px;
  border-right: none;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
#mainView .brand-logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
#mainView .brand-title { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: 0; }

#mainView .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 10px 10px 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
#mainView .nav::-webkit-scrollbar { width: 8px; }
#mainView .nav::-webkit-scrollbar-thumb { background: #d9dde5; border-radius: 4px; }

#mainView .nav-tools {
  border-left: none;
  border-top: 1px solid var(--border-soft);
  height: auto;
  padding: 10px 14px;
  margin-top: auto;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
#mainView .nav-tools .avatar-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  box-shadow: none;
  width: 34px; height: 34px;
}
#mainView .nav-tools .avatar-btn:hover { transform: none; box-shadow: 0 0 0 3px var(--accent-glow); }

#mainView .sidebar-mask { display: none; }

/* 用户下拉：贴左侧栏右缘向上展开（原先向下被裁掉） */
#mainView .user-menu { position: relative; }
#mainView .dropdown {
  top: auto;
  bottom: -6px;
  left: calc(100% + 12px);
  right: auto;
  width: 232px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  z-index: 200;
}

/* ---------- 5. 左侧导航：默认只显示大号分组标题，鼠标移入动画展开 ---------- */
#mainView .nav-section { margin: 1px 0; }

#mainView .nav-section-label {
  display: flex;
  align-items: center;
  padding: 10px 12px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.3px;
  user-select: none;
  cursor: default; /* 不可点击 */
}

/* 子项容器：默认收起；**只展开鼠标悬停的那一组**（向下推开，纯文字无圆点） */
#mainView .nav-section { position: relative; }
#mainView .nav-section__items {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.34s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
#mainView .nav-section:hover > .nav-section__items,
#mainView .nav-section:focus-within > .nav-section__items {
  max-height: 700px;
  opacity: 1;
  transform: none;
}
#mainView .nav-section-label { border-radius: 8px; transition: background 0.15s, color 0.15s; }
#mainView .nav-section:hover > .nav-section-label { background: var(--sidebar-hover); }

#mainView .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 32px;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#mainView .nav-item:hover { background: var(--sidebar-hover); color: var(--text); }
#mainView .nav-item.active { background: var(--sidebar-active); color: var(--accent); font-weight: 500; }
#mainView .nav-item .nav-ico { display: none; } /* 按要求：只要文字，不要圆点序号 */
#mainView .nav-item .nav-label { overflow: hidden; text-overflow: ellipsis; }
#mainView .nav-item .nav-caret { display: none; }

/* 单项（超级工作台）：常驻可见，不参与折叠 */
#mainView .nav-section--single { margin-bottom: 4px; }
#mainView .nav-section--single .nav-item {
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 6. 内容区 ---------- */
#mainView .main {
  position: relative;
  z-index: 1;
  background: transparent;
}
#mainView .content { padding: 20px 24px 44px; }

/* ---------- 7. 卡片：半透明玻璃，透出天空 ---------- */
#mainView .card {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
  box-shadow: 0 4px 18px rgba(20, 36, 61, 0.06);
  padding: 18px;
  margin-bottom: 14px;
}
#mainView .card:hover { box-shadow: 0 6px 22px rgba(20, 36, 61, 0.09); }
#mainView .card-head { margin-bottom: 14px; }
#mainView .card-head h2 { font-size: 14px; font-weight: 500; color: var(--text); }
#mainView .card .card-head h2::before { display: none; }

/* ---------- 8. 时间场景（首页顶部） ---------- */
#mainView .time-scene {
  position: relative;
  isolation: isolate;
  min-height: 168px;
  margin-bottom: 16px;
  color: var(--scene-text);
  padding: 6px 4px 0;
}
#mainView .scene-celestial {
  position: absolute;
  top: 0; right: 0;
  width: min(58%, 620px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#mainView .scene-sun {
  position: absolute;
  left: calc(10% + var(--sun-progress) * 80%);
  top: calc(78% - var(--sun-altitude) * 56%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff6cc;
  box-shadow: 0 0 26px 8px rgba(255, 242, 190, 0.45), 0 0 64px 18px rgba(255, 221, 141, 0.16);
  opacity: var(--sun-opacity);
  transform: translate(-50%, -50%);
  transition: left 1.5s ease, top 1.5s ease, opacity 1.5s ease;
}
#mainView .scene-moon {
  position: absolute;
  top: 6px; right: 14%;
  width: 34px; height: 34px;
  fill: #eaf1ff;
  filter: drop-shadow(0 0 12px rgba(193, 214, 255, 0.35));
  opacity: var(--night-opacity);
  transition: opacity 1.5s ease;
}
#mainView .scene-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: #f0f5ff;
  opacity: var(--night-opacity);
  transition: opacity 1.5s ease;
}
#mainView .scene-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 82%;
}
#mainView .scene-greeting { font-size: 15px; font-weight: 500; letter-spacing: 0.4px; }
#mainView .scene-clock {
  display: block;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-top: 2px;
}
#mainView .scene-date { margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.4px; }
#mainView .scene-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  color: var(--scene-muted);
  font-size: 12px;
  max-width: 100%;
}
#mainView .scene-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* 卡片式指标：半透明玻璃 + 深色数字 */
#mainView .stat-card {
  background: var(--glass-surface);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(20, 36, 61, 0.05);
  padding: 14px 16px;
}
#mainView .stat-card::after { display: none; }
#mainView .stat-card:hover { transform: none; background: var(--glass-raised); }
#mainView .stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 400; color: var(--text-soft);
  margin-bottom: 6px; letter-spacing: 0;
}
#mainView .stat-value { font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: 0; }
#mainView .stat-sub { color: var(--text-mute); }
#mainView .stat-card:not([style*="text-align:center"]) .stat-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
#mainView .stat-c2:not([style*="text-align:center"]) .stat-label::before { background: var(--c-green); }
#mainView .stat-c3:not([style*="text-align:center"]) .stat-label::before { background: var(--c-orange); }
#mainView .stat-c4:not([style*="text-align:center"]) .stat-label::before { background: var(--c-purple); }
#mainView .stat-c5:not([style*="text-align:center"]) .stat-label::before { background: var(--c-pink); }
#mainView .stat-card[style*="text-align:center"] .stat-label::before { display: none; }

#mainView .stats-row { gap: 12px; margin-bottom: 14px; }
#mainView .dash-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* 欢迎语：与农历并成同一行显示 */
#mainView .welcome-banner {
  display: inline;
  text-align: left;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--scene-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  max-width: none;
}
#mainView .welcome-banner:hover { box-shadow: none; }
#mainView .welcome-banner .welcome-text strong { color: inherit; font-weight: 500; }

/* ---------- 9. 按钮 / 输入框 / 表格 ---------- */
#mainView .btn,
#mainView .btn-primary,
#mainView .btn-info {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 500;
}
#mainView .btn,
#mainView .btn-primary { padding: 8px 16px; font-size: 13px; }
#mainView .btn:hover,
#mainView .btn-primary:hover,
#mainView .btn-info:hover { background: #2860e0; transform: none; box-shadow: none; filter: none; }
#mainView .btn-success { background: var(--c-green); }
#mainView .btn-danger { background: var(--c-pink); }
#mainView .btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 6px;
}
#mainView .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

#mainView .input,
#mainView select.input,
#mainView textarea.input {
  border-radius: 6px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
}
#mainView .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.13);
  outline: none;
}
#mainView .input:disabled { background: #f5f6f7; }

#mainView .grid th {
  background: rgba(247, 248, 250, 0.92);
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
#mainView .grid td { border-bottom: 1px solid var(--border-soft); }
#mainView .grid tbody tr:hover { background: rgba(250, 251, 252, 0.7); }

#mainView .placeholder-block { background: rgba(250, 251, 252, 0.7); border-color: var(--border); }
#mainView .placeholder-tag { background: var(--accent-soft); color: var(--accent); }

/* ---------- 10. 手机模式：抽屉内不做折叠，直接平铺 ---------- */
body.mobile-mode #mainView .nav-section__items {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  min-width: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.mobile-mode #mainView .nav-section__items::before { display: none !important; }
body.mobile-mode #mainView .nav-section-label { display: none !important; }
body.mobile-mode #mainView .sidebar {
  margin: 0 !important;
  height: auto !important;
  border-radius: 0 0 14px 0 !important;
}

/* ---------- 11. 窄屏 ---------- */
@media (max-width: 960px) {
  #mainView .scene-copy { max-width: 100%; }
  #mainView .scene-celestial { opacity: 0.5; }
  #mainView .home-split { grid-template-columns: 1fr; }
  #mainView .notes-layout { grid-template-columns: 1fr; }
  #mainView .notes-side { max-height: 260px; }
}

/* ---------- 12. 首页两栏：主区 + 右栏（日历 / 待办） ---------- */
#mainView .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
#mainView .home-split__main { min-width: 0; }
#mainView .home-split__side { min-width: 0; }

/* ---------- 13. 今日日历 ---------- */
#mainView .cal-head,
#mainView .cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
#mainView .cal-head span {
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  padding: 2px 0 6px;
}
#mainView .cal-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
#mainView .cal-cell.is-blank { cursor: default; }
#mainView .cal-cell:hover { background: var(--sidebar-hover); }
#mainView .cal-cell.is-today { color: var(--accent); font-weight: 500; }
#mainView .cal-cell.is-sel { background: var(--accent); color: #fff; font-weight: 500; }
#mainView .cal-cell.is-sel:hover { background: var(--accent); }
#mainView .cal-dot {
  position: absolute;
  top: 1px; right: 2px;
  min-width: 13px; height: 13px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--c-pink);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  line-height: 13px;
  text-align: center;
}
#mainView .cal-cell.is-sel .cal-dot { background: rgba(255, 255, 255, 0.9); color: var(--accent); }
#mainView .cal-nav { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
#mainView .cal-btn {
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}
#mainView .cal-btn:hover { border-color: var(--accent); color: var(--accent); }
#mainView .cal-tip { margin-top: 8px; font-size: 11px; color: var(--text-mute); text-align: center; }

/* ---------- 14. 待办 ---------- */
#mainView .todo-add { display: flex; gap: 8px; margin-bottom: 10px; }
#mainView .todo-add .input { flex: 1; height: 34px; font-size: 13px; }
#mainView .todo-add .btn-primary { padding: 0 14px; height: 34px; font-size: 13px; }
#mainView .todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text);
}
#mainView .todo-item:last-child { border-bottom: none; }
#mainView .todo-check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
}
#mainView .todo-text { flex: 1; min-width: 0; word-break: break-word; }
#mainView .todo-item.is-done .todo-text { text-decoration: line-through; color: var(--text-mute); }
#mainView .todo-by { font-size: 11px; color: var(--text-mute); flex-shrink: 0; }
#mainView .todo-del { flex-shrink: 0; color: var(--text-mute); cursor: pointer; padding: 0 2px; }
#mainView .todo-del:hover { color: var(--c-pink); }
#mainView .todo-empty { font-size: 12px; color: var(--text-mute); padding: 8px 0; text-align: center; }

/* ---------- 15. 今日待办提醒弹窗 ---------- */
#mainView .todo-reminder {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 35, 0.34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#mainView .todo-reminder[hidden] { display: none; }
#mainView .todo-rem-box {
  width: min(90vw, 380px);
  padding: 20px;
  border-radius: 16px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 70px rgba(10, 20, 35, 0.3);
}
#mainView .todo-rem-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
#mainView .todo-rem-list { max-height: 46vh; overflow: auto; margin-bottom: 14px; }
#mainView .todo-rem-line { font-size: 13px; color: var(--text); line-height: 1.9; }
#mainView .todo-rem-by { font-size: 11px; color: var(--text-mute); }
#mainView .todo-rem-box .btn-primary { width: 100%; }

/* ---------- 16. 笔记模块 ---------- */
#mainView .notes-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
#mainView .notes-side,
#mainView .notes-main {
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(20, 36, 61, 0.06);
}
#mainView .notes-side { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
#mainView .notes-side-top .input { height: 34px; font-size: 13px; }
#mainView .notes-side-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#mainView .notes-side-actions .btn-ghost { padding: 6px 10px; font-size: 12px; }
#mainView .notes-tree { display: flex; flex-direction: column; gap: 1px; max-height: 56vh; overflow: auto; }
#mainView .notes-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
#mainView .notes-row:hover { background: var(--sidebar-hover); }
#mainView .notes-row.is-active { background: var(--sidebar-active); color: var(--accent); font-weight: 500; }
#mainView .notes-row-ico { width: 12px; flex-shrink: 0; color: var(--text-mute); font-size: 11px; }
#mainView .notes-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mainView .notes-row-count { font-size: 11px; color: var(--text-mute); }
#mainView .notes-side-foot { font-size: 11px; color: var(--text-mute); border-top: 1px solid var(--border-soft); padding-top: 8px; }
#mainView .notes-hint { font-size: 12px; color: var(--text-mute); padding: 8px; }

#mainView .notes-main { padding: 16px; min-height: 420px; }
#mainView .notes-main.is-drop { outline: 2px dashed var(--accent); outline-offset: -6px; }
#mainView .notes-crumb { font-size: 12px; color: var(--text-mute); margin-bottom: 10px; }
#mainView .notes-empty { padding: 54px 16px; text-align: center; }
#mainView .notes-empty-title { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
#mainView .notes-empty-sub { font-size: 12px; color: var(--text-soft); line-height: 1.8; margin-bottom: 18px; }
#mainView .notes-body { display: flex; flex-direction: column; gap: 10px; }
#mainView .notes-title { height: 40px; font-size: 16px; font-weight: 500; }
#mainView .notes-content {
  min-height: 340px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.85;
  font-family: inherit;
  resize: vertical;
}
#mainView .notes-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#mainView .notes-status { font-size: 12px; color: var(--text-mute); margin-left: auto; }
#mainView .notes-attach-title { font-size: 12px; color: var(--text-soft); margin-bottom: 6px; }
#mainView .notes-attach { display: flex; flex-direction: column; gap: 6px; }
#mainView .notes-attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
#mainView .notes-attach-item:hover { border-color: var(--accent); color: var(--accent); }
#mainView .notes-attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mainView .notes-attach-size { font-size: 11px; color: var(--text-mute); }
