/* ===== 运营控制台 OS — Windows 11 风格 ===== */
:root {
  --accent: #4f8ef7;
  --accent-2: #2f6fe0;
  --titlebar: rgba(243, 243, 243, 0.92);
  --surface: rgba(252, 252, 252, 0.96);
  --surface-2: #ffffff;
  --panel: rgba(249, 249, 249, 0.88);
  --ink: #1b1b1f;
  --ink-2: #4b4b52;
  --ink-3: #8a8a93;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --ok: #0f9d58;
  --warn: #f29900;
  --danger: #d93025;
  --radius: 8px;
  --radius-lg: 12px;
  --taskbar-h: 48px;
  --shadow-win: 0 24px 60px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-panel: 0 16px 44px rgba(0, 0, 0, 0.24), 0 1px 4px rgba(0, 0, 0, 0.12);
  --blur: saturate(160%) blur(24px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
  background: #1b2a4a;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; user-select: text; -webkit-user-select: text; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 壁纸 ===== */
.desktop { position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden; transition: background 0.6s ease; }
body[data-wall="0"] .desktop { background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%); }
body[data-wall="0"] .desktop::after { content:""; position:absolute; inset:0;
  background: radial-gradient(1100px 500px at 78% 12%, rgba(79,142,247,.32), transparent 60%),
              radial-gradient(900px 420px at 12% 88%, rgba(152,195,121,.18), transparent 62%); }
body[data-wall="1"] .desktop { background: linear-gradient(150deg, #1e3c72 0%, #2a5298 55%, #6dd5ed 140%); }
body[data-wall="1"] .desktop::after { content:""; position:absolute; inset:0;
  background: radial-gradient(800px 380px at 80% 20%, rgba(255,255,255,.14), transparent 60%),
              radial-gradient(700px 420px at 15% 80%, rgba(109,213,237,.25), transparent 60%); }
body[data-wall="2"] .desktop { background: linear-gradient(135deg, #232526 0%, #414345 100%); }
body[data-wall="2"] .desktop::after { content:""; position:absolute; inset:0;
  background: radial-gradient(1000px 460px at 70% 15%, rgba(79,142,247,.20), transparent 60%),
              radial-gradient(800px 420px at 18% 85%, rgba(214,141,102,.16), transparent 60%); }
body[data-wall="3"] .desktop { background:
  radial-gradient(1200px 600px at 75% 18%, #3a7bd5 0%, transparent 55%),
  radial-gradient(900px 500px at 12% 85%, #00d2ff 0%, transparent 60%),
  linear-gradient(160deg, #0b1d33 0%, #12355b 100%); }
body[data-wall="3"] .desktop::after { content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 60% 45%, rgba(255,255,255,.08), transparent 65%); }

/* 桌面图标 */
.dicons { position: absolute; inset: 0; display: flex; flex-flow: column wrap; align-content: flex-start; gap: 4px; padding: 14px 10px; }
.dicon { width: 86px; height: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 6px; padding: 8px 2px; border: 1px solid transparent; }
.dicon:hover { background: rgba(255,255,255,.12); }
.dicon.sel { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.dicon .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.dicon span { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); font-size: 12px; text-align: center; line-height: 1.25; }

/* ===== 窗口 ===== */
.win {
  position: absolute; min-width: 380px; min-height: 260px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-win); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: scale(.96) translateY(8px); transition: opacity .16s ease, transform .16s ease;
  animation: none;
}
.win.show { opacity: 1; transform: none; }
.win.max { border-radius: 0; border: none; }
.win.minimizing { opacity: 0; transform: scale(.9) translateY(24px); transition: opacity .18s ease, transform .18s ease; }
.win-titlebar {
  height: 36px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px;
  background: var(--titlebar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  cursor: default; border-bottom: 1px solid var(--line);
}
.win-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.win-title b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.win-ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; }
.win-ctrl { display: flex; height: 100%; }
.win-ctrl button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--ink-2); font-size: 11px; transition: background .1s; }
.win-ctrl button:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.win-ctrl .c-close:hover { background: #d93025; color: #fff; }
.win-body { flex: 1; min-height: 0; overflow: auto; background: var(--surface); position: relative; }
.win.max .win-body { overflow: auto; }
.win.focused { box-shadow: 0 30px 70px rgba(0,0,0,.42), 0 4px 12px rgba(0,0,0,.2); }
.win:not(.focused) .win-titlebar { background: rgba(243,243,243,.82); }

/* 缩放手柄 */
.rz { position: absolute; z-index: 50; }
.rz.n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.rz.s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.rz.e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.rz.w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.rz.ne { right: -4px; top: -4px; width: 10px; height: 10px; cursor: ne-resize; }
.rz.nw { left: -4px; top: -4px; width: 10px; height: 10px; cursor: nw-resize; }
.rz.se { right: -4px; bottom: -4px; width: 10px; height: 10px; cursor: se-resize; }
.rz.sw { left: -4px; bottom: -4px; width: 10px; height: 10px; cursor: sw-resize; }
.win.max .rz { display: none; }
.snap-hint { position: fixed; z-index: 400; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); border-radius: 8px; backdrop-filter: blur(10px); pointer-events: none; opacity: 0; transition: opacity .12s; }
.snap-hint.on { opacity: 1; }

/* ===== 任务栏 ===== */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 300;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  background: rgba(243, 243, 243, 0.82); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid rgba(0,0,0,.08);
}
.tb-btn {
  min-width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center;
  color: var(--ink); transition: background .12s; position: relative; padding: 0 8px;
}
.tb-btn:hover { background: rgba(0,0,0,.06); }
.tb-btn svg { width: 20px; height: 20px; }
.tb-btn.app { display: flex; align-items: center; gap: 6px; }
.tb-btn.app .tb-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; }
.tb-btn.app .ind { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; border-radius: 2px; background: var(--ink-3); transition: width .15s; }
.tb-btn.app.on .ind { width: 16px; background: var(--accent); }
.tb-btn.app:not(.on) .ind { width: 5px; }
.tb-btn.app.min .ind { width: 5px; background: var(--ink-3); }
.tb-sep { width: 1px; height: 24px; background: rgba(0,0,0,.12); margin: 0 4px; flex: none; }
.tb-spacer { flex: 1; }
.tb-tray { display: flex; align-items: center; gap: 2px; }
.tb-tray .tb-btn { min-width: 34px; padding: 0 6px; }
.tb-tray .tb-btn svg { width: 16px; height: 16px; }
.clock-btn { flex-direction: column; gap: 0 !important; line-height: 1.1; font-size: 12px; padding: 0 10px !important; }
.clock-btn small { font-size: 11px; color: var(--ink-2); }

/* 弹出面板（开始菜单/日历/通知） */
.flyout { position: fixed; z-index: 350; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); display: none; }
.flyout.open { display: block; animation: flyin .14s ease; }
@keyframes flyin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 开始菜单 */
.startmenu { bottom: 56px; left: 50%; transform: translateX(-50%); width: 620px; max-width: calc(100vw - 24px); height: 620px; max-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.startmenu.open { display: flex; }
.start-search { margin: 22px 30px 10px; height: 40px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; padding: 0 16px; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.start-search svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.start-search input { flex: 1; border: none; outline: none; font-size: 13.5px; background: transparent; color: var(--ink); }
.start-body { flex: 1; overflow: auto; padding: 8px 30px 18px; }
.start-body h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.start-body h3 button { font-size: 12px; color: var(--ink-3); padding: 3px 10px; border-radius: 5px; background: rgba(0,0,0,.05); }
.start-body h3 button:hover { background: rgba(0,0,0,.09); }
.appgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.apptile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 6px; text-align: center; }
.apptile:hover { background: rgba(0,0,0,.06); }
.apptile:active { transform: scale(.96); }
.apptile .tile { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.apptile span { font-size: 12px; color: var(--ink); }
.recent { display: flex; flex-direction: column; gap: 2px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-align: left; }
.recent-item:hover { background: rgba(0,0,0,.06); }
.recent-item .r-ic { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; color: #fff; flex: none; }
.recent-item .r-t { font-size: 12.5px; color: var(--ink); }
.recent-item .r-s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.start-foot { flex: none; border-top: 1px solid var(--line); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7c4dff); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.user-chip span { font-size: 12.5px; color: var(--ink); }
.power-btn { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); }
.power-btn:hover { background: rgba(0,0,0,.07); }

/* 搜索结果 */
.kbresult { padding: 2px 0; }
.kbresult .kb-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; text-align: left; }
.kbresult .kb-item:hover { background: rgba(0,0,0,.06); }
.kb-item .k-ic { width: 28px; height: 28px; border-radius: 7px; background: rgba(0,0,0,.06); display: grid; place-items: center; font-size: 14px; flex: none; margin-top: 1px; }
.kb-item .k-t { font-size: 12.5px; color: var(--ink); }
.kb-item .k-t em { font-style: normal; color: var(--accent-2); }
.kb-item .k-s { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.kb-empty { padding: 22px; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* 日历/通知中心 */
.calnotif { bottom: 56px; right: 10px; width: 340px; max-height: calc(100vh - 80px); overflow: auto; }
.cal-head { padding: 18px 20px 8px; }
.cal-head .big { font-size: 22px; font-weight: 600; }
.cal-grid { padding: 6px 20px 10px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; font-size: 12px; border-radius: 50%; }
.cal-day:hover { background: rgba(0,0,0,.06); }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 600; }
.cal-day.other { color: var(--ink-3); }
.notif-list { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.notif-list h4 { font-size: 12.5px; margin: 4px 8px 8px; color: var(--ink-2); display: flex; justify-content: space-between; }
.notif-list h4 button { color: var(--accent-2); font-size: 12px; }
.notif { display: flex; gap: 10px; padding: 9px 8px; border-radius: 7px; }
.notif:hover { background: rgba(0,0,0,.05); }
.notif .n-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; background: rgba(0,0,0,.06); flex: none; }
.notif .n-t { font-size: 12.5px; line-height: 1.4; }
.notif .n-s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.notif .n-time { font-size: 11px; color: var(--ink-3); margin-left: auto; flex: none; }

/* ===== 右键菜单 ===== */
.ctx { position: fixed; z-index: 500; min-width: 220px; background: rgba(252,252,252,.96); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-panel); padding: 5px; display: none; }
.ctx.open { display: block; animation: flyin .1s ease; }
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; font-size: 13px; border-radius: 5px; color: var(--ink); }
.ctx button:hover { background: rgba(0,0,0,.06); }
.ctx button .mi { width: 16px; text-align: center; opacity: .8; }
.ctx .ctx-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ===== Toast ===== */
.toasts { position: fixed; right: 14px; bottom: 60px; z-index: 600; display: flex; flex-direction: column; gap: 10px; width: 340px; }
.toast { background: rgba(252,252,252,.97); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-panel);
  padding: 14px; display: flex; gap: 12px; align-items: flex-start; animation: toastin .2s ease; }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateX(30px); transition: all .2s; }
.toast .t-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; flex: none; }
.toast .t-t { font-size: 13px; font-weight: 600; }
.toast .t-b { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.toast .t-x { margin-left: auto; color: var(--ink-3); font-size: 12px; padding: 2px 4px; border-radius: 4px; flex: none; }
.toast .t-x:hover { background: rgba(0,0,0,.07); }

/* ===== 开机/锁屏 ===== */
.overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.boot { background: #0b1d33; color: #fff; flex-direction: column; gap: 26px; transition: opacity .5s; }
.boot .logo { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 44px;
  background: linear-gradient(135deg, var(--accent), #7c4dff); box-shadow: 0 20px 60px rgba(79,142,247,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 20px 60px rgba(79,142,247,.5);} 50% { box-shadow: 0 20px 90px rgba(79,142,247,.9);} }
.boot h1 { font-size: 26px; font-weight: 600; letter-spacing: 1px; }
.boot p { color: #9db4d0; font-size: 13px; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lock { background: linear-gradient(135deg, #0f2027, #2c5364); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .35s; }
.lock .l-time { font-size: 84px; font-weight: 200; line-height: 1; }
.lock .l-date { font-size: 16px; color: #c9d6e4; }
.lock .l-user { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; padding: 12px 20px; border-radius: 10px; }
.lock .l-user:hover { background: rgba(255,255,255,.1); }
.lock .avatar { width: 64px; height: 64px; font-size: 26px; }
.lock .l-user span { font-size: 15px; }
.hidden { display: none !important; }

/* ===== 应用通用组件 ===== */
.app-pad { padding: 18px 20px; }
.h-row { display: flex; align-items: center; gap: 10px; }
.h1 { font-size: 17px; font-weight: 700; }
.h1 small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.spacer { flex: 1; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: rgba(0,0,0,.06); color: var(--ink-2); }
.chip.live { background: rgba(15,157,88,.14); color: #0b7a45; display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 12px; height: 34px; background: #fff; flex: 1; max-width: 320px; }
.searchbox input { border: none; outline: none; flex: 1; font-size: 13px; background: transparent; }
.btn { padding: 7px 14px; border-radius: 6px; background: rgba(0,0,0,.06); font-size: 13px; transition: background .12s, transform .05s; }
.btn:hover { background: rgba(0,0,0,.1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: rgba(217,48,37,.1); color: var(--danger); }
.btn.danger:hover { background: rgba(217,48,37,.18); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(0,0,0,.06); }

.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* 指标卡 */
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric .m-l { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.metric .m-v { font-size: 24px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.metric .m-s { font-size: 11.5px; color: var(--ink-3); }
.metric .m-delta { font-size: 11px; color: var(--ok); }
.metric .m-delta.down { color: var(--danger); }
.metric.tick .m-v { transition: color .3s; }
.metric.tick.flash .m-v { color: var(--accent); }

/* 项目卡 */
.pcard { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.pcard .p-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pcard .p-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; color: #fff; flex: none; }
.pcard .p-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; flex: 1; }
.pcard .p-next { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 8px 0; min-height: 34px; }
.pcard .p-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st { font-size: 11px; padding: 2.5px 8px; border-radius: 9px; font-weight: 500; }
.st.doing { background: rgba(79,142,247,.14); color: #2f6fe0; }
.st.wait { background: rgba(242,153,0,.15); color: #b26a00; }
.st.done { background: rgba(15,157,88,.13); color: #0b7a45; }
.st.hist { background: rgba(0,0,0,.07); color: var(--ink-3); }
.tag { font-size: 10.5px; color: var(--ink-3); background: rgba(0,0,0,.05); border-radius: 8px; padding: 2px 7px; }

/* 领域卡 */
.dcard { border-left: 4px solid var(--dc, var(--accent)); }
.dcard .d-head { display: flex; align-items: center; gap: 10px; }
.dcard .d-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--dc, var(--accent)); }
.dcard .d-name { font-size: 14px; font-weight: 600; }
.dcard .d-short { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.dcard .d-duty { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin: 10px 0; }
.skills { display: flex; flex-wrap: wrap; gap: 5px; }
.skill { font-size: 11px; font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(0,0,0,.05); padding: 3px 8px; border-radius: 5px; color: var(--ink-2); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: rgba(0,0,0,.025); }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }

/* 看板 */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 100%; padding: 14px 16px; }
.kcol { background: rgba(0,0,0,.035); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.kcol.dragover { outline: 2px dashed var(--accent); outline-offset: -2px; background: rgba(79,142,247,.06); }
.kcol-head { padding: 12px 14px 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kcol-head .cnt { font-size: 11px; background: rgba(0,0,0,.1); border-radius: 9px; padding: 1px 8px; color: var(--ink-3); }
.kcol-body { flex: 1; overflow: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.07); cursor: grab; }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .45; }
.kcard .k-t { font-size: 13px; line-height: 1.45; }
.kcard .k-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pri { font-size: 10.5px; border-radius: 6px; padding: 1px 7px; }
.pri.p1 { background: rgba(217,48,37,.13); color: var(--danger); }
.pri.p2 { background: rgba(242,153,0,.15); color: #b26a00; }
.pri.p3 { background: rgba(0,0,0,.07); color: var(--ink-3); }
.kcard .k-ops { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.kcard:hover .k-ops { opacity: 1; }
.kcard .k-ops button { font-size: 12px; color: var(--ink-3); padding: 2px 5px; border-radius: 4px; }
.kcard .k-ops button:hover { background: rgba(0,0,0,.08); color: var(--ink); }
.kadd { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-3); border-radius: var(--radius); padding: 9px; font-size: 12.5px; }
.kadd:hover { background: rgba(0,0,0,.04); color: var(--ink); }

/* 今日 */
.focus-list { display: flex; flex-direction: column; gap: 6px; }
.focus-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); transition: background .15s; }
.focus-item:hover { background: #f6f8fb; }
.focus-item input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; cursor: pointer; }
.focus-item .f-t { font-size: 13px; line-height: 1.5; flex: 1; }
.focus-item.done .f-t { color: var(--ink-3); text-decoration: line-through; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.sync-panel { font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.sync-panel .file-line { display: flex; gap: 8px; align-items: baseline; }
.sync-panel .file-line .f-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.sync-panel .file-line .f-age { color: var(--ink-3); flex: none; font-size: 11px; }

/* 数据看板 */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 16px; }
.dash-grid .card { min-height: 220px; }
.dash-grid .wide { grid-column: 1 / -1; }
.chart-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.chart-title small { font-weight: 400; color: var(--ink-3); font-size: 11px; }
canvas { width: 100%; height: 168px; display: block; margin-top: 10px; }
.hbars { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; font-size: 12px; }
.hbar .b-l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .b-track { height: 10px; background: rgba(0,0,0,.06); border-radius: 5px; overflow: hidden; }
.hbar .b-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #7c4dff); width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.hbar .b-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* 记事本 */
.notepad textarea { width: 100%; height: 100%; min-height: 100%; border: none; outline: none; resize: none; padding: 16px 18px; font-size: 13.5px; line-height: 1.7; color: var(--ink); background: transparent; font-family: inherit; }
.notepad .np-bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); align-items: center; background: var(--panel); }
.notepad .np-body { flex: 1; min-height: 0; }
.np-hint { color: var(--ink-3); font-size: 11.5px; }

/* 设置 */
.set-group { display: flex; flex-direction: column; gap: 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.set-row .s-l { font-size: 13px; }
.set-row .s-l small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
.wall-options { display: flex; gap: 10px; }
.wall-thumb { width: 74px; height: 46px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.wall-thumb.sel { border-color: var(--accent); box-shadow: 0 2px 8px rgba(79,142,247,.4); }
.accent-options { display: flex; gap: 8px; }
.accent-dot { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.accent-dot.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.switch { width: 40px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.2); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 22px; }

/* 关于弹窗 */
.about-ic { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #7c4dff); display: grid; place-items: center; font-size: 28px; color: #fff; }

@media (max-width: 900px) {
  .dash-grid, .kanban { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
