
/* 苹果风格滚动条 - 全局 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.35);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.55); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(128,128,128,0.35) transparent; }
/* 深色主题下滚动条更亮 */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); background-clip: padding-box; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); background-clip: padding-box; }
[data-theme="dark"] * { scrollbar-color: rgba(255,255,255,0.2) transparent; }


  /* ===== 设计令牌 ===== */
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --card: #242426;
    --ink: #F5F5F7;
    --ink-2: #98989D;
    --line: #2E2E30;
    --line-strong: #48484A;
    --accent: #0A84FF;
    --today: #E5E5EA;
    --quarter: #98989D;
    --year: #636366;
    --doing: #48484A;
    --done: #2E2E30;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 5px 16px rgba(0,0,0,.35);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.6);
    --radius: 14px;
    --side-bg: #101012;
    --side-hover: rgba(255,255,255,.05);
    --side-hover-strong: rgba(255,255,255,.08);
    --side-hover-weak: rgba(255,255,255,.04);
    --side-active: rgba(255,255,255,.09);
    --side-chip: rgba(255,255,255,.07);
    --drop-bg: #262628;
    --drop-ring: rgba(255,255,255,.12);
    --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  }

  /* 浅色主题 */
  [data-theme="light"] {
    --bg: #F2F2F7;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --ink: #000000;
    --ink-2: #8E8E93;
    --line: #E5E5EA;
    --line-strong: #C7C7CC;
    --accent: #007AFF;
    --today: #000000;
    --quarter: #8E8E93;
    --year: #AEAEB2;
    --doing: #C7C7CC;
    --done: #E5E5EA;
    --shadow-card: 0 1px 2px rgba(0,0,0,.08), 0 5px 16px rgba(0,0,0,.08);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.12);
    --side-bg: #E9E9EE;
    --side-hover: rgba(0,0,0,.05);
    --side-hover-strong: rgba(0,0,0,.08);
    --side-hover-weak: rgba(0,0,0,.04);
    --side-active: rgba(0,0,0,.09);
    --side-chip: rgba(0,0,0,.06);
    --drop-bg: #E7E7EC;
    --drop-ring: rgba(0,0,0,.14);
  }

  /* 浅色主题：各板块玻璃卡片与组件适配 */
  [data-theme="light"] .profile-head,
  [data-theme="light"] .pcard,
  [data-theme="light"] .lcard,
  [data-theme="light"] .inspire-card,
  [data-theme="light"] .dcard {
    background: rgba(255,255,255,.9);
    border-color: rgba(0,0,0,.08);
  }
  [data-theme="light"] .today-cell,
  [data-theme="light"] .habit-btn,
  [data-theme="light"] .dcard-cell,
  [data-theme="light"] .goal-node,
  [data-theme="light"] .inspire-img {
    background: rgba(0,0,0,.04);
  }
  [data-theme="light"] .inspire-img { border-bottom-color: rgba(0,0,0,.06); }
  [data-theme="light"] .xp-bar,
  [data-theme="light"] .stat-bar,
  [data-theme="light"] .decision-tabs,
  [data-theme="light"] .gd-meta span,
  [data-theme="light"] .outline-doc-item:hover,
  [data-theme="light"] .outline-view-toggle,
  [data-theme="light"] .outline-title-input:focus,
  [data-theme="light"] .outline-view-toggle button:hover,
  [data-theme="light"] .gd-edit-box input,
  [data-theme="light"] .gd-edit-box textarea,
  [data-theme="light"] .gd-cancel,
  [data-theme="light"] .outline-side {
    background: rgba(0,0,0,.05);
  }
  [data-theme="light"] .outline-view-toggle { border-color: rgba(0,0,0,.12); }
  [data-theme="light"] .outline-toolbar,
  [data-theme="light"] .gamedone-card,
  [data-theme="light"] .gd-edit-box {
    background: #fff;
  }
  [data-theme="light"] .stars .st { color: rgba(0,0,0,.2); }
  [data-theme="light"] .widget-shortcut .w-name { color: rgba(0,0,0,.8); }
  [data-theme="light"] .widget-calendar .cal-day { color: #000; }
  [data-theme="light"] .widget-calendar .cal-month { color: rgba(0,0,0,.6); }
  [data-theme="light"] .widget-calendar .cal-lunar { color: rgba(0,0,0,.55); }
  [data-theme="light"] .outline-mind { background: rgba(0,0,0,.04); }
  [data-theme="light"] .mind-node rect { fill: #fff; stroke: rgba(0,0,0,.15); }
  [data-theme="light"] .mind-node.root rect { fill: rgba(10,132,255,.16); stroke: var(--accent); }
  [data-theme="light"] .mind-link { stroke: rgba(0,0,0,.22); }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body { height: 100%; }

  body {
    font-family: var(--font);
    color: var(--ink);
    background:
      radial-gradient(1200px 620px at 82% -12%, rgba(255,255,255,.045), transparent 62%),
      var(--bg);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
  }

  button { font-family: inherit; }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

  /* ===== 顶栏 ===== */
  .app {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 0;
  }

  .view-tools {
    position: fixed;
    top: 14px;
    right: 26px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .view-tools[hidden] { display: none !important; }
  .vt-search {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; padding: 7px 12px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color .15s ease;
  }
  .vt-search:focus-within { border-color: var(--accent); }
  .vt-search svg { color: var(--ink-2); flex: none; }
  .vt-search input { border: none; background: transparent; color: var(--ink); font-size: 13px; font-family: inherit; outline: none; width: 168px; }
  .vt-search input::placeholder { color: var(--ink-2); }
  .vt-theme {
    width: 36px; height: 36px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12); color: var(--ink);
    cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .vt-theme:hover { background: rgba(255,255,255,.13); }
  [data-theme="light"] .vt-search, [data-theme="light"] .vt-theme { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); }
  section.profile, section.life, section.inspire, section.decision, section.goal, section.gamedone, section.experiment { padding-top: 72px !important; }
  [data-theme="light"] .drop-target {
    background: #E7E7EC;
    border-color: var(--line-strong);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.14);
  }
  [data-theme="light"] .card-placeholder {
    background: rgba(0,0,0,.06);
  }
  .side-bk-row { display: flex; gap: 8px; }
  .side-bk-row .side-add { flex: 1; }
  .cmd-palette { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.5); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
  .cmd-palette[hidden] { display: none; }
  .cmd-box { width: 580px; max-width: 100%; background: var(--bg-card, #1c1c1e); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
  .cmd-search-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmd-input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 15px; }
  .cmd-kbd { font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; flex: none; }
  .cmd-list { max-height: 380px; overflow-y: auto; padding: 8px; }
  .cmd-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
  .cmd-item .ci-icon { width: 22px; text-align: center; flex: none; }
  .cmd-item .ci-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cmd-item .ci-type { margin-left: auto; font-size: 11px; color: var(--ink-2); flex: none; }
  .cmd-item.active { background: rgba(255,255,255,.08); }
  .cmd-empty { padding: 20px; text-align: center; color: var(--ink-2); font-size: 13px; }
  [data-theme="light"] .cmd-box { background: #fff; }
  [data-theme="light"] .cmd-item.active { background: rgba(0,0,0,.06); }
  [data-theme="light"] .cmd-kbd { color: rgba(0,0,0,.6); }  .exp-head { display: flex; align-items: center; gap: 14px; padding: 2px 4px 14px; flex-wrap: wrap; }
  .exp-head h2 { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
  .exp-head .exp-sub { font-size: 12px; color: var(--ink-2); }
  .exp-stats { display: flex; gap: 8px; margin-left: auto; }
  .exp-stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 12px; color: var(--ink-2); }
  .exp-stat b { color: var(--ink); font-size: 14px; margin-right: 4px; }
  .exp-add { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
  .exp-add:hover { background: rgba(255,255,255,.12); }
  .exp-dice { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px dashed var(--line-strong); background: none; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
  .exp-dice:hover { color: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); }
  .exp-cats { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 14px; }
  .exp-cat { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12px; cursor: pointer; }
  .exp-cat.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-section { margin-bottom: 18px; }
  .exp-sec-title { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); padding: 0 4px 10px; display: flex; align-items: center; gap: 8px; }
  .exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
  .exp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s; position: relative; }
  .exp-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
  .exp-card .exp-lab { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
  .exp-title { font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
  .exp-hypo { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; overflow-wrap: anywhere; }
  .exp-days { font-size: 12px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
  .exp-bar { height: 5px; background: rgba(255,255,255,.09); border-radius: 999px; overflow: hidden; }
  .exp-fill { height: 100%; background: var(--accent, #0a84ff); border-radius: 999px; transition: width .4s ease; }
  .exp-arrows { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); }
  .exp-arrow-up { color: #34c759; }
  .exp-arrow-down { color: #ff9f0a; }
  .exp-arrow-flat { color: var(--ink-2); }
  .exp-dates { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: auto; }
  .exp-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
  .exp-badge.active { background: rgba(10,132,255,.16); color: #4da3ff; }
  .exp-badge.done { background: rgba(52,199,89,.16); color: #34c759; }
  .exp-badge.terminated { background: rgba(255,159,10,.16); color: #ff9f0a; }
  .exp-badge.paused { background: rgba(255,255,255,.1); color: var(--ink-2); }
  .exp-badge.draft { background: rgba(255,255,255,.1); color: var(--ink-2); }
  .exp-cat-tag { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
  .exp-concl-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
  .exp-concl-row .ec-t { font-size: 13px; font-weight: 600; }
  .exp-concl-row .ec-v { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.55; overflow-wrap: anywhere; }
  .exp-concl-row .ec-v b { color: var(--accent, #0a84ff); }
  .exp-empty { text-align: center; color: var(--ink-2); padding: 40px 0; font-size: 13.5px; }
  .exp-empty .icon { font-size: 34px; margin-bottom: 8px; }
  .exp-create { max-width: 720px; margin: 0 auto; }
  .exp-tpls { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; }
  .exp-tpl { flex: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 12.5px; cursor: pointer; max-width: 200px; }
  .exp-tpl:hover { border-color: var(--accent, #0a84ff); color: var(--accent, #0a84ff); }
  .exp-tpl .tpl-q { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .exp-tpl .tpl-m { font-size: 11px; color: var(--ink-2); }
  .exp-step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
  .exp-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .exp-step-no { width: 30px; height: 30px; border-radius: 9px; background: var(--accent, #0a84ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
  .exp-step-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
  .exp-step-head .st-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
  .exp-input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 13.5px; padding: 10px 12px; margin-bottom: 10px; box-sizing: border-box; }
  textarea.exp-input { resize: vertical; min-height: 64px; line-height: 1.5; }
  .exp-hypo-form { display: flex; flex-direction: column; gap: 0; }
  .exp-hypo-form .h-label { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
  .exp-opts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
  .exp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
  .exp-opt:hover { border-color: var(--line-strong); }
  .exp-opt.on { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.08); }
  .exp-opt .ck { width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
  .exp-opt.on .ck { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); }
  .exp-opt .rd { width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; }
  .exp-opt.on .rd { border: 5px solid var(--accent, #0a84ff); }
  .exp-dur-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .exp-dur { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 13px; cursor: pointer; font-weight: 600; }
  .exp-dur.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-step-actions { display: flex; gap: 10px; margin-top: 16px; }
  .exp-step-actions button { padding: 10px 18px; border-radius: 9px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .exp-next { background: var(--accent, #0a84ff); color: #fff; margin-left: auto; }
  .exp-prev { background: rgba(255,255,255,.1); color: var(--ink); }
  .exp-var-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
  .exp-vtag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
  .exp-vtag.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-detail { max-width: 760px; margin: 0 auto; }
  .exp-detail-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .exp-detail h2 { font-size: 20px; font-weight: 800; margin: 4px 0 2px; line-height: 1.35; }
  .exp-question { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
  .exp-block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
  .exp-block h4 { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--ink-2); margin: 0 0 10px; text-transform: uppercase; }
  .exp-rule { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; gap: 8px; }
  .exp-rule:last-child { border-bottom: none; }
  .exp-rule .rn { color: var(--ink-2); font-size: 11.5px; font-weight: 700; flex: none; width: 20px; }
  .exp-chart { margin-top: 8px; }
  .exp-chart-line { margin-bottom: 12px; }
  .exp-chart-line .cl-h { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; }
  .exp-chart-line .cl-h .delta { font-size: 11px; }
  .exp-chart-line .delta.up { color: #34c759; }
  .exp-chart-line .delta.down { color: #ff9f0a; }
  .exp-chart-line .delta.flat { color: var(--ink-2); }
  .exp-chart svg { width: 100%; height: 86px; display: block; }
  .exp-avg { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .exp-avg .av { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; color: var(--ink-2); }
  .exp-avg .av b { color: var(--ink); font-size: 13px; }
  .exp-record-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: flex-start; }
  .exp-record-row:last-child { border-bottom: none; }
  .exp-record-row .rd-date { color: var(--ink-2); font-size: 11.5px; flex: none; width: 82px; padding-top: 1px; }
  .exp-record-row .rd-body { flex: 1; overflow-wrap: anywhere; line-height: 1.55; }
  .exp-record-row .rd-mood { flex: none; }
  .exp-record-row .rd-note { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
  .exp-record-row .rd-flag { display: inline-block; font-size: 10.5px; color: #ff9f0a; margin-top: 4px; }
  .exp-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .exp-actions button { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .exp-actions button:hover { background: rgba(255,255,255,.12); }
  .exp-actions .primary { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-actions .primary:hover { background: #0a7ae0; }
  .exp-actions .danger { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
  .exp-log-panel { max-width: 560px; margin: 0 auto; }
  .exp-moods { display: flex; gap: 8px; }
  .exp-mood { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: none; font-size: 24px; cursor: pointer; transition: transform .12s, border-color .12s; }
  .exp-mood.on { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.1); transform: scale(1.08); }
  .exp-slider-row { margin: 10px 0; }
  .exp-slider-row .sl-h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
  .exp-slider-row .sl-h b { color: var(--accent, #0a84ff); }
  .exp-slider { width: 100%; accent-color: var(--accent, #0a84ff); }
  .exp-radio-row { display: flex; gap: 14px; font-size: 13px; margin: 8px 0; }
  .exp-radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
  .exp-radio-row input { accent-color: var(--accent, #0a84ff); }
  .exp-midcheck { border-left: 3px solid var(--accent, #0a84ff); }
  .exp-review { max-width: 680px; margin: 0 auto; }
  .exp-review h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
  .exp-stars { display: flex; gap: 4px; }
  .exp-stars .st { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--line-strong); padding: 2px; }
  .exp-stars .st.on { color: #ffd60a; }
  .exp-vs { display: flex; flex-direction: column; gap: 8px; }
  .exp-vs-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
  .exp-vs-row .vs-name { width: 100px; color: var(--ink-2); }
  .exp-vs-row .vs-pre { width: 60px; }
  .exp-vs-row .vs-arrow { color: var(--ink-2); }
  .exp-vs-row .vs-act { width: 60px; font-weight: 700; }
  .exp-vs-row .vs-diff { font-size: 11.5px; }
  .exp-vs-row .vs-diff.up { color: #34c759; }
  .exp-vs-row .vs-diff.down { color: #ff9f0a; }
  .exp-principle { background: rgba(10,132,255,.07); border: 1px solid rgba(10,132,255,.25); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; margin-top: 6px; }
  .exp-principle .pr-tag { font-size: 10.5px; color: var(--accent, #0a84ff); font-weight: 700; letter-spacing: .5px; }
  .exp-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .exp-link-row select { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12.5px; padding: 7px 10px; }
  [data-theme="light"] .exp-add { background: rgba(0,0,0,.05); }
  [data-theme="light"] .exp-add:hover { background: rgba(0,0,0,.1); }
  [data-theme="light"] .exp-input, [data-theme="light"] .exp-link-row select { background: rgba(0,0,0,.04); }
  [data-theme="light"] .exp-bar { background: rgba(0,0,0,.1); }
  [data-theme="light"] .exp-prev { background: rgba(0,0,0,.08); }
  [data-theme="light"] .exp-avg .av { background: rgba(0,0,0,.03); }
  [data-theme="light"] .exp-step-actions .exp-prev { background: rgba(0,0,0,.08); }
  .exp-map { position: relative; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at center, rgba(10,132,255,.06), transparent 65%); margin: 0 auto; max-width: 880px; }
  .exp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .exp-map-me { position: absolute; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--accent, #0a84ff); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 0 6px rgba(10,132,255,.18); }
  .exp-map-me .mm-label { font-size: 9px; font-weight: 700; letter-spacing: .5px; }
  .exp-map-node { position: absolute; transform: translate(-50%, -50%); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; width: 128px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; transition: border-color .15s, transform .15s; }
  .exp-map-node:hover { border-color: var(--accent, #0a84ff); transform: translate(-50%, -50%) scale(1.05); }
  .exp-acc-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .exp-acc-row:last-child { border-bottom: none; }
  .exp-acc-row .an { width: 64px; color: var(--ink-2); }
  .exp-acc-row .av { font-weight: 600; }
  .exp-acc-row .ad { font-size: 12px; }
  .exp-acc-row .ad.up { color: #ff9f0a; }
  .exp-acc-row .ad.down { color: #34c759; }
  .dcard-exp { grid-column: 1 / -1; border: 1px dashed rgba(10,132,255,.35); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--ink); cursor: pointer; line-height: 1.5; background: rgba(10,132,255,.05); }
  .dcard-exp:hover { border-color: var(--accent, #0a84ff); }
  .dcard-exp-tag { font-size: 10.5px; font-weight: 700; color: var(--accent, #0a84ff); letter-spacing: .5px; margin-right: 4px; }
.exp-dice-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .exp-dice-modal[hidden] { display: none; }
  .edm-card { width: min(400px, calc(100vw - 48px)); background: #1c1c1f; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 26px 24px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  [data-theme="light"] .edm-card { background: #f6f6f8; border-color: rgba(0,0,0,.1); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
  .edm-icon { font-size: 34px; margin-bottom: 10px; }
  .edm-label { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--accent, #0a84ff); text-transform: uppercase; margin-bottom: 8px; }
  .edm-q { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink); }
  .edm-p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
  .edm-meta { display: inline-block; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-top: 14px; }
  .edm-actions { display: flex; gap: 10px; margin-top: 22px; }
  .edm-actions button { flex: 1; padding: 11px 0; border-radius: 11px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .edm-cancel { background: rgba(255,255,255,.08); color: var(--ink-2); }
  [data-theme="light"] .edm-cancel { background: rgba(0,0,0,.06); color: var(--ink-2); }
  .edm-switch { background: rgba(255,255,255,.12); color: var(--ink); }
  [data-theme="light"] .edm-switch { background: rgba(0,0,0,.1); color: var(--ink); }
  .edm-ok { background: var(--accent, #0a84ff); color: #fff; }
  .edm-ok:hover { background: #0a7ae0; }
  .topbar[hidden] { display: none !important; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    flex-wrap: wrap;
  }

  .brand { display: flex; align-items: center; gap: 12px; }

  .mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F5F5F7;
    color: #000;
    flex: none;
  }

  .brand h1 { font-size: 20px; font-weight: 700; letter-spacing: .5px; }

  .total {
    font-size: 12.5px;
    color: var(--ink-2);
    background: rgba(255,255,255,.08);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
  }

  .hint { font-size: 13px; color: var(--ink-2); }

  /* 确保 hidden 属性生效，防止 display:flex 覆盖 */
  section[hidden] { display: none !important; }

  /* ===== Personal OS列 ===== */
  .board {
    flex: 1 1 0;
    min-height: 320px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .board[hidden] { display: none; }
  .home[hidden] { display: none; }

  .column {
    position: relative;
    flex: 1 1 0;
    min-width: 200px;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .drop-target {
    background: var(--drop-bg, #262628);
    border-color: var(--line-strong);
    box-shadow: inset 0 0 0 2px var(--drop-ring, rgba(255,255,255,.12));
  }

  .board-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
  }

  .board-group + .board-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1.5px dashed var(--line-strong);
  }

  .col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 12px;
  }

  .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

  .col-head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }

  .count {
    margin-left: auto;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
  }

  .count.bump { animation: bump .32s cubic-bezier(.2,.8,.3,1.2); }

  @keyframes bump {
    0% { transform: scale(1); }
    45% { transform: scale(1.32); }
    100% { transform: scale(1); }
  }

  .card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
  }

  /* ===== 卡片 ===== */
  .card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: var(--shadow-card);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    overflow-y: auto;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  }

  .card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,.42);
    transform: translateY(-1px);
    border-color: #4A4A4D;
  }

  .card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
  }

  .card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; padding-right: 30px; overflow-wrap: anywhere; }

  .card p {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-2);
    overflow-wrap: anywhere;
  }

  .card-time {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
  }

  /* 游戏装修卡片 */
  .game-info {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
  }
  .game-done-btn { margin-top: 6px; width: 100%; border: 1px solid rgba(52,199,89,.4); background: rgba(52,199,89,.12); color: #34c759; font-size: 11px; font-weight: 600; padding: 4px; border-radius: 6px; cursor: pointer; font-family: inherit; }
  .game-done-btn:hover { background: rgba(52,199,89,.25); }
  .game-field {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .game-label {
    font-weight: 600;
    color: var(--ink-1);
    min-width: 36px;
  }
  .game-value {
    color: var(--ink-2);
    word-break: break-all;
  }

  /* 攻略卡片 */
  .guide-info {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
  }
  .guide-field {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .guide-label {
    font-weight: 600;
    color: var(--ink-1);
    min-width: 36px;
  }
  .guide-value {
    color: var(--ink-2);
    word-break: break-all;
  }

  /* 攻略名片徽章 */
  .guide-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border-top: none;
  }
  .guide-avatar {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
  }
  .guide-avatar-txt {
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
  }
  .guide-badge-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .guide-badge-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .guide-badge-meta {
    font-size: 11.5px;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 攻略详情弹窗 */
  .guide-detail-card {
    padding: 0;
    overflow: hidden;
  }
  .guide-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--line);
  }
  .guide-detail-avatar {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
  }
  .guide-detail-avatar-txt {
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(10,132,255,.14);
  }
  .guide-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
  }
  .guide-detail-sub {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 4px;
    line-height: 1.6;
  }
  .guide-detail-body {
    padding: 20px 22px;
    max-height: 62vh;
    overflow-y: auto;
  }
  .guide-detail-row {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .guide-detail-row:last-child { border-bottom: none; }
  .guide-detail-row .gl {
    width: 92px;
    flex: none;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 600;
  }
  .guide-detail-row .gv {
    flex: 1;
    font-size: 13.5px;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-all;
  }
  .guide-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--line);
  }
  .guide-detail-photo {
    max-width: 100%;
    max-height: 260px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
  }

  /* ===== WOOP 目标卡片 ===== */
  .woop-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 6px;
    padding: 10px 11px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
  }
  .woop-row {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .woop-row .wk {
    flex: none;
    width: 22px;
    font-weight: 800;
    color: var(--accent);
  }
  .woop-row .wv {
    flex: 1;
    color: var(--ink);
    word-break: break-word;
  }
  .woop-row.wv-empty { opacity: .45; }

  .woop-detail-card {
    width: min(520px, 92vw);
  }
  .woop-detail-title {
    font-size: 19px;
    margin: 0;
    padding: 20px 22px 2px;
  }
  .woop-detail-sub {
    font-size: 12px;
    color: var(--ink-2);
    padding: 0 22px 4px;
  }
  .woop-detail-body {
    padding: 14px 22px;
    max-height: 62vh;
    overflow-y: auto;
  }
  .woop-block {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .woop-block:last-child { border-bottom: none; }
  .woop-block .wb-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .06em;
    margin-bottom: 5px;
  }
  .woop-block .wb-text {
    font-size: 14px;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
  }
  .woop-block .wb-text.wb-empty {
    color: var(--ink-2);
    opacity: .6;
    font-style: italic;
  }

  /* 攻略头像选择器 */
  .guide-avatar-picker {
    position: relative;
    align-items: center;
    gap: 10px;
  }
  .guide-avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    display: none;
  }
  .guide-avatar-preview.show { display: block; }
  .guide-avatar-drop {
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.4;
  }
  .guide-avatar-picker.dragover {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
    border-radius: 12px;
  }

  /* 卡片缩略图 */
  .card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-top: 10px;
    display: block;
    background: var(--surface);
  }

  /* 弹窗图片选择 */
  .img-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    display: block;
  }

  .img-actions { display: flex; gap: 10px; }

  .btn-small { height: 36px; padding: 0 14px; font-size: 13px; }

  .edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }

  .edit-btn:hover { background: rgba(255,255,255,.09); color: var(--ink); }

  /* 拖动中的卡片 */
  .card.dragging {
    position: fixed;
    z-index: 60;
    pointer-events: none;
    cursor: grabbing;
    box-shadow: var(--shadow-lift);
    transform: rotate(2.5deg) scale(1.045);
    opacity: .98;
    transition: none;
    margin: 0;
  }

  .card.just-dropped { animation: drop-in .3s cubic-bezier(.2,.8,.3,1.15); }

  @keyframes drop-in {
    0% { transform: scale(.96); opacity: .55; }
    65% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
  }

  /* 拖拽落位占位槽 */
  .card-placeholder {
    border: 2px dashed var(--line-strong);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    flex: none;
  }

  /* 空态 */
  .empty {
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-2);
    pointer-events: none;
  }

  /* 添加按钮 */
  .add-btn {
    margin-top: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 11px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
  }

  .add-btn:hover { color: var(--ink); border-color: var(--ink-2); background: rgba(255,255,255,.05); }

  /* ===== 列操作（重命名 / 删除） ===== */
  .col-actions { display: flex; gap: 2px; margin-left: 4px; opacity: 0; transition: opacity .15s ease; }

  .col-head:hover .col-actions { opacity: 1; }

  @media (hover: none) { .col-actions { opacity: 1; } }

  .col-btn {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }

  .col-btn:hover { background: rgba(255,255,255,.09); color: var(--ink); }

  /* ===== 列宽拖拽手柄 ===== */
  .col-resize {
    position: absolute;
    top: 0;
    right: -7px;
    width: 15px;
    height: 100%;
    cursor: col-resize;
    z-index: 6;
    touch-action: none;
  }
  .col-resize::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    background: var(--line-strong);
    opacity: 0;
    transition: opacity .15s ease, background .15s ease;
  }
  .column:hover .col-resize::after,
  .col-resize:hover::after,
  .col-resize:active::after { opacity: 1; }
  .col-resize:hover::after,
  .col-resize:active::after { background: var(--accent); }
  body.resizing { user-select: none !important; }
  body.resizing-col, body.resizing-col * { cursor: col-resize !important; }
  body.resizing-row, body.resizing-row * { cursor: row-resize !important; }
  body.resizing-card, body.resizing-card * { cursor: nwse-resize !important; }

  /* ===== 卡片右下角缩放手柄 ===== */
  .card-resize {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    touch-action: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .15s ease;
  }
  .card:hover .card-resize,
  .card-resize:active { opacity: 1; }
  .card-resize::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink-2);
    border-bottom: 2px solid var(--ink-2);
    border-bottom-right-radius: 2px;
  }
  .card-resize:hover::after,
  .card-resize:active::after { border-color: var(--accent); }

  /* ===== 每列底部高度拖拽条 ===== */
  .col-resize-h {
    flex: none;
    height: 16px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: row-resize;
    touch-action: none;
  }
  .col-resize-h::before {
    content: '';
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--line-strong);
    transition: background .15s ease;
  }
  .col-resize-h:hover::before,
  .col-resize-h:active::before { background: var(--accent); }

  /* ===== 添加列 ===== */
  .add-col {
    flex: 0 0 240px;
    min-height: 130px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
  }

  .add-col:hover { color: var(--ink); border-color: var(--ink-2); background: rgba(255,255,255,.03); }

  /* ===== 弹窗 ===== */
  dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(440px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--surface);
    box-shadow: 0 24px 64px rgba(30,27,20,.28);
    color: var(--ink);
  }

  dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }

  .dlg-body { padding: 22px 24px 20px; }

  .dlg-body h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

  .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }

  .field label { font-size: 13px; font-weight: 600; color: var(--ink); }

  .field input,
  .field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .field input:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10,132,255,.25);
  }

  .field input { height: 44px; }

  /* 密码显示/隐藏 */
  .password-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .password-wrap input {
    padding-right: 40px;
  }
  .pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    border-radius: 7px;
    transition: color .15s ease;
  }
  .pwd-toggle:hover { color: var(--ink); }
  .pwd-toggle.on { color: var(--accent); }

  .dlg-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

  .dlg-tip {
    font-size: 12.5px;
    color: var(--ink-2);
    margin: -6px 0 14px;
    line-height: 1.5;
  }

  /* 项目锁定遮罩 */
  .proj-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .proj-lock-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-lift);
    text-align: center;
  }
  .proj-lock-card .lock-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(10,132,255,.14);
    color: var(--accent);
  }
  .proj-lock-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .proj-lock-card p {
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 18px;
  }
  .proj-lock-card input {
    width: 100%;
    height: 44px;
    font-size: 14px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .15s ease;
  }
  .proj-lock-card input:focus {
    border-color: var(--accent);
  }
  .proj-lock-card .lock-err {
    font-size: 12.5px;
    color: #FF453A;
    min-height: 18px;
    margin-bottom: 10px;
  }
  .proj-lock-card .btn { width: 100%; }

  .btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
  }

  .btn:hover { border-color: var(--line-strong); }

  .btn:active { transform: translateY(1px); }

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

  .btn.primary:hover { background: #3395FF; }

  .btn.danger {
    margin-right: auto;
    color: #FF453A;
    border-color: rgba(255,69,58,.4);
    background: rgba(255,69,58,.12);
  }

  .btn.danger:hover { background: rgba(255,69,58,.2); border-color: rgba(255,69,58,.55); }

  /* ===== 布局：可收纳侧边栏 ===== */
  .layout { display: flex; height: 100vh; overflow: hidden; }

  .sidebar {
    width: 268px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--side-bg);
    border-right: 1px solid var(--line);
    transition: width .22s ease;
    overflow: hidden;
  }

  .sidebar.collapsed { width: 66px; }

  .side-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px 14px;
  }

  .side-title { font-size: 15px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }

  .side-toggle {
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }

  .side-toggle:hover { background: var(--side-hover-strong); color: var(--ink); }

  .side-scroll { flex: 1; overflow-y: auto; padding: 6px 10px 20px; display: flex; flex-direction: column; gap: 22px; }

  .side-section { display: flex; flex-direction: column; gap: 8px; }

  .side-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); text-transform: uppercase; padding: 0 6px; white-space: nowrap; }

  .proj-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    color: var(--ink-2);
    transition: background .14s ease, color .14s ease;
    white-space: nowrap;
  }

  .proj-item:hover { background: var(--side-hover); color: var(--ink); }

  .proj-item.active { background: var(--side-active); color: var(--ink); }

  .proj-item.dragging { opacity: 0.5; }

  .proj-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

  .proj-item:not(.active) .proj-dot { background: var(--line-strong); }

  .proj-name { flex: 1; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

  .proj-edit-input {
    width: 100%;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--card);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    padding: 2px 6px;
    outline: none;
  }

  .proj-del {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    opacity: 0;
    transition: opacity .14s ease, background .14s ease, color .14s ease;
  }

  .proj-item:hover .proj-del { opacity: 1; }

  @media (hover: none) { .proj-del { opacity: 1; } }

  .proj-del:hover { background: rgba(255,69,58,.16); color: #FF453A; }

  /* 项目锁按钮 */
  .proj-lock-btn {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    opacity: 0;
    flex: none;
    transition: opacity .14s ease, background .14s ease, color .14s ease;
  }
  .proj-item:hover .proj-lock-btn { opacity: 1; }
  @media (hover: none) { .proj-lock-btn { opacity: 1; } }
  .proj-lock-btn:hover { background: rgba(10,132,255,.16); color: var(--accent); }
  .proj-lock-ico {
    flex: none;
    color: var(--accent);
    opacity: .85;
  }
  .sidebar.collapsed .proj-lock-btn { display: none; }
  .sidebar.collapsed .proj-lock-ico { display: none; }

  .side-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
  }

  .side-add:hover { color: var(--ink); border-color: var(--ink-2); background: var(--side-hover-weak); }

  .col-list { display: flex; flex-direction: column; gap: 2px; }

  .col-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
  }

  .col-item .dot { width: 8px; height: 8px; }

  .colitem-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }

  .colitem-count { font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--side-chip); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }

  /* 收起时隐藏文字 */
  .sidebar.collapsed .txt { display: none; }
  .sidebar.collapsed .side-scroll { gap: 16px; }
  .sidebar.collapsed .side-add { padding: 8px; }
  .sidebar.collapsed .proj-item { justify-content: center; padding: 9px 0; }
  .sidebar.collapsed .proj-del { display: none; }
  .sidebar.collapsed .side-top { justify-content: center; padding: 18px 0 14px; }
  .sidebar.collapsed .side-toggle { margin-left: 0; }
  .sidebar.collapsed .mark { display: none; }

  .main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; height: 100vh; overflow-y: auto; overflow-x: hidden; }

  .menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    flex: none;
  }

  .theme-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    flex: none;
  }

  .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--ink-2);
    flex: 1;
    max-width: 300px;
  }
  .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    outline: none;
  }
  .search-box input::placeholder {
    color: var(--ink-2);
  }

  .side-backdrop { display: none; }

  /* ===== 侧边栏导航（首页 / Personal OS） ===== */
  .nav-list { display: flex; flex-direction: column; gap: 2px; }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
  }

  .nav-item:hover { background: var(--side-hover); color: var(--ink); }

  .nav-item.active { background: rgba(10,132,255,.16); color: var(--ink); }

  .nav-item svg { flex: none; }

  /* ===== 首页视图（右侧主区域，左侧边栏不动；极简，只有图标） ===== */
  .home {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 6px 30px;
  }

  .home-edit-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink-2);
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }
  .home-edit-btn:hover { color: var(--ink); border-color: var(--line-strong); }
  .home-edit-btn.on { color: var(--accent); border-color: var(--accent); background: rgba(10,132,255,.12); }

  /* ===== 商品级首页 Hero ===== */
  .home-theme-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 6;
    transition: transform .15s ease, background .2s ease;
  }
  .home-theme-btn:hover { background: rgba(255,255,255,.14); transform: scale(1.05); }
  .home-theme-btn:active { transform: scale(.94); }
  .ht-sun, .ht-moon { display: none; }
  [data-theme="dark"] .ht-sun { display: block; }
  [data-theme="dark"] .ht-moon { display: none; }
  [data-theme="light"] .home-theme-btn { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: #1c1c1e; }
  [data-theme="light"] .home-theme-btn:hover { background: rgba(0,0,0,.09); }
  [data-theme="light"] .ht-moon { display: block; }
  [data-theme="light"] .ht-sun { display: none; }
  .home-hero {
    position: relative;
    border-radius: 28px;
    padding: 32px 34px;
    margin: 0 2px 18px;
    background:
      radial-gradient(1100px 400px at 12% -15%, rgba(10,132,255,.18), transparent 60%),
      radial-gradient(900px 360px at 92% -25%, rgba(120,90,240,.15), transparent 55%),
      rgba(28,28,30,.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 42%);
    pointer-events: none;
  }
  .hero-left { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .hero-time-wrap { display: flex; align-items: baseline; gap: 12px; }
  .hero-time {
    font-size: clamp(54px, 6.5vw, 88px);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .hero-sec {
    font-size: 19px;
    font-weight: 300;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
  }
  .hero-date { font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
  .hero-right { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; text-align: right; }
  .hero-greet { font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
  .hero-sub { font-size: 13px; color: var(--ink-2); max-width: 280px; line-height: 1.65; }

  /* 快捷入口 Dock */
  /* ===== 首页信息面板（融合版） ===== */
  .home-insight { padding: 0 2px 18px; display: flex; flex-direction: column; gap: 14px; }
  .home-goals { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 16px; }
  .hg-head { display: flex; align-items: center; justify-content: space-between; }
  .hg-title { font-size: 18px; font-weight: 700; letter-spacing: .4px; }
  .hg-phase { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--ink-2); }
  .hg-focus { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
  .hg-list { display: flex; flex-direction: column; gap: 13px; margin-top: 15px; }
  .hg-item { display: flex; align-items: center; gap: 10px; }
  .hg-icon { font-size: 16px; width: 22px; text-align: center; flex: none; }
  .hg-label { font-size: 13px; font-weight: 600; width: 42px; flex: none; }
  .hg-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
  .hg-fill { height: 100%; border-radius: 999px; background: var(--accent, #0a84ff); transition: width .5s cubic-bezier(.2,.8,.3,1); }
  .hg-val { font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: text; border-bottom: 1px dashed transparent; min-width: 30px; text-align: right; }
  .hg-val:hover { border-bottom-color: var(--line-strong); }
  .hg-sep { color: var(--ink-2); font-size: 12px; }
  .hg-unit { font-size: 12px; color: var(--ink-2); flex: none; }
  .hg-input { width: 76px; background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 12.5px; padding: 3px 6px; }
  [data-theme="light"] .home-goals { background: #fff; }
  [data-theme="light"] .hg-phase { background: rgba(0,0,0,.06); }
  [data-theme="light"] .hg-bar { background: rgba(0,0,0,.08); }
  [data-theme="light"] .hg-input { background: #fff; }
  .hi-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .hi-stat {
    position: relative;
    border-radius: 20px;
    padding: 16px 18px 14px;
    background: rgba(28,28,30,.55);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hi-stat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); background: rgba(28,28,30,.72); }
  .hi-stat .hs-top { display: flex; align-items: center; justify-content: space-between; }
  .hi-stat .hs-icon {
    width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: rgba(10,132,255,.13); color: var(--accent);
  }
  .hi-stat .hs-icon svg { width: 16px; height: 16px; }
  .hi-stat .hs-name { font-size: 12px; color: var(--ink-2); }
  .hi-stat .hs-value { font-size: 30px; font-weight: 200; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
  .hi-stat .hs-value em { font-style: normal; font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 2px; }
  .hi-stat .hs-sub { font-size: 11.5px; color: var(--ink-2); }
  .hi-stat .hs-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 2px; }
  .hi-stat .hs-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #7aa2ff); }
  .hi-stat.hs-green .hs-icon { background: rgba(52,199,89,.13); color: #34c759; }
  .hi-stat.hs-green .hs-bar i { background: linear-gradient(90deg, #34c759, #6ee7b7); }
  .hi-stat.hs-amber .hs-icon { background: rgba(255,159,10,.13); color: #ff9f0a; }
  .hi-stat.hs-amber .hs-bar i { background: linear-gradient(90deg, #ff9f0a, #fcd34d); }
  .hi-stat.hs-violet .hs-icon { background: rgba(167,139,250,.14); color: #a78bfa; }
  .hi-stat.hs-violet .hs-bar i { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
  .hi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .hi-stack { display: flex; flex-direction: column; gap: 12px; }
  .hi-card {
    border-radius: 20px;
    padding: 16px 18px;
    background: rgba(28,28,30,.55);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .hi-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
  .hi-card-head svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
  .hi-card-title { font-size: 14px; font-weight: 600; color: var(--ink); }
  .hi-badge { margin-left: auto; font-size: 11px; color: var(--accent); background: rgba(10,132,255,.1); padding: 2px 9px; border-radius: 20px; }
  .hi-todo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 6px; border-radius: 10px;
    cursor: pointer; transition: background .15s ease;
  }
  .hi-todo-item:hover { background: rgba(255,255,255,.05); }
  .hi-todo-check {
    width: 18px; height: 18px; flex: 0 0 18px; border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,.22);
    display: grid; place-items: center; padding: 0;
    background: transparent;
    transition: border-color .18s ease;
  }
  .hi-todo-check svg { width: 10px; height: 10px; stroke: #0a0c12; stroke-width: 3.5; fill: none; opacity: 0; transform: scale(.5); transition: all .18s ease; }
  .hi-todo-item:hover .hi-todo-check { border-color: var(--accent); }
  .hi-todo-text { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hi-todo-tag { font-size: 10.5px; color: var(--ink-2); background: rgba(255,255,255,.06); padding: 1.5px 8px; border-radius: 20px; flex: none; }
  .hi-empty { padding: 14px 6px; font-size: 12.5px; color: var(--ink-2); }
  .hi-feed-item { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
  .hi-feed-item:last-child { border-bottom: none; }
  .hi-feed-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
  .hi-feed-tag { font-size: 10px; padding: 1px 8px; border-radius: 20px; background: rgba(10,132,255,.1); color: var(--accent); }
  .hi-feed-tag.f-green { background: rgba(52,199,89,.1); color: #34c759; }
  .hi-feed-tag.f-amber { background: rgba(255,159,10,.1); color: #ff9f0a; }
  .hi-feed-time { margin-left: auto; font-size: 10.5px; color: var(--ink-2); }
  .hi-feed-title { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
  .hi-feed-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; margin-top: 2px; }
  [data-theme="light"] .hi-stat, [data-theme="light"] .hi-card { background: rgba(255,255,255,.75); border-color: rgba(0,0,0,.08); }
  [data-theme="light"] .hi-todo-item:hover { background: rgba(0,0,0,.04); }
  [data-theme="light"] .hi-todo-check { border-color: rgba(0,0,0,.25); }
  @media (max-width: 1200px) { .hi-stats { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 860px) { .hi-cols { grid-template-columns: 1fr; } }

  .home-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px 2px 18px;
  }
  .dock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(28,28,30,.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  }
  .dock-item svg { width: 16px; height: 16px; flex: none; }
  .dock-item:hover {
    color: var(--ink);
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    transform: translateY(-1px);
  }
  .dock-item.active {
    color: var(--accent);
    border-color: rgba(10,132,255,.45);
    background: rgba(10,132,255,.13);
  }

  [data-theme="light"] .home-hero {
    background:
      radial-gradient(1100px 400px at 12% -15%, rgba(10,132,255,.10), transparent 60%),
      radial-gradient(900px 360px at 92% -25%, rgba(120,90,240,.08), transparent 55%),
      rgba(255,255,255,.72);
    border-color: rgba(0,0,0,.08);
  }
  [data-theme="light"] .dock-item {
    background: rgba(255,255,255,.8);
    border-color: rgba(0,0,0,.09);
  }
  [data-theme="light"] .dock-item:hover { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.14); }

  @media (max-width: 860px) {
    .home-hero { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
    .hero-right { align-items: flex-start; text-align: left; }
    .hero-sub { text-align: left; }
    .hero-time { font-size: 58px; }
  }

  .home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: 120px;
    gap: 14px;
    padding-top: 52px;
  }

  /* ===== 苹果风格小组件 ===== */
  .widget {
    position: relative;
    border-radius: 20px;
    background: rgba(28, 28, 30, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .widget.editing { cursor: default; border-color: rgba(255,255,255,0.18); }
  .widget.editing:hover { transform: none; box-shadow: none; }

  /* ===== 个人信息视图 ===== */
  .profile {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 8px 40px;
  }

  .profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(28,28,30,.72);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 16px;
  }
  .profile-avatar {
    width: 66px;
    height: 66px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10,132,255,.16);
    color: var(--accent);
    font-size: 26px;
    font-weight: 700;
    overflow: hidden;
  }
  .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-hero-name { font-size: 21px; font-weight: 700; color: var(--ink); }
  .profile-hero-sub { font-size: 13px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }
  .profile-actions { margin-left: auto; display: flex; gap: 8px; }

  .pcard {
    border-radius: 18px;
    background: rgba(28,28,30,.72);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 20px;
    margin-bottom: 16px;

  }
  .pcard-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;

  }
  .pcard-title svg { color: var(--accent); }

  .pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 16px;

  }
  .pcell {
    display: flex;
    flex-direction: column;
    gap: 3px;

  }
  .pcell-label {
    font-size: 11.5px;
    color: var(--ink-2);

  }
  .pcell-val {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;

  }

  .ptags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

  }
  .ptag {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(10,132,255,.14);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;

  }

  .ptext {
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.7;
    white-space: pre-wrap;

  }

  .ptimeline {
    display: flex;
    flex-direction: column;

  }
  .ptimeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 16px;

  }
  .ptimeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: var(--line);

  }
  .ptimeline-item::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);

  }
  .ptimeline-period {
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 600;

  }
  .ptimeline-title {
    font-size: 14px;
    color: var(--ink);
    font-weight: 700;
    margin: 2px 0;

  }
  .ptimeline-desc {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.6;
    white-space: pre-wrap;

  }

  /* 个人信息编辑表单 */
  .pform {

  }
  .pform-section {

  }
  .pform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;

  }
  .pform-field {
    display: flex;
    flex-direction: column;
    gap: 6px;

  }
  .pform-field label {
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 600;

  }
  .pform-field input, .pform-field textarea, .pform-field select {
    width: 100%;
    font-size: 13.5px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
    font-family: inherit;
    transition: border-color .15s ease;

  }
  .pform-field textarea { min-height: 64px; resize: vertical; line-height: 1.6; }
  .pform-field input:focus, .pform-field textarea:focus, .pform-field select:focus { border-color: var(--accent); }
  .pform-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
  .pform-full { grid-column: 1 / -1; }

  .pempty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 14px;
    color: var(--ink-2);

  }
  .pempty .big { font-size: 40px; }
  .pempty p { font-size: 14px; }
  /* ===== 人生仪表盘 ===== */
  .life {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 8px 40px;
  }
  .life-view { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

  .lcard {
    border-radius: 18px;
    background: rgba(28,28,30,.72);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 20px;
  }
  .lcard-title {
    font-size: 14px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  }
  .lcard-title svg { color: var(--accent); }
  .lcard-title .lsub { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-2); }

  /* 等级卡 */
  .level-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  .level-badge {
    width: 92px; height: 92px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, rgba(10,132,255,.35), rgba(10,132,255,.08) 70%);
    border: 1px solid rgba(10,132,255,.35);
  }
  .level-badge .lv-num { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1; }
  .level-badge .lv-tag { font-size: 10px; color: var(--ink-2); text-align: center; margin-top: 2px; }
  .level-main { flex: 1; min-width: 200px; }
  .level-name { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
  .level-xp { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
  .xp-bar {
    height: 10px; border-radius: 999px; background: rgba(255,255,255,.08);
    overflow: hidden; position: relative;
  }
  .xp-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #5AC8FA);
    transition: width .5s cubic-bezier(.2,.8,.3,1);
  }
  .level-next { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }

  /* 今日状态 */
  .today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .today-cell {
    border-radius: 14px; padding: 12px 13px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 5px;
  }
  .today-cell .t-label { font-size: 11px; color: var(--ink-2); font-weight: 600; }
  .today-cell .t-val { font-size: 16px; font-weight: 700; color: var(--ink); }
  .today-cell .t-val small { font-size: 11px; font-weight: 500; color: var(--ink-2); }
  .stars { display: flex; gap: 3px; }
  .stars .st { color: rgba(255,255,255,.15); font-size: 14px; }
  .stars .st.on { color: #FFD60A; }
  .today-cell.ok .t-val { color: #30D158; }
  .today-cell.no .t-val { color: var(--ink-2); }

  /* 属性系统 */
  .stat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
  .stat-row:last-child { margin-bottom: 0; }
  .stat-name { width: 62px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--ink); }
  .stat-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
  .stat-fill { height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.3,1); }
  .stat-pct { width: 40px; flex: none; font-size: 11.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

  /* 行为记录 */
  .habit-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .habit-btn {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,.04); color: var(--ink);
    font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer;
    transition: background .14s ease, border-color .14s ease, transform .1s ease;
  }
  .habit-btn:hover { background: rgba(10,132,255,.16); border-color: var(--accent); }
  .habit-btn:active { transform: scale(.96); }
  .habit-btn .hb { color: var(--ink-2); font-weight: 500; }
  .habit-feedback {
    margin-top: 10px; font-size: 12.5px; color: var(--accent); min-height: 18px;
    transition: opacity .2s ease;
  }

  /* 时间线 */
  .life-timeline { display: flex; flex-direction: column; gap: 0; }
  .lt-item { position: relative; padding-left: 22px; padding-bottom: 16px; }
  .lt-item:not(:last-child)::before {
    content: ''; position: absolute; left: 6px; top: 16px; bottom: 0;
    width: 2px; background: var(--line);
  }
  .lt-item::after {
    content: ''; position: absolute; left: 2px; top: 7px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  }
  .lt-date { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
  .lt-title { font-size: 14px; color: var(--ink); font-weight: 700; margin: 2px 0; }
  .lt-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
  .lt-del {
    margin-left: 8px; border: none; background: transparent; color: var(--ink-2);
    cursor: pointer; font-size: 12px; opacity: .6; padding: 2px 4px; border-radius: 6px;
  }
  .lt-del:hover { opacity: 1; color: #FF453A; background: rgba(255,69,58,.12); }
  .lt-empty { font-size: 13px; color: var(--ink-2); padding: 16px 0; text-align: center; }
  /* ===== 灵感库 ===== */
  .inspire {
    position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 22px 8px 40px;
  }
  .inspire-view { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .inspire-toolbar { display: flex; align-items: center; gap: 10px; }
  .inspire-toolbar .it-title { font-size: 18px; font-weight: 800; color: var(--ink); }
  .inspire-toolbar .it-sub { font-size: 12px; color: var(--ink-2); }
  .inspire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .inspire-card {
    border-radius: 16px; background: rgba(28,28,30,.72); border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, border-color .15s ease;
  }
  .inspire-card:hover { transform: translateY(-2px); border-color: rgba(10,132,255,.4); }
  .inspire-img { width: 100%; height: 130px; object-fit: cover; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.06); }
  .inspire-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .inspire-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
  .inspire-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
  .inspire-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; }
  .inspire-tag { padding: 3px 9px; border-radius: 999px; background: rgba(10,132,255,.14); color: var(--accent); font-weight: 600; }
  .inspire-del {
    margin-left: auto; border: none; background: transparent; color: var(--ink-2); cursor: pointer;
    font-size: 13px; opacity: .6; padding: 3px 6px; border-radius: 6px;
  }
  .inspire-del:hover { opacity: 1; color: #FF453A; background: rgba(255,69,58,.12); }
  .inspire-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 12px; color: var(--ink-2); font-size: 14px; text-align: center; padding: 0 20px; }

  /* ===== 决策系统 ===== */
  .decision { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 22px 8px 40px; }
  .decision-view { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
  .decision-toolbar { display: flex; align-items: center; gap: 10px; }
  .decision-toolbar .dt-title { font-size: 18px; font-weight: 800; color: var(--ink); }
  .decision-toolbar .dt-sub { font-size: 12px; color: var(--ink-2); }
  .dcard {
    border-radius: 16px; background: rgba(28,28,30,.72); border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  }
  .dcard.due { border-color: rgba(255,69,58,.45); }
  .dcard-head { display: flex; align-items: center; gap: 12px; }
  .dcard-q { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; line-height: 1.45; }
  .dcard-due-badge {
    flex: none; font-size: 11px; font-weight: 700; color: #FF453A;
    background: rgba(255,69,58,.14); padding: 4px 10px; border-radius: 999px;
  }
  .dcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dcard-cell { border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
  .dcard-cell .dc-label { font-size: 11px; color: var(--ink-2); font-weight: 700; letter-spacing: .2px; margin-bottom: 5px; }
  .dcard-cell .dc-val { font-size: 12.5px; color: var(--ink); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
  .dcard-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
  .dcard-date { font-size: 11.5px; color: var(--ink-2); }
  .dcard-state { flex: none; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
  .dcard-state.done { color: #30D158; background: rgba(48,209,88,.14); }
  .dcard-state.pending { color: var(--ink-2); background: rgba(120,120,128,.16); }
  .dcard-btn {
    border: none; background: transparent; color: var(--accent); cursor: pointer;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  }
  .dcard-btn:hover { background: rgba(10,132,255,.12); }
  .dcard-del { margin-left: auto; color: var(--ink-2); opacity: .6; }
  .dcard-del:hover { opacity: 1; color: #FF453A; background: rgba(255,69,58,.12); }
  .decision-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 12px; color: var(--ink-2); font-size: 14px; text-align: center; padding: 0 20px; }
  .decision-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.05); border-radius: 10px; padding: 3px; margin-bottom: 4px; }
  .decision-tabs button {
    border: none; background: transparent; color: var(--ink-2); cursor: pointer;
    font-size: 12.5px; font-weight: 600; padding: 6px 16px; border-radius: 8px; font-family: inherit;
  }
  .decision-tabs button.active { background: var(--accent); color: #fff; }
  .decision-type-tag {
    flex: none; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
    margin-right: 6px; align-self: center;
  }
  .decision-type-tag.consume { background: rgba(152,152,159,.16); color: #98989F; }
  .decision-type-tag.life { background: rgba(10,132,255,.16); color: var(--accent); }
  [data-theme="light"] .decision-type-tag.consume { background: rgba(0,0,0,.06); color: #6B7280; }
  [data-theme="light"] .decision-type-tag.life { background: rgba(10,132,255,.12); color: #0A6ED8; }

  /* 复盘提醒弹窗 */
  .review-banner {
    border-radius: 14px; padding: 14px 16px; background: rgba(255,69,58,.1);
    border: 1px solid rgba(255,69,58,.35); color: var(--ink);
  }
  .review-banner .rb-title { font-size: 13px; font-weight: 700; color: #FF453A; margin-bottom: 6px; }
  .review-banner .rb-q { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
  .review-banner .rb-act { display: flex; gap: 8px; }
  .review-banner .rb-btn {
    border: 1px solid rgba(255,69,58,.4); background: transparent; color: #FF453A;
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-family: inherit;
  }
  .review-banner .rb-btn:hover { background: rgba(255,69,58,.12); }
  .review-banner .rb-btn.done { color: #30D158; border-color: rgba(48,209,88,.4); }

  /* ===== 目标引擎 ===== */
  .goal { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 22px 8px 40px; }
  .goal-view { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .goal-toolbar { display: flex; align-items: center; gap: 10px; }
  .goal-toolbar .gt-title { font-size: 18px; font-weight: 800; color: var(--ink); }
  .goal-toolbar .gt-sub { font-size: 12px; color: var(--ink-2); }
  .goal-level { margin-bottom: 12px; }
  .goal-level-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .goal-level-badge {
    flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(10,132,255,.16); color: var(--accent);
  }
  .goal-level-title { font-size: 15px; font-weight: 800; color: var(--ink); }
  .goal-level-add {
    margin-left: auto; border: none; background: transparent; color: var(--ink-2);
    cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  }
  .goal-level-add:hover { color: var(--accent); background: rgba(10,132,255,.1); }
  .goal-tree { display: flex; flex-direction: column; gap: 0; }
  .goal-node {
    border-radius: 12px; padding: 10px 14px; margin-bottom: 6px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
  }
  .goal-node.done { opacity: .55; }
  .goal-node.done .goal-text { text-decoration: line-through; }
  .goal-check {
    flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong);
    display: grid; place-items: center; cursor: pointer; background: transparent; color: transparent;
    font-size: 12px; transition: all .15s ease; padding: 0;
  }
  .goal-check:hover { border-color: var(--accent); }
  .goal-check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .goal-text { flex: 1; font-size: 13.5px; color: var(--ink); line-height: 1.5; word-break: break-word; }
  .goal-node .goal-child-text { font-size: 11.5px; color: var(--ink-2); }
  .goal-del {
    flex: none; border: none; background: transparent; color: var(--ink-2); cursor: pointer;
    font-size: 12px; opacity: .55; padding: 3px 6px; border-radius: 6px;
  }
  .goal-del:hover { opacity: 1; color: #FF453A; background: rgba(255,69,58,.12); }
  .goal-children { margin-left: 20px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 0; }
  .goal-empty { font-size: 13px; color: var(--ink-2); padding: 10px 0; text-align: center; opacity: .7; }
  /* ===== 笔记 / 大纲（幕布式） ===== */
  .outline { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; }
  .outline-view { flex: 1; display: flex; min-height: 0; }
  .outline-side {
    width: 200px; flex: none; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; background: rgba(255,255,255,.02);
  }
  .outline-side-head {
    padding: 14px 12px 10px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--line);
  }
  .outline-side-head .osh-title { font-size: 14px; font-weight: 800; color: var(--ink); }
  .outline-side-head .osh-add {
    margin-left: auto; border: none; background: transparent; color: var(--ink-2);
    cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 8px; border-radius: 6px;
  }
  .outline-side-head .osh-add:hover { color: var(--accent); background: rgba(10,132,255,.1); }
  .outline-doc-list { flex: 1; overflow-y: auto; padding: 6px; }
  .outline-doc-item {
    display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px;
    cursor: pointer; font-size: 13px; color: var(--ink-2); margin-bottom: 2px;
    transition: background .12s ease;
  }
  .outline-doc-item:hover { background: rgba(255,255,255,.05); color: var(--ink); }
  .outline-doc-item.active { background: rgba(10,132,255,.16); color: var(--accent); font-weight: 600; }
  .outline-doc-item .odi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .outline-doc-item .odi-del {
    flex: none; border: none; background: transparent; color: var(--ink-2); cursor: pointer;
    font-size: 11px; opacity: 0; padding: 2px 4px; border-radius: 4px;
  }
  .outline-doc-item:hover .odi-del { opacity: .7; }
  .outline-doc-item .odi-del:hover { opacity: 1; color: #FF453A; background: rgba(255,69,58,.12); }
  .gamedone { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
  .gamedone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  .gamedone-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
  .gamedone-head .count { font-size: 13px; color: var(--ink-2); background: var(--side-hover); padding: 2px 10px; border-radius: 10px; }
  .gamedone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .gamedone-card { background: var(--bg-card, #1c1c1e); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  .gamedone-card .gd-title { font-size: 15px; font-weight: 700; margin: 0; }
  .gamedone-card .gd-meta { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; }
  .gamedone-card .gd-meta span { background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 6px; }
  .gamedone-card .gd-slider { position: relative; margin-top: 10px; border-radius: 8px; }
  .gamedone-card .gd-main-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
  .gd-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; opacity: .85; transition: opacity .15s; padding: 0; }
  .gd-arr:hover { opacity: 1; background: rgba(0,0,0,.65); }
  .gd-prev { left: 8px; }
  .gd-next { right: 8px; }
  .gd-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
  .gd-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s; }
  .gd-dot.on { background: #fff; }
  .gd-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
  .gd-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; object-fit: contain; box-shadow: 0 12px 48px rgba(0,0,0,.6); }
  .gdl-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; display: grid; place-items: center; z-index: 2; }
  .gdl-btn:hover { background: rgba(255,255,255,.28); }
  .gdl-close { top: 18px; right: 18px; }
  .gdl-prev { left: 18px; top: 50%; transform: translateY(-50%); }
  .gdl-next { right: 18px; top: 50%; transform: translateY(-50%); }
  .gdl-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; }
  .gamedone-card .gd-bili { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #00a1d6; text-decoration: none; word-break: break-all; }
  .gamedone-card .gd-bili:hover { text-decoration: underline; }
  .gamedone-card .gd-actions { display: flex; gap: 8px; margin-top: auto; }
  .gamedone-card .gd-btn { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12px; padding: 6px; border-radius: 6px; cursor: pointer; font-family: inherit; }
  .gamedone-card .gd-btn:hover { background: rgba(255,255,255,.06); color: var(--ink); }
  .gamedone-card .gd-btn.danger:hover { color: #ff453a; border-color: rgba(255,69,58,.4); }
  .gamedone-empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
  .gamedone-empty .icon { font-size: 48px; margin-bottom: 12px; }
  .gd-edit-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
  .gd-edit-box { background: var(--bg-card, #1c1c1e); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: 90%; max-width: 420px; max-height: 85vh; overflow-y: auto; }
  .gd-edit-box h3 { margin: 0 0 16px; font-size: 17px; }
  .gd-edit-box label { display: block; font-size: 12px; color: var(--ink-2); margin: 12px 0 4px; }
  .gd-edit-box input, .gd-edit-box textarea { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
  .gd-edit-box textarea { min-height: 60px; resize: vertical; }
  .gd-drop {
    border: 1.5px dashed var(--line-strong);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-2);
    transition: border-color .2s, background .2s;
    margin-top: 6px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,.03);
  }
  .gd-drop.dragover { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.08); }
  .gd-preview { max-width: 100%; max-height: 180px; border-radius: 8px; object-fit: contain; }
  .gd-drop.has-img .gd-drop-hint { display: none; }
  .gd-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .gd-ithumb { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); flex: none; }
  .gd-ithumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gd-ithumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
  .gd-edit-box .gd-edit-actions { display: flex; gap: 10px; margin-top: 20px; }
  .gd-edit-box .gd-edit-actions button { flex: 1; padding: 10px; border-radius: 8px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .gd-edit-box .gd-save { background: var(--accent, #0a84ff); color: #fff; }
  .gd-edit-box .gd-cancel { background: rgba(255,255,255,.1); color: var(--ink); }

  .outline-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .outline-toolbar {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    border-bottom: 1px solid var(--line); flex: none;
    background: var(--bg-card, #1c1c1e);
    position: relative; z-index: 10;
  }
  .outline-title-input {
    flex: 0 1 auto; background: transparent; border: none; color: var(--ink);
    font-size: 14px; font-weight: 700; font-family: inherit; outline: none;
    padding: 3px 6px; border-radius: 5px; min-width: 60px; max-width: 40%;
  }
  .outline-title-input:focus { background: rgba(255,255,255,.08); }
  .outline-view-toggle {
    margin-left: auto; flex: none; display: flex; gap: 1px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px; padding: 2px;
  }
  .outline-view-toggle button {
    flex: none; border: none; background: transparent; color: var(--ink-2, #aaa); cursor: pointer;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; font-family: inherit;
    transition: all .15s ease; white-space: nowrap;
  }
  .outline-view-toggle button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
  .outline-view-toggle button.active { background: var(--accent, #0a84ff); color: #fff; }
  .outline-editor { flex: 1; overflow-y: auto; padding: 20px 24px 60px; min-height: 300px; }
  .outline-node {
    display: flex; align-items: flex-start; gap: 4px; padding: 2px 0;
    border-radius: 4px;
  }
  .outline-node:hover { background: rgba(255,255,255,.02); }
  .outline-fold {
    flex: none; width: 18px; height: 22px; display: grid; place-items: center;
    cursor: pointer; color: var(--ink-2); font-size: 10px; user-select: none;
    border: none; background: transparent; padding: 0;
  }
  .outline-fold:hover { color: var(--accent); }
  .outline-fold.empty { visibility: hidden; }
  .outline-bullet {
    flex: none; width: 18px; height: 22px; display: grid; place-items: center;
    color: var(--ink-2); font-size: 8px;
  }
  .outline-text {
    flex: 1; background: transparent; border: none; color: var(--ink);
    font-size: 14px; line-height: 1.7; font-family: inherit; outline: none;
    padding: 2px 4px; border-radius: 4px; min-height: 22px; resize: none;
    overflow: hidden; width: 100%; display: block; cursor: text;
  }
  .outline-text:focus { background: rgba(10,132,255,.08); }
  .outline-children { margin-left: 22px; }
  .outline-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; gap: 12px; color: var(--ink-2); font-size: 14px;
  }
  /* 思维导图 */
  .outline-mind { flex: 1; overflow: auto; padding: 16px; background: rgba(0,0,0,.15); }
  .mind-svg { display: block; }
  .mind-node rect { fill: rgba(28,28,30,.9); stroke: rgba(255,255,255,.15); stroke-width: 1; rx: 6; }
  .mind-node.root rect { fill: rgba(10,132,255,.25); stroke: var(--accent); stroke-width: 1.5; }
  .mind-node text { fill: var(--ink); font-size: 11px; font-family: inherit; }
  .mind-link { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.5; }




  .widget.size-s { grid-column: span 1; aspect-ratio: auto; height: 120px; grid-row: span 1; }
  .widget.size-m { grid-column: span 2; aspect-ratio: auto; height: 120px; grid-row: span 1; }
  .widget.size-l { grid-column: span 3; aspect-ratio: auto; height: 240px; grid-row: span 2; }

  /* 时间 */
  .widget-time {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255,255,255,0.95);
    border: 2px dashed rgba(0,0,0,0.2);
  }
  .widget-time .time-display {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
  }
  .widget-time .time-period {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,0.5);
    margin-top: 4px;
    text-align: center;
  }

  /* 日历 */
  .widget-calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
  }
  .widget-calendar .cal-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
  }
  .widget-calendar .cal-week {
    font-size: 16px;
    font-weight: 700;
    color: #FF453A;
  }
  .widget-calendar .cal-month {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
  }
  .widget-calendar .cal-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
  .widget-calendar .cal-day {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
  }
  .widget-calendar .cal-lunar {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    margin-top: 4px;
  }

  /* 快捷方式 */
  .widget-shortcut { align-items: center; justify-content: center; gap: 8px; padding: 12px; }
  .widget-shortcut .w-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 14px; background: rgba(10,132,255,0.18); color: var(--accent);
  }
  .widget-shortcut .w-name {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
    text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* 网易云音乐 */
  .widget-music {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }
  .widget-music iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* 系统监控 */
  .widget-monitor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
  }
  .monitor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
  }
  .monitor-label {
    color: rgba(255,255,255,0.7);
  }
  .monitor-value {
    color: #fff;
    font-variant-numeric: tabular-nums;
  }

  /* 编辑模式操作 */
  .widget-actions {
    position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 2;
  }
  .widget-actions button {
    width: 24px; height: 24px; display: grid; place-items: center;
    border: none; border-radius: 6px; background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7); cursor: pointer;
  }
  .widget-actions button:hover { color: #fff; }
  .widget-actions button.danger:hover { background: rgba(255,69,58,0.2); color: #FF453A; }

  .widget-size-btn {
    position: absolute; bottom: 6px; right: 6px; width: 24px; height: 24px;
    display: grid; place-items: center; border: none; border-radius: 6px;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    cursor: pointer; z-index: 10; font-size: 10px; font-weight: 700;
    pointer-events: auto;
  }
  .widget-size-btn:hover { color: #fff; }

  .home-add-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1.5px dashed var(--line-strong);
    border-radius: 20px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .home-add-tile:hover { background: rgba(255,255,255,.03); border-color: var(--ink-2); color: var(--ink); }

  /* 选择组件类型弹窗 */
  .widget-type-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px;
  }
  .widget-type-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--card); color: var(--ink); cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
  }
  .widget-type-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
  .widget-type-btn .wt-icon {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(10,132,255,0.15); color: var(--accent);
  }
  .widget-type-btn .wt-label { font-size: 13px; font-weight: 600; }

  .field-tip { font-size: 12px; color: var(--ink-2); margin: -4px 0 4px; line-height: 1.5; }

  select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398989D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
  }

  .select-wrap { position: relative; }

  /* ===== 响应式：窄屏Personal OS横向滚动 ===== */
  @media (max-width: 860px) {
    .layout { display: block; }
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 280px;
      z-index: 70;
      transform: translateX(-100%);
      transition: transform .22s ease;
      box-shadow: 12px 0 40px rgba(0,0,0,.5);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar.collapsed { width: 280px; transform: translateX(-100%); }
    .side-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.55);
      z-index: 60;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease;
    }
    .side-backdrop.show { opacity: 1; pointer-events: auto; }
    .menu-btn { display: grid; }
    .app { padding: 16px 16px 28px; }
    .board { overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
    .column { flex: 0 0 288px; scroll-snap-align: start; }
    .hint { display: none; }
    .topbar { margin-bottom: 16px; }
  }

  @media (max-width: 480px) {
    .brand h1 { font-size: 18px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }


#exp-lab-root {
    --bg: #000000;
    --surface: #1C1C1E;
    --card: #242426;
    --ink: #F5F5F7;
    --ink-2: #98989D;
    --line: #2E2E30;
    --line-strong: #48484A;
    --accent: #0A84FF;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 5px 16px rgba(0,0,0,.35);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.6);
    --side-hover-strong: rgba(255,255,255,.08);
    --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  }
#exp-lab-root[data-theme="light"] {
    --bg: #F2F2F7;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --ink: #000000;
    --ink-2: #8E8E93;
    --line: #E5E5EA;
    --line-strong: #C7C7CC;
    --accent: #007AFF;
    --shadow-card: 0 1px 2px rgba(0,0,0,.08), 0 5px 16px rgba(0,0,0,.08);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.12);
    --side-hover-strong: rgba(0,0,0,.08);
  }


* { box-sizing: border-box; }
.lab-app { max-width: 980px; margin: 0 auto; padding: 26px 22px 90px; }
.lab-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.lab-logo { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 23px; flex: none; box-shadow: 0 6px 18px rgba(10,132,255,.35); }
.lab-titles { flex: 1 1 200px; min-width: 200px; }
.lab-name { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.lab-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.lab-badge { font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; flex: none; }
.lab-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.lab-btn:hover { background: var(--side-hover-strong); }
  .exp-confirm-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
  .exp-confirm-modal[hidden] { display: none; }
  .ecm-box { width: 340px; max-width: 90vw; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lift); }
  .ecm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  .ecm-msg { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
  .ecm-btns { display: flex; gap: 10px; justify-content: flex-end; }
  .ecm-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 16px; font-size: 13.5px; cursor: pointer; }
  .ecm-btn:hover { background: var(--side-hover-strong); }
  .ecm-btn.danger { background: #FF453A; border-color: #FF453A; color: #fff; }
  .ecm-btn.danger:hover { filter: brightness(1.1); }
  .exp-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px); background: rgba(50,50,52,.92); color: #F5F5F7; border: 1px solid rgba(255,255,255,.14); padding: 11px 20px; border-radius: 12px; font-size: 13.5px; z-index: 950; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
  body[data-theme="light"] .exp-toast { background: rgba(245,245,247,.96); color: #1C1C1E; border-color: rgba(0,0,0,.1); }
  .exp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .exp-sorts { margin-left: 10px; display: inline-flex; gap: 4px; vertical-align: middle; }
  .exp-sorts button { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 8px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; }
  .exp-sorts button.on { color: var(--accent); border-color: var(--accent); }
  .exp-search-wrap { position: relative; flex: 1 1 180px; min-width: 150px; max-width: 260px; }
  @media (max-width: 760px) {
    .lab-badge { display: none; }
    .exp-search-wrap { flex: 1 1 100%; max-width: none; order: 5; }
    .lab-top { gap: 10px; }
  }
  .exp-search-wrap input { width: 100%; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 12px 0 34px; font-size: 13px; outline: none; }
  .exp-search-wrap input:focus { border-color: var(--accent); }
  .exp-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 14px; pointer-events: none; }
  .exp-search-results { position: absolute; left: 0; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); z-index: 500; max-height: 320px; overflow: auto; }
  .exp-search-results[hidden] { display: none; }
  .esr-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
  .esr-item:last-child { border-bottom: none; }
  .esr-item:hover { background: var(--side-hover-strong); }
  .esr-t { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .esr-s { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
  .esr-empty { padding: 14px; font-size: 12.5px; color: var(--ink-2); text-align: center; }
  .exp-head { display: flex; align-items: center; gap: 14px; padding: 2px 4px 14px; flex-wrap: wrap; justify-content: space-between; }
  .exp-head h2 { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
  .exp-head .exp-sub { font-size: 12px; color: var(--ink-2); }
  .exp-stats { display: flex; gap: 8px; margin-left: 0; }
  .exp-head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .exp-stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 12px; color: var(--ink-2); }
  .exp-stat b { color: var(--ink); font-size: 14px; margin-right: 4px; }
  .exp-add { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
  .exp-add:hover { background: rgba(255,255,255,.12); }
  .exp-dice { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px dashed var(--line-strong); background: none; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
  .exp-dice:hover { color: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); }
  .exp-cats { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 14px; }
  .exp-cat { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12px; cursor: pointer; }
  .exp-cat.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-section { margin-bottom: 18px; }
  .exp-sec-title { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); padding: 0 4px 10px; display: flex; align-items: center; gap: 8px; }
  .exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
  .exp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s; position: relative; }
  .exp-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
  .exp-card .exp-lab { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
  .exp-title { font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
  .exp-hypo { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; overflow-wrap: anywhere; }
  .exp-days { font-size: 12px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
  .exp-bar { height: 5px; background: rgba(255,255,255,.09); border-radius: 999px; overflow: hidden; }
  .exp-fill { height: 100%; background: var(--accent, #0a84ff); border-radius: 999px; transition: width .4s ease; }
  .exp-arrows { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); }
  .exp-arrow-up { color: #34c759; }
  .exp-arrow-down { color: #ff9f0a; }
  .exp-arrow-flat { color: var(--ink-2); }
  .exp-dates { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: auto; }
  .exp-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
  .exp-badge.active { background: rgba(10,132,255,.16); color: #4da3ff; }
  .exp-badge.done { background: rgba(52,199,89,.16); color: #34c759; }
  .exp-badge.terminated { background: rgba(255,159,10,.16); color: #ff9f0a; }
  .exp-badge.paused { background: rgba(255,255,255,.1); color: var(--ink-2); }
  .exp-badge.draft { background: rgba(255,255,255,.1); color: var(--ink-2); }
  .exp-cat-tag { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
  .exp-concl-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
  .exp-concl-row .ec-t { font-size: 13px; font-weight: 600; }
  .exp-concl-row .ec-v { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.55; overflow-wrap: anywhere; }
  .exp-concl-row .ec-v b { color: var(--accent, #0a84ff); }
  .exp-empty { text-align: center; color: var(--ink-2); padding: 40px 0; font-size: 13.5px; }
  .exp-empty .icon { font-size: 34px; margin-bottom: 8px; }
  .exp-create { max-width: 720px; margin: 0 auto; }
  .exp-tpls { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; }
  .exp-tpl { flex: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 12.5px; cursor: pointer; max-width: 200px; }
  .exp-tpl:hover { border-color: var(--accent, #0a84ff); color: var(--accent, #0a84ff); }
  .exp-tpl .tpl-q { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .exp-tpl .tpl-m { font-size: 11px; color: var(--ink-2); }
  .exp-step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
  .exp-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .exp-step-no { width: 30px; height: 30px; border-radius: 9px; background: var(--accent, #0a84ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
  .exp-step-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
  .exp-step-head .st-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
  .exp-input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 13.5px; padding: 10px 12px; margin-bottom: 10px; box-sizing: border-box; }
  textarea.exp-input { resize: vertical; min-height: 64px; line-height: 1.5; }
  .exp-hypo-form { display: flex; flex-direction: column; gap: 0; }
  .exp-hypo-form .h-label { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
  .exp-opts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
  .exp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
  .exp-opt:hover { border-color: var(--line-strong); }
  .exp-opt.on { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.08); }
  .exp-opt .ck { width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
  .exp-opt.on .ck { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); }
  .exp-opt .rd { width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; }
  .exp-opt.on .rd { border: 5px solid var(--accent, #0a84ff); }
  .exp-dur-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .exp-dur { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 13px; cursor: pointer; font-weight: 600; }
  .exp-dur.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-step-actions { display: flex; gap: 10px; margin-top: 16px; }
  .exp-step-actions button { padding: 10px 18px; border-radius: 9px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .exp-next { background: var(--accent, #0a84ff); color: #fff; margin-left: auto; }
  .exp-prev { background: rgba(255,255,255,.1); color: var(--ink); }
  .exp-quick { background: transparent; border: 1px solid var(--accent) !important; color: var(--accent) !important; }
  .exp-more { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
  .exp-more summary { cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none; user-select: none; padding: 2px 0; }
  .exp-more summary::-webkit-details-marker { display: none; }
  .exp-more[open] summary { margin-bottom: 8px; }
  .exp-quick-log { margin-top: 10px; font-size: 12.5px; color: var(--accent); cursor: pointer; }
  .exp-quote { text-align: center; color: var(--ink-2); font-size: 13px; line-height: 1.9; padding: 32px 0 8px; }
  .exp-caveat { font-size: 11px; color: var(--ink-2); margin-top: 6px; }
  .cl-h .delta b { font-weight: 700; }
  .exp-var-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
  .exp-vtag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
  .exp-vtag.on { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-detail { max-width: 760px; margin: 0 auto; }
  .exp-detail-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .exp-detail h2 { font-size: 20px; font-weight: 800; margin: 4px 0 2px; line-height: 1.35; }
  .exp-question { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
  .exp-block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
  .exp-block h4 { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--ink-2); margin: 0 0 10px; text-transform: uppercase; }
  .exp-rule { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; gap: 8px; }
  .exp-rule:last-child { border-bottom: none; }
  .exp-rule .rn { color: var(--ink-2); font-size: 11.5px; font-weight: 700; flex: none; width: 20px; }
  .exp-chart { margin-top: 8px; }
  .exp-chart-line { margin-bottom: 12px; }
  .exp-chart-line .cl-h { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; }
  .exp-chart-line .cl-h .delta { font-size: 11px; }
  .exp-chart-line .delta.up { color: #34c759; }
  .exp-chart-line .delta.down { color: #ff9f0a; }
  .exp-chart-line .delta.flat { color: var(--ink-2); }
  .exp-chart svg { width: 100%; height: 86px; display: block; }
  .exp-avg { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .exp-avg .av { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; color: var(--ink-2); }
  .exp-avg .av b { color: var(--ink); font-size: 13px; }
  .exp-record-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: flex-start; }
  .exp-record-row:last-child { border-bottom: none; }
  .exp-record-row .rd-date { color: var(--ink-2); font-size: 11.5px; flex: none; width: 82px; padding-top: 1px; }
  .exp-record-row .rd-body { flex: 1; overflow-wrap: anywhere; line-height: 1.55; }
  .exp-record-row .rd-mood { flex: none; }
  .exp-record-row .rd-note { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
  .exp-record-row .rd-flag { display: inline-block; font-size: 10.5px; color: #ff9f0a; margin-top: 4px; }
  .exp-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .exp-actions button { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .exp-actions button:hover { background: rgba(255,255,255,.12); }
  .exp-actions .primary { background: var(--accent, #0a84ff); border-color: var(--accent, #0a84ff); color: #fff; }
  .exp-actions .primary:hover { background: #0a7ae0; }
  .exp-actions .danger { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
  .exp-log-panel { max-width: 560px; margin: 0 auto; }
  .exp-moods { display: flex; gap: 8px; }
  .exp-mood { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: none; font-size: 24px; cursor: pointer; transition: transform .12s, border-color .12s; }
  .exp-mood.on { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.1); transform: scale(1.08); }
  .exp-slider-row { margin: 10px 0; }
  .exp-slider-row .sl-h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
  .exp-slider-row .sl-h b { color: var(--accent, #0a84ff); }
  .exp-slider { width: 100%; accent-color: var(--accent, #0a84ff); }
  .exp-radio-row { display: flex; gap: 14px; font-size: 13px; margin: 8px 0; }
  .exp-radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
  .exp-radio-row input { accent-color: var(--accent, #0a84ff); }
  .exp-midcheck { border-left: 3px solid var(--accent, #0a84ff); }
  .exp-review { max-width: 680px; margin: 0 auto; }
  .exp-review h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
  .exp-stars { display: flex; gap: 4px; }
  .exp-stars .st { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--line-strong); padding: 2px; }
  .exp-stars .st.on { color: #ffd60a; }
  .exp-vs { display: flex; flex-direction: column; gap: 8px; }
  .exp-vs-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
  .exp-vs-row .vs-name { width: 100px; color: var(--ink-2); }
  .exp-vs-row .vs-pre { width: 60px; }
  .exp-vs-row .vs-arrow { color: var(--ink-2); }
  .exp-vs-row .vs-act { width: 60px; font-weight: 700; }
  .exp-vs-row .vs-diff { font-size: 11.5px; }
  .exp-vs-row .vs-diff.up { color: #34c759; }
  .exp-vs-row .vs-diff.down { color: #ff9f0a; }
  .exp-principle { background: rgba(10,132,255,.07); border: 1px solid rgba(10,132,255,.25); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; margin-top: 6px; }
  .exp-principle .pr-tag { font-size: 10.5px; color: var(--accent, #0a84ff); font-weight: 700; letter-spacing: .5px; }
  .exp-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .exp-link-row select { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12.5px; padding: 7px 10px; }
  [data-theme="light"] .exp-add { background: rgba(0,0,0,.05); }
  [data-theme="light"] .exp-add:hover { background: rgba(0,0,0,.1); }
  [data-theme="light"] .exp-input, [data-theme="light"] .exp-link-row select { background: rgba(0,0,0,.04); }
  [data-theme="light"] .exp-bar { background: rgba(0,0,0,.1); }
  [data-theme="light"] .exp-prev { background: rgba(0,0,0,.08); }
  [data-theme="light"] .exp-avg .av { background: rgba(0,0,0,.03); }
  [data-theme="light"] .exp-step-actions .exp-prev { background: rgba(0,0,0,.08); }
  .exp-map { position: relative; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at center, rgba(10,132,255,.06), transparent 65%); margin: 0 auto; max-width: 880px; }
  .exp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .exp-map-me { position: absolute; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--accent, #0a84ff); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 0 6px rgba(10,132,255,.18); }
  .exp-map-me .mm-label { font-size: 9px; font-weight: 700; letter-spacing: .5px; }
  .exp-map-node { position: absolute; transform: translate(-50%, -50%); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; width: 128px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; transition: border-color .15s, transform .15s; }
  .exp-map-node:hover { border-color: var(--accent, #0a84ff); transform: translate(-50%, -50%) scale(1.05); }
  .exp-acc-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .exp-acc-row:last-child { border-bottom: none; }
  .exp-acc-row .an { width: 64px; color: var(--ink-2); }
  .exp-acc-row .av { font-weight: 600; }
  .exp-acc-row .ad { font-size: 12px; }
  .exp-acc-row .ad.up { color: #ff9f0a; }
  .exp-acc-row .ad.down { color: #34c759; }
  .dcard-exp { grid-column: 1 / -1; border: 1px dashed rgba(10,132,255,.35); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--ink); cursor: pointer; line-height: 1.5; background: rgba(10,132,255,.05); }
  .dcard-exp:hover { border-color: var(--accent, #0a84ff); }
  .dcard-exp-tag { font-size: 10.5px; font-weight: 700; color: var(--accent, #0a84ff); letter-spacing: .5px; margin-right: 4px; }
.exp-dice-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .exp-dice-modal[hidden] { display: none; }
  .edm-card { width: min(400px, calc(100vw - 48px)); background: #1c1c1f; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 26px 24px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  [data-theme="light"] .edm-card { background: #f6f6f8; border-color: rgba(0,0,0,.1); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
  .edm-icon { font-size: 34px; margin-bottom: 10px; }
  .edm-label { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--accent, #0a84ff); text-transform: uppercase; margin-bottom: 8px; }
  .edm-q { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink); }
  .edm-p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
  .edm-meta { display: inline-block; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-top: 14px; }
  .edm-actions { display: flex; gap: 10px; margin-top: 22px; }
  .edm-actions button { flex: 1; padding: 11px 0; border-radius: 11px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .edm-cancel { background: rgba(255,255,255,.08); color: var(--ink-2); }
  [data-theme="light"] .edm-cancel { background: rgba(0,0,0,.06); color: var(--ink-2); }
  .edm-switch { background: rgba(255,255,255,.12); color: var(--ink); }
  [data-theme="light"] .edm-switch { background: rgba(0,0,0,.1); color: var(--ink); }
  .edm-ok { background: var(--accent, #0a84ff); color: #fff; }
  .edm-ok:hover { background: #0a7ae0; }
  



  .vt-account { display:flex; align-items:center; gap:6px; padding:0 12px; height:36px; border-radius:9px; border:1px solid var(--line); background:var(--card); color:var(--ink); font-size:12.5px; cursor:pointer; font-family:inherit; flex:none; }
  .vt-account:hover { border-color: var(--accent); }
  .vt-account .va-txt { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #sidebar .vt-account { display:flex; width:100%; margin:0; padding:10px 14px; height:auto; border:none; border-top:1px solid var(--line); border-radius:0; background:transparent; font-size:13px; box-sizing:border-box; }
  #sidebar .vt-account:hover { border-color:var(--line); background:rgba(128,128,128,.1); }
  #sidebar .vt-account .va-txt { max-width:none; }
  .os-set-block-title { font-size:11px; opacity:.55; margin:14px 0 8px; letter-spacing:.5px; }
  #os-set-data .side-bk-row { margin:0; }
  #os-set-data .side-add { width:100%; justify-content:center; }
  .outline-check { width:18px; height:18px; min-width:18px; border-radius:50%; border:1.5px solid var(--line); background:transparent; color:transparent; font-size:11px; line-height:1; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; flex:none; }
  .outline-check:hover { border-color:var(--accent); }
  .outline-check.on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .outline-node.watched .outline-text { text-decoration:line-through; opacity:.45; }
  .outline-review-badge { flex:none; align-self:center; font-size:10.5px; padding:2px 7px; border-radius:9px; background:var(--accent); color:#fff; border:none; cursor:pointer; margin-left:6px; }
  .movie-row { display:flex; flex-wrap:wrap; gap:6px; margin:2px 0 10px 46px; }
  .movie-chip { font-size:12px; padding:3px 10px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; }
  .movie-chip:hover { border-color:var(--accent); }
  .movie-chip.checked { background:var(--accent); border-color:var(--accent); color:#fff; }
  .movie-chip.has-review::after { content:'✎'; margin-left:5px; font-size:10px; opacity:.8; }
  .airound { flex: 1; width: 100%; overflow-y: auto; display: block; }
  .airound .ar-wrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 60px; width: 100%; box-sizing: border-box; display: block; }
  .ar-topic { width: 100%; min-height: 110px; box-sizing: border-box; resize: vertical; display: block; }
  .ar-start { margin-top: 4px; display: inline-block; }
  .ar-title { font-size:22px; font-weight:600; }
  .ar-sub { font-size:13px; opacity:.6; margin:4px 0 16px; }
  .ar-warn { font-size:12.5px; padding:10px 12px; border-radius:10px; background:rgba(250,173,20,.12); color:#faad14; margin-bottom:12px; }
  .ar-topic { width:100%; min-height:90px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:12px; font:inherit; box-sizing:border-box; resize:vertical; }
  .ar-roles { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
  .ar-role { padding:8px 14px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; font-size:13px; }
  .ar-role.on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .ar-start { padding:10px 22px; border-radius:10px; border:none; background:var(--accent); color:#fff; font-size:14px; cursor:pointer; }
  .ar-start:disabled { opacity:.5; cursor:default; }
  .ar-log { margin-top:20px; display:flex; flex-direction:column; gap:12px; }
  .ar-card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
  .ar-card-name { font-size:12px; opacity:.6; margin-bottom:6px; }
  .ar-card-body { font-size:14px; line-height:1.6; white-space:pre-wrap; }
  .ar-tpl-label { font-size:12px; opacity:.5; margin:14px 0 6px; }
  .ar-templates { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
  .ar-tpl { padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink-2); font-size:12px; cursor:pointer; font-family:inherit; }
  .ar-tpl:hover { border-color:var(--accent); color:var(--accent); }
  .ar-experts-label { font-size:12px; opacity:.5; margin:14px 0 6px; }
  .ar-experts { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
  .ar-expert { padding:8px 14px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink-2); font-size:13px; cursor:pointer; font-family:inherit; }
  .ar-expert.on { background:var(--accent); border-color:var(--accent); color:#fff; }
  .ar-phase-title { font-size:13px; font-weight:700; opacity:.7; margin:18px 0 8px; letter-spacing:.5px; }
  .ar-card-r1 { border-left:3px solid var(--accent); }
  .ar-card-r2 { border-left:3px solid #faad14; }
  .ar-card-judge { border:2px solid var(--accent); background:rgba(10,132,255,.06); }
  .ar-judge-body { font-size:14px; line-height:1.7; white-space:pre-wrap; }
  .ar-history { margin-top:32px; }
  .ar-history-title { font-size:13px; font-weight:700; opacity:.6; margin-bottom:8px; }
  .ar-hist-list { display:flex; flex-direction:column; gap:6px; }
  .ar-hist-item { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; text-align:left; font-size:13px; font-family:inherit; width:100%; }
  .ar-hist-item:hover { border-color:var(--accent); }
  .ar-hist-topic { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ar-hist-date { font-size:11px; opacity:.5; margin-left:10px; flex:none; }
  .ar-hist-empty { font-size:12px; opacity:.4; padding:8px 0; }
  .nav-item.dragging { opacity:.4; }
  .os-nav-row { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13px; }
  .os-nav-row input[type=checkbox] { accent-color: var(--accent); }
  .os-nav-name { flex:1; }
  .os-nav-move { display:flex; gap:4px; }
  .os-nav-move button { width:26px; height:26px; border:1px solid var(--line); border-radius:7px; background:transparent; color:var(--ink); cursor:pointer; }
  .os-nav-move button:disabled { opacity:.3; cursor:default; }
  .os-ai-item { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:8px; }
  .os-ai-item-head { display:flex; align-items:center; gap:8px; }
  .os-ai-name { font-weight:600; font-size:13px; flex:1; }
  .os-ai-model { font-size:11px; opacity:.5; }
  .os-ai-edit, .os-ai-del { padding:4px 10px; border-radius:7px; border:1px solid var(--line); background:transparent; color:var(--ink); font-size:12px; cursor:pointer; font-family:inherit; }
  .os-ai-del { color:#ea6668; }
  .os-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; z-index:99999; }
  .os-modal-card { width:340px; max-width:92vw; background:var(--surface,#1c1c1e); border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,.5); box-sizing:border-box; }
  .os-modal-title { font-size:17px; font-weight:800; color:var(--ink); }
  .os-modal-sub { font-size:12.5px; color:var(--ink-2); margin:4px 0 16px; }
  .os-field { display:block; margin-bottom:12px; }
  .os-field span { display:block; font-size:12px; color:var(--ink-2); margin-bottom:5px; }
  .os-field input { width:100%; box-sizing:border-box; height:40px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--ink); padding:0 12px; font-size:14px; font-family:inherit; outline:none; }
  .os-field input:focus { border-color:var(--accent); }
  .os-err { font-size:12px; color:#FF453A; min-height:16px; margin-bottom:6px; }
  .os-primary { width:100%; height:42px; border:none; border-radius:10px; background:var(--accent,#0a84ff); color:#fff; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; }
  .os-primary:disabled { opacity:.5; cursor:default; }
  .os-ghost { flex:1; height:42px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--ink); font-size:13.5px; cursor:pointer; font-family:inherit; }
  .os-row { display:flex; gap:10px; margin:14px 0 6px; }
  .os-switch { font-size:12.5px; color:var(--ink-2); margin-top:14px; text-align:center; }
  .os-switch button { background:none; border:none; color:var(--accent); font-size:12.5px; cursor:pointer; font-family:inherit; font-weight:600; }
  .os-note { font-size:11.5px; color:var(--ink-2); margin-top:14px; line-height:1.6; background:rgba(120,120,128,.12); border-radius:9px; padding:9px 11px; }
  .os-sub { font-size:13px; color:var(--ink-2); margin:2px 0; }
  .os-toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(16px); background:rgba(30,30,32,.96); color:#fff; font-size:13px; padding:10px 18px; border-radius:999px; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:100000; box-shadow:0 8px 30px rgba(0,0,0,.4); }
  .os-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
  [data-theme="light"] .os-toast { background:rgba(60,60,62,.95); }
