/* =========================================================
   Studio 视觉层 · 对齐参考稿「LifeEcho Today Redesign Concepts」
   参考：src/product/product.css / Pages.tsx / AuthFlow.tsx
   加载顺序：最后加载，只接管桌面壳层与页面外观，不改业务逻辑
   ========================================================= */

/* ---------- 登录门的补件：步骤条 / 返回 / 完成态 / 强度 ---------- */
.lg-card .lg-form { gap: 18px; }
.lg-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 2px;
  color: var(--accent); font-size: 12.5px; font-weight: 500;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.lg-back:hover { text-decoration: underline; }
.lg-back svg { width: 14px; height: 14px; }
.lg-strength { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.lg-strength-bar { display: flex; gap: 3px; flex: none; }
.lg-strength-bar i { width: 22px; height: 3px; border-radius: 2px; background: var(--line); transition: background 260ms var(--ease); }
.lg-strength-bar i.on { background: var(--accent); }
.lg-strength b { font-weight: 500; color: var(--ink-2); }
.lg-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; line-height: 1.6;
}
.lg-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.lg-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.lg-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 12.5px; }
.lg-summary-row + .lg-summary-row { border-top: 1px solid var(--line); }
.lg-summary-row span { color: var(--ink-3); }
.lg-summary-row b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-done { text-align: center; display: grid; justify-items: center; gap: 10px; }
.lg-done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  animation: lg-check 420ms cubic-bezier(.34,1.4,.64,1) both;
}
.lg-done-icon svg { width: 26px; height: 26px; }
.lg-done .lg-form-title { font-size: 24px; }
.lg-done .lg-form-sub { margin: 0; }
.lg-done .lg-submit { margin-top: 8px; }
@keyframes lg-check { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================================
   桌面：参照 le-shell / le-sidebar / le-topbar 的结构
   ========================================================= */
@media (min-width: 761px) {
  :root {
    --topbar-h: 64px;
    --content-max: 1080px;
    --view-pad-x: 28px;
    --shell-pad: 0px;
    --r-workspace: 0px;
  }

  /* 整窗平铺：参考稿没有浮台外框 */
  .shell { padding: 0; }
  .shell-slab {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--bg) !important;
  }
  .shell-body { background: var(--bg); }

  /* ---------- 侧栏 224 / 64 ---------- */
  .sidebar {
    width: var(--side-w, 224px) !important;
    background: color-mix(in srgb, var(--bg-sunk) 55%, transparent) !important;
    border-right: 1px solid var(--line) !important;
    backdrop-filter: none;
  }
  .sidebar[data-collapsed="true"] { width: 64px !important; }
  /* 收起时徽标会压在图标上：让数量回到 tooltip / aria-label 里 */
  .sidebar[data-collapsed="true"] .side-nav-count { display: none; }
  .side-resizer { left: calc(var(--side-w, 224px) - 4px); }

  .side-brand-row { height: 64px; padding: 0 19px; }
  .side-brand { padding: 0; margin: 0; gap: 10px; }
  .sidebar .side-brand-mark { width: 26px; height: 26px; }
  .side-brand-text b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

  .side-nav { padding: 0 10px 12px; gap: 0; }
  .side-group { gap: 0; }
  .side-group.is-plain { gap: 0; }
  .side-group-label {
    padding: 12px 10px 4px;
    font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--ink-4);
  }
  .side-nav-item {
    height: 34px; min-height: 34px; padding: 0 12px; gap: 10px;
    border-radius: 9px; font-size: 13px; font-weight: 400; color: var(--ink-3);
  }
  .side-nav-item .ic { width: 16px; height: 16px; color: currentColor; }
  .side-nav-ic { width: 16px; }
  .side-nav-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
  .side-nav-item:hover .ic { color: currentColor; }
  .side-nav-item[aria-current="page"] {
    background: var(--card); color: var(--ink); font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }
  .side-nav-item[aria-current="page"]::before {
    left: -10px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
    animation: le-indicator 260ms cubic-bezier(.34, 1.4, .64, 1);
  }
  .side-nav-item[aria-current="page"] .ic { color: var(--ink); }
  .side-nav-count {
    margin-left: auto; min-width: 0; height: auto; padding: 0;
    background: none; color: var(--ink-4);
    font-size: 11px; font-family: var(--font-mono);
  }
  .side-nav-item[aria-current="page"] .side-nav-count { background: none; color: var(--ink-4); }
  .side-nav-dot { width: 6px; height: 6px; }

  .side-foot {
    height: auto; padding: 10px; gap: 4px;
    background: transparent; border-top: 1px solid var(--line);
  }
  .account-entry { height: auto; flex: 1; min-width: 0; padding: 6px; gap: 10px; border-radius: 10px; }
  /* 选中账户时不再用冷调的 --accent-soft 紫蓝块，改成和导航项一致的白卡 + 浅影，
     让账户入口在暖纸侧栏里协调不突兀。 */
  .account-entry[aria-current="page"] {
    background: var(--card); color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }
  .avatar.account-avatar { width: 30px; height: 30px; font-size: 12px; }
  .account-name { font-size: 13px; font-weight: 500; }
  .account-sub { font-size: 11px; color: var(--ink-3); }
  .side-collapse { width: 34px; height: 34px; background: transparent; border-radius: 10px; }
  .side-collapse:hover { background: var(--bg-sunk); }

  /* 折叠态：64px，只留图标 */
  .sidebar[data-collapsed="true"] .side-brand-row { padding: 0; justify-content: center; }
  .sidebar[data-collapsed="true"] .side-nav { padding: 6px 8px 8px; align-items: center; gap: 2px; }
  .sidebar[data-collapsed="true"] .side-nav-item {
    width: 40px !important; min-height: 40px !important; padding: 0 !important;
    justify-content: center !important; border-radius: 10px !important;
  }
  .sidebar[data-collapsed="true"] .side-foot { padding: 10px 0 14px; gap: 4px; }
  .sidebar[data-collapsed="true"] .account-entry { width: 40px; height: 40px; }
  .sidebar[data-collapsed="true"] .account-avatar { width: 30px; height: 30px; }

  /* ---------- 顶栏 64：页面名 / 搜索 / 同步 / 通知 / 新建 ---------- */
  .topbar {
    height: 64px; padding: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .topbar-inner {
    height: 100%; max-width: none; margin: 0;
    padding: 0 24px; gap: 16px;
    display: flex; align-items: center;
  }
  .topbar-title {
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    color: var(--ink); margin: 0; white-space: nowrap;
  }
  .topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .topbar-search {
    height: 36px; width: 236px; display: flex; align-items: center; gap: 8px;
    padding: 0 10px; border-radius: 10px;
    background: var(--bg-sunk); color: var(--ink-4);
    font-size: 12.5px; text-align: left; white-space: nowrap;
    transition: box-shadow var(--t-fast), color var(--t-fast);
  }
  .topbar-search:hover { box-shadow: 0 0 0 1px var(--line); color: var(--ink-3); }
  .topbar-search .ic { flex: none; }
  .topbar-search kbd {
    margin-left: auto; font-family: var(--font-mono); font-size: 10.5px;
    padding: 2px 6px; border-radius: 6px;
    background: var(--card); border: 1px solid var(--line); color: var(--ink-3);
  }
  .topbar .icon-btn { width: 34px; height: 34px; border-radius: 10px; color: var(--ink-3); }
  .topbar .icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }
  .topbar-new { height: 36px !important; padding: 0 14px !important; border-radius: 10px !important; font-size: 13px !important; }
  .topbar .sync-pill {
    height: 30px; padding: 0 10px; gap: 6px;
    border: 0; border-radius: 999px;
    background: var(--bg-sunk); color: var(--ink-3);
    font-size: 12px; font-weight: 400;
  }
  .topbar .sync-pill[data-phase="synced"] .ic,
  .topbar .sync-pill[data-phase="idle"] .ic { color: var(--progress); }
  .topbar .sync-pill[data-phase="syncing"] { background: var(--accent-soft); color: var(--accent); }
  .topbar .sync-pill[data-phase="syncing"] .ic { color: var(--accent); }
  .topbar .sync-pill[data-phase="error"],
  .topbar .sync-pill[data-phase="conflict"],
  .topbar .sync-pill[data-phase="blocked"] { color: var(--urgent); background: var(--urgent-soft); border: 0; }
  .topbar .focus-pill { height: 30px; background: var(--bg-sunk); color: var(--ink-2); font-size: 12px; font-weight: 400; }
  .topbar .focus-pill .pulse { background: var(--accent); }

  /* 参考稿只在顶栏放「新建」；移动端 FAB 保留 */
  #fab.fab-stack { display: none; }

  /* 悬浮的「和 Echo 说话」会压在正文卡片上：桌面端收进顶栏的 Echo 按钮，
     语音仍可从顶栏或 Ctrl+Space 进入 */
  .echo-companion { display: none; }

  /* ---------- 页面容器 ---------- */
  .view { padding: 0 var(--view-pad-x) 96px; }
  .page { max-width: var(--content-max); }
  .page:not(:has(.page-head)) { padding-top: 28px; }

  /* 页头：标题已经进顶栏，页内只留一行说明与本页操作；
     对齐正文卡片（28px），不要被 desktop-v2 的 padding:0 抵消 */
  .page-head {
    align-items: center; gap: 16px;
    margin: 0 calc(var(--view-pad-x) * -1);
    padding: 18px var(--view-pad-x) 14px;
    background: linear-gradient(var(--bg) calc(100% - 18px), transparent);
  }
  .page-head .page-title { display: none; }
  .page-head .page-sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }
  .page-head .proj-desc { margin-top: 4px; }
  .page-head.rv-head .page-title,
  .page-head.proj-head .page-title,
  .page-head.pf-head .page-title { display: block; font-size: 22px; line-height: 1.25; }
  .page-head .page-actions { margin-left: auto; }
  .page-head .page-actions .btn { height: 36px; border-radius: 10px; padding: 0 14px; }
  .page-head .page-actions .btn-sm { height: 30px; padding: 0 11px; }
  .page-head .seg { background: var(--bg-sunk); border-radius: 11px; padding: 3px; }
  .page-head .seg button { border-radius: 8px; padding: 6px 12px; font-size: 12.5px; }

  /* 通用卡片与标题 */
  .card {
    border-radius: 14px !important;
    border-color: var(--line) !important;
    box-shadow: var(--card-shadow) !important;
  }
  .card-pad { padding: 22px !important; }
  .section-head { margin-bottom: 10px; }
  .section-head .eyebrow { font-size: 15px; font-weight: 600; color: var(--ink); }
  .section-head .muted.small { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }

  .btn { height: 36px; border-radius: 10px; font-size: 13px; font-weight: 500; padding: 0 14px; }
  .btn-sm { height: 30px; font-size: 12.5px; padding: 0 11px; }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: transparent; transform: none; }
  .input, .select, .textarea { border-radius: 12px; }
  .input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .chip { border-radius: 999px; background: var(--bg-sunk); color: var(--ink-3); }
  .seg { background: var(--bg-sunk); border-radius: 11px; padding: 3px; }
  .seg button { border-radius: 8px; font-size: 12.5px; }

  /* =========================================================
     今天页：le-today 结构
     ========================================================= */
  .le-today { display: grid; gap: 28px; }

  .le-today-cover {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px; align-items: center;
    padding: 22px; border-radius: 20px;
    background: linear-gradient(135deg, var(--card), var(--accent-soft));
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
  }
  .le-today-date {
    width: 72px; min-height: 92px; display: grid; align-content: center; justify-items: center;
    border-radius: 16px; background: var(--card);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 7%, transparent);
  }
  .le-today-date span, .le-today-date small { font-size: 11px; color: var(--ink-3); }
  .le-today-date strong { font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -.05em; }
  .le-today-welcome h2 { margin-top: 3px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
  .le-today-welcome p { margin-top: 5px; color: var(--ink-3); font-size: 13px; }
  .le-today-welcome p b { color: var(--ink); font-weight: 500; }
  .le-today-progress {
    position: relative; display: inline-flex; width: 70px; height: 70px;
    align-items: center; justify-content: center;
  }
  .le-today-progress svg { position: absolute; inset: 0; transform: rotate(-90deg); }
  .le-today-progress circle { fill: none; stroke: var(--bg-sunk); stroke-width: 4; }
  .le-today-progress circle + circle { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray 900ms var(--ease); }
  .le-today-progress > span { display: grid; justify-items: center; }
  .le-today-progress b { font-size: 18px; line-height: 1; letter-spacing: normal; }
  .le-today-progress small { font-size: 10px; color: var(--ink-3); }
  .le-today-progress.is-zero circle + circle { stroke: transparent; }

  .le-today-split {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .82fr);
    gap: 22px; align-items: start;
  }
  .le-today-main { display: grid; gap: 22px; min-width: 0; }
  .le-today-aside { display: grid; gap: 14px; min-width: 0; }
  /* 底部次级信息：时间预算 + 接下来 3 天，收成一行安静的补充 */
  .le-today-foot {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .82fr);
    gap: 22px; align-items: start;
  }

  .le-surface, .le-today .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
  }

  /* 今日重点：三张小卡 */
  .le-focus-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .le-focus-head h3 { margin-top: 2px; font-size: 17px; font-weight: 600; }
  .le-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .le-focus-card {
    min-height: 120px; padding: 14px 14px 12px;
    display: grid; align-content: start; gap: 8px; text-align: left;
    border-radius: 14px; background: var(--card); border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(30, 30, 40, .04);
    color: var(--ink); transition: background var(--t-fast) var(--ease);
  }
  .le-focus-card:hover { background: var(--bg-sunk); }
  .le-focus-card-top { display: flex; align-items: center; gap: 8px; }
  .le-focus-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--area, var(--accent)); flex: none; }
  .le-focus-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
  .le-focus-card .check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-4); display: grid; place-items: center; color: var(--accent-fg); }
  .le-focus-card .check.is-done { background: var(--accent); border-color: var(--accent); }
  .le-focus-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
  .le-focus-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
  .le-focus-card.is-empty {
    border: 1.5px dashed var(--line); background: transparent; box-shadow: none;
    justify-items: start; color: var(--ink-3);
  }
  .le-focus-card.is-empty:hover { background: var(--bg-sunk); color: var(--ink); }
  .le-focus-card.is-empty > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
  .le-focus-card.is-done .le-focus-title { color: var(--ink-4); text-decoration: line-through; }
  .le-focus-title { display: block; width: 100%; text-align: left; color: inherit; }
  .le-focus-title:hover { color: var(--accent); }
  .le-focus-card .check { padding: 0; }

  /* 时间线卡 */
  .le-today-timeline { padding: 20px; min-width: 0; }
  .le-today-timeline .le-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
  .le-today-timeline .le-section-head h3 { margin-top: 2px; font-size: 15px; font-weight: 600; }
  .le-eyebrow {
    display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 500;
    letter-spacing: .02em; text-transform: lowercase; color: var(--ink-3);
  }
  .le-today-events { display: grid; gap: 0; margin-top: 6px; }
  .le-today-event {
    display: grid; grid-template-columns: 62px 24px minmax(0, 1fr);
    align-items: stretch; min-height: 76px; text-align: left; color: var(--ink);
  }
  .le-today-time { padding: 13px 8px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); text-align: right; }
  .le-today-time small { display: block; margin-top: 2px; color: var(--ink-4); font-size: 10.5px; }
  .le-today-line { position: relative; display: flex; justify-content: center; }
  .le-today-line::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .le-today-event:first-child .le-today-line::before { top: 18px; }
  .le-today-event:last-child .le-today-line::before { bottom: calc(100% - 18px); }
  .le-today-line i {
    position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 17px;
    border-radius: 50%; background: var(--area, var(--accent));
    box-shadow: 0 0 0 4px var(--card);
  }
  .le-today-event-card {
    display: flex; align-items: center; gap: 11px; min-width: 0;
    margin: 5px 0 5px 2px; padding: 10px 12px; border-radius: 12px;
    transition: background var(--t-fast) var(--ease);
  }
  .le-today-event:hover .le-today-event-card { background: var(--bg-sunk); }
  .le-today-event.is-done .le-today-event-card { opacity: .58; }
  .le-today-event.is-done .le-today-line i { background: var(--ink-4) !important; }
  .le-today-event .le-check {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-4);
    display: flex; align-items: center; justify-content: center; flex: none;
    color: var(--accent-fg); transition: background 140ms, border-color 140ms;
  }
  .le-today-event.is-done .le-check { background: var(--accent); border-color: var(--accent); }
  .le-today-event .le-check:hover { border-color: var(--accent); }
  .le-today-event .le-task-title {
    display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 13.5px;
    text-align: left; color: inherit; font-weight: 400;
  }
  .le-today-event .le-task-title small { color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .le-today-event.is-done .le-task-title { color: var(--ink-4); text-decoration: line-through; }
  .le-today-event .le-area { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
  .le-today-event .le-area i { width: 6px; height: 6px; border-radius: 50%; background: var(--area, var(--accent)); }
  .le-today-event.le-anytime { min-height: 62px; }
  .le-today-event.le-anytime .le-today-time { padding-top: 16px; font-size: 11.5px; color: var(--ink-4); }
  .le-today-event.le-anytime .le-today-line i { margin-top: 20px; }
  .le-disclosure {
    margin-top: 6px; display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--ink-3);
  }
  .le-disclosure:hover { background: var(--bg-sunk); color: var(--ink); }
  .le-disclosure svg { transition: transform 220ms var(--ease); }
  .le-disclosure.is-open svg { transform: rotate(180deg); }
  .le-empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--ink-3); font-size: 13px; }
  .le-empty b { display: block; color: var(--ink); margin-bottom: 4px; }
  .le-empty svg { margin: 0 auto 10px; color: var(--accent); }
  .le-empty-action { margin-top: 12px; display: flex; justify-content: center; }

  /* 列表行里的小按钮：存为瞬间 */
  .le-event-moment {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    color: var(--ink-3); opacity: 0; transition: opacity 140ms var(--ease), background 140ms var(--ease), color 140ms var(--ease);
  }
  .le-today-event:hover .le-event-moment,
  .le-event-moment:focus-visible { opacity: 1; }
  .le-event-moment:hover { background: var(--card); color: var(--accent); }
  .le-today-event.is-done .le-event-moment { opacity: .7; }

  /* 行内文字链 */
  .le-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; color: var(--accent); text-decoration: none;
    border-radius: 6px;
  }
  .le-link:hover { text-decoration: underline; text-underline-offset: 3px; }

  /* 时间轴（保留原有拖拽能力，作为时间线的第二种形态） */
  .le-today-timeline .tl-switch { margin-left: auto; }
  .le-today-timeline .timeline { border: 0; box-shadow: none; background: transparent; margin-top: 8px; }
  .le-today-timeline .tl-hint { display: none; }

  /* 右列：时间预算 / 打卡 / AI 总结，三张一致的白面卡 */
  .le-today-habits, .le-today-budget { padding: 18px; }
  .le-today-aside .le-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .le-today-aside .le-section-head h3 { margin-top: 2px; font-size: 15px; font-weight: 600; }
  .le-today-aside .le-section-head > span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
  .le-today-habits .le-section-head { margin-bottom: 4px; }
  .le-today-budget .le-section-head { margin-bottom: 12px; }
  .le-today-budget .bud-rows { margin-top: 12px; }

  .le-habit {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; border-radius: 12px; text-align: left; color: var(--ink);
    transition: background var(--t-fast) var(--ease);
  }
  .le-habit:hover { background: var(--bg-sunk); }
  .le-habit + .le-habit { box-shadow: 0 -1px 0 var(--line); }
  .le-habit .le-check {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-4);
    display: flex; align-items: center; justify-content: center; flex: none;
    color: var(--accent-fg);
  }
  .le-habit.is-done .le-check { background: var(--accent); border-color: var(--accent); animation: lg-check 260ms cubic-bezier(.34,1.4,.64,1); }
  .le-habit b { display: block; font-size: 13.5px; font-weight: 500; }
  .le-habit small { display: block; font-size: 11.5px; color: var(--ink-3); }
  .le-habit > span:nth-child(2) { flex: 1; min-width: 0; }

  .le-today-aside .card-pad { padding: 18px !important; }
  .le-today-aside .dial-card { padding: 16px 12px 10px !important; }
  .le-today-aside .dial-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; margin-top: 4px; }
  .le-today-aside .dial-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-3); }
  .le-today-aside .dial-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--area); }
  .le-today-aside .dial-legend .focus-i { background: var(--accent); }
  .le-today-aside .habit-mini li { padding: 10px; }
  .le-today-aside .habit-mini li + li { box-shadow: 0 -1px 0 var(--line); }
  .le-today-aside .upcoming { background: var(--card); }
  .le-today-aside .up-day, .le-today-foot .up-day {
    grid-template-columns: 34px minmax(0, 1fr); gap: 10px;
    border-radius: 12px; padding: 10px 8px; align-items: center;
  }
  .le-today-aside .up-day:hover, .le-today-foot .up-day:hover { background: var(--bg-sunk); }
  .le-today-aside .up-day-main, .le-today-foot .up-day-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .le-today-aside .up-wd-row, .le-today-foot .up-wd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .le-today-aside .up-title, .le-today-foot .up-title { grid-column: auto; margin-top: 0; }
  .le-today-aside .bud-total .bud-figure .mono { font-size: 20px; }

  /* AI 总结：放在右列，做成和其他卡一致的白面卡 */
  .ai-brief-slot:empty { display: none; }
  .ai-brief-slot { margin-top: 0; }
  .le-today-aside .ai-brief-slot > * {
    border-radius: 14px !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--card-shadow) !important;
    background: var(--card) !important;
    padding: 16px 18px !important;
  }

  /* 拖拽日期的停靠条沿用旧规则，只在拖动时出现 */
  .drop-dock { z-index: 40; }
}

/* =========================================================
   日历：日头居中 + 今天圆环；周视图拉宽、缩小字号、任务文字尽量显示
   ========================================================= */
@media (min-width: 761px) {
  /* 日头整列居中，今天用一圈描边圆环标出（不再是大蓝底圆点） */
  .cal-dayhead {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 12px 6px 10px; text-align: center;
  }
  .cdh-n {
    height: 30px; min-width: 30px; display: grid; place-items: center;
    border-radius: 50%; font-size: 20px; line-height: 1;
  }
  .cal-dayhead.is-today .cdh-n {
    background: transparent !important;
    color: var(--accent) !important;
    width: 30px !important; height: 30px !important; font-size: 20px !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 1.5px var(--accent) !important;
  }
  .cdh-wd { font-size: 11px; }
  .cdh-c { font-size: 10.5px; }

  /* 拉宽：右侧栏收窄、时间轴槽收窄、间距收紧，把空间让给 7 列 */
  .cal-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; }
  .cal-row { grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
  .time-gutter { width: 46px; }
  .time-gutter span { right: 8px; }
  .cal-corner { padding: 0 8px 8px 0; }

  /* 缩小字号、收内边距，让单行尽量放下更全的文字 */
  .cal-body .tl-block { padding: 3px 6px !important; }
  .cal-body .tl-title { font-size: 11px !important; line-height: 1.25; }
  .cal-body .tl-time { font-size: 10px !important; }
  .cal-chip { font-size: 11px; padding: 0 6px; }
  .cal-chip .mono { font-size: 10px; }
  .cal-chip .cc-t { letter-spacing: 0; }
}

/* 窄桌面：右列改成一列等宽卡，避免被挤成细条 */
@media (min-width: 761px) and (max-width: 1100px) {
  .le-today-split { grid-template-columns: minmax(0, 1fr); }
  .le-today-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .le-today-foot { grid-template-columns: minmax(0, 1fr); }
}

@keyframes le-indicator { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* =========================================================
   概览页：对齐参考 OverviewRedesign（数据分析仪表盘）
   自然绿主色 + 白卡 24px 圆角 + 弹簧/呼吸特效，不破坏真实数据与交互
   参考主色 #3FA98E / 浅绿底 #E6F5F0，固定为概览专属绿，不随主题强调色走
   ========================================================= */

/* 概览专属绿（参考 #3FA98E）：浅色用参考原值，深色用亮薄荷绿保证对比度。
   挂在 .page-home 上（容器是 .page.page-home），KPI 与图表都能取到 */
.page-home {
  --ov-main: #3FA98E;
  --ov-strong: #2C8C74;
  --ov-soft: #E6F5F0;
  --ov-fg: #FFFFFF;
  --ov-ink: #2B3A33;
  --ov-mut: #6B7A72;
  --ov-bg: #FAFCF8;
}
html[data-mode="dark"] .page-home {
  --ov-main: #63C7A6;
  --ov-strong: #8AD8B7;
  --ov-soft: rgba(99, 199, 166, .16);
  --ov-fg: #0E1B15;
  --ov-ink: #E7F2EC;
  --ov-mut: #9DB8AB;
  --ov-bg: #141A17;
}

/* ---------- 画布：整页收进一张 28px 圆角浅绿底卡 ---------- */
.ov-canvas {
  background: var(--ov-bg);
  border: 1px solid color-mix(in srgb, var(--ov-main) 12%, transparent);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(58, 110, 91, .12);
}
.ov-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ov-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ov-plan { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- 顶部头：日期 + 数据分析 + 分段切换 ---------- */
.ov-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ov-date { font-size: 12.5px; color: var(--ov-mut); }
.ov-title { margin-top: 6px; font-size: 24px; line-height: 1.1; font-weight: 600; color: var(--ov-ink); }
.ov-top-right { display: flex; align-items: center; }
.ov-plan-head { display: flex; align-items: center; justify-content: space-between; color: var(--ov-mut); }
.ov-plan-head .ov-sec-title { font-size: 15px; color: var(--ov-ink); }

/* ---------- KPI 行：白卡 24px 圆角 + 绿色柔影 + hover 上浮 ---------- */
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ov-kpi {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--ov-main) 10%, transparent) !important;
  transition: transform 280ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 280ms ease;
}
.ov-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--ov-main) 18%, transparent) !important;
}
.ov-kpi-ic {
  background: var(--ov-soft) !important;
  color: var(--ov-main) !important;
  border-radius: 10px;
}
.ov-kpi-label { font-size: 13px !important; color: var(--ink-2) !important; font-weight: 500; }
.ov-kpi-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ov-kpi-left { min-width: 0; }
.ov-kpi-num { font-size: 32px !important; font-weight: 600; line-height: 1; }
.ov-kpi-unit { font-size: 14px; }
.ov-kpi-note { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 11.5px; color: var(--ov-mut); }
.ov-kpi-note > span { color: var(--ov-mut); }
.ov-kpi-viz { flex: none; display: flex; align-items: center; }
.ov-kpi-viz .ov-spark { width: 56px; height: 28px; }
.ov-rate-ring {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ov-main) calc(var(--p, 0) * 1%), var(--ov-soft) 0);
  display: grid; place-items: center;
}
.ov-rate-ring i { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: block; }

/* ---------- 分段切换：浅绿底 + 白色滑动块 ---------- */
.ov-top-right .seg, .ov-sec-right .seg {
  position: relative; gap: 0; padding: 3px;
  background: var(--ov-soft); border-radius: 12px;
}
.ov-top-right .seg button, .ov-sec-right .seg button {
  width: 44px; padding: 0; justify-content: center;
  height: 30px; border-radius: 9px; font-size: 12px;
}
.ov-seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 44px;
  border-radius: 9px; background: var(--card);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--ov-main) 16%, transparent);
  transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.ov-seg-thumb + button { position: relative; z-index: 1; }

/* ---------- 图表卡：24px 圆角 + 绿色柔影 ---------- */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ov-cell, .ov-pcard {
  border-radius: 24px !important;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--ov-main) 10%, transparent) !important;
}
.ov-cell { padding: 20px 22px; display: flex; flex-direction: column; }
.ov-card-ic {
  background: var(--ov-soft); color: var(--ov-main);
  border-radius: 10px;
}
.ov-card-title { font-size: 15px; color: var(--ov-ink); }

/* 主图颜色：完成/折线/环形/项目完成段统一自然绿 */
.b-done, .k-done { background: var(--ov-main); }
.b-focus { background: var(--ov-main); opacity: .55; }
.ov-ring-fg { stroke: var(--ov-main) !important; }
.ov-path { stroke: var(--ov-main); }
.ov-area { fill: color-mix(in srgb, var(--ov-main) 12%, transparent); }
.ov-dot { border-color: var(--ov-main); }
.ov-dot.is-today { background: var(--ov-main); }
.ov-gauge-fg { stroke: var(--ov-main); }
.ov-hbar-track .is-done, .ov-pulse-bar i { background: var(--ov-main); }
.ov-spark-line { stroke: var(--ov-main) !important; }
.ov-spark-area { fill: color-mix(in srgb, var(--ov-main) 12%, transparent) !important; }
.ov-donut-n { fill: var(--ov-ink); }
.ov-donut-l { fill: var(--ov-mut); }
.ov-legend-list a { grid-template-columns: 9px minmax(0, 1fr) auto; }

/* ---------- 忙碌时间圆环（安排与留白比例） ---------- */
.ov-busy { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 1; min-height: 150px; }
.ov-busy-ring {
  width: 108px; height: 108px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ov-main) calc(var(--p, 0) * 1%), var(--ov-soft) 0);
  display: grid; place-items: center;
}
.ov-busy-ring i {
  width: 84px; height: 84px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.ov-busy-ring b { font-size: 20px; color: var(--ov-ink); font-weight: 600; }
.ov-busy-ring span { font-size: 11px; color: var(--ov-mut); }
.ov-busy-legend { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: var(--ov-mut); }
.ov-busy-legend span { display: flex; align-items: center; gap: 8px; }
.ov-busy-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ov-busy-legend .is-plan { background: var(--ov-main); }
.ov-busy-legend .is-free { background: var(--ov-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ov-main) 40%, transparent); }
.ov-busy-legend b { margin-left: auto; color: var(--ov-ink); font-weight: 500; }

/* ---------- 项目节奏 / 当天安排 / 接下来推进 ---------- */
.ov-pulse { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; flex: 1; justify-content: center; }
.ov-pulse-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 34px; align-items: center; gap: 10px; }
.ov-pulse-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ov-pulse-name:hover { color: var(--ov-main); }
.ov-pulse-bar { height: 6px; border-radius: 4px; background: var(--bg-sunk); overflow: hidden; }
.ov-pulse-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ov-main); }
.ov-pulse b { text-align: right; font-size: 12px; color: var(--ov-ink); }

.ov-count { font-size: 12px; color: var(--ov-mut); }
.ov-day-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ov-day-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(58, 110, 91, .05);
  text-align: left; transition: transform 240ms cubic-bezier(.34,1.56,.64,1), box-shadow 220ms ease;
}
.ov-day-item:hover { transform: translateX(3px); }
.ov-day-time { font-size: 11px; color: var(--ov-mut); font-family: var(--font-mono); flex: none; }
.ov-day-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ov-ink); }
.ov-day-item.is-done .ov-day-name { text-decoration: line-through; color: var(--ink-3); }

.ov-next { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-next-main {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 8px; border-radius: 12px; color: var(--ov-mut);
  transition: background 160ms ease, transform 240ms cubic-bezier(.34,1.56,.64,1);
}
.ov-next-main:hover { background: var(--ov-soft); transform: translateX(3px); color: var(--ov-main); }
.ov-next-name { display: block; font-size: 13px; color: var(--ov-ink); }
.ov-next-meta { display: block; font-size: 11px; margin-top: 2px; }

/* ---------- 特效：柱状生长 / 折线绘制 / spark 绘制 ---------- */
.ov-pair i {
  transform-origin: bottom;
  animation: ovBarIn 460ms cubic-bezier(.34, 1.56, .64, 1) both;
}
.ov-spark-line { stroke-dasharray: 80; stroke-dashoffset: 80; }
.ov-kpi:hover .ov-spark-line,
.ov-kpi:focus-within .ov-spark-line {
  animation: ovSpark 450ms cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.ov-path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ovDraw 700ms cubic-bezier(.34, 1.56, .64, 1) forwards;
}

/* ---------- 交互：领域条 / 项目行 hover ---------- */
.ov-legend-list a { border-radius: 10px; transition: background 160ms ease, transform 240ms cubic-bezier(.34,1.56,.64,1); }
.ov-legend-list a:hover { background: var(--ov-soft); transform: translateX(3px); }
.ov-hbar { border-radius: 12px; transition: transform 240ms cubic-bezier(.34,1.56,.64,1); }
.ov-hbar:hover { transform: translateX(4px); }
.ov-hbar-name:hover { color: var(--ov-main); }

/* ---------- 月历：格子 hover 缩放 + 选中块动画 + 今天呼吸 ---------- */
.ov-cal-grid { gap: 4px; }
.ov-cell-day {
  transition: transform 240ms cubic-bezier(.34, 1.56, .64, 1), background-color 180ms ease;
  border-radius: 8px;
}
.ov-cell-day:hover { transform: scale(1.08); background: var(--ov-soft); z-index: 1; }
.ov-cell-day.is-today {
  background: transparent !important;
  color: var(--ov-main) !important;
  outline: 1px solid var(--ov-main);
  outline-offset: -1px;
  animation: ovPulse 2.5s ease-in-out infinite;
}
.ov-cell-day.is-today:not(.is-sel) .ov-n {
  background: transparent !important;
  color: var(--ov-main) !important;
  width: auto; height: auto; border-radius: 0;
}
.ov-cell-day.is-sel {
  background: var(--ov-main) !important; color: var(--ov-fg) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ov-main) 30%, transparent);
  outline: none;
}
.ov-cell-day.is-sel .ov-n { color: var(--ov-fg); }

/* ---------- 桌面：双栏 + 12 列图表网格 ---------- */
@media (min-width: 761px) {
  .ov-cols { grid-template-columns: minmax(0, 1fr) 264px; }
  .ov-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ov-cell.is-wide { grid-column: span 8; }
  .ov-cell:not(.is-wide) { grid-column: span 4; }
  .ov-busy { min-height: 0; }
}

/* ---------- 手机：KPI 2×2、图表单列、画布收窄 ---------- */
@media (max-width: 760px) {
  .ov-canvas { border-radius: 20px; padding: 16px; }
  .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ov-kpi-num { font-size: 26px !important; }
  .ov-top { align-items: flex-start; flex-direction: column; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ov-kpi, .ov-seg-thumb, .ov-cell-day, .ov-legend-list a,
  .ov-hbar, .ov-day-item, .ov-next-main { transition: none !important; }
  .ov-pair i, .ov-ring, .ov-path, .ov-spark-line,
  .ov-kpi:hover .ov-spark-line, .ov-cell-day.is-today { animation: none !important; }
  .ov-spark-line, .ov-path { stroke-dashoffset: 0; }
}

@keyframes ovBarIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ovDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ovSpark { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes ovPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ov-main) 24%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ov-main) 0%, transparent); }
}

/* ---------- 设置首页「今日」三格 ----------
   和参考的 profile 概览同一套：三块等宽、灰底、等宽数字。 */
.set-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2px 0 var(--s-4); }
.set-stat { padding: 14px 16px; border-radius: 14px; background: var(--bg-sunk); }
.set-stat span { font-size: 12px; color: var(--ink-4); }
.set-stat strong { display: block; margin-top: 4px; font-size: 20px; font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .set-stats { gap: 10px; margin-bottom: var(--s-3); }
  .set-stat { padding: 12px 14px; }
  .set-stat strong { font-size: 18px; }
}

/* =========================================================
   模块页 le-* 版式 · 对齐参考 product.css（概览 / 收件箱 / 设置）
   参考 LAYOUT，app TOKENS：--accent / --progress / --card / --ink…
   这些基础组件要全局可用（手机也会进概览与设置），不塞进桌面媒体查询。
   ========================================================= */

.le-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  min-width: 0;
}
.le-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.le-card-head h3 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.le-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: var(--bg-sunk); padding: 1px 7px; border-radius: 999px; font-weight: 500; }
.le-hint { font-size: 12px; color: var(--ink-3); }
.le-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.le-clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.le-dotmark { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* KPI */
.le-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.le-kpi { display: grid; gap: 2px; text-align: left; color: var(--ink); text-decoration: none; transition: transform 260ms var(--ease), box-shadow 260ms; }
.le-kpi:hover { transform: translateY(-2px); }
.le-kpi span { font-size: 12px; color: var(--ink-3); }
.le-kpi strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.le-kpi small { font-size: 11.5px; color: var(--ink-4); }

/* 布局 */
.le-pg { display: grid; gap: 22px; align-content: start; }
.le-pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.le-pg-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.le-pg-head .le-lead { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.le-lead b { color: var(--ink); }
.le-cols { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); gap: 20px; align-items: start; }

/* 图例 */
.le-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--ink-3); }
.le-legend span { display: inline-flex; align-items: center; gap: 6px; }
.le-legend i { width: 8px; height: 8px; border-radius: 2px; }
.le-legend i.is-line { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--orange); background: var(--card); }
.le-legend.is-list { display: grid; gap: 8px; }
.le-legend.is-list b { margin-left: auto; color: var(--ink); font-weight: 500; }

/* 本周活动柱状图 */
.le-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 190px; }
.le-chart-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 10px; padding: 8px 0 0; outline: none; transition: background 140ms; }
.le-chart-col.is-hover, .le-chart-col:focus-visible { background: var(--bg-sunk); }
.le-chart-bars { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.le-chart-bars i { width: 30%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 2px 2px; transition: height 900ms var(--ease); }
.le-chart-dot { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4px -4px; border-radius: 50%; background: var(--card); border: 2px solid var(--orange); }
.le-chart-col small { font-size: 11px; color: var(--ink-4); padding-bottom: 6px; }
.le-chart-col small.is-today { color: var(--accent); font-weight: 600; }
.le-tooltip { position: absolute; bottom: calc(100% - 12px); left: 50%; transform: translateX(-50%); z-index: 5; display: none; gap: 2px; padding: 8px 10px; font-size: 11.5px; white-space: nowrap; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); }
.le-chart-col:hover .le-tooltip, .le-chart-col:focus-visible .le-tooltip { display: grid; }
.le-tooltip b { color: var(--ink); }
.le-tooltip span { color: var(--ink-3); }

/* 列表行 */
.le-line-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.le-line-item:last-child { border-bottom: 0; }
.le-task-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* 计划与完成 / 专注分布 */
.le-meter { display: grid; gap: 6px; margin-top: 12px; font-size: 12.5px; }
.le-meter > div:first-child { display: flex; justify-content: space-between; color: var(--ink-3); }
.le-meter > div:first-child .le-num { color: var(--ink-2); }
.le-dualbar { position: relative; height: 8px; border-radius: 999px; background: var(--bg-sunk); }
.le-dualbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; transition: width 900ms var(--ease); }
.le-stackbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.le-stackbar.is-tall { height: 16px; margin: 6px 0 14px; }
.le-stackbar i { min-width: 3px; }

/* 生活节奏：心情带 */
.le-moodstrip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.le-moodstrip.is-compact { gap: 4px; }
.le-mood-cell { display: grid; justify-items: center; gap: 4px; }
.le-mood-cell i { width: 100%; aspect-ratio: 1; max-width: 32px; border-radius: 9px; border: 1.5px dashed var(--line); }

/* 收件箱：capture / 操作行 / 步骤 */
.le-capture { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-4); transition: border-color 140ms, box-shadow 140ms; }
.le-capture:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.le-capture input { flex: 1; min-width: 0; height: 36px; background: transparent; outline: none; color: var(--ink); font-size: 14px; border: 0; }
.le-capture input::placeholder { color: var(--ink-4); }
.le-capture.is-large { padding: 10px 10px 10px 18px; }
.le-capture.is-large input { height: 44px; font-size: 16px; }
.le-capture-hints { display: flex; gap: 4px; }
.le-line-actions { display: flex; gap: 6px; flex-shrink: 0; }
.le-steps-list { display: grid; gap: 12px; font-size: 12.5px; color: var(--ink-3); padding-left: 18px; list-style: decimal; margin: 0; }
.le-steps-list b { display: block; color: var(--ink); font-weight: 500; }
.le-icon-btn { position: relative; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink-3); transition: background 140ms, color 140ms; flex-shrink: 0; }
.le-icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.le-icon-btn.is-danger:hover { color: var(--urgent); }

/* 设置：左导航 + 列表行 */
.le-settings { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 32px; align-items: start; }
.le-settings-nav { display: grid; gap: 2px; align-content: start; position: sticky; top: 0; }
.le-nav-item { position: relative; width: 100%; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 9px; color: var(--ink-3); font-size: 13px; text-decoration: none; white-space: nowrap; transition: background 140ms, color 140ms; }
.le-nav-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.le-nav-item.is-active { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.le-nav-item.is-active::before { content: ''; position: absolute; left: -32px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.le-settings h2 { font-size: 20px; font-weight: 600; margin: 0; }
.le-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.le-row:last-child { border-bottom: 0; }
.le-row b { font-weight: 500; font-size: 14px; color: var(--ink); }
.le-row small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.le-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-sunk); }
.le-seg button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); }
.le-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.le-switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 16%, transparent); flex-shrink: 0; }
.le-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform 260ms cubic-bezier(.34, 1.4, .64, 1); }
.le-switch[aria-checked="true"] { background: var(--accent); }
.le-switch[aria-checked="true"]::after { transform: translateX(16px); }
.le-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.le-stat { padding: 16px; border-radius: 14px; background: var(--bg-sunk); }
.le-stat span { font-size: 12px; color: var(--ink-3); }
.le-stat strong { display: block; margin-top: 4px; font-size: 22px; font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* 今天页右栏补件：UP NEXT + 今日回声 */
.le-today-next { padding: 18px; background: linear-gradient(145deg, var(--accent-soft), var(--card)); }
.le-today-next b { display: block; margin-top: 7px; font-size: 16px; font-weight: 600; color: var(--ink); }
.le-today-next p { margin: 4px 0 10px; font-size: 12px; color: var(--ink-3); }
.le-echo { margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--accent-soft); }
.le-echo p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink); font-family: var(--font-echo); }

/* ---------- 手机：KPI 2×2、图表单列、设置隐藏左导航 ---------- */
@media (max-width: 760px) {
  .le-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .le-kpi strong { font-size: 19px; }
  .le-cols { grid-template-columns: minmax(0, 1fr); }
  .le-chart { height: 160px; gap: 4px; }
  .le-settings-nav { display: none; }
  .le-settings { grid-template-columns: minmax(0, 1fr); }
  .le-card { padding: 14px; }
  .le-line-item { flex-wrap: wrap; }
  .le-line-actions { width: 100%; justify-content: flex-end; }
}
