/* ============================================================
   Agent Computer Use Atlas · style.css
   纯手写 · 零依赖 · 拟真 macOS 桌面（扁平 / 纯色 / 细节拟物）
   材质说明：backdrop-filter 仅用于菜单栏与 Dock 两处——
   这是对真实 macOS 材质的还原，不是装饰性毛玻璃。
   ============================================================ */

:root {
  --bg: #1e1e20;              /* 壁纸：石墨深灰 */
  --bar: #161618;             /* 底部状态条 */
  --ink: #1d1d1f;             /* 窗口内正文 */
  --ink2: #3a3a3c;
  --mut: #86868b;
  --hair: #d9d9de;            /* 窗口内细分隔线 */
  --wborder: #d0d0d0;         /* 窗口外边框 */
  --blue: #007aff;            /* macOS 系统蓝（按钮/选中） */
  --link: #7da4e8;            /* 深色底上的链接 */
  --link-dark: #0066cc;       /* 浅色底上的链接 */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); }
button { font-family: inherit; }
::selection { background: rgba(0, 122, 255, .28); }
a { color: var(--link); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 99;
  padding: 8px 14px; border-radius: 7px;
  background: #fff; color: var(--link-dark); text-decoration: none; font-size: 13px;
  border: 1px solid var(--wborder);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ═══ 桌面与壁纸（纯石墨，无纹理） ═══ */
.stage {
  position: relative;
  height: 100vh; min-height: 660px;
  overflow: hidden;
}
.wallpaper {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
}

/* ═══ 菜单栏（材质性半透明：拟真 macOS） ═══ */
.menubar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 900;
  height: 26px; padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #f5f5f7;
  background: rgba(28, 28, 30, .55);
  border-bottom: 1px solid rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}
.mb-left { display: flex; align-items: center; gap: 1px; min-width: 0; }
.mb-logo { width: 14px; height: 17px; margin: 0 8px 0 5px; flex: none; }
.mb-item {
  padding: 2px 9px; border-radius: 4px; white-space: nowrap;
  background: none; border: none; color: inherit;
  font-size: 13px; line-height: 1.3; cursor: default;
}
.mb-item:hover, .mb-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.mb-item[aria-disabled="true"] { cursor: default; }
.mb-strong { font-weight: 600; padding: 2px 9px; white-space: nowrap; }
.mb-right { display: flex; align-items: center; gap: 10px; color: #e8e8ed; }
.mb-ic { width: 17px; height: 13px; }
.mb-btn {
  width: 28px; height: 20px; margin: 0;
  display: grid; place-items: center;
  background: none; border: none; border-radius: 4px;
  color: inherit; cursor: pointer; opacity: .9;
  transition: background .15s;
}
.mb-btn:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.mb-btn svg { width: 10px; height: 12px; }
.mb-btn .i-play { display: none; }
body.is-paused .mb-btn .i-pause { display: none; }
body.is-paused .mb-btn .i-play { display: block; }
#mbTime { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 菜单栏下拉 ── */
.mb-drop {
  position: absolute; top: 28px; z-index: 960;
  min-width: 190px; padding: 5px;
  background: #f6f6f8;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .18);
}
.md-item {
  display: block; width: 100%; text-align: left;
  padding: 3px 10px; border: none; border-radius: 5px;
  background: none; cursor: pointer;
  font: 400 13px/1.5 var(--sans); color: var(--ink);
  white-space: nowrap;
}
.md-item:hover { background: var(--blue); color: #fff; }
.md-item[aria-disabled="true"] { color: #a1a1a6; pointer-events: none; }
.md-sep { height: 1px; margin: 5px 10px; background: rgba(0, 0, 0, .12); }

/* ═══ 桌面图标（扁平 macOS 文件夹） ═══ */
.desk-icons {
  position: absolute; left: 14px; top: 44px; z-index: 3;
  display: flex; flex-direction: column; gap: 16px;
}
.d-icon {
  width: 84px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; color: #f5f5f7; font-size: 11.5px; text-align: center;
  padding: 6px 4px; border-radius: 8px; outline: none;
}
.d-icon .d-thumb {
  width: 52px; height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}
.d-icon span {
  max-width: 100%; padding: 1px 6px; border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.d-icon.selected span { background: #3478f6; color: #fff; text-shadow: none; }
.d-icon:focus-visible span { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }

/* ═══ 窗口通用：真实 macOS 窗口质感（聚焦/失焦两级投影） ═══ */
.window {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--wborder);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .55s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s ease;
}
.window.active {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 3px 10px rgba(0, 0, 0, .22);
}
.window.dragging { transition: none; }
.win-bar {
  position: relative; flex: none;
  height: 36px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
  background: #ececee;
  border-bottom: 1px solid var(--hair);
}
.window:not(.active) .win-bar { background: #f4f4f6; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  padding: 0; border: 1px solid rgba(0, 0, 0, .12);
  background: #cfcfd4; position: relative; flex: none;
}
.window.active .d-r { background: #ff5f57; }
.window.active .d-y { background: #febc2e; }
.window.active .d-g { background: #28c840; }
.window:not(.active) .dot { border-color: rgba(0, 0, 0, .08); }
.win-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 500; color: var(--ink2);
  white-space: nowrap; pointer-events: none;
}
.window:not(.active) .win-title { color: #a1a1a6; }
.win-spacer { width: 44px; margin-left: auto; }

/* ── 终端 ── */
.win-term { left: 7%; top: 15%; width: 400px; height: 252px; z-index: 5; }
.term-body {
  flex: 1; overflow: hidden; padding: 10px 13px;
  background: #fff;
  font: 12px/1.75 var(--mono); color: var(--ink);
  white-space: pre-wrap; word-break: break-all;
}
.term-body.pressed { background: #f2f2f4; }
#term-lines .tl { min-height: 21px; }
.tl.cmd { color: #0b0b0c; }
.tl.dim { color: var(--mut); }
.tl.ok  { color: #1d8a4e; }
#term-lines .tl:last-child::after {
  content: ''; display: inline-block;
  width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px;
  background: #1d1d1f;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── 浏览器 ── */
.win-browser { right: 4.5%; top: 12%; width: 432px; height: 302px; z-index: 6; }
.br-chrome { display: flex; padding: 6px 10px 0; background: #f0f0f2; }
.br-tab {
  padding: 5px 14px; font-size: 11px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair); border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.br-urlbar { padding: 8px 10px 2px; background: #fff; }
.br-url {
  display: flex; align-items: center; gap: 7px;
  height: 27px; padding: 0 11px; border-radius: 7px;
  background: #e9e9eb; border: 1px solid #e0e0e3;
  font-size: 11px; color: var(--ink2);
  transition: background .15s ease;
}
.br-url .mono { font-size: 11px; }
.br-lock { width: 9px; height: 11px; flex: none; }
.br-url.pressed { background: #dedee2; }
.br-page { padding: 6px 14px 10px; overflow: hidden; background: #fff; }
.br-page h3 { margin: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.br-actions { display: flex; gap: 8px; }
.bbtn {
  padding: 6px 13px; border-radius: 7px; cursor: pointer;
  font: 500 12px var(--sans); color: var(--ink);
  background: #fff;
  border: 1px solid #d2d2d7;
  transition: transform .1s ease, background .12s ease;
}
.bbtn:hover { background: #f5f5f7; }
.bbtn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.bbtn.primary:hover { background: #0071e8; }
.bbtn.pressed { transform: scale(.94); filter: brightness(.88); }
.br-results { margin-top: 10px; }
.skel i {
  display: block; height: 9px; border-radius: 4px; margin: 9px 2px;
  background: #e8e8ed;
  animation: skelpulse 1.4s ease-in-out infinite;
}
.skel i:nth-child(2) { width: 78%; }
.skel i:nth-child(3) { width: 55%; animation-delay: .18s; }
.skel i:nth-child(1) { animation-delay: .09s; }
@keyframes skelpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.rows { display: none; margin: 0; padding: 0; list-style: none; }
.rows li {
  font-size: 11.5px; color: var(--ink2); line-height: 1.5;
  padding: 6px 9px; margin: 6px 0; border-radius: 7px;
  background: #f5f5f7;
  border: 1px solid transparent;
  transition: background .2s;
}
.rows li b { color: var(--ink); }
.rows li.on { background: rgba(0, 122, 255, .14); }
.br-results.loaded .skel { display: none; }
.br-results.loaded .rows { display: block; }
.rows.pulse li { animation: rowpulse .5s ease; }
@keyframes rowpulse { 40% { opacity: .55; } }

/* ── 备忘录 / 虚拟键盘 ── */
.win-notes { left: 8.5%; bottom: 11%; width: 402px; height: 234px; z-index: 7; }
.nt-body { padding: 8px 14px 10px; display: flex; flex-direction: column; flex: 1; background: #fff; }
.nt-label { font-size: 11px; color: var(--mut); letter-spacing: .08em; }
.nt-line {
  display: flex; align-items: center; min-height: 30px; margin-top: 6px;
  padding: 4px 10px; border-radius: 7px;
  background: #fff; border: 1px solid #d2d2d7;
  font: 12.5px var(--mono); color: var(--ink);
  transition: border-color .18s ease;
}
.nt-line.pressed { border-color: var(--blue); }
#note-text { transition: opacity .3s; white-space: nowrap; overflow: hidden; }
#note-text.fade { opacity: 0; }
.nt-caret {
  flex: none; width: 7px; height: 14px; margin-left: 2px;
  background: var(--blue); animation: blink 1.1s steps(1) infinite;
}
.kb { margin-top: auto; display: flex; flex-direction: column; gap: 5px; padding-bottom: 2px; }
.kb-row { display: flex; gap: 5px; justify-content: center; }
.key {
  min-width: 24px; height: 24px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font: 10.5px var(--mono); font-style: normal; color: var(--ink2);
  background: #fff;
  border: 1px solid #d1d1d6; border-bottom-width: 2px;
  transition: transform .07s ease, background .07s ease;
}
.key.space { min-width: 116px; }
.key.pressed {
  transform: translateY(1.5px);
  background: #d9d9de; color: var(--ink);
}

/* ── 频谱 / 滑块 ── */
.win-music { right: 6%; bottom: 12%; width: 352px; height: 218px; z-index: 8; }
.mu-body { flex: 1; display: flex; flex-direction: column; padding: 8px 14px 12px; min-height: 0; background: #fff; }
.mu-head { display: flex; align-items: center; gap: 10px; }
.mu-play {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: none;
  display: grid; place-items: center; color: #fff;
  background: #1d1d1f;
  border: none;
  transition: transform .12s ease;
}
.mu-play svg { width: 10px; height: 12px; }
.mu-play .i-pause { display: none; }
#win-music.playing .mu-play .i-play { display: none; }
#win-music.playing .mu-play .i-pause { display: block; }
.mu-play.pressed { transform: scale(.88); }
.mu-meta { display: flex; flex-direction: column; line-height: 1.3; }
.mu-meta strong { font-size: 12px; color: var(--ink); font-weight: 600; }
.mu-meta span { font-size: 11px; color: var(--mut); }
.bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 3px; margin: 8px 2px; }
.bars i {
  flex: 1; height: 100%; border-radius: 2px;
  background: #3a3a3c;
  transform: scaleY(var(--h, .3)); transform-origin: bottom;
}
#win-music.playing .bars i { animation: eq .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes eq { from { transform: scaleY(.14); } to { transform: scaleY(1); } }
.mu-slider-row { display: flex; align-items: center; gap: 9px; }
.mu-lab { font-size: 11px; color: var(--mut); flex: none; }
.mu-val { font-size: 11px; color: var(--ink2); flex: none; min-width: 18px; text-align: center; }
.mu-track {
  position: relative; flex: 1; height: 4px; border-radius: 2px;
  background: #e8e8ed;
}
.mu-track.pressed { background: #dcdce0; }
.mu-fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--val, 42) * 1%);
  border-radius: 2px;
  background: #1d1d1f;
}
.mu-thumb {
  position: absolute; top: 50%; left: calc(var(--val, 42) * 1%);
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 1px solid #d2d2d7;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* ═══ 光标（真实 logo 贴纸徽章 · 无辉光） ═══ */
.cursors { position: absolute; inset: 0; z-index: 800; pointer-events: none; }
.cursor {
  position: absolute; left: 0; top: 0;
  will-change: transform;
  pointer-events: auto; cursor: pointer; outline: none;
}
.cursor::before { content: ''; position: absolute; left: -8px; top: -8px; width: 58px; height: 76px; }
.cursor .arrow {
  position: absolute; left: -3px; top: -3px; width: 22px; height: 24px;
  fill: #fff; stroke: rgba(20, 20, 22, .9); stroke-width: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
  transition: transform .1s ease;
}
.cursor.pressing .arrow { transform: translate(1.5px, 1.5px) scale(.9); }
.cursor .badge {
  position: absolute; left: 10px; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c); color: var(--ct, #fff);
  font: 600 8.5px/18px var(--sans); text-align: center;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  overflow: hidden;
  transition: transform .18s ease;
}
/* logo 贴纸态：白底圆片，图标内嵌（macOS 光标贴纸） */
.cursor .badge.has-logo {
  background: #fff;
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 4px rgba(0, 0, 0, .45);
}
.cursor .badge .b-img {
  position: absolute; inset: 2px;
  width: 16px; height: 16px; border-radius: 4px;
  display: block;
}
.cursor .badge.has-logo .b-mono { display: none; }
.cursor:focus-visible .badge { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 2px; }
.cursor.acting .badge { animation: beat 1.5s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.cursor.active .badge { outline: 2px solid #fff; outline-offset: 2px; }
.cursor .tag {
  position: absolute; left: 4px; top: 40px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(245, 245, 247, .98); border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  font-size: 12px; color: var(--ink); white-space: nowrap;
}
.cursor .chip {
  position: absolute; left: 14px; top: 64px;
  max-width: 260px; padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px; color: var(--ink); white-space: nowrap;
  background: rgba(245, 245, 247, .98);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
  opacity: 0; transform: translateY(-5px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.cursor.chip-on .chip { opacity: .98; transform: translateY(0); }
.cursor.flip .chip { left: auto; right: 16px; }

/* ═══ Dock（材质性半透明 · 鱼眼放大由 JS 驱动）
   20 图标紧凑方案：图标 34px + 间距 4px，一排放得下且保留鱼眼放大 ═══ */
.dock {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 16px);
  z-index: 850;
  display: flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 10px;
  border-radius: 16px;
  background: rgba(246, 246, 248, .66);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
}
.dk-item {
  position: relative; flex: none;
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: flex-end;
}
.dk-ic {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  font: 600 12px/1 var(--sans);
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  transform-origin: 50% 100%;
  transition: transform .18s cubic-bezier(.25, 1, .4, 1);
  overflow: hidden;
}
.dk-logo { border-color: transparent; background: #ececee; }
.dk-logo img { width: 34px; height: 34px; display: block; }
.dk-logo .dk-mono { display: none; }
.dk-item:focus-visible { outline: none; }
.dk-item:focus-visible .dk-ic { outline: 2px solid #fff; outline-offset: 2px; }
.dk-svg { background: none; border: none; box-shadow: none; }
.dk-svg svg { width: 28px; height: 28px; }
/* Dock 提示：macOS 胶囊 */
.dk-item::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 9px; border-radius: 6px;
  background: rgba(245, 245, 247, .98); color: var(--ink);
  font-size: 12px; white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.dk-item:hover::after, .dk-item:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.dk-sep { width: 1px; height: 30px; background: rgba(0, 0, 0, .18); margin: 0 2px; flex: none; }
.dock-agents { display: flex; align-items: flex-end; gap: 4px; }
.dk-label {
  flex: none; height: 34px;
  display: inline-flex; align-items: center; padding: 0 10px;
  border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background .15s ease;
}
.dk-label:hover { background: rgba(0, 0, 0, .07); }

/* ═══ Agent 档案窗口（系统检查器式） ═══ */
.panel {
  position: fixed; top: 64px; right: 18px; z-index: 6;
  width: 300px; max-width: calc(100vw - 28px);
  max-height: calc(100vh - 150px);
  visibility: hidden;
  opacity: 0; transform: translateY(10px) scale(.97);
  transform-origin: 85% 0;
  transition: opacity .2s ease, transform .22s ease, visibility 0s linear .22s;
}
.panel.open {
  visibility: visible; opacity: 1; transform: none;
  transition-delay: 0s;
}
.panel .win-bar { background: #ececee; }
.panel .dot { background: #cfcfd4; }
.panel .d-r { background: #ff5f57; cursor: pointer; }
.panel.open .d-y { background: #febc2e; }
.panel.open .d-g { background: #28c840; }
.panel .dot.d-r::after {
  content: ''; position: absolute; inset: 0;
  display: none; place-items: center;
  font: 600 9px/1 var(--sans); color: rgba(60, 0, 0, .6);
}
.panel .dot.d-r:hover::after { content: '×'; display: grid; }
.p-body { padding: 12px 16px 16px; overflow-y: auto; background: #fff; }
/* 身份区：logo + 名字 + 厂商 */
.p-id {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid #ececee;
}
.p-logo { width: 28px; height: 28px; border-radius: 7px; flex: none; display: block; }
.p-id-mono {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: #e8e8ed; color: var(--ink);
  font: 600 10px/26px var(--mono); text-align: center;
}
.p-id-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.p-id-txt strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.p-id-txt em { font-style: normal; font-size: 11px; color: var(--mut); }
.p-cap {
  margin: 12px 0 5px;
  font: 600 10px/1 var(--sans); letter-spacing: .1em;
  color: var(--mut);
}
.p-rows { margin: 0; }
.p-rows > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #ececee;
}
.p-rows dt { font-size: 11px; color: var(--mut); margin: 0; padding-top: 1px; white-space: nowrap; }
.p-rows dd { margin: 0; font-size: 12px; color: var(--ink); line-height: 1.45; }
.p-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.p-tag {
  font-size: 11px; color: var(--ink2);
  background: #f5f5f7; border: 1px solid #e3e3e6;
  padding: 2px 7px; border-radius: 4px;
  white-space: nowrap;
}
.p-tool {
  padding: 7px 10px; border-radius: 6px; margin-bottom: 2px;
  font-size: 11.5px; color: var(--ink);
  background: #f5f5f7;
  border: 1px solid #e3e3e6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p-take {
  margin: 10px 0 0; padding: 2px 0 2px 11px;
  font-size: 13px; color: var(--ink2);
  border-left: 2px solid #1d1d1f;
}
.p-links { margin: 0; font-size: 12px; }
.p-links a { color: var(--link-dark); text-decoration: none; }
.p-links a:hover { text-decoration: underline; }
.p-sep { color: var(--mut); margin: 0 5px; }

/* ═══ 底部状态条 ═══ */
.bottombar {
  position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: var(--bar);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; color: #98989d;
}
.f-disclaimer { margin: 0; max-width: 68ch; flex: 1; min-width: 280px; }
.f-right { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.f-powered a { color: var(--link); text-decoration: none; }
.f-powered a:hover { text-decoration: underline; }
.f-repo { font-size: 12px; color: #c7c7cc; text-decoration: none; }
.f-repo:hover { color: #f5f5f7; }

/* ═══ 暂停态 ═══ */
.is-paused .bars i,
.is-paused .skel i,
.is-paused #term-lines .tl:last-child::after,
.is-paused .nt-caret,
.is-paused .cursor.acting .badge { animation-play-state: paused !important; }

/* ═══ 窄屏降级（<1024）：浅色文档流 + 真实 logo 卡片 ═══ */
.agents-grid { display: none; }
@media (max-width: 1023px) {
  body { background: #f5f5f7; color: var(--ink); }
  .stage { height: auto; min-height: 0; padding: 14px 0 8px; }
  .cursors, .desk-icons, .menubar, .dock, .wallpaper { display: none !important; }
  .window {
    position: relative !important;
    left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    width: min(500px, 94vw) !important; height: auto !important; min-height: 0;
    margin: 14px auto 0;
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  }
  .win-term .term-body { min-height: 180px; }
  .win-browser { min-height: 280px; }
  .win-music .bars { height: 60px; }
  .agents-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 12px; padding: 20px 16px 12px;
    position: relative; z-index: 5;
  }
  .ag-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 13px; text-align: left; cursor: pointer;
    color: var(--ink); font-family: var(--sans);
    background: #fff; border: 1px solid var(--hair);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: border-color .16s ease;
  }
  .ag-card:hover { border-color: #b9b9c0; }
  .ag-logo-wrap { position: relative; width: 34px; height: 34px; flex: none; }
  .ag-logo-wrap .ag-logo { position: absolute; inset: 0; }
  .ag-logo-wrap .ag-logo-fallback { position: absolute; inset: 0; }
  .ag-logo {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    display: block;
  }
  .ag-logo-fallback {
    width: 34px; height: 34px; border-radius: 8px;
    font: 600 12px/32px var(--sans); text-align: center;
    border: 1px solid rgba(0, 0, 0, .1);
  }
  .ag-name { font-weight: 600; font-size: 13px; }
  .ag-name em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--mut); margin-left: 7px; }
  .ag-tool {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 11px; color: var(--ink2);
    background: #f5f5f7; border: 1px solid #e5e5ea;
    padding: 3px 8px; border-radius: 5px;
  }
  .ag-take { font-size: 12px; color: var(--ink2); }
  .ag-more { font-size: 11px; color: var(--link-dark); margin-top: 2px; }
  :root { --link: var(--link-dark); }
  .panel {
    top: auto; bottom: 12px; left: 12px; right: 12px; width: auto;
    max-height: 74vh;
    transform: translateY(24px) scale(.98);
  }
  .panel.open { transform: none; }
  .bottombar { background: #e8e8ed; border-top: 1px solid var(--hair); color: #6e6e73; flex-direction: column; align-items: flex-start; }
  .f-right { align-items: flex-start; }
  .f-repo { color: var(--ink2); }
  .f-repo:hover { color: var(--ink); }
}

/* ═══ 减弱动态效果 ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  #animToggle { display: none; }
  .cursor .chip { opacity: .98; transform: none; }
}

/* ============================================================
   静态可索引内容层（SEO / GEO · progressive enhancement）
   内容默认可见（无 JS / 爬虫 / AI 抓取器直接读取）；
   JS 启动后由 html.js-on 规则隐藏。纯色扁平，无渐变、无彩色阴影。
   ============================================================ */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* JS 可用：静态层退场，交互式桌面接管 */
html.js-on .seo-layer { display: none; }
html.js-on .seo-note { display: none; }

.seo-note {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 24px 0;
  font-size: 13px;
  color: #a8a8ad;
}

.seo-layer {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  background: var(--bg);
  color: #d6d6da;
  font-size: 15px;
  line-height: 1.8;
}
.seo-layer h2 {
  margin: 36px 0 12px;
  font-size: 21px;
  line-height: 1.4;
  color: #f5f5f7;
}
.seo-layer h2:first-child { margin-top: 0; }
.seo-layer h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  color: #f5f5f7;
}
.seo-layer p { margin: 8px 0; }
.seo-layer ol,
.seo-layer ul { margin: 8px 0; padding-left: 22px; }
.seo-layer li { margin: 6px 0; }
.seo-layer a { color: var(--link); text-underline-offset: 3px; }
.seo-layer a:hover { color: #a9c4f0; }
.seo-agent {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
}
.seo-agent h3 { margin: 0 0 6px; }
.seo-agent p { margin: 4px 0; }
