/* ==========================================================================
   内置应用样式 — Porcelain & Graphite
   ========================================================================== */

/* 通用应用外壳 */
.app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.app-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--stroke);
  flex: none;
  background: var(--tile-2);
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background .13s, color .13s, opacity .13s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn:disabled:hover { background: none; color: var(--text-2); }
.icon-btn .ic { width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12px;
  letter-spacing: .01em;
  background: var(--tile);
  border: 1px solid var(--stroke-strong);
  transition: background .13s, border-color .13s;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.badge {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent);
}
.field {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 11px;
  border-radius: 7px;
  background: var(--tile);
  border: 1px solid var(--stroke);
}
.field input { flex: 1; font-size: 12px; }

/* ---------- 文件资源管理器 ---------- */
.ex-nav { display: flex; align-items: center; gap: 2px; }
.ex-crumbs {
  flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  font-size: 11.5px;
  overflow: hidden;
}
.ex-crumb { padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.ex-crumb:hover { background: var(--hover); }
.ex-crumb-sep { color: var(--text-3); font-size: 10px; }

.ex-main { flex: 1; display: flex; min-height: 0; }
.ex-side {
  width: 188px; flex: none;
  padding: 10px 8px;
  border-right: 1px solid var(--stroke);
  overflow-y: auto;
  background: var(--tile-2);
}
.ex-navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  transition: background .12s;
  width: 100%;
  text-align: left;
}
.ex-navitem:hover { background: var(--hover); }
.ex-navitem.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.ex-navitem .si { width: 17px; height: 17px; flex: none; }
.ex-navtitle {
  font-size: 9.5px; color: var(--text-3);
  padding: 14px 10px 5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ex-content { flex: 1; min-width: 0; overflow: auto; padding: 16px 18px; }
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 4px;
}
.ex-item {
  display: grid; justify-items: center; gap: 9px;
  padding: 14px 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
  cursor: default;
}
.ex-item:hover { background: var(--hover); border-color: var(--stroke); }
.ex-item.selected {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.ex-item .si { width: 40px; height: 40px; }
.ex-item .ex-name {
  font-size: 11px; text-align: center; line-height: 1.35;
  word-break: break-all;
  color: var(--text);
}
.ex-list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; border-radius: 6px; font-size: 12px;
}
.ex-list-row:hover { background: var(--hover); }
.ex-list-row.selected { background: var(--accent-soft); }
.ex-list-row .si { width: 19px; height: 19px; flex: none; }
.ex-list-row .ex-col { flex: 1; }
.ex-list-row .ex-meta { color: var(--text-3); font-size: 10.5px; width: 118px; text-align: right; }
.ex-empty { text-align: center; padding: 60px 0; color: var(--text-3); font-size: 12px; }
.ex-status {
  flex: none;
  padding: 5px 14px;
  border-top: 1px solid var(--stroke);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: var(--text-3);
  display: flex; justify-content: space-between;
  background: var(--tile-2);
}

/* ---------- 资源管理器 · 标签栏 / 命令栏 / 图库 ---------- */
.ex-tabs {
  display: flex; align-items: flex-end; gap: 4px;
  padding: 8px 10px 0;
  background: var(--tile-2);
  border-bottom: 1px solid var(--stroke);
  flex: none;
}
.ex-tab {
  display: flex; align-items: center; gap: 8px;
  height: 33px; padding: 0 7px 0 12px;
  border-radius: 9px 9px 0 0;
  font-size: 11.5px; color: var(--text-2);
}
.ex-tab.active {
  background: var(--mica-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--stroke-outer), 0 -1px 0 var(--stroke);
}
.ex-tab .ic { width: 15px; height: 15px; opacity: .8; }
.ex-tabx { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--text-3); }
.ex-tabx:hover { background: var(--hover); color: var(--text); }
.ex-tabx .ic { width: 12px; height: 12px; }
.ex-tabadd { width: 28px; height: 28px; margin-bottom: 3px; display: grid; place-items: center; border-radius: 7px; color: var(--text-2); }
.ex-tabadd:hover { background: var(--hover); }
.ex-tabadd .ic { width: 14px; height: 14px; }

.ex-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--stroke);
  flex: none;
}
.ex-cmds { gap: 2px; padding: 5px 12px; }
.ex-cmd {
  display: flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px; color: var(--text); white-space: nowrap;
}
.ex-cmd:hover { background: var(--hover); }
.ex-cmd .ic { width: 14px; height: 14px; color: var(--text-2); }
.ex-vsep { width: 1px; height: 16px; margin: 0 6px; background: var(--stroke-strong); }
.ex-flex { flex: 1; }
.ex-user { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); }
.ex-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 10px;
}
.ex-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px; width: 232px;
  border-radius: 7px;
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  color: var(--text-3);
}
.ex-search .ic { width: 14px; height: 14px; flex: none; }
.ex-search input { flex: 1; min-width: 0; font-size: 11.5px; }
.ex-search:focus-within { border-color: var(--stroke-strong); }

.ex-navitem .ic { width: 17px; height: 17px; flex: none; }
.ex-tagdot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0 4px; }
.ex-drop {
  margin: 16px 8px 6px;
  padding: 18px 10px;
  border: 1px dashed var(--stroke-strong);
  border-radius: 9px;
  display: grid; justify-items: center; gap: 6px;
  color: var(--text-3); font-size: 10px; text-align: center;
}
.ex-drop .ic { width: 14px; height: 14px; }

.ex-section {
  display: flex; align-items: center; gap: 6px;
  margin: 2px 0 14px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500;
}
.ex-section .ic { width: 14px; height: 14px; color: var(--text-3); }
.ex-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 14px;
}
.ex-card { border-radius: 9px; cursor: default; }
.ex-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tile), var(--tile-2));
  border: 1px solid var(--stroke);
}
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-card:hover .ex-thumb { border-color: var(--stroke-strong); }
.ex-card.selected .ex-thumb { outline: 2px solid var(--accent); outline-offset: 1px; }
.ex-cname {
  margin-top: 8px; font-size: 11.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ex-ctype { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.ex-thumb-sm { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex: none; }

/* ---------- 记事本 ---------- */
.np-area {
  flex: 1;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  padding: 22px 28px;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
  background: transparent;
  user-select: text;
}
.np-status {
  flex: none;
  display: flex; justify-content: space-between;
  padding: 5px 14px;
  border-top: 1px solid var(--stroke);
  font-size: 10.5px; color: var(--text-3);
  letter-spacing: .03em;
  background: var(--tile-2);
}
.np-name { font-size: 11.5px; color: var(--text-3); margin-left: 4px; }

/* ---------- 终端 ---------- */
.term {
  flex: 1;
  display: flex; flex-direction: column;
  background: #131416;
  color: #d9d4c9;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.66;
  overflow: hidden;
}
.term-out { flex: 1; overflow-y: auto; padding: 16px 18px 4px; white-space: pre-wrap; word-break: break-word; }
@keyframes lineIn { from { opacity: 0; transform: translateY(3px); } }
.term-line { min-height: 1.66em; animation: lineIn .16s var(--ease) backwards; }
.term-prompt { color: #8ea8e8; }
.term-path { color: #93c1a4; }
.term-cmd { color: #f6f2e9; }
.term-err { color: #e2927f; }
.term-ok { color: #93c1a4; }
.term-dim { color: #6f6b64; }
.term-accent { color: #c9a46a; }
.term-input-row { display: flex; align-items: center; gap: 8px; padding: 4px 18px 16px; }
.term-input {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #f6f2e9;
  caret-color: #8ea8e8;
  user-select: text;
}
/* PowerShell 经典配色 */
.term.ps { background: #012456; color: #eeeef2; }
.term.ps .term-prompt { color: #f6f2e9; }
.term.ps .term-cmd { color: #ffffff; }
.term.ps .term-dim { color: #9db2cf; }
.term.ps .term-ok { color: #8fe3a4; }
.term.ps .term-err { color: #ff8a7a; }
.term.ps .term-accent { color: #ffd479; }
.term.ps .term-input { color: #ffffff; caret-color: #ffffff; }

/* ---------- 计算器 ---------- */
.calc { display: flex; flex-direction: column; height: 100%; padding: 0 14px 14px; gap: 8px; }
.calc-display {
  flex: none;
  padding: 20px 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 6px;
}
.calc-expr { font-size: 11.5px; color: var(--text-3); min-height: 18px; word-break: break-all; letter-spacing: .02em; }
.calc-value {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
}
.calc-modes { display: flex; gap: 4px; padding: 0 2px; }
.calc-mode {
  font-size: 10.5px; padding: 5px 11px; border-radius: 6px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.calc-mode.active {
  background: var(--tile-2);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.calc-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 5px;
  min-height: 0;
}
.calc-key {
  transition: background .12s var(--ease), transform .1s var(--ease);
  border-radius: 8px;
  font-size: 16px;
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
  transition: background .1s, transform .06s;
  font-variant-numeric: tabular-nums;
}
.calc-key:hover { background: var(--hover); }
.calc-key:active { transform: scale(.97); background: var(--active); }
.calc-key.op { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }
.calc-key.eq { background: var(--accent); border-color: transparent; color: #fff; }
.calc-key.eq:hover { background: var(--accent-strong); }
.calc-key.fn { font-size: 13px; color: var(--text-2); }

/* ---------- 设置 ---------- */
.set-main { flex: 1; display: flex; min-height: 0; }
.set-side {
  width: 212px; flex: none; padding: 10px 8px;
  border-right: 1px solid var(--stroke);
  overflow-y: auto;
  background: var(--tile-2);
}
.set-account {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 6px 10px;
}
.set-avatar {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
}
.set-avatar svg { width: 100%; height: 100%; }
.set-account-txt { display: flex; flex-direction: column; min-width: 0; }
.set-account-txt b {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-account-txt em {
  font-style: normal; font-size: 9.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-search {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 9px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: var(--tile);
  border: 1px solid var(--stroke);
  color: var(--text-3);
}
.set-search .ic { width: 13px; height: 13px; flex: none; }
.set-search input { flex: 1; min-width: 0; font-size: 11px; }
.set-search:focus-within { border-color: var(--stroke-strong); }
.set-nav {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border-radius: 6px; font-size: 12px; text-align: left;
  transition: background .12s;
}
.set-nav:hover { background: var(--hover); }
.set-nav.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.set-nav .ic { width: 16px; height: 16px; flex: none; }
.set-content { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px; }
.set-h1 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.set-sub { font-size: 11.5px; color: var(--text-3); margin-bottom: 22px; letter-spacing: .01em; }
.set-card {
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  padding: 15px 17px;
  margin-bottom: 10px;
}
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.set-row + .set-row { border-top: 1px solid var(--stroke); }
.set-row .set-rt { font-size: 12px; }
.set-row .set-rs { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.set-section-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
  margin: 24px 0 10px;
}

/* ---------- 设置 · 控制面板 ---------- */
.cp-links { display: flex; gap: 10px; margin-bottom: 14px; }
.cp-link {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  font-size: 12px; text-align: left;
  transition: background .13s, border-color .13s;
}
.cp-link:hover { background: var(--hover); border-color: var(--stroke-strong); }
.cp-lic {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
}
.cp-lic .ic { width: 15px; height: 15px; }
.cp-lic.blue { background: #2b6fd4; color: #fff; }
.cp-lic.gray { background: var(--tile); color: var(--text-2); border: 1px solid var(--stroke); }

.cp-list {
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.cp-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  color: var(--text);
  transition: background .12s;
}
.cp-row + .cp-row { border-top: 1px solid var(--stroke); }
.cp-row:hover { background: var(--hover); }
.cp-row > .ic { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.cp-ic {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cp-ic .ic { width: 15px; height: 15px; }
.cp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-txt b { font-weight: 500; font-size: 12px; }
.cp-txt em { font-style: normal; font-size: 10px; color: var(--text-3); }
.cp-note {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: .01em;
}

.wp-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wp-swatch {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  transition: border-color .15s, transform .15s;
  cursor: pointer;
}
.wp-swatch:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }
.wp-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wp-swatch .wp-fill { position: absolute; inset: 0; border-radius: 0; transform: none; }
.wp-swatch .wp-tag {
  position: absolute; left: 8px; bottom: 7px;
  font-size: 10px; letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.theme-seg {
  display: inline-flex; padding: 2px;
  border-radius: 8px;
  background: var(--tile);
  border: 1px solid var(--stroke);
}
.theme-seg button {
  padding: 6px 14px; border-radius: 6px; font-size: 11.5px; color: var(--text-2);
  transition: background .16s, color .16s;
}
.theme-seg button.active { background: var(--accent); color: #fff; }

.accent-row { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-dot {
  width: 26px; height: 26px; border-radius: 7px;
  border: 2px solid transparent;
  outline: 1px solid var(--stroke);
  outline-offset: 2px;
  transition: transform .15s, border-color .15s;
}
.accent-dot:hover { transform: scale(1.08); }
.accent-dot.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

.spec-list { display: grid; gap: 0; }
.spec-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 10px 0; font-size: 12px;
}
.spec-row + .spec-row { border-top: 1px solid var(--stroke); }
.spec-row .sk { color: var(--text-3); }
.spec-row .sv { text-align: right; max-width: 62%; }

.switch {
  width: 38px; height: 21px; border-radius: 999px;
  background: var(--stroke-strong); position: relative; flex: none;
  transition: background .18s;
  cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  transition: transform .2s var(--ease);
}
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(17px); }

/* ---------- 照片 ---------- */
.ph-grid {
  flex: 1; overflow-y: auto; padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 8px;
  align-content: start;
}
.ph-tile {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--stroke);
  transition: transform .16s var(--ease), border-color .16s;
}
.ph-tile:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }
.ph-tile .ph-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  font-size: 10.5px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
}
.ph-viewer {
  position: absolute; inset: 0;
  z-index: 3;
  background: rgba(10, 10, 11, .95);
  display: grid; grid-template-rows: auto 1fr; justify-items: center;
  padding: 14px;
}
.ph-viewer-top {
  justify-self: stretch;
  display: flex; align-items: center; justify-content: space-between;
  color: #efebe2; font-size: 11px; letter-spacing: .04em;
}
.ph-viewer-top .icon-btn { color: rgba(255, 255, 255, .7); }
.ph-viewer-top .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ph-canvas {
  align-self: center;
  width: min(78%, 640px);
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9);
}

/* ---------- 时钟 ---------- */
.clock-app { flex: 1; display: grid; place-items: center; padding: 24px; overflow: auto; }
.clock-main { display: grid; justify-items: center; gap: 8px; }
.clock-big {
  font-family: var(--font-display);
  font-size: 68px; font-weight: 300;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.clock-date { font-size: 12px; color: var(--text-2); letter-spacing: .04em; }
.clock-tz { font-size: 9.5px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; }
.clock-world { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.clock-city {
  padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--tile-2); border: 1px solid var(--stroke);
  text-align: center; min-width: 104px;
}
.clock-city .cc-name { font-size: 10px; color: var(--text-3); letter-spacing: .08em; }
.clock-city .cc-time {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 300;
  margin-top: 4px; font-variant-numeric: tabular-nums;
}
.clock-strip {
  align-self: stretch;
  display: flex; gap: 6px; justify-content: center;
  margin-top: 24px; flex-wrap: wrap;
}
.clock-chip {
  padding: 6px 13px; border-radius: 999px; font-size: 10.5px;
  letter-spacing: .04em;
  background: var(--tile-2); border: 1px solid var(--stroke);
  color: var(--text-2);
}

/* ---------- Copilot ---------- */
.ai { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ai-hero {
  padding: 26px 24px 12px;
  display: flex; align-items: center; gap: 14px;
  flex: none;
  border-bottom: 1px solid var(--stroke);
}
.ai-orb {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--accent) 42%, #1b1d22 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 18px -8px rgba(40, 60, 120, .7);
  animation: orbPulse 4.5s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 18px -8px rgba(40, 60, 120, .7); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 8px 26px -6px rgba(40, 60, 120, .9); }
}
.ai-title { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.ai-sub { font-size: 10.5px; color: var(--text-3); margin-top: 3px; letter-spacing: .03em; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px 24px 12px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; gap: 10px; max-width: 88%; }
.ai-msg .bubble {
  padding: 10px 13px; border-radius: 10px; font-size: 12px; line-height: 1.7;
  background: var(--tile-2); border: 1px solid var(--stroke);
  white-space: pre-wrap; user-select: text;
}
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg.user .bubble { background: var(--accent); border-color: transparent; color: #fff; }
.ai-msg .who {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
}
.ai-msg.bot .who {
  background: radial-gradient(circle at 32% 28%, #fff, var(--accent) 60%);
  color: #fff;
}
.ai-msg.user .who { background: var(--tile-2); border: 1px solid var(--stroke); color: var(--text-2); }
.ai-chips { display: flex; gap: 6px; padding: 0 24px 10px; flex-wrap: wrap; flex: none; }
.ai-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 10.5px;
  letter-spacing: .02em;
  background: var(--tile-2); border: 1px solid var(--stroke);
  color: var(--text-2);
  transition: background .13s, border-color .13s, color .13s;
}
.ai-chip:hover { background: var(--hover); border-color: var(--stroke-strong); color: var(--text); }
.ai-input-row {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  margin: 0 20px 18px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  transition: border-color .15s;
}
.ai-input-row:focus-within { border-color: var(--stroke-strong); }
.ai-input { flex: 1; font-size: 12px; }
.ai-send {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  transition: background .13s, transform .1s;
}
.ai-send:hover { background: var(--accent-strong); }
.ai-send:active { transform: scale(.95); }
.ai-send .ic { width: 15px; height: 15px; }

/* ---------- 关于本机（快捷面板内） ---------- */
.about-mini { font-size: 11px; color: var(--text-2); line-height: 1.75; }
.about-mini b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   注册表编辑器
   ========================================================================== */
.rg-app { background: var(--mica-strong); }

.rg-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--stroke);
  background: var(--tile-2);
  flex: none;
}
.rg-cmd {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-2);
  transition: background .13s, color .13s;
}
.rg-cmd:hover { background: var(--hover); color: var(--text); }
.rg-cmd .ic { width: 16px; height: 16px; }
.rg-cmd.primary { background: var(--tile); border: 1px solid var(--stroke); color: var(--text); }
.rg-sep { width: 1px; height: 18px; background: var(--stroke-strong); margin: 0 5px; flex: none; }

.icon-btn.on { color: var(--accent); background: var(--accent-soft); }

.rg-addr {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 4px 0 9px;
  border-radius: 7px;
  background: var(--tile);
  border: 1px solid var(--stroke);
  transition: border-color .13s;
}
.rg-addr:focus-within { border-color: var(--accent); }
.rg-addr > .ic { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.rg-addr input {
  flex: 1; min-width: 0;
  font-size: 11.5px;
  color: var(--text);
  letter-spacing: .01em;
}
.rg-addr .icon-btn { width: 24px; height: 24px; }
.rg-addr .icon-btn .ic { width: 13px; height: 13px; }

.rg-main { flex: 1; display: flex; min-height: 0; }
.rg-tree {
  width: 252px; flex: none;
  padding: 8px 6px;
  overflow: auto;
  border-right: 1px solid var(--stroke);
  background: var(--tile-2);
}
.rg-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rg-cols {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1.5fr);
  gap: 8px;
  padding: 7px 12px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--text-3);
  border-bottom: 1px solid var(--stroke);
}
.rg-vals { flex: 1; overflow: auto; padding: 5px 6px; }
.rg-val {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1.5fr);
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  font-size: 11.5px;
}
.rg-val:hover { background: var(--hover); }
.rg-dense .rg-val { padding: 3px 6px; }
.rg-vn { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rg-vn > .ic { width: 13px; height: 13px; color: var(--text-3); flex: none; }
.rg-vn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-vt { font-size: 10.5px; color: var(--text-3); }
.rg-vd {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
.rg-empty { padding: 48px 16px; text-align: center; font-size: 12px; color: var(--text-3); }

.rg-node > .rg-children { display: none; margin-left: 13px; border-left: 1px solid var(--stroke); padding-left: 4px; }
.rg-node.open > .rg-children { display: block; }
.rg-row {
  display: flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 6px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  cursor: default;
}
.rg-row:hover { background: var(--hover); }
.rg-row.sel { background: var(--accent-soft); color: var(--text); }
.rg-tw { width: 14px; height: 14px; flex: none; display: grid; place-items: center; color: var(--text-3); }
.rg-tw .ic { width: 11px; height: 11px; transition: transform .16s var(--ease); }
.rg-node.open > .rg-row .rg-tw .ic { transform: rotate(90deg); }
.rg-row > .ic { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.rg-row.sel > .ic { color: var(--accent); }
.rg-name { overflow: hidden; text-overflow: ellipsis; }

.rg-status {
  flex: none;
  display: flex; justify-content: space-between;
  padding: 5px 14px;
  border-top: 1px solid var(--stroke);
  background: var(--tile-2);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: var(--text-3);
}

/* ==========================================================================
   Messenger
   ========================================================================== */
.ms-app { background: var(--mica-strong); }

.ms-top {
  flex: none;
  display: flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--stroke);
}
.ms-top > .ic { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.ms-search { flex: 1; min-width: 0; font-size: 12.5px; }

.ms-tabs {
  flex: none;
  display: flex; align-items: flex-end;
  height: 44px; padding: 0 12px;
  border-bottom: 1px solid var(--stroke);
}
.ms-tab {
  position: relative;
  height: 44px; padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .13s, border-color .13s;
}
.ms-tab:hover { color: var(--text); }
.ms-tab.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.ms-logo {
  margin-left: auto; margin-bottom: 7px;
  width: 29px; height: 29px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #7cc0ff, #2b7cf0);
}
.ms-logo .ic { width: 15px; height: 15px; stroke-width: 1.9; }
.ms-logo .ic path { fill: #fff; stroke: none; }

.ms-body { flex: 1; display: flex; min-height: 0; }
.ms-side {
  position: relative;
  width: 246px; flex: none;
  display: flex; flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--stroke);
  background: var(--tile-2);
}
.ms-list { flex: 1; overflow: auto; padding: 6px; }
.ms-contact {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 8px;
  border-radius: 9px;
  text-align: left;
  transition: background .13s;
}
.ms-contact:hover { background: var(--hover); }
.ms-contact.active { background: var(--accent-soft); }
.ms-av {
  position: relative;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: #fff;
}
.ms-av.big { width: 76px; height: 76px; font-size: 22px; }
.ms-dot {
  position: absolute; right: 0; bottom: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3fbf57;
  border: 2px solid var(--mica-strong);
}
.ms-av.big .ms-dot { width: 14px; height: 14px; right: 4px; bottom: 6px; }
.ms-ct { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ms-ct b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-ct em {
  font-style: normal;
  font-size: 10.5px; line-height: 1.45;
  color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-new {
  position: absolute; left: 14px; bottom: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  background: var(--mica-strong);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 18px -10px rgba(28, 25, 18, .45);
  transition: background .13s, color .13s;
}
.ms-new:hover { background: var(--tile); color: var(--text); }
.ms-new .ic { width: 17px; height: 17px; }

.ms-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ms-thread {
  flex: 1; overflow: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px 8px;
  background: linear-gradient(180deg, rgba(224, 237, 251, .35), rgba(240, 245, 252, .12));
}
html[data-theme="dark"] .ms-thread { background: linear-gradient(180deg, rgba(88, 120, 164, .12), rgba(60, 74, 96, .04)); }

.ms-msg { display: flex; flex-direction: column; max-width: 74%; }
.ms-msg.them { align-self: flex-start; align-items: flex-start; }
.ms-msg.me { align-self: flex-end; align-items: flex-end; }
.ms-bubble {
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: 12px; line-height: 1.5;
  background: #e8e8e6;
  color: #1b1a17;
}
.ms-msg.me .ms-bubble { background: #1b76e0; color: #fff; border-radius: 14px 14px 4px 14px; }
html[data-theme="dark"] .ms-msg.them .ms-bubble { background: rgba(255, 255, 255, .1); color: var(--text); }
.ms-time { font-size: 9.5px; color: var(--text-3); margin: 4px 4px 8px; }
.ms-empty { margin: auto; font-size: 12px; color: var(--text-3); }

.ms-compose {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--stroke);
}
.ms-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  height: 38px;
  padding: 0 4px 0 13px;
  border-radius: 19px;
  background: var(--tile);
  border: 1px solid var(--stroke-strong);
  transition: border-color .14s;
}
.ms-field:focus-within { border-color: var(--accent); }
.ms-field input { flex: 1; min-width: 0; font-size: 12px; }
.ms-cbtn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-3);
  transition: background .13s, color .13s;
}
.ms-cbtn:hover { background: var(--hover); color: var(--text); }
.ms-cbtn .ic { width: 17px; height: 17px; }

.ms-profile { margin: auto; display: grid; justify-items: center; gap: 5px; }
.ms-profile b { font-size: 15px; margin-top: 8px; }
.ms-profile em { font-style: normal; font-size: 11px; color: var(--text-3); }
.ms-primary {
  margin-top: 14px;
  height: 34px; padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}
.ms-primary:hover { filter: brightness(1.07); }

.ms-app.setting .ms-side { display: none; }
.ms-set { width: 100%; max-width: 560px; padding: 24px 28px; }
.ms-set h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.ms-set-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--stroke);
}
.ms-switch {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--active);
  transition: background .18s;
}
.ms-switch::after {
  content: "";
  position: absolute; left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s var(--ease);
}
.ms-switch.on { background: var(--accent); }
.ms-switch.on::after { transform: translateX(16px); }

/* ==========================================================================
   文件资源管理器 · 新版主页（浅紫底 · 蓝色药丸工具栏）
   ========================================================================== */
.ex-app { background: linear-gradient(180deg, #fbfaff, #f7f5fd); }
html[data-theme="dark"] .ex-app { background: transparent; }

.ex-app .ex-tabs {
  align-items: center;
  padding: 8px 12px 0;
  background: transparent;
  border-bottom: 0;
}
.ex-app .ex-tab {
  height: 32px;
  border-radius: 9px 9px 0 0;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--stroke);
  border-bottom: 0;
  color: var(--text-2);
}
.ex-app .ex-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .8);
}
.ex-app .ex-tab .ic { color: #3568d4; }
.ex-app .ex-tabadd { margin-bottom: 2px; }

.ex-app .ex-cmds {
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border-bottom: 0;
}
.ex-app .ex-nav { gap: 1px; }
.ex-app .ex-nav .icon-btn { width: 28px; height: 28px; color: var(--text-3); }
.ex-app .ex-nav .icon-btn:hover { color: var(--text); }
.ex-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
  transition: background .13s, filter .13s;
}
.ex-pill .ic { width: 13px; height: 13px; }
.ex-pill.primary { background: #3568d4; color: #fff; box-shadow: 0 2px 6px -3px rgba(53, 104, 212, .7); }
.ex-pill.primary:hover { filter: brightness(1.06); }
.ex-pill.ghost { background: rgba(53, 104, 212, .13); color: #2f5fb8; }
.ex-pill.ghost:hover { background: rgba(53, 104, 212, .2); }
.ex-cmd.solo {
  width: 30px; height: 30px; padding: 0;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-2);
}
.ex-cmd.solo .ic { width: 15px; height: 15px; color: inherit; }
.ex-cmd.solo:hover { background: var(--hover); }
.ex-app .ex-vsep { height: 15px; margin: 0 4px; }

.ex-app .ex-pathbar {
  padding: 0 12px 9px;
  background: transparent;
  border-bottom: 1px solid var(--stroke);
}
.ex-app .ex-crumbs {
  background: transparent;
  border: 0;
  height: 30px;
  padding: 0 2px;
  font-size: 12px;
  gap: 1px;
}
.ex-app .ex-crumb {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--text);
}
.ex-app .ex-crumb .ic { width: 13px; height: 13px; color: #3568d4; }
.ex-app .ex-crumb.home { color: var(--text-2); font-weight: 500; }
.ex-app .ex-crumb-sep { color: var(--text-3); }
.ex-app .ex-search {
  width: 312px;
  height: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 1px 2px rgba(28, 25, 18, .04);
}
.ex-app .ex-search .ic { color: var(--text-3); }

.ex-app .ex-side {
  display: flex; flex-direction: column;
  width: 190px;
  padding: 8px 8px 10px;
  background: #f3f1fb;
  border-right: 1px solid var(--stroke);
  overflow: hidden;
}
.ex-side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.ex-side-gap { height: 10px; }
.ex-app .ex-navitem {
  height: 32px;
  padding: 0 10px;
  gap: 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
}
.ex-app .ex-navitem:hover { background: rgba(53, 104, 212, .08); }
.ex-app .ex-navitem.active {
  background: rgba(53, 104, 212, .14);
  color: #2f5fb8;
  font-weight: 500;
}
.ex-app .ex-navitem.active .ex-sic { color: #2f5fb8 !important; }
.ex-sic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.ex-sic .ic { width: 15px; height: 15px; }

.ex-side-foot { flex: none; padding-top: 8px; border-top: 1px solid var(--stroke); }
.ex-onedrive { display: flex; align-items: center; gap: 2px; }
.ex-od-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 6px;
  border-radius: 6px;
  font-size: 11.5px;
}
.ex-od-main:hover { background: rgba(53, 104, 212, .08); }
.ex-od-ext { font-style: normal; font-size: 10px; color: var(--text-3); margin-left: auto; }
.ex-od-more {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 5px;
  color: var(--text-3);
}
.ex-od-more:hover { background: var(--hover); color: var(--text); }
.ex-od-more .ic { width: 13px; height: 13px; }
.ex-drop-note {
  margin-top: 7px;
  width: 100%;
  padding: 9px 8px;
  border: 1px dashed var(--stroke-strong);
  border-radius: 8px;
  font-size: 9.5px; line-height: 1.45;
  color: var(--text-3);
  text-align: center;
}
.ex-drop-note:hover { background: rgba(53, 104, 212, .05); color: var(--text-2); }

.ex-app .ex-content { padding: 16px 22px 22px; background: #fbfaff; }
.ex-qhead {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  margin: 2px 0 14px;
}
.ex-qhead .ic { width: 13px; height: 13px; color: var(--text-3); }
.ex-qhead-fav { margin-top: 26px; }
.ex-qa {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}
.ex-qa-item {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 12px 12px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-align: left;
  transition: background .13s, border-color .13s, box-shadow .13s;
}
.ex-qa-item:hover {
  background: #fff;
  border-color: var(--stroke);
  box-shadow: 0 3px 10px -6px rgba(30, 30, 70, .28);
}
.ex-qa-ic {
  width: 56px; height: 48px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 5px 12px -8px rgba(30, 50, 100, .75);
}
.ex-qa-ic .ic { width: 24px; height: 24px; }
.ex-qa-item b { font-size: 11.5px; font-weight: 500; color: var(--text); }
.ex-qa-item em { font-style: normal; font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.ex-qa-pin {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-3);
  opacity: .45;
  transition: opacity .13s, background .13s, color .13s;
}
.ex-qa-item:hover .ex-qa-pin { opacity: .9; }
.ex-qa-pin.pinned { opacity: 1; color: #3568d4; background: rgba(53, 104, 212, .13); }
.ex-qa-pin .ic { width: 12px; height: 12px; }
.ex-fav {
  font-size: 10.5px;
  color: var(--text-3);
  padding: 4px 0 10px;
}

html[data-theme="dark"] .ex-app .ex-tab { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .ex-app .ex-tab.active { background: rgba(255, 255, 255, .1); box-shadow: none; }
html[data-theme="dark"] .ex-app .ex-search { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .ex-app .ex-side { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .ex-app .ex-content { background: transparent; }
html[data-theme="dark"] .ex-qa-item:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .ex-pill.ghost { background: rgba(96, 140, 230, .2); color: #a8c3f5; }

/* ==========================================================================
   任务管理器
   ========================================================================== */
.tm-app { background: var(--mica-strong); }
.tm-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--stroke);
  flex: none;
}
.tm-tabs { display: flex; gap: 2px; }
.tm-tab {
  height: 28px; padding: 0 11px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-2);
}
.tm-tab:hover { background: var(--hover); color: var(--text); }
.tm-tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tm-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  height: 28px; width: 190px; padding: 0 9px;
  border-radius: 6px;
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  color: var(--text-3);
}
.tm-search .ic { width: 13px; height: 13px; flex: none; }
.tm-search input { flex: 1; min-width: 0; font-size: 11px; }

.tm-head {
  display: grid;
  grid-template-columns: 1fr 86px 52px 76px 70px;
  gap: 10px;
  padding: 7px 14px 7px 46px;
  border-bottom: 1px solid var(--stroke);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--text-3);
  flex: none;
}
.tm-list { flex: 1; overflow-y: auto; padding: 4px 6px; }
.tm-row {
  display: grid;
  grid-template-columns: 22px 1fr 86px 52px 76px 70px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 7px;
  text-align: left;
  font-size: 11.5px;
}
.tm-row:hover { background: var(--hover); }
.tm-row .si { flex: none; }
.tm-name { display: flex; flex-direction: column; min-width: 0; }
.tm-name b {
  font-size: 11.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-name em { font-size: 9.5px; color: var(--text-3); font-style: normal; }
.tm-st { font-size: 10.5px; color: #3f9364; }
.tm-num { font-size: 10.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tm-end {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  color: #c4453d;
  opacity: 0;
  transition: opacity .12s, background .12s;
}
.tm-row:hover .tm-end { opacity: 1; }
.tm-end:hover { background: rgba(196, 69, 61, .12); }
.tm-empty { padding: 48px 0; text-align: center; font-size: 11.5px; color: var(--text-3); }
.tm-foot {
  flex: none;
  display: flex; justify-content: space-between;
  padding: 5px 14px;
  border-top: 1px solid var(--stroke);
  font-size: 10.5px;
  color: var(--text-3);
}
.tm-perf {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}
.tm-perf-card {
  padding: 14px;
  border-radius: 10px;
  background: var(--tile-2);
  border: 1px solid var(--stroke);
}
.tm-pc-top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }
.tm-pc-top b { color: var(--text); font-size: 11px; font-weight: 600; }
.tm-pc-top em { font-style: normal; }
.tm-perf-card strong { display: block; margin: 8px 0 9px; font-size: 20px; font-weight: 500; }
.tm-meter { display: block; height: 5px; border-radius: 4px; background: var(--stroke); overflow: hidden; }
.tm-meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

/* ---------- 资源管理器：标签过滤与拖拽收集 ---------- */
.ex-app { position: relative; }
.ex-app .ex-content { padding-bottom: 64px; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.ex-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.ex-tag i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.ex-tag:hover { background: var(--hover); }
.ex-tag.on { background: var(--tile-2); border-color: var(--stroke); color: var(--text); }

.ex-cmdbar {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--acrylic-deep);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  z-index: 6;
}
.ex-cb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.ex-cb .ic { width: 13px; height: 13px; }
.ex-cb:hover { background: var(--hover); }
.ex-cb.on { background: var(--accent); color: #fff; }

.ex-collect {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: max-content;
  min-width: 300px;
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--acrylic-deep);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  z-index: 6;
}
.ex-collect.over { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent); }
.ex-collect-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.ex-collect-h em { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 10px; }
.ex-collect-h button { margin-left: auto; font-size: 10px; color: var(--accent); }
.ex-collect-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; align-items: center; }
.ex-collect-empty { font-size: 10.5px; color: var(--text-3); }
.ex-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--tile);
  border: 1px solid var(--stroke);
  font-size: 10px;
}
.ex-chip button { color: var(--text-3); font-size: 11px; line-height: 1; }
.ex-chip button:hover { color: var(--text); }

/* ==========================================================================
   Internet Explorer 11
   ========================================================================== */
.ie-app {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0;
  background: #f3f3f3; color: #1b1b1b;
  font-size: 12px;
}
.ie-menubar {
  flex: none;
  display: flex; align-items: center; gap: 1px;
  padding: 4px 8px;
  background: #f7f7f7;
  border-bottom: 1px solid #dcdcdc;
}
.ie-menu { padding: 4px 9px; border-radius: 4px; font-size: 11.5px; color: #202020; }
.ie-menu:hover { background: #dbeafd; }
.ie-safe {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: #6b7c8f;
}
.ie-safe .ic { width: 12px; height: 12px; }

.ie-cmd {
  flex: none;
  display: flex; align-items: center; gap: 3px;
  padding: 4px 8px 6px;
  background: #f7f7f7;
  border-bottom: 1px solid #dcdcdc;
}
.ie-nav { width: 27px; height: 27px; border-radius: 5px; display: grid; place-items: center; color: #3a4a5c; }
.ie-nav:hover { background: #dbeafd; }
.ie-nav:disabled { opacity: .32; cursor: default; background: none; }
.ie-nav .ic { width: 15px; height: 15px; }
.ie-addr {
  flex: 1; display: flex; align-items: center; gap: 6px;
  height: 26px; margin: 0 5px; padding: 0 3px 0 7px;
  background: #fff; border: 1px solid #b9c6d4; border-radius: 3px;
}
.ie-addr:focus-within { border-color: #2b7cd3; box-shadow: inset 0 0 0 1px rgba(43, 124, 211, .25); }
.ie-site { display: grid; place-items: center; }
.ie-site svg { border-radius: 3px; }
.ie-addr input { flex: 1; min-width: 0; font-size: 11.5px; color: #1b1b1b; }
.ie-go { width: 24px; height: 22px; border-radius: 3px; display: grid; place-items: center; color: #2b7cd3; }
.ie-go:hover { background: #e3f0ff; }
.ie-go .ic { width: 13px; height: 13px; }
.ie-sep { width: 1px; height: 18px; background: #d2d2d2; margin: 0 5px; }

.ie-progress { flex: none; height: 2px; background: transparent; }
.ie-progress.on { background: #e2e8f0; }
.ie-progress span {
  display: block; width: 0; height: 100%;
  background: #2b7cd3; transition: width .6s ease;
}
.ie-tabs { flex: none; display: flex; padding: 5px 8px 0; background: #e9eef4; }
.ie-tab {
  display: flex; align-items: center; gap: 7px;
  max-width: 300px; padding: 5px 6px 5px 9px;
  border-radius: 5px 5px 0 0;
  background: #fff; border: 1px solid #cdd6e0; border-bottom-color: #fff;
  font-size: 11px;
}
.ie-tab-ic { display: grid; place-items: center; }
.ie-tabx { width: 16px; height: 16px; border-radius: 3px; display: grid; place-items: center; color: #7a8796; }
.ie-tabx:hover { background: #e6edf5; color: #23303d; }
.ie-tabx .ic { width: 10px; height: 10px; }

.ie-page { flex: 1; min-height: 0; position: relative; background: #fff; border-top: 1px solid #cdd6e0; }
.ie-page iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ie-web { display: flex; width: 100%; height: 100%; background: #fff; }

.ie-block {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center;
  gap: 10px; padding: 28px; text-align: center;
  background: #fff; color: #23303d;
}
.ie-block-ic {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #eaf1fb; color: #2b7cd3;
}
.ie-block-ic .ic { width: 22px; height: 22px; }
.ie-block b { font-size: 15px; font-weight: 600; }
.ie-block p { margin: 0; max-width: 430px; font-size: 11.5px; line-height: 1.7; color: #5b6b7c; }
.ie-block-acts { display: flex; gap: 8px; margin-top: 6px; }
.ie-block-btn {
  height: 28px; padding: 0 14px; border-radius: 4px;
  border: 1px solid #c3ced9; background: #f7f9fb;
  font-size: 11.5px; color: #23303d;
}
.ie-block-btn:hover { background: #eef4fb; }
.ie-block-btn.primary { background: #2b7cd3; border-color: #2b7cd3; color: #fff; }
.ie-block-btn.primary:hover { background: #1f6dc4; }

.ie-status {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 10px;
  background: #f0f0f0; border-top: 1px solid #d7d7d7;
  font-size: 10px; color: #4c5a68;
}
.ie-status-r { display: flex; align-items: center; gap: 14px; }
.ie-status-r span { display: flex; align-items: center; gap: 4px; }
.ie-status-r .ic { width: 11px; height: 11px; }

/* ---------- IE：Aurora 会员 / 阅读模式 ---------- */
.ie-member {
  margin-left: 10px; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  color: #6f5210; background: linear-gradient(180deg, #f8e6ad, #e9c876);
  border: 1px solid #d9b85f;
}
.ie-nav.txt { width: auto; padding: 0 9px; font-size: 12px; }
.ie-reader {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; background: #fff;
}
.ie-reader-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #f7f7f7; border-bottom: 1px solid #e5e5e5;
}
#ieReaderTitle {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #222;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ie-reader-btn {
  height: 26px; padding: 0 10px; font-size: 12px; color: #222;
  background: #fff; border: 1px solid #c8c8c8; border-radius: 4px;
}
.ie-reader-btn:hover { background: #eef3fb; border-color: #9db8e0; }
.ie-reader-body {
  flex: 1; overflow: auto; padding: 22px 26px;
  font-size: 14px; line-height: 1.75; color: #222;
  white-space: pre-wrap; user-select: text;
}
.ie-modal {
  position: absolute; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .32);
}
.ie-modal-card {
  width: 340px; padding: 18px; border-radius: 10px;
  background: #fff; color: #222; box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.ie-modal-title { display: block; margin-bottom: 8px; font-size: 15px; }
.ie-modal-body { font-size: 13px; line-height: 1.65; color: #333; }
.ie-modal-list { margin: 8px 0; padding-left: 18px; }
.ie-modal-price { margin: 10px 0 0; font-size: 13px; color: #8a6a1f; }
.ie-modal-price span { margin-left: 8px; font-size: 11px; color: #999; }
.ie-modal-input {
  width: 100%; height: 30px; margin-top: 10px; padding: 0 8px;
  font-size: 13px; color: #222; background: #fff;
  border: 1px solid #ccc; border-radius: 4px;
}
.ie-modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ie-plans { display: flex; gap: 8px; margin-top: 10px; }
.ie-plan {
  flex: 1; padding: 8px 6px; text-align: center; cursor: pointer;
  background: #fafafa; border: 1px solid #d9d9d9; border-radius: 8px;
}
.ie-plan b { display: block; font-size: 17px; color: #222; }
.ie-plan span { font-size: 11px; color: #777; }
.ie-plan.on { border-color: #2a56c6; background: #eef3ff; box-shadow: inset 0 0 0 1px #2a56c6; }
.ie-plan.on b { color: #1f44a8; }
.ie-modal-note { margin: 10px 0 0; font-size: 12px; color: #777; }

/* ---------- Office 套件 ---------- */
.of {
  display: flex; flex-direction: column; height: 100%;
  background: #f3f3f3; color: #222; font-size: 13px;
}
.of-tabs {
  display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 10px;
  background: #fff; border-bottom: 1px solid #e3e3e3;
}
.of-tab { height: 30px; padding: 0 12px; border-radius: 4px; font-size: 13px; color: #444; }
.of-tab:hover { background: #f0f0f0; }
.of-tab.on { background: #e8f0fd; color: #1f57a5; font-weight: 600; }
.of-file { margin-left: auto; font-size: 12px; color: #666; }
.of-state { margin-left: 12px; font-size: 11px; color: #2a7a44; }
.of-ribbon {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 6px 10px; background: #fbfbfb; border-bottom: 1px solid #e3e3e3;
}
.of-btn {
  min-width: 28px; height: 26px; padding: 0 9px;
  font-size: 12px; color: #333; background: transparent;
  border: 1px solid transparent; border-radius: 4px;
}
.of-btn:hover { background: #fff; border-color: #d8d8d8; }
.of-sep { width: 1px; height: 18px; margin: 0 4px; background: #ddd; }
.of-canvas {
  flex: 1; display: flex; justify-content: center; overflow: auto;
  padding: 20px; background: #e9e9e9;
}
.of-page {
  width: min(720px, 100%); min-height: 900px; padding: 56px 64px;
  background: #fff; color: #222; font-size: 15px; line-height: 1.75;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14); outline: none;
}
.of-page h1 { margin: 0 0 18px; font-size: 26px; }
.of-status {
  display: flex; gap: 22px; padding: 4px 12px;
  font-size: 11px; color: #666; background: #fff; border-top: 1px solid #e3e3e3;
}

/* Excel */
.xl-formula {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px;
  background: #fbfbfb; border-bottom: 1px solid #e3e3e3;
}
.xl-name {
  min-width: 56px; padding: 3px 6px; text-align: center; font-size: 12px;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 3px;
}
.xl-fx { font-size: 12px; font-style: italic; color: #888; }
.xl-input {
  flex: 1; height: 26px; padding: 0 8px; font-size: 12px; color: #222;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 3px;
}
.xl-wrap { flex: 1; overflow: auto; background: #fff; }
.xl-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xl-head, .xl-corner {
  height: 22px; font-size: 11px; font-weight: 500; color: #666;
  background: #f1f1f1; border: 1px solid #dcdcdc;
}
.xl-corner { width: 40px; }
.of-cell {
  height: 24px; min-width: 78px; padding: 2px 6px;
  font-size: 12px; color: #222; white-space: nowrap; overflow: hidden;
  border: 1px solid #e4e4e4; outline: none;
}
.of-cell.on { background: #e8f0fd; outline: 2px solid #2a56c6; outline-offset: -2px; }
.xl-tabs {
  display: flex; align-items: center; gap: 2px; padding: 3px 10px;
  background: #f3f3f3; border-top: 1px solid #e3e3e3;
}
.xl-tab { height: 24px; padding: 0 12px; font-size: 12px; color: #555; border-radius: 3px 3px 0 0; }
.xl-tab.on { background: #fff; color: #1f57a5; font-weight: 600; }
.xl-stat { margin-left: auto; font-size: 11px; color: #777; }

/* PowerPoint */
.pp { position: relative; }
.pp-main { flex: 1; display: flex; min-height: 0; background: #e9e9e9; }
.pp-thumbs {
  width: 150px; padding: 10px; overflow: auto;
  background: #f7f7f7; border-right: 1px solid #e0e0e0;
}
.pp-thumb {
  display: flex; gap: 8px; align-items: flex-start; width: 100%;
  padding: 8px; margin-bottom: 8px; text-align: left;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 5px;
}
.pp-thumb.on { border-color: #2a56c6; box-shadow: 0 0 0 1px #2a56c6; }
.pp-thumb b { font-size: 12px; color: #2a56c6; }
.pp-thumb span { font-size: 11px; color: #444; line-height: 1.4; }
.pp-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow: auto;
}
.of-slide {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  width: min(100%, 680px); aspect-ratio: 16 / 9; padding: 48px 56px;
  background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); outline: none;
}
.of-slide h2 { margin: 0; font-size: 30px; color: #1b1a17; outline: none; }
.of-slide p { margin: 0; font-size: 16px; color: #666; outline: none; }
.pp-hint { font-size: 11px; color: #888; }
.of-play {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; background: #111;
}
.of-play .of-slide { max-width: 88%; }
.of-play .of-slide h2 { font-size: 40px; }
.of-play .of-slide p { font-size: 18px; color: #555; }
.pp-tip { position: absolute; bottom: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- Windows 安全中心 ---------- */
.def-app { flex-direction: row; }
.def-side {
  width: 202px; flex: none; padding: 12px 8px;
  border-right: 1px solid var(--stroke);
  background: var(--tile-2);
  overflow-y: auto;
}
.def-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 9px 12px;
  font-size: 12.5px; font-weight: 600;
}
.def-brand .ic { width: 17px; height: 17px; flex: none; color: #1f7fa8; }
.def-nav {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 9px;
  border-radius: 6px; font-size: 11.5px; text-align: left;
  color: var(--text-2);
  transition: background .12s, color .12s;
}
.def-nav:hover { background: var(--hover); color: var(--text); }
.def-nav.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.def-nav .ic { width: 15px; height: 15px; flex: none; }

.def-main { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 30px 30px; }
.def-h1 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.def-sub { font-size: 11.5px; color: var(--text-3); margin-bottom: 20px; }

.def-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(296px, 1fr)); gap: 10px; }
.def-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  text-align: left;
  transition: background .13s, border-color .13s;
}
.def-tile:hover { background: var(--hover); border-color: var(--stroke-strong); }
.def-tile-ic {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(46, 160, 120, .14);
  color: #2b8a63;
}
.def-tile-ic .ic { width: 16px; height: 16px; }
.def-tile.warn .def-tile-ic { background: rgba(214, 138, 42, .16); color: #b8791f; }
.def-tile-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.def-tile-tx b { font-size: 12.5px; font-weight: 600; }
.def-tile-tx em { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.def-tile-go { color: var(--text-3); display: flex; }
.def-tile-go .ic { width: 14px; height: 14px; }

.def-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--tile);
  border: 1px solid var(--stroke);
  font-size: 10.5px; line-height: 1.6; color: var(--text-3);
}
.def-note .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }

.def-card {
  border-radius: var(--radius-md);
  background: var(--tile-2);
  border: 1px solid var(--stroke);
  padding: 4px 16px;
  margin-bottom: 10px;
}
.def-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 0;
}
.def-row + .def-row { border-top: 1px solid var(--stroke); }
.def-row-tx { min-width: 0; }
.def-row-tx b { display: block; font-size: 12px; font-weight: 500; }
.def-row-tx em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

.def-hero { display: flex; align-items: center; gap: 14px; padding: 17px 16px; }
.def-hero-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(46, 160, 120, .14);
  color: #2b8a63;
}
.def-hero-ic.warn { background: rgba(214, 138, 42, .16); color: #b8791f; }
.def-hero-ic .ic { width: 21px; height: 21px; }
.def-hero-tx { flex: 1; min-width: 0; }
.def-hero-tx b { display: block; font-size: 13px; font-weight: 600; }
.def-hero-tx em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 4px; }

.def-btn {
  height: 30px; padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--tile);
  font-size: 11.5px; color: var(--text-2);
  transition: background .12s, border-color .12s, color .12s;
}
.def-btn:hover { background: var(--hover); border-color: var(--stroke-strong); color: var(--text); }
.def-btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.def-btn.primary:hover { background: var(--accent-strong); color: #fff; }
.def-btn:disabled { opacity: .55; }

.def-progress { margin: 0 2px 12px; }
.def-track { height: 4px; border-radius: 999px; background: var(--stroke); overflow: hidden; }
.def-track i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #38b2a0, #2a7fc6);
  transition: width .12s linear;
}
.def-progress span { display: block; margin-top: 7px; font-size: 10px; color: var(--text-3); }

.def-ok { font-size: 11px; color: #2b8a63; }
.def-pill {
  font-size: 10px; padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===================== 辅助功能中心 ===================== */
.a11y-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px 0; font-size: 11.5px; color: var(--text-2);
}
.a11y-bar b { color: var(--text); font-weight: 600; }
.a11y-bar-tip { color: var(--text-3); font-size: 11px; }
.a11y-card {
  margin: 14px 24px 20px; border: 1px solid var(--stroke); border-radius: 14px;
  background: var(--mica-strong); overflow: hidden;
}
.a11y-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--stroke);
}
.a11y-row:first-child { border-top: 0; }
.a11y-tx { flex: 1; min-width: 0; }
.a11y-tx b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.a11y-tx em {
  display: block; margin-top: 3px; font-size: 11.5px;
  font-style: normal; color: var(--text-2); line-height: 1.6;
}
.a11y-seg { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--tile-2); }
.a11y-seg button { padding: 5px 11px; border-radius: 7px; font-size: 12px; color: var(--text-2); }
.a11y-seg button.on {
  background: var(--mica-strong); color: var(--text);
  font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.a11y-btn {
  padding: 7px 14px; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: var(--accent); color: #fff;
}
.a11y-btn.ghost { background: var(--tile-2); color: var(--text); font-weight: 500; }
.a11y-rate { display: flex; align-items: center; gap: 10px; }
.a11y-rate input { width: 130px; accent-color: var(--accent); }
.a11y-rate span { font-size: 11.5px; color: var(--text-2); min-width: 34px; }
.a11y-big {
  display: flex; align-items: center; gap: 18px;
  padding: 22px; background: var(--accent-soft);
}
.a11y-big .a11y-tx b { font-size: 18px; }
.a11y-list { padding: 8px 24px 18px 42px; font-size: 12px; color: var(--text-2); line-height: 2.1; }
.a11y-list li { list-style: disc; }
.a11y-note {
  display: flex; gap: 8px; margin: 0 24px 18px;
  font-size: 11.5px; color: var(--text-3); line-height: 1.7;
}
.a11y-note .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* 高对比度 */
html.a11y-contrast {
  --text: #ffe600; --text-2: #ffe600; --text-3: #ffd400;
  --stroke: #ffd400; --stroke-strong: #ffd400;
  --paper: #000; --mica: #000; --mica-strong: #000;
  --acrylic: #000; --acrylic-deep: #000;
  --tile-2: #141400; --accent: #ffd400; --accent-soft: #332c00;
  background: #000 !important;
}
html.a11y-contrast body { background: #000 !important; color: #ffe600 !important; }
html.a11y-contrast .wallpaper,
html.a11y-contrast .wallpaper-fx { display: none !important; }
html.a11y-contrast #taskbar,
html.a11y-contrast .flyout,
html.a11y-contrast .window {
  background: #000 !important;
  border-color: #ffd400 !important;
  box-shadow: 0 0 0 1px #ffd400 !important;
}
html.a11y-contrast .flyout *,
html.a11y-contrast #taskbar *,
html.a11y-contrast .desktop-icons *,
html.a11y-contrast .win-titlebar * { color: #ffe600 !important; }
html.a11y-contrast .win-titlebar {
  background: #000 !important;
  border-color: #ffd400 !important;
}
html.a11y-contrast .a11y-app,
html.a11y-contrast .a11y-app .def-side,
html.a11y-contrast .a11y-app .def-main,
html.a11y-contrast #widgetBar,
html.a11y-contrast #pinnedWidgets { background: #000 !important; border-color: #ffd400 !important; }
html.a11y-contrast .a11y-app * { color: #ffe600 !important; }
html.a11y-contrast .a11y-app .a11y-seg button { background: #141400 !important; color: #ffe600 !important; }
html.a11y-contrast .a11y-app .a11y-seg button.on { background: #ffd400 !important; color: #000 !important; }
html.a11y-contrast .a11y-app .a11y-btn { background: #ffd400 !important; color: #000 !important; }
html.a11y-contrast .a11y-app .a11y-btn.ghost { background: #141400 !important; color: #ffe600 !important; }
html.a11y-contrast .a11y-app .switch::after { background: #ffe600; }
html.a11y-contrast .ic { stroke: #ffe600 !important; }
html.a11y-contrast .switch { background: #3a3400 !important; }
html.a11y-contrast .switch.on { background: #ffd400 !important; }
html.a11y-contrast ::selection { background: #ffd400; color: #000; }

/* 减弱动画 */
html.a11y-reduce *,
html.a11y-reduce *::before,
html.a11y-reduce *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

/* 长者模式：面板与图标文字略放大 */
html.a11y-senior .desk-icon { font-size: 13.5px; }
html.a11y-senior .flyout { font-size: 14px; }
html.a11y-senior #taskbar { font-size: 14px; }
