/* Mouse 2.3 —— 照官方页面的布局：左图标竖栏 / 聊天软件式对话 / 右栏助手面板 */
:root {
  --brand: #1f6feb;
  --brand-2: color-mix(in srgb, var(--brand) 70%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --bg: #ffffff; --bg-rail: #fbfbfb; --bg-pop: #ffffff; --bg-soft: #f4f4f5; --bg-input: #ececee; --bg-hover: #f0f0f1; --bg-active: #e9e9eb;
  --bubble-ai: #f0f0f1; --bubble-me: color-mix(in srgb, var(--brand) 17%, #fff);
  --text: #141414; --text-2: #55585e; --text-3: #8d9096; --line: #e7e7e9; --line-2: #d6d7da;
  --ok: #17924f; --ok-soft: rgba(23,146,79,.12); --warn: #c77d00; --warn-soft: rgba(214,138,0,.12); --err: #d6383a; --err-soft: rgba(214,56,58,.1);
  --tip-bg: #1b1b1c; --tip-fg: #fff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06); --shadow: 0 2px 10px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05); --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
:root[data-accent="violet"] { --brand: #7a4ff0; } :root[data-accent="green"] { --brand: #13904b; } :root[data-accent="orange"] { --brand: #e06c12; }
:root[data-accent="pink"] { --brand: #d93f78; } :root[data-accent="teal"] { --brand: #0b95a6; } :root[data-accent="gold"] { --brand: #b98309; } :root[data-accent="slate"] { --brand: #48505c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #161718; --bg-rail: #161718; --bg-pop: #1f2022; --bg-soft: #232427; --bg-input: #2b2c30; --bg-hover: #292a2d; --bg-active: #303135;
  --bubble-ai: #26272a; --bubble-me: color-mix(in srgb, var(--brand) 32%, #1a1b1d); --brand-2: color-mix(in srgb, var(--brand) 70%, #fff);
  --text: #ececee; --text-2: #b3b5ba; --text-3: #85888e; --line: #2d2e32; --line-2: #3b3d42; --tip-bg: #ececee; --tip-fg: #141414;
  --shadow: 0 2px 12px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.55); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #161718; --bg-rail: #161718; --bg-pop: #1f2022; --bg-soft: #232427; --bg-input: #2b2c30; --bg-hover: #292a2d; --bg-active: #303135;
  --bubble-ai: #26272a; --bubble-me: color-mix(in srgb, var(--brand) 32%, #1a1b1d);
  --text: #ececee; --text-2: #b3b5ba; --text-3: #85888e; --line: #2d2e32; --line-2: #3b3d42; --tip-bg: #ececee; --tip-fg: #141414;
  --shadow: 0 2px 12px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.55); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-track { background: transparent; }
.ic { width: 20px; height: 20px; flex: none; } .ic.sm { width: 16px; height: 16px; } .ic.lg { width: 28px; height: 28px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.shimmer { background: linear-gradient(90deg, var(--text-3) 30%, var(--text) 50%, var(--text-3) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: skel 1.8s linear infinite; }
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }

/* ---------- 基础控件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--bg-soft); color: var(--text); white-space: nowrap; transition: background .12s, filter .12s; }
.btn:hover { background: var(--bg-active); }
.btn.primary { background: var(--brand); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); } .btn.line:hover { background: var(--bg-hover); }
.btn.danger { background: var(--err); color: #fff; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn:disabled { opacity: .45; }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); flex: none; transition: background .12s; }
.iconbtn:hover { background: var(--bg-hover); color: var(--text); }
.iconbtn.sm { width: 28px; height: 28px; border-radius: 8px; }
.iconbtn.round { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--text); } .iconbtn.round:hover { background: var(--bg-active); }
.input, .textarea { width: 100%; border: 1px solid var(--line-2); background: var(--bg-pop); border-radius: 12px; padding: 0 14px; height: 44px; font-size: 14.5px; outline: none; transition: border-color .12s, box-shadow .12s; }
.textarea { padding: 10px 14px; height: auto; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select.input { padding: 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 6px 0 0; }
kbd { font: 11.5px var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text-2); }
.seg3 { display: inline-flex; background: var(--bg-input); border-radius: 10px; padding: 3px; gap: 2px; }
.seg3 button { padding: 6px 14px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.seg3 button.on { background: var(--bg-pop); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 500; }
.seg3.icons button { padding: 6px 11px; display: grid; place-items: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty-state > svg { width: 40px; height: 40px; stroke-width: 1.4; margin-bottom: 14px; }
.empty-state b { color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty-state > span { font-size: 13.5px; max-width: 400px; line-height: 1.6; }
.empty-mini { color: var(--text-3); font-size: 13px; padding: 8px 0; }

/* ---------- 头像 ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: var(--brand); }
.av svg { width: 54%; height: 54%; }
.av.c-brand svg { stroke-width: 2.6; }
.av.md { width: 34px; height: 34px; } .av.lg { width: 40px; height: 40px; } .av.xl { width: 64px; height: 64px; } .av.xxl { width: 88px; height: 88px; } .av.hero { width: 128px; height: 128px; }
.c-brand { background: linear-gradient(140deg, var(--brand-2), var(--brand)); }
.c-blue { background: linear-gradient(135deg, #3d7bfa, #1f5bd8); } .c-violet { background: linear-gradient(135deg, #8b5cf6, #6a3fd6); }
.c-green { background: linear-gradient(135deg, #22b07d, #138a5f); } .c-orange { background: linear-gradient(135deg, #f59245, #dc6a1c); }
.c-pink { background: linear-gradient(135deg, #ec5f95, #c93a72); } .c-teal { background: linear-gradient(135deg, #22b5c4, #13899a); }
.c-gold { background: linear-gradient(135deg, #e9b33b, #c68d14); } .c-slate { background: linear-gradient(135deg, #5b6676, #3c4552); }
.c-cream { background: linear-gradient(135deg, #fff6ea, #fde3c8); color: #a2652f; }
/* 小老鼠形象：图是 public/mouse.svg，底色用各颜色的浅色版 */
.av.mz { overflow: hidden; }
.av.mz img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.av.mz.c-blue { background: linear-gradient(135deg, #e6efff, #c6daff); } .av.mz.c-violet { background: linear-gradient(135deg, #f0eaff, #d9cbff); }
.av.mz.c-green { background: linear-gradient(135deg, #e2f7ee, #bfe9d6); } .av.mz.c-orange { background: linear-gradient(135deg, #fff0e3, #ffd2ae); }
.av.mz.c-pink { background: linear-gradient(135deg, #ffeaf2, #ffc9dc); } .av.mz.c-teal { background: linear-gradient(135deg, #e0f6f8, #bce8ee); }
.av.mz.c-gold { background: linear-gradient(135deg, #fff6dc, #fbe1a0); } .av.mz.c-slate { background: linear-gradient(135deg, #e9ecf0, #cdd3db); }
/* 线条图形头像：助手思考/干活时轻轻晃（小老鼠是换成对应动作的动图） */
html[data-ai="work"] .av.live:not(.mz) svg, html[data-ai="think"] .av.live:not(.mz) svg { animation: avWork 1.1s ease-in-out infinite; }
@keyframes avWork { 50% { transform: translateY(-1.5px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .av.live svg { animation: none !important; } }
.av-pick .glyphs button img.mouse { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #fff6ea, #fde3c8); }
.av-pick .glyphs { display: grid; grid-template-columns: repeat(7, 36px); gap: 6px; }
.av-pick .glyphs button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); }
.av-pick .glyphs button svg { width: 18px; height: 18px; }
.av-pick .glyphs button:hover { background: var(--bg-hover); }
.av-pick .glyphs button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.av-pick .colors { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.av-pick .sw { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.av-pick .sw.on { box-shadow: 0 0 0 2px var(--bg-pop), 0 0 0 4px var(--text); }
.av-edit { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 18px; }

/* ---------- 登录 ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.login-top { padding: 20px 28px; }
.brandmark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; } .logo svg { width: 18px; height: 18px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); text-align: center; }
.login-hero { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 22px; background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px var(--brand-soft); } .login-hero svg { width: 38px; height: 38px; }
.login-card h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.3px; }
.login-card .sub { color: var(--text-2); margin: 0 0 26px; font-size: 14.5px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card .err { color: var(--err); font-size: 13px; min-height: 18px; text-align: left; }
.login-card .btn { height: 46px; }
.login-foot { display: flex; justify-content: center; gap: 20px; padding: 20px; font-size: 12.5px; color: var(--text-3); }
.login-foot { flex-wrap: wrap; } .login-foot a { color: inherit; } .login-foot a:hover { color: var(--text-2); text-decoration: underline; }
.auth-h { font-size: 24px; margin: 4px 0 8px; letter-spacing: -.3px; }
.login-card .auth-form { text-align: left; gap: 12px; }
.auth-form .field { margin: 0; }
.field > span em { font-style: normal; color: var(--text-3); font-weight: 400; margin-left: 6px; font-size: 12px; }
.code-row { display: flex; gap: 8px; } .code-row .input { flex: 1; min-width: 0; letter-spacing: 2px; }
.login-card .code-row .btn { height: 44px; flex: none; white-space: nowrap; padding: 0 14px; min-width: 112px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.55; cursor: pointer; }
.agree input { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--brand); flex: none; }
.agree a, .auth-links a { color: var(--brand); }
.auth-links { margin-top: 18px; display: flex; justify-content: center; gap: 22px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.auth-links a { font-weight: 600; } .auth-links a:hover, .agree a:hover { text-decoration: underline; }
.auth-done { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.auth-done svg { width: 30px; height: 30px; }
.login-card .btn.wide { width: 100%; display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; }
.adm-badge { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 500; vertical-align: 1px; }
.adm-badge.pending { background: var(--warn-soft); color: var(--warn); } .adm-badge.rejected, .adm-badge.deleted { background: var(--bg-soft); color: var(--text-3); }
.sg-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.sg-row:first-of-type { border-top: 0; }
.sg-row .sg-t { flex: 1; min-width: 0; } .sg-row .sg-t b { font-size: 14.5px; } .sg-row .sg-t p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.sg-row .sg-t small { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.sg-row .sg-acts { display: flex; gap: 8px; flex: none; }
@media (max-width: 600px) { .sg-row { flex-direction: column; gap: 10px; } .sg-row .sg-acts { align-self: stretch; } .sg-row .sg-acts .btn { flex: 1; } }
.adm-hint { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 10px 0 0; } .adm-hint code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; user-select: all; }
.adm-hint .ok { color: var(--ok); font-weight: 600; } .adm-hint .warn { color: var(--warn); font-weight: 600; }

/* ---------- 骨架：竖栏 + 主区 + 右栏 ---------- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.rail { width: 72px; flex: none; border-right: 1px solid var(--line); background: var(--bg-rail); display: flex; flex-direction: column; align-items: center; padding: 14px 0 16px; z-index: 20; }
.rail-top { height: 48px; display: grid; place-items: center; }
.rail-av { border-radius: 50%; position: relative; } .rail-av:hover { filter: brightness(1.06); }
.rail-mid { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.rail-bot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.rb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); position: relative; transition: background .12s; }
.rb svg { width: 22px; height: 22px; }
.rb:hover { background: var(--bg-hover); color: var(--text); }
.rb.on { background: var(--bg-active); color: var(--text); }
.rb-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--bg-rail); animation: pulse 1.4s infinite; }
.rail [data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--tip-bg); color: var(--tip-fg); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 60; animation: fade .12s; }
.main { flex: 1; min-width: 0; position: relative; display: flex; }
.view { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 35; animation: fade .15s; }

/* 聊天抽屉 */
.drawer { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 268px; background: var(--bg-pop); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; z-index: 30; opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .15s, transform .15s; }
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.dr-top { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.dr-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--bg-soft); color: var(--text-3); font-size: 14px; }
.dr-search:hover { background: var(--bg-hover); }
.dr-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 6px 0 12px; height: 40px; border-radius: 12px; text-align: left; font-size: 14.5px; cursor: pointer; color: var(--text); flex: none; }
.dr-row:hover { background: var(--bg-hover); }
.dr-row.on { background: var(--bg-active); font-weight: 600; }
.dr-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; animation: pulse 1.4s infinite; }
.dr-row .wait { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.dr-row .more { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); opacity: 0; flex: none; }
.dr-row:hover .more, .dr-row.on .more { opacity: 1; } .dr-row .more:hover { background: var(--bg-active); color: var(--text); }
.dr-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 6px 12px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.dr-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.dr-empty { font-size: 13px; color: var(--text-3); padding: 6px 12px; line-height: 1.6; }
.dr-nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dr-nav a, .dr-nav button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--text); text-align: left; }
.dr-nav a:hover, .dr-nav button:hover { background: var(--bg-hover); } .dr-nav .on { background: var(--bg-active); font-weight: 600; }

/* ---------- 对话 ---------- */
.chat { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-float-l { position: absolute; left: 16px; top: 14px; z-index: 6; }
.chat-float-r { position: absolute; right: 16px; top: 14px; z-index: 6; }
.pill-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--bg-pop); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; max-width: 260px; }
.pill-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-btn:hover { background: var(--bg-soft); }
.ai-chip { display: flex; align-items: center; gap: 9px; padding: 3px 16px 3px 3px; border-radius: 999px; background: var(--bg-pop); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.ai-chip:hover { background: var(--bg-soft); }
.ai-chip .nm { display: flex; flex-direction: column; line-height: 1.25; } .ai-chip .nm b { font-size: 14px; }
.chip-st, .pn-st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.chip-st i, .pn-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.chip-st.work i, .chip-st.think i, .pn-st.work i, .pn-st.think i { background: var(--brand); animation: pulse 1.2s infinite; }
.chip-st.wait i, .pn-st.wait i { background: var(--warn); } .chip-st.wait, .pn-st.wait { color: var(--warn); }
.chat-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.msgs { max-width: 800px; min-height: 100%; margin: 0 auto; padding: 76px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.m { position: relative; max-width: 100%; }
.m.me { display: flex; flex-direction: column; align-items: flex-end; }
.m.ai { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; column-gap: 4px; justify-items: start; }
.m.ai > * { grid-column: 1; }
.bub { max-width: min(620px, 100%); padding: 10px 16px; border-radius: 22px; font-size: 15px; line-height: 1.62; overflow-wrap: anywhere; }
.m.ai .bub { background: var(--bubble-ai); }
.m.me .bub { background: var(--bubble-me); white-space: pre-wrap; max-width: min(620px, 86%); }
.bub.md .code { background: var(--bg-pop); }
.bub.caret > :last-child::after { content: ''; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; background: currentColor; opacity: .55; animation: blink 1s steps(2) infinite; }
.quote { border-left: 3px solid color-mix(in srgb, var(--text) 22%, transparent); padding-left: 9px; margin: 2px 0 6px; color: var(--text-2); font-size: 13px; white-space: normal; }
.m-acts { grid-column: 2 !important; grid-row: 1; align-self: end; display: flex; gap: 1px; opacity: 0; transition: opacity .12s; margin-bottom: 2px; }
.m-acts button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.m-acts button:hover { background: var(--bg-hover); color: var(--text); }
.m.ai:hover .m-acts { opacity: 1; }
.react-badge { margin-top: -9px; margin-right: 10px; height: 24px; min-width: 30px; padding: 0 7px; border-radius: 999px; background: var(--bg-pop); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--brand); position: relative; z-index: 1; }
.react-badge.mine { margin: -9px 0 0 12px; }
.react-badge svg { width: 14px; height: 14px; }
.tsep { text-align: center; font-size: 12px; color: var(--text-3); margin: 12px 0 2px; }
.notice { align-self: center; text-align: center; margin: 4px 0; }
.notice span { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-2); background: var(--bg-soft); padding: 5px 12px; border-radius: 999px; }
.notice.error span { color: var(--err); background: var(--err-soft); }
.notice.patrol { max-width: min(560px, 92%); }
.notice.patrol > span { border-radius: 14px; text-align: left; align-items: flex-start; color: var(--text); padding: 8px 12px; line-height: 1.5; }
.notice.patrol > span > svg { margin-top: 3px; flex: none; color: var(--brand); }
.notice .nt-go { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-size: 12.5px; white-space: nowrap; flex: none; margin-left: 4px; }
.notice .nt-go:hover { text-decoration: underline; }
.ai-tag { margin: 0 6px 4px; }
.sched-tag, .queued-tag, .stopped-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin: 4px 6px 0; }
.m.me .sched-tag { margin: 0 6px 4px; }
.att { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--brand); }
.typing { display: flex; gap: 5px; padding: 15px 18px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* 工作步骤：一行小字，点开看每一步 */
.steps { align-self: flex-start; max-width: min(620px, 100%); font-size: 13px; margin: 0 0 0 -2px; }
.steps-head { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 8px; color: var(--text-3); max-width: 100%; }
.steps-head:hover { color: var(--text-2); background: var(--bg-hover); }
.steps-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps-head .chev { transition: transform .15s; }
.steps.open .chev { transform: rotate(90deg); }
.steps-list { display: none; margin: 4px 0 6px 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.steps.open .steps-list { display: block; }
.step-row { display: flex; gap: 8px; align-items: center; padding: 5px 6px; width: 100%; text-align: left; border-radius: 8px; color: var(--text-2); }
.step-row:hover { background: var(--bg-hover); }
.step .st { display: grid; place-items: center; color: var(--text-3); } .step .st.ok { color: var(--ok); } .step .st.err { color: var(--err); }
.step .ti { color: var(--text-3); display: grid; place-items: center; }
.step .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.step-detail { display: none; margin: 2px 0 8px 30px; }
.step.open .step-detail { display: block; }
.step-detail pre { margin: 0; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; font: 12px/1.5 var(--mono); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
.links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.links a { color: var(--brand); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a:hover { text-decoration: underline; }

/* 文件卡 */
.fcard { width: 300px; max-width: 100%; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-pop); cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.fcard:hover { box-shadow: var(--shadow); }
.fcard.gone { cursor: default; opacity: .7; }
.fthumb, .thumb { height: 170px; background: var(--bg-soft); position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.thumb { height: 150px; }
.fthumb iframe, .thumb iframe { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; background: #fff; }
.fthumb img, .fthumb video, .thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftext { position: absolute; inset: 0; padding: 12px 14px; font-size: 9.5px; line-height: 1.5; color: var(--text-2); overflow: hidden; background: var(--bg-pop); text-align: left; }
.ftext h1, .ftext h2, .ftext h3, .ftext h4 { font-size: 12px; margin: 2px 0 5px; color: var(--text); }
.ftext p, .ftext ul, .ftext ol { margin: 0 0 5px; } .ftext ul, .ftext ol { padding-left: 14px; }
.ftext table { font-size: 9px; border-collapse: collapse; } .ftext th, .ftext td { border: 1px solid var(--line); padding: 1px 4px; }
.ftext pre { margin: 0; font: 9.5px/1.5 var(--mono); white-space: pre-wrap; }
.fthumb::after, .thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(transparent, color-mix(in srgb, var(--bg-soft) 70%, transparent)); pointer-events: none; }
.fmeta { display: flex; align-items: center; gap: 11px; padding: 11px 14px; }
.fmeta > div { min-width: 0; }
.fmeta b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta > div > span { font-size: 12px; color: var(--text-3); }
.ftag { flex: none; width: 30px; height: 36px; border-radius: 5px; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); }
.ftag.red { background: #e5484d; } .ftag.blue { background: #2f6fe4; } .ftag.green { background: #1f9d55; } .ftag.orange { background: #e8743b; } .ftag.gray { background: #8a8f98; }
.art-img img { max-width: min(420px, 100%); border-radius: 18px; display: block; }
.art-audio { background: var(--bubble-ai); border-radius: 18px; padding: 12px 14px; width: 340px; max-width: 100%; }
.art-audio .head { display: flex; gap: 10px; align-items: center; } .art-audio .meta { display: flex; flex-direction: column; min-width: 0; } .art-audio audio { width: 100%; margin-top: 10px; }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; background: #8a8f98; }
.tile svg { width: 20px; height: 20px; }
.tile.document { background: #2f6fe4; } .tile.web { background: #0f9fb0; } .tile.image { background: #7a4ff0; } .tile.video { background: #e8743b; } .tile.podcast { background: #d93f78; }
.thumb .tile { width: 56px; height: 56px; border-radius: 16px; } .thumb .tile svg { width: 28px; height: 28px; }

/* 授权卡 */
.approval { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--bg-pop); }
.approval.pending { border-color: color-mix(in srgb, var(--warn) 55%, transparent); box-shadow: 0 0 0 3px var(--warn-soft); }
.ap-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.approval.pending .ap-head { color: var(--warn); font-weight: 600; }
.ap-head .site { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; background: var(--bg-soft); color: var(--text-2); font-weight: 400; border-radius: 999px; padding: 2px 9px; max-width: 50%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ap-title { font-size: 15px; font-weight: 600; margin: 8px 0 10px; }
.ap-detail { font-size: 13px; color: var(--text-2); background: var(--bg-soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; display: flex; flex-direction: column; gap: 4px; }
.ap-foot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-res { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.approval.allowed .ap-res { color: var(--ok); } .approval.denied .ap-res { color: var(--err); }
.ap-more { font-size: 12.5px; color: var(--text-3); } .ap-more:hover { color: var(--text); }

/* 空对话 */
.hello { margin: auto 0; text-align: center; padding: 30px 0; display: flex; flex-direction: column; align-items: center; }
.hello h1 { font-size: 28px; margin: 18px 0 8px; letter-spacing: -.3px; }
.hello p { color: var(--text-2); margin: 0; max-width: 460px; }
.sugs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; width: min(640px, 100%); }
.sug { display: flex; gap: 12px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-pop); align-items: flex-start; transition: background .12s; }
.sug:hover { background: var(--bg-soft); }
.sug .ii { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.sug .st { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sug .st b { font-size: 14px; } .sug .st span { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.more-ideas { display: inline-flex; align-items: center; gap: 2px; margin-top: 18px; font-size: 13.5px; color: var(--text-2); } .more-ideas:hover { color: var(--text); }

/* 输入框 */
.composer-wrap { position: relative; padding: 0 24px 18px; max-width: 848px; width: 100%; margin: 0 auto; }
.newmsg { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; border-radius: 999px; padding: 7px 12px 7px 15px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; box-shadow: var(--shadow); z-index: 3; animation: pop .15s; }
.composer { background: var(--bg-pop); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 7px; transition: border-color .12s, box-shadow .12s; }
.composer.focus { border-color: var(--line-2); }
.composer.drag { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.composer .row { display: flex; align-items: flex-end; gap: 4px; }
.cbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; }
.cbtn:hover { background: var(--bg-hover); color: var(--text); }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 15px; line-height: 24px; padding: 8px 4px; max-height: 220px; }
.composer textarea::placeholder { color: var(--text-3); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; flex: none; animation: pop .12s; }
.send:disabled { opacity: .35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border-radius: 10px; padding: 5px 6px 5px 10px; font-size: 13px; max-width: 280px; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); } .chip button:hover { background: var(--bg-active); color: var(--text); }
.reply-chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; margin: 0 2px 6px; background: var(--bg-soft); border-radius: 14px; font-size: 13px; color: var(--text-2); }
.reply-chip > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-chip button { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); } .reply-chip button:hover { background: var(--bg-active); }

/* ---------- 右栏 ---------- */
.panel { width: 380px; flex: none; border-left: 1px solid var(--line); background: var(--bg); display: none; flex-direction: column; min-height: 0; z-index: 40; }
.app.panel-open .panel { display: flex; }
.pn-head { display: flex; justify-content: flex-end; padding: 12px 12px 0; flex: none; }
.pn-scroll { flex: 1; overflow-y: auto; padding: 0 20px 28px; }
.pn-id { display: flex; flex-direction: column; align-items: center; padding: 0 0 20px; }
.pn-av { position: relative; }
.pn-edit { position: absolute; right: 2px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-pop); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); }
.pn-edit:hover { background: var(--bg-soft); }
.pn-id h2 { font-size: 24px; margin: 14px 0 4px; letter-spacing: -.2px; text-align: center; overflow-wrap: anywhere; }
.pn-st { font-size: 13px; color: var(--text-2); }
.pn-tabs { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 10px; }
.pn-tabs button { flex: 1; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--text-3); position: relative; }
.pn-tabs button:hover { color: var(--text); }
.pn-tabs button.on { background: var(--bg-pop); color: var(--text); box-shadow: var(--shadow-sm); }
.pn-tabs button.live::after { content: ''; position: absolute; top: 7px; left: calc(50% + 7px); width: 6px; height: 6px; border-radius: 50%; background: var(--err); animation: pulse 1.2s infinite; }
.pn-body h3 { font-size: 13px; color: var(--text-3); font-weight: 600; margin: 18px 0 4px; }
.pn-body h3:first-child { margin-top: 8px; }
.pn-body h4 { font-size: 12px; color: var(--text-3); margin: 12px 0 2px; font-weight: 500; }
.pn-body .empty-state { padding: 34px 8px; } .pn-body .empty-state > svg { width: 32px; height: 32px; } .pn-body .empty-state b { font-size: 15px; }
.pn-load { display: grid; place-items: center; padding: 40px; color: var(--text-3); }
.pn-empty { padding: 28px 8px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.pn-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 14px 2px 0; }
.pn-more { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 16px; font-size: 13px; color: var(--text-3); } .pn-more:hover { color: var(--text); }
.tk, .rv, .sc-row { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 14px; align-items: flex-start; }
.tk:hover, .rv:hover { background: var(--bg-hover); }
.tk-ic, .rv-ic, .sc-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--bg-soft); display: grid; place-items: center; flex: none; color: var(--text-2); position: relative; }
.tk-ic.error, .tk-ic.stopped { color: var(--err); }
.tk.run .tk-ic { color: var(--brand); background: var(--brand-soft); }
.tk-t, .rv-t, .sc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.tk-t b, .rv-t b, .sc-t b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tk-t span, .rv-t p { margin: 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.tk-t small, .rv-t small { font-size: 12px; color: var(--text-3); }
.rv-t small em { color: var(--warn); font-style: normal; font-weight: 600; }
.rv.open .rv-t p { display: block; -webkit-line-clamp: unset; }
.rv.pending { background: var(--warn-soft); cursor: pointer; }
.rv-x { width: 28px; height: 28px; border-radius: 8px; color: var(--text-3); display: grid; place-items: center; flex: none; }
.rv-x:hover { background: var(--bg-active); color: var(--text); }
.rv-x svg { transition: transform .15s; } .rv.open .rv-x svg { transform: rotate(180deg); }
.rv-go { display: inline-flex; gap: 3px; align-items: center; color: var(--brand); font-size: 13px; margin-top: 6px; }
.sc-row { align-items: center; }
.sc-ic i { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg-pop); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); color: var(--text-2); }
.sc-ic i svg { width: 11px; height: 11px; }
.sc-t span { font-size: 12.5px; color: var(--text-3); }
.sc-pat { cursor: pointer; } .sc-pat .sc-t { min-width: 0; } .sc-pat .sc-t > span { display: block; }
.sc-t .sc-last, .rem .what .sc-last { display: block; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sc-t .sc-err, .rem .what .sc-err { display: block; color: var(--warn); }
.id-card { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--bg-soft); border-radius: 18px; margin-top: 8px; }
.id-n { flex: 1; min-width: 0; display: flex; flex-direction: column; } .id-n b { font-size: 17px; } .id-n span { font-size: 13px; color: var(--text-2); }
.id-edit { background: var(--bg-pop) !important; height: 36px; padding: 0 14px; }
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.soul, .memc { position: relative; text-align: left; border-radius: 18px; padding: 14px 14px 12px; height: 150px; color: #fff; display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.soul:hover, .memc:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.soul { background: radial-gradient(120% 90% at 100% 0%, #ffb199 0%, transparent 55%), linear-gradient(155deg, #ff6f61, #e0335a 55%, #a81c47); }
.memc { background: radial-gradient(120% 90% at 100% 0%, #a8d1ff 0%, transparent 55%), linear-gradient(155deg, #5aa0ff, #2f6fe4 55%, #1d44a8); }
.soul b, .memc b { font-size: 19px; letter-spacing: .6px; }
.soul span, .memc span { font-size: 13px; opacity: .92; margin-top: 2px; }
.soul small, .memc small { margin-top: auto; font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.soul > svg, .memc > svg { position: absolute; right: 12px; bottom: 12px; opacity: .85; }
/* 电脑 */
.comp-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 6px; }
.comp-head .state { display: flex; gap: 7px; align-items: center; font-size: 13px; color: var(--text-2); }
.comp-head .state i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); } .comp-head .state.on i { background: var(--ok); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { padding: 8px 10px; font-size: 13.5px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); } .tab.active { color: var(--text); border-color: var(--text); font-weight: 600; }
.screen { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.urlbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--bg-pop); }
.urlbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-tag { font-style: normal; font-size: 11px; color: #fff; background: var(--err); padding: 1px 6px; border-radius: 6px; flex: none; }
.screen img { display: block; width: 100%; cursor: zoom-in; }
.screen .empty { padding: 44px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.term { background: #111214; color: #ddd; border-radius: 12px; padding: 10px 12px; font: 12px/1.5 var(--mono); }
.term .line { color: #7fd88f; } .term pre { margin: 2px 0 10px; white-space: pre-wrap; word-break: break-all; color: #c9c9c9; font: inherit; }
.files { display: flex; flex-direction: column; }
.files > * { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; font-size: 13px; color: var(--text); }
.files > a:hover { background: var(--bg-hover); }
.files > * > span:not(.sz) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .sz { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.files.big > * { padding: 10px 8px; font-size: 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
.files .frow { padding-top: 4px; padding-bottom: 4px; } .files .frow:hover { background: var(--bg-hover); }
.files .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; } .files a.fn:hover { text-decoration: underline; }
.files .fdel { flex: none; opacity: .55; } .files .frow:hover .fdel, .files .fdel:focus-visible { opacity: 1; } .files .fdel:hover { color: var(--err); }
.space-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin: 2px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.space-card p { margin: 2px 0 0; font-size: 12.5px; } .space-card .warn { color: var(--warn); }

/* ---------- 页面通用 ---------- */
.page { flex: 1; overflow-y: auto; min-width: 0; }
.page-in { max-width: 1080px; margin: 0 auto; padding: 36px 40px 64px; }
.page-in.narrow { max-width: 760px; } .page-in.feed-in { max-width: 720px; }
.ph { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.ph-t { flex: 1; min-width: 0; }
.ph h1 { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.4px; line-height: 1.25; }
.ph p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.ph-r { display: flex; gap: 8px; align-items: center; padding-top: 2px; }
.mmenu { display: none !important; }
.lead { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }

/* 构件库 */
.lib { display: flex; flex: 1; min-height: 0; }
.lib-side { width: 224px; flex: none; border-right: 1px solid var(--line); padding: 24px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.lib-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--bg-soft); color: var(--text-3); margin-bottom: 10px; }
.lib-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 14px; }
.lib-h { font-size: 12px; color: var(--text-3); font-weight: 600; padding: 14px 12px 4px; }
.lib-side a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.lib-side a:hover { background: var(--bg-hover); } .lib-side a.on { background: var(--bg-active); font-weight: 600; }
.lib-sp { flex: 1; min-height: 20px; }
.lib-main { flex: 1; min-width: 0; }
.lib-selbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 8px 8px 14px; background: var(--bg-soft); border-radius: 14px; font-size: 13.5px; }
.lib-selbar > span { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-pop); position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card.sel, .pod.sel { outline: 2px solid var(--brand); outline-offset: -1px; }
.cap { display: flex; gap: 10px; align-items: center; padding: 10px 12px; } .cap > div { min-width: 0; }
.cap b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cap > div > span { font-size: 12px; color: var(--text-3); }
.ck { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-pop); display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--brand); }
.pods { display: flex; flex-direction: column; gap: 8px; }
.pod { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; border: 1px solid var(--line); border-radius: 16px; position: relative; }
.pod .ck { position: static; box-shadow: none; }
.pod .play { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.pod .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pod .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; } .pod .meta span { font-size: 12px; color: var(--text-3); }

/* 动态 */
.feed-gen { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--brand-soft); color: var(--brand); border-radius: 12px; font-size: 13.5px; margin-bottom: 6px; }
.post { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-main { flex: 1; min-width: 0; }
.post-top { display: flex; align-items: center; gap: 8px; }
.post-top b { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.4; }
.post-top .tm { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.post-body { margin: 6px 0 0; font-size: 14.5px; line-height: 1.68; }
.post-body a { color: var(--brand); }
.post-img { display: block; width: 170px; height: 170px; object-fit: cover; border-radius: 14px; margin-top: 10px; border: 1px solid var(--line); }
.post-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; max-width: 240px; }
.post-links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-links a:hover { color: var(--brand); }
.post-acts { display: flex; gap: 2px; margin: 8px 0 0 -10px; }
.post-acts button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; color: var(--text-3); font-size: 13px; }
.post-acts button:hover { background: var(--bg-hover); color: var(--text); }
.post-acts button.on { color: #e5484d; } .post-acts button.on svg { fill: currentColor; }
.post.skel, .idea-row.skel { border: 0; border-radius: 16px; background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-hover) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
.post.skel { height: 130px; margin: 14px 0; padding: 0; }

/* 点子 */
.idea-sec { margin-bottom: 26px; }
.idea-sec h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.idea-row { display: flex; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 16px; cursor: pointer; margin: 0 -10px; transition: background .12s; }
.idea-row:hover { background: var(--bg-soft); }
.idea-row .ii { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none; }
.idea-row .ii svg { width: 23px; height: 23px; }
.idea-row .it { flex: 1; min-width: 0; }
.idea-row .it b { display: block; font-size: 15px; }
.idea-row .it span { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; margin-top: 2px; }
.idea-row .iconbtn { opacity: 0; } .idea-row:hover .iconbtn { opacity: 1; }
.idea-row.skel { height: 74px; margin: 6px 0; }
.idea-empty { display: flex; gap: 10px; padding: 14px 16px; background: var(--bg-soft); border-radius: 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.idea-empty svg { color: var(--brand); margin-top: 3px; }

/* 目标 */
.g-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 4px 0 6px; }
.g-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.goal { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; border-radius: 14px; margin: 0 -10px; cursor: pointer; }
.goal:hover { background: var(--bg-soft); }
.gchk { width: 26px; height: 26px; color: var(--text-3); flex: none; display: grid; place-items: center; border-radius: 7px; }
.gchk:hover { color: var(--ok); } .goal.done .gchk { color: var(--ok); }
.gt { flex: 1; min-width: 0; padding-top: 1px; }
.gt b { display: block; font-size: 15px; font-weight: 600; }
.gt span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.goal.done .gt b { color: var(--text-3); text-decoration: line-through; font-weight: 500; }
.goal .iconbtn { opacity: 0; } .goal:hover .iconbtn { opacity: 1; }
.g-done-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-3); margin: 22px 0 6px; font-weight: 600; }
.g-done-h:hover { color: var(--text); }

/* 定时任务全部 / 详细记录 */
.rem-group h3, .act-day h3 { font-size: 13px; color: var(--text-3); margin: 22px 0 6px; font-weight: 600; }
.rem-group:first-child h3, .act-day:first-child h3 { margin-top: 0; }
.rem { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.rem .when { width: 64px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }
.rem .when small { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; }
.rem .what { flex: 1; min-width: 0; } .rem .what b { display: block; font-size: 14.5px; font-weight: 600; } .rem .what span { font-size: 13px; color: var(--text-2); }
.rem.done { opacity: .55; }
.rem.pat .when { font-size: 15px; } .rem.pat .when small { margin-bottom: 1px; } .rem.pat .what > span { display: block; } .rem .what .pill { margin-left: 8px; }
.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; margin-left: 8px; font-weight: 500; vertical-align: 2px; }
.pill svg { width: 12px; height: 12px; }
.act { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; }
.act.link { cursor: pointer; } .act.link:hover { background: var(--bg-hover); }
.act .tm { width: 44px; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
.act .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; color: var(--text-2); flex: none; }
.act .ico.k-approval { color: var(--warn); }
.act .tt { flex: 1; min-width: 0; } .act .tt small { display: block; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-b { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); white-space: nowrap; flex: none; }
.act-b.err { background: var(--err-soft); color: var(--err); } .act-b.ok { background: var(--ok-soft); color: var(--ok); }
.load-more { text-align: center; margin-top: 16px; }

/* 管理后台 */
.adm-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; background: var(--bg-pop); }
.adm-card h3 { margin: 0 0 12px; font-size: 15px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kv div { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12px; color: var(--text-3); } .kv b { font-size: 14px; overflow-wrap: anywhere; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-row .field { margin: 0; flex: 1; min-width: 140px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--text-3); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .input { width: 120px; height: 34px; padding: 0 8px; }
.fb-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.fb-row p { margin: 0 0 2px; white-space: pre-wrap; font-size: 14px; }

/* ---------- 弹层 ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
.modal-bg.top { place-items: start center; padding-top: 12vh; }
.modal { background: var(--bg-pop); border-radius: 22px; width: min(480px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .15s; }
.modal.wide { width: min(1100px, 100%); height: calc(100dvh - 48px); }
.modal-head { display: flex; align-items: center; gap: 4px; padding: 16px 14px 10px 22px; flex: none; }
.modal-head b { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 4px 22px 16px; overflow-y: auto; font-size: 14.5px; line-height: 1.6; }
.modal-body.info { color: var(--text-2); } .modal-body.info b { color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; flex: none; }
.viewer { flex: 1; min-height: 0; background: var(--bg-soft); display: flex; }
.viewer iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.viewer .center { flex: 1; display: grid; place-items: center; padding: 20px; overflow: auto; }
.viewer .center img, .viewer .center video { max-width: 100%; max-height: calc(100dvh - 140px); border-radius: 12px; }
.viewer .doc { flex: 1; overflow: auto; padding: 28px; background: var(--bg-pop); } .viewer .doc .md { max-width: 820px; margin: 0 auto; }
.modal.mem-modal { width: min(600px, 100%); }
.mem-modal .modal-foot .btn.ghost:first-child { margin-right: auto; }
.mem-top { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); margin: 4px 0 8px; }
.mem-top.sub { margin-top: -2px; } .mem-top.off { opacity: .6; }
.mt-t { flex: 1; min-width: 0; } .mt-t b { display: block; font-size: 14px; } .mt-t span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-top: 2px; }
.switch { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; margin-top: 2px; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch.on { background: var(--brand); } .switch.on i { transform: translateX(16px); }
.switch:disabled { cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mem-sec { margin-top: 14px; }
.mem-sec h4 { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.mem-sec h4 span { font-weight: 500; color: var(--text-3); }
.mem { display: flex; align-items: flex-start; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mem:last-child { border-bottom: 0; }
.mem-t { flex: 1; min-width: 0; } .mem-t p { margin: 0; font-size: 14px; line-height: 1.55; word-break: break-word; }
.mem-t small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.mem-t .muted { display: block; font-size: 12px; margin-top: 2px; }
.mem .iconbtn { color: var(--text-3); } .mem .iconbtn:hover { color: var(--text); }
.mem-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; }
.mem-form .mem-kind { height: 38px; width: auto; align-self: flex-start; padding-right: 10px; }
.mem-form .input.mem-why { height: 38px; font-size: 13.5px; }
.mem-form-btns { display: flex; justify-content: flex-end; gap: 8px; }
.notice.memory .nt { color: var(--text-2); }
.notice .nt-mem { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-size: 12.5px; white-space: nowrap; flex: none; margin-left: 4px; }
.notice .nt-mem:hover { text-decoration: underline; }
.act-b.run { background: var(--brand-soft); color: var(--brand); }
#admLessons .form-row { margin-top: 14px; } .ls-list { margin-top: 12px; border-top: 1px solid var(--line); }
.ls-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ls-row:last-child { border-bottom: 0; } .ls-row.rejected .ls-t p { color: var(--text-3); }
.ls-t { flex: 1; min-width: 0; } .ls-t p { margin: 0 0 2px; font-size: 14px; line-height: 1.55; } .ls-t small { font-size: 12px; }
.ls-acts { display: flex; gap: 6px; align-items: center; flex: none; }
@media (max-width: 640px) { .ls-row { flex-wrap: wrap; } .ls-acts { width: 100%; justify-content: flex-end; } }
.onboard { width: min(460px, 100%); }
.ob-prev { display: flex; justify-content: center; margin: 24px 0 12px; }
.onboard h2 { text-align: center; margin: 0 0 4px; font-size: 22px; }
.onboard .hint { text-align: center; margin-bottom: 20px; }
.keys > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.keys > div:last-child { border-bottom: 0; }
/* 搜索 */
.search-m { width: min(540px, 100%); }
.sm-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.sm-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.sm-body { max-height: 60vh; overflow-y: auto; padding: 8px; }
.sm-body h4 { font-size: 12px; color: var(--text-3); font-weight: 600; margin: 6px 10px; }
.sr-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; }
.sr-row:hover, .sr-row.on { background: var(--bg-hover); }
.sr-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--text-2); flex: none; }
.sr-row.on .sr-ic, .sr-row:hover .sr-ic { background: var(--bg-pop); }
.sr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-row .sr-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row .sr-t span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
mark { background: var(--brand-soft); color: var(--brand); border-radius: 3px; padding: 0 1px; }
/* 菜单 */
.menu { position: fixed; z-index: 200; min-width: 210px; background: var(--bg-pop); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .1s; }
.menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--text); text-align: left; white-space: nowrap; }
.menu > button:hover { background: var(--bg-hover); }
.menu > button.danger { color: var(--err); }
.menu > button > span { flex: 1; }
.menu kbd { margin-left: 16px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu.react-pop { display: flex; min-width: 0; padding: 4px; border-radius: 999px; gap: 2px; }
.menu.react-pop button { width: 38px; height: 38px; border-radius: 50%; padding: 0; justify-content: center; }
.menu.react-pop button.on { background: var(--brand-soft); color: var(--brand); }
/* 手机卡片 */
.app-card { position: fixed; z-index: 90; width: 300px; background: var(--bg-pop); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px 20px 18px; text-align: center; animation: pop .15s; }
.app-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); animation: none; }
.app-card .ac-x { position: absolute; top: 10px; right: 10px; }
.ac-phone { width: 96px; height: 150px; margin: 4px auto 16px; border-radius: 20px; border: 2px solid var(--line-2); display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 7px; background: var(--bg-soft); }
.ac-phone .av { margin-bottom: 6px; } .ac-phone i { width: 58px; height: 7px; border-radius: 4px; background: var(--line-2); } .ac-phone i:last-child { width: 40px; }
.app-card b { font-size: 16px; }
.app-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 6px 0 14px; }
.ac-url { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border-radius: 14px; padding: 6px 6px 6px 12px; }
.ac-url span { flex: 1; min-width: 0; font-size: 13px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 设置 ---------- */
.modal.settings { width: min(880px, 100%); height: min(640px, calc(100dvh - 32px)); position: relative; }
.st-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.st-wrap { display: flex; height: 100%; min-height: 0; }
.st-nav { width: 212px; flex: none; padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-pop); }
.st-nav button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); text-align: left; flex: none; }
.st-nav button:hover { background: var(--bg-hover); color: var(--text); }
.st-nav button.active { background: var(--bg-active); color: var(--text); font-weight: 600; }
.st-sp { flex: 1; min-height: 12px; }
.st-body { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 28px 32px; }
.st-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; padding-right: 36px; }
.st-h h2 { margin: 0; font-size: 21px; letter-spacing: -.2px; }
.st-h p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.sh { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 22px 0 8px; }
.sc { background: var(--bg-soft); border-radius: 16px; overflow: hidden; }
.sc + .sc, .sc + input + .hint + .sc { margin-top: 12px; }
.sr { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; font-size: 14px; color: var(--text); }
.sr:first-child { border-top: 0; }
.sr.link { cursor: pointer; } .sr.link:hover { background: var(--bg-hover); }
.sr.link > svg:last-child { color: var(--text-3); }
.sr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr .sr-t b { font-weight: 500; }
.sr .sr-t span { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.sr.col { flex-direction: column; align-items: stretch; gap: 6px; }
.sr-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; } .bar i.hot { background: var(--warn); }
.sr-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-pop); display: grid; place-items: center; color: var(--text-2); flex: none; }
.sr.pw { flex-wrap: wrap; } .sr.pw .input { flex: 1; min-width: 160px; height: 38px; }
.sr-sub { padding: 4px 16px 10px; border-top: 1px solid var(--line); }
.site-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; } .site-row b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.soon { font-size: 12px; color: var(--text-3); background: var(--bg-pop); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
#cSeg { margin-top: 14px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat-c { background: var(--bg-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.feat-c .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-pop); display: grid; place-items: center; color: var(--brand); margin-bottom: 6px; }
.feat-c b { font-size: 14px; } .feat-c > span { font-size: 12.5px; color: var(--text-3); line-height: 1.5; } .feat-c .soon { margin-top: 8px; }
.sc.privacy { padding: 16px; display: flex; flex-direction: column; gap: 4px; margin: 10px 0 12px; }
.sc.privacy b { font-size: 14.5px; } .sc.privacy span { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.danger-zone { margin-top: 20px; } .danger-zone .sr-t b { color: var(--err); }
.accents { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc { width: 24px; height: 24px; border-radius: 50%; }
.acc.on { box-shadow: 0 0 0 2px var(--bg-soft), 0 0 0 4px var(--text); }
.a-blue { background: #1f6feb; } .a-violet { background: #7a4ff0; } .a-green { background: #13904b; } .a-orange { background: #e06c12; }
.a-pink { background: #d93f78; } .a-teal { background: #0b95a6; } .a-gold { background: #b98309; } .a-slate { background: #48505c; }
.radios { display: flex; flex-direction: column; background: var(--bg-soft); border-radius: 16px; overflow: hidden; }
.radio { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-top: 1px solid var(--line); align-items: flex-start; }
.radio:first-child { border-top: 0; } .radio:hover { background: var(--bg-hover); }
.radio input { display: none; }
.radio .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 2px; position: relative; }
.radio.on .dot { border-color: var(--brand); } .radio.on .dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.rt b { display: block; font-weight: 500; font-size: 14px; } .rt small { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- Markdown ---------- */
.md { overflow-wrap: anywhere; }
.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 16px 0 8px; line-height: 1.35; } .md h1 { font-size: 21px; } .md h2 { font-size: 19px; } .md h3 { font-size: 16.5px; } .md h4 { font-size: 15px; }
.md > :first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 3px 0; }
.md a { color: var(--brand); } .md a:hover { text-decoration: underline; }
.md code { font-family: var(--mono); font-size: .88em; background: color-mix(in srgb, var(--text) 8%, transparent); padding: 1px 5px; border-radius: 5px; }
.md .code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 12px; overflow: hidden; }
.md .code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--line); }
.md .code-head .copy { font-size: 12px; color: var(--text-2); } .md .code-head .copy:hover { color: var(--text); }
.md pre { margin: 0; padding: 12px 14px; overflow-x: auto; font: 13px/1.55 var(--mono); }
.md pre code { background: none; padding: 0; font-size: inherit; }
.md blockquote { margin: 0 0 10px; padding: 2px 14px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.md .md-table { overflow-x: auto; margin: 0 0 10px; }
.md table { border-collapse: collapse; font-size: 14px; min-width: 60%; }
.md th, .md td { border: 1px solid color-mix(in srgb, var(--text) 13%, transparent); padding: 6px 11px; text-align: left; vertical-align: top; }
.md th { background: color-mix(in srgb, var(--text) 5%, transparent); font-weight: 600; }
.md img { max-width: 100%; border-radius: 12px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- 窄屏 ---------- */
@media (hover: none) {
  .m.ai .m-acts { grid-column: 1 !important; grid-row: auto; opacity: .75; margin: 2px 0 0 4px; }
  .dr-row .more, .idea-row .iconbtn, .goal .iconbtn { opacity: 1; }
}
@media (max-width: 1180px) {
  .panel { position: fixed; right: 0; top: 0; bottom: 0; box-shadow: var(--shadow-lg); border-left: 0; animation: slidein .18s; }
  .app.panel-open .scrim { display: block; }
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@media (max-width: 860px) {
  .rail { display: none; }
  .mmenu { display: inline-grid !important; margin-left: -6px; }
  .panel { width: 100%; }
  .drawer { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); border-radius: 0 20px 20px 0; border-left: 0; z-index: 45; padding: max(12px, env(safe-area-inset-top)) 10px 12px; transform: translateX(-100%); opacity: 1; transition: transform .2s; }
  .drawer.open { transform: none; visibility: visible; }
  .drawer:not(.open) { visibility: hidden; transition: transform .2s, visibility 0s .2s; }
  .st-x { background: var(--bg-pop); box-shadow: -14px 0 12px var(--bg-pop); top: 9px; }
  .app.drawer-open .scrim { display: block; }
  .page-in { padding: 18px 16px 48px; }
  .ph { margin-bottom: 16px; align-items: center; }
  .ph h1 { font-size: 23px; }
  .ph p { font-size: 13.5px; margin-top: 4px; }
  .ph:has(p) { align-items: flex-start; }
  .chat-float-l { left: 12px; top: 10px; } .chat-float-r { right: 12px; top: 10px; }
  .pill-btn { max-width: 52vw; }
  .ai-chip { padding-right: 12px; } .ai-chip .nm { max-width: 32vw; } .ai-chip .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msgs { padding: 66px 14px 16px; }
  .bub { font-size: 15px; }
  .m.me .bub { max-width: 88%; }
  .composer-wrap { padding: 0 10px max(10px, env(safe-area-inset-bottom)); }
  .sugs { grid-template-columns: 1fr; }
  .hello h1 { font-size: 23px; }
  .lib { flex-direction: column; }
  .lib-side { width: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; gap: 4px; align-items: center; flex: none; }
  .lib-search, .lib-h, .lib-sp { display: none; }
  .lib-side a { white-space: nowrap; padding: 6px 12px; flex: none; }
  .lib-main { overflow-y: auto; }
  .lib .page-in { padding-top: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .thumb { height: 120px; }
  .modal-bg:has(.settings), .modal-bg:has(.wide) { padding: 0; }
  .modal.settings, .modal.wide { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .st-wrap { flex-direction: column; }
  .st-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 56px 10px 10px; }
  .st-nav button { white-space: nowrap; height: 34px; }
  .st-sp { display: none; }
  .st-body { padding: 20px 16px 32px; }
  .feat { grid-template-columns: 1fr; }
  .post-img { width: 140px; height: 140px; }
  .modal-bg.top { padding-top: 10px; }
  .rem .when { width: 54px; font-size: 15px; }
}

/* 2.5 我的浏览器（插件） */
.ap-head .site.mine { margin-left: auto; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ap-head .site.mine + .site { margin-left: 6px; }
.sr-t .ok { color: var(--ok); font-weight: 600; } .sr-t .warn { color: var(--warn); font-weight: 600; }
.my-acts { gap: 8px; flex-wrap: wrap; }
.my-acts .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pair-box { gap: 8px; background: var(--brand-soft); }
.pair-code { font: 700 28px/1.1 var(--mono); letter-spacing: 6px; color: var(--text); padding: 4px 0; user-select: all; }
.how { margin: 6px 0 8px; padding-left: 20px; color: var(--text-2); }
.how li { margin: 4px 0; line-height: 1.55; }
.how code { font: 12px var(--mono); background: var(--bg-soft); border-radius: 4px; padding: 1px 5px; user-select: all; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
/* 电脑助手：授权卡上的完整命令、步骤里的命令和输出 */
.ap-cmd { margin: 8px 0 4px; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; font: 12.5px/1.55 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.ap-sub { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.pc-step pre.pc-cmd { color: var(--text); border-left: 3px solid var(--brand); overflow-wrap: anywhere; word-break: normal; }
/* 电脑助手的步骤：窗口名 + 当时的屏幕缩略图 */
.pc-step { display: flex; flex-direction: column; gap: 8px; }
.pc-step .links span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-step .links a { display: inline-flex; align-items: center; gap: 6px; }
.pc-shot { display: block; width: min(420px, 100%); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.pc-shot img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; }
.pc-shot:hover { border-color: var(--brand); }
@media (max-width: 640px) { .pair-code { font-size: 24px; letter-spacing: 4px; } .my-acts .btn { flex: 1 1 auto; justify-content: center; } }
