:root {
  --ink: #141617;
  --ink-2: #1e2122;
  --paper: #f4f1e8;
  --card: #fffdf7;
  --line: #e4dfd0;
  --line-2: #efeadc;
  --text: #1b1d1d;
  --muted: #7a776c;
  --yellow: #f4d74b; /* 从 logo 规范图上取的色 */
  --yellow-2: #ffe56a;
  --yellow-soft: #fbf2c4;
  --danger: #c2412d;
  --ok: #2f9e63;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --stage:
    radial-gradient(58% 88% at 84% 72%, rgba(244, 215, 75, .30), transparent 62%),
    radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--ink);
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 15px/1.65 -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fox-in { from { opacity: 0; transform: translateY(40px) scale(.86) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 99, .45); } 100% { box-shadow: 0 0 0 9px rgba(47, 158, 99, 0); } }
@keyframes sheen { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 22px 22px, 0 0; } }

/* ---------- 外壳 ---------- */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--ink); color: #fff; padding: 24px 14px 18px; view-transition-name: side;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand b { font-size: 17px; letter-spacing: .04em; }
.side nav { display: flex; flex-direction: column; gap: 3px; margin-top: 36px; }
.side nav a {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px;
  color: #a4a8a2; text-decoration: none; transition: color .2s, background .2s, transform .25s var(--ease);
}
.side nav i { font: 12px/1 var(--num); letter-spacing: .06em; color: #5a5e5c; font-style: normal; transition: color .2s; }
.side nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.side nav a.on { background: var(--yellow); color: var(--ink); font-weight: 600; }
.side nav a.on i { color: rgba(20, 22, 23, .5); }
.me { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me form { margin: 0; }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.who em { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-style: normal; font-weight: 700; display: grid; place-items: center; }
.who b { display: block; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 12px; color: #80847f; line-height: 1.3; }
.side button.link { color: #80847f; font-size: 13px; }
.side button.link:hover { color: #fff; }

main { width: 100%; max-width: 1240px; padding: 36px 44px 80px; }
main > * { animation: rise .6s var(--ease) both; }
main > :nth-child(2) { animation-delay: .06s; }
main > :nth-child(3) { animation-delay: .12s; }
main > :nth-child(4) { animation-delay: .18s; }
main > :nth-child(n+5) { animation-delay: .24s; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 36px 0 12px; }
.sub { color: var(--muted); margin: 0 0 22px; }

/* ---------- 首页 ---------- */
.stage {
  position: relative; background: var(--stage); color: #fff; border-radius: 28px;
  padding: 46px 50px 42px; min-height: 330px; margin-top: 26px; animation: rise .6s var(--ease) both, sheen 14s linear infinite;
}
.stage-txt { position: relative; z-index: 1; max-width: 60%; }
.kicker { font: 13px/1 var(--num); letter-spacing: .16em; color: var(--yellow); margin: 0 0 18px; }
.stage h1 { font-size: clamp(34px, 4.1vw, 52px); line-height: 1.12; margin: 0 0 12px; }
.stage h1 em { font-style: normal; color: var(--yellow); }
.lede { color: #b4b8b1; font-size: 16px; margin: 0 0 28px; }
.fox {
  position: absolute; right: 40px; bottom: -4px; height: 116%; max-height: 390px; pointer-events: none; user-select: none;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .45));
  animation: fox-in .9s var(--ease) .15s both, float 6s ease-in-out 1.05s infinite; transition: translate .5s ease-out;
}
.ask {
  display: flex; max-width: 540px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: border-color .2s, box-shadow .2s, background .2s;
}
.ask:focus-within { border-color: var(--yellow); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 5px rgba(244, 215, 75, .16); }
.ask input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 10px 18px; outline: 0; }
.ask input:focus { outline: 0; }
.ask input::placeholder { color: #8f938d; }
.ask button { border-radius: 999px; padding: 10px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a {
  font-size: 13px; padding: 5px 14px; border-radius: 999px; text-decoration: none; color: #d6d9d2;
  border: 1px solid rgba(255, 255, 255, .17); transition: all .2s var(--ease);
}
.chips a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.chips a.more { border-style: dashed; color: #8f938d; }

.desk { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.col { display: grid; gap: 22px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.panel:hover { box-shadow: 0 22px 44px -28px rgba(46, 38, 8, .4); transform: translateY(-2px); }
.panel header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.panel h2 { margin: 0; }
.panel header a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.panel header a::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.panel header a:hover { color: var(--text); }
.panel header a:hover::after { transform: translateX(4px); }
.nodes ol { list-style: none; margin: 0; padding: 0; }
.nodes li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0;
  border-top: 1px solid var(--line-2); animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 260ms);
}
.nodes li:first-child { border-top: 0; }
.nodes time { text-align: center; }
.nodes time b { display: block; font: 700 34px/1 var(--num); }
.nodes time span { font-size: 12px; color: var(--muted); }
.nodes h3 { margin: 0; font-size: 16px; }
.nodes h3 small { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 10px; vertical-align: 2px; }
.nodes h3 small.soon { background: var(--yellow); color: var(--ink); }
.nodes p { margin: 3px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.go { font-size: 13px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; transition: all .2s var(--ease); }
.nodes li:hover .go { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.mini { list-style: none; margin: 0 0 4px; padding: 0; }
.mini li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-2); }
.mini li:first-child { border-top: 0; }
.mini p { margin: 0; }
.mini a { flex: 1; min-width: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.mini a:hover { color: #9a7b00; }
.when { font: 13px/1.4 var(--num); color: var(--muted); white-space: nowrap; }
.quick { display: flex; gap: 8px; margin-top: 12px; }
.quick input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.quiet { color: var(--muted); margin: 2px 0 4px; }
.status { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.status span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #c9c4b4; }
.status .on::before { background: var(--ok); animation: pulse 2.2s ease-out infinite; }

/* ---------- 通用控件 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  text-decoration: none; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(46, 38, 8, .45); }
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }

input, select, textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; max-width: 100%; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(244, 215, 75, .45); }
textarea { width: 100%; resize: vertical; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px;
  padding: 8px 18px; background: var(--yellow); color: var(--ink); white-space: nowrap; flex-shrink: 0;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
button:hover { background: var(--yellow-2); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(180, 140, 0, .8); }
button:active { transform: scale(.97); box-shadow: none; }
button:disabled { opacity: .6; cursor: wait; }
button.ghost { background: #fff; border: 1px solid var(--line); font-weight: 500; }
button.ghost:hover { border-color: var(--ink); background: #fff; box-shadow: none; }
button.link { background: none; padding: 0; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { background: none; transform: none; box-shadow: none; color: var(--text); }
label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
label input { display: block; width: 100%; margin-top: 6px; color: var(--text); font-size: 15px; }
.err { color: var(--danger); min-height: 1.4em; margin: 0 0 10px; font-size: 14px; }
.warn { background: var(--yellow-soft); border-radius: 14px; padding: 12px 18px; margin: 0 0 18px; word-break: break-all; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 36px; text-align: center; color: var(--muted); }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-weight: 600; font-size: 12px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; background: #faf7ec; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tr:hover td { background: #fffbe8; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; text-underline-offset: 3px; }
td form { margin: 0; display: inline; }
td input, td select { width: 100%; padding: 5px 9px; }
td small { color: var(--muted); }
table.help { margin-top: 10px; }
table.help td:first-child { font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }

.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.row input { flex: 1 1 150px; }
.narrow { max-width: 380px; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.bar form { display: flex; gap: 8px; align-items: center; }
.tabs { display: inline-flex; gap: 4px; margin: 14px 0 12px; padding: 4px; background: var(--line-2); border-radius: 999px; }
.tabs a { padding: 6px 18px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: all .25s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--ink); color: #fff; }

.cmd { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.cmd textarea { font-family: ui-monospace, Menlo, monospace; border-radius: 14px; padding: 12px 14px; }
details { margin-bottom: 8px; }
summary { cursor: pointer; color: var(--muted); }

.chat { display: flex; flex-direction: column; gap: 14px; }
.log { min-height: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.log:empty::before { content: "对话会显示在这里。"; color: var(--muted); }
.msg { margin-bottom: 14px; white-space: pre-wrap; word-break: break-word; animation: rise .4s var(--ease) both; }
.msg b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.msg.user { background: var(--yellow-soft); border-radius: 16px 16px 4px 16px; padding: 10px 16px; margin-left: 18%; }
.msg.error { color: var(--danger); }
.chat form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chat form select { grid-column: 1 / -1; justify-self: start; }
.chat form textarea { border-radius: 16px; padding: 12px 16px; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--stage); color: #fff; padding: 60px 64px 44px; animation: sheen 14s linear infinite; }
.login-stage h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.12; margin: 0; animation: rise .8s var(--ease) both; }
.login-stage .kicker { animation: rise .8s var(--ease) both; }
.login-stage .fox { right: 7%; bottom: 8%; height: auto; max-height: none; width: min(48%, 460px); }
.tagline { margin: auto 0 0; display: flex; align-items: center; gap: 10px; color: #8f938d; font: 14px/1 var(--num); letter-spacing: .05em; position: relative; z-index: 1; }
.tagline img { width: 28px; height: 28px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: min(360px, 100%); animation: rise .7s var(--ease) .15s both; }
.login-form h2 { font-size: 28px; margin: 0 0 6px; }
.login-form input { padding: 12px 14px; border-radius: 12px; }
.login-form button { width: 100%; padding: 13px; border-radius: 12px; font-size: 16px; }

@media (max-width: 900px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; }
  .side nav { order: 3; flex-direction: row; flex-basis: 100%; min-width: 0; margin-top: 0; overflow-x: auto; scrollbar-width: none; }
  .ask button { padding: 10px 16px; }
  .desk > *, .col > * { min-width: 0; }
  .side nav a { white-space: nowrap; padding: 8px 12px; }
  .side nav i { display: none; }
  .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  main { padding: 20px 16px 60px; }
  .stage { padding: 30px 24px; min-height: 0; margin-top: 8px; }
  .stage-txt { max-width: 100%; }
  .stage .fox { display: none; }
  .desk { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-stage { min-height: 300px; padding: 36px 28px; }
  .login-stage .fox { width: 150px; bottom: 16px; }
  table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- v4：狐呦呦、小队、工具 ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-radius: 10px; padding: 8px 18px; background: var(--yellow); color: var(--ink); white-space: nowrap; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn.ghost { background: #fff; border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--ink); }
.pill { font-style: normal; font-size: 12px; background: var(--yellow-soft); border-radius: 999px; padding: 2px 10px; margin-right: 6px; }
.quiet { color: var(--muted); }
.ok { color: var(--ok); } .bad { color: var(--danger); }
.empty img { display: block; width: 110px; margin: 0 auto 12px; }

/* 狐呦呦 */
.yoyo-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 28px;
  background: var(--stage); color: #fff; border-radius: 28px; padding: 26px 40px; margin: 6px 0 20px; animation: rise .6s var(--ease) both, sheen 14s linear infinite; }
.yoyo-hero .fox { position: static; height: 200px; max-height: none; justify-self: center; }
.yoyo-hero h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 8px; }
.yoyo-hero h1 em { font-style: normal; color: var(--yellow); }
.yoyo-hero .meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #b4b8b1; }
.yoyo-hero .meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: #6c706b; vertical-align: 1px; }
.yoyo-hero .meta .on::before { background: var(--ok); animation: pulse 2.2s ease-out infinite; }
.yoyo-hero .meta .off::before { background: var(--danger); }
.sticker { position: absolute; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); animation: bob 5s ease-in-out infinite; }
.sticker.s1 { width: 86px; right: 40px; top: 22px; }
.sticker.s2 { width: 64px; right: 140px; bottom: 18px; animation-delay: -2.4s; }

/* 对话 */
.chat { gap: 12px; }
.log { max-height: 62vh; overflow-y: auto; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; white-space: normal; }
.msg .ava { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--yellow-soft); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(46,38,8,.15); }
.msg .bubble { position: relative; max-width: 78%; background: #faf7ec; border: 1px solid var(--line-2); border-radius: 4px 16px 16px 16px; padding: 10px 16px; }
.msg .bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg.user { justify-content: flex-end; background: none; padding: 0; margin-left: 0; }
.msg.user .bubble { background: var(--yellow); border-color: var(--yellow); border-radius: 16px 4px 16px 16px; }
.msg.user .bubble b { color: rgba(20,22,23,.55); }
.msg.error .bubble { background: #fff1ee; border-color: #f3cfc7; color: var(--danger); }
.refs { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.copy { position: absolute; right: 8px; top: 6px; padding: 0 6px; font-size: 12px; font-weight: 500; background: none; color: var(--muted); opacity: 0; }
.msg:hover .copy { opacity: 1; } .copy:hover { background: none; box-shadow: none; color: var(--text); }
.dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9a92a; animation: blink 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; }
.hint { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.hint:hover { background: var(--yellow-soft); border-color: var(--yellow); box-shadow: none; }
.chat form { grid-template-columns: 1fr; }
.chat-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 小队 */
.crew-head, .tools-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.crew-head img { width: 130px; animation: float 6s ease-in-out infinite; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 10px; }
.agent { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .3s var(--ease), box-shadow .3s; }
.agent:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(46,38,8,.45); }
.agent > img { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; background: var(--yellow-soft); }
.agent h3 { margin: 0; font-size: 18px; }
.agent p { margin: 4px 0 0; color: var(--muted); font-size: 13px; min-height: 2.6em; }
.agent footer { display: flex; gap: 8px; margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags i { font-style: normal; font-size: 12px; background: var(--line-2); border-radius: 999px; padding: 1px 10px; }
.tags i.model { background: var(--ink); color: var(--yellow); }
.agent.new { align-items: center; justify-content: center; text-align: center; text-decoration: none; border-style: dashed; min-height: 240px; }
.agent.new b { font-size: 40px; line-height: 1; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: var(--yellow); }
.agent-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.agent-head img { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; background: var(--yellow-soft); }
.agent-head h1 { margin: 0; }
.agent-head .btn { margin-left: auto; }
.agent-head .kicker { margin-bottom: 6px; color: #9a7b00; }

/* 表单生成器 */
.builder { display: grid; gap: 18px; max-width: 860px; }
.builder section { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 10px; }
.builder h2 { margin: 0; font-size: 15px; }
.builder h3 { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.builder input:not([type=radio]):not([type=checkbox]), .builder select { width: 100%; }
.avas { display: flex; flex-wrap: wrap; gap: 12px; }
.ava { position: relative; margin: 0; cursor: pointer; text-align: center; color: var(--muted); font-size: 12px; }
.ava input { position: absolute; opacity: 0; }
.ava img { display: block; width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: var(--yellow-soft); border: 3px solid transparent; transition: transform .2s var(--ease), border-color .2s; }
.ava:hover img { transform: translateY(-3px) rotate(-3deg); }
.ava input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.ava input:focus-visible + img { outline: 2px solid var(--ink); }
.chks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
.chk:has(input:checked) { background: var(--yellow-soft); border-color: var(--yellow); }
.chk input { margin: 0; accent-color: var(--ink); }
.actions { display: flex; gap: 10px; }
.danger { margin-top: 18px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kind { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; display: grid; gap: 2px; }
.kind input { display: none; }
.kind b { color: var(--text); font-size: 14px; }
.kind span { font-size: 12px; }
.kind:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }

/* 工具 */
.card.tool em { font-style: normal; font-size: 11px; letter-spacing: .04em; background: var(--line-2); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.card.tool h2 { margin-top: 10px; }
.card.tool small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.runner { display: grid; gap: 12px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.runner label { margin: 0; }
.runner label textarea, .runner label input { display: block; width: 100%; margin-top: 6px; }
.runner > button { justify-self: start; }
.tpl { background: #faf7ec; color: var(--text); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; white-space: pre-wrap; margin: 0; font-size: 13px; }
.out { max-width: 760px; margin-top: 18px; }
.out.busy { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.out.busy img { width: 54px; animation: bob 1.4s ease-in-out infinite; }
.out .result { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; white-space: pre-wrap; animation: rise .4s var(--ease) both; }
.out .gen { max-width: 100%; border-radius: 18px; margin-top: 12px; animation: pop .5s var(--ease) both; }
.hit { display: block; text-decoration: none; padding: 12px 16px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.hit:hover { border-color: var(--ink); }
.hit b { display: block; } .hit span { color: var(--muted); font-size: 13px; }
.snip { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 首页小队 */
.mates { display: flex; flex-wrap: wrap; gap: 14px; }
.mate { width: 70px; text-align: center; text-decoration: none; font-size: 12px; color: var(--muted); }
.mate img, .mate b { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 18px; object-fit: cover; background: var(--yellow-soft); transition: transform .25s var(--ease); }
.mate b { background: var(--yellow); color: var(--ink); font-size: 26px; }
.mate:hover img, .mate:hover b { transform: translateY(-3px) rotate(-4deg); }
.mate span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 管理后台 */
.panel.flat:hover { transform: none; box-shadow: none; }
.panel.flat { margin-bottom: 14px; }
.provider header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.provider header h3 { margin: 0; }
.provider header code { color: var(--muted); font-size: 13px; }
.provider header span { font-size: 13px; color: var(--muted); margin-right: auto; }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; margin: 12px 0; }
.mrow { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text); }
.mrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mrow select { width: auto; padding: 2px 6px; font-size: 12px; }
.mrow:has(input:checked) { border-color: var(--yellow); background: var(--yellow-soft); }

@media (max-width: 900px) {
  .yoyo-hero { grid-template-columns: 1fr; padding: 24px; }
  .yoyo-hero .fox { height: 130px; }
  .sticker { display: none; }
  .crew-head img { display: none; }
  .msg .bubble { max-width: 86%; }
  .agent-head { flex-wrap: wrap; }
}
/* 复选/单选不吃 label input 的块级全宽规则 */
label input[type=checkbox], label input[type=radio] { display: inline-block; width: auto; margin: 0; flex: none; }
.chk { white-space: nowrap; }
.ava input { position: absolute; }
.kind input[type=radio] { display: none; }
[hidden] { display: none !important; }
.tags i.wx { background: #2aae67; color: #fff; }
.agent footer .btn, .agent-head .btn { padding: 8px 14px; }
.agent-head .btn + .btn { margin-left: 0; }
.jobform { max-width: none; background: #faf7ec; border: 1px dashed var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 14px; gap: 10px; }
.jobform h3 { margin: 0; color: var(--text); }
.jobform .row { margin: 0; }
.jobform .row input, .jobform .row select { flex: 0 1 160px; width: auto; }
.jobform > button { justify-self: start; }

/* 团队机器人：置顶、黄底描边，和个人小 agent 区分开 */
.agent.team { background: linear-gradient(140deg, var(--yellow-soft), var(--card) 70%); border-color: var(--yellow); }
.agent.team h3 small { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #1f1a0b; color: var(--yellow); margin-left: 6px; vertical-align: middle; }

/* ============ 三大部门 · 圈子部门（2026-10-14） ============ */
.side nav { overflow-y: auto; scrollbar-width: none; margin-top: 22px; }
.side nav::-webkit-scrollbar { display: none; }
.side .sec { margin: 16px 12px 4px; font-size: 11px; letter-spacing: .22em; color: #6b6f6b; }
.side .sec:first-child { margin-top: 0; }
.side nav a { padding: 8px 12px; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.dept-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px 24px;
  background: var(--stage); color: #fff; border-radius: 28px; padding: 34px 38px 26px; margin-bottom: 22px;
}
.dept-hero::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 215, 75, .35), transparent 65%); animation: glow 5s ease-in-out infinite; pointer-events: none; }
.dept-hero h1 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 8px; }
.dept-hero h1 em { font-style: normal; color: var(--yellow); }
.dept-hero .lede { color: #c9cbc5; max-width: 640px; margin: 0; }
.dept-hero .kicker { margin-bottom: 14px; }
.dh-fox { grid-row: span 2; align-self: end; justify-self: end; width: 170px; max-height: 190px; object-fit: contain;
  animation: fox-in .9s var(--ease) both, float 6s ease-in-out 1s infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); position: relative; z-index: 1; }
.kpis { grid-column: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 12px 14px;
  backdrop-filter: blur(6px); transition: background .25s, transform .3s var(--ease); }
.kpi:hover { background: rgba(244, 215, 75, .14); transform: translateY(-3px); }
.kpi b { display: block; font: 600 28px/1.1 var(--num); color: #fff; letter-spacing: .01em; }
.kpi span { font-size: 12px; color: #a4a8a2; }
.kpi .dl { margin-left: 6px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.toolbar .tabs { margin: 0; }
.tabs sup { font: 11px var(--num); margin-left: 4px; opacity: .6; }
.search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search input[name=q] { width: 240px; }
.search .chk { margin: 0; display: flex; gap: 6px; align-items: center; }

.dl { display: inline-block; font: 600 12px/1 var(--num); padding: 4px 7px; border-radius: 999px; vertical-align: middle; }
.dl.up { background: #e3f4ea; color: var(--ok); }
.dl.down { background: #fbe5e0; color: var(--danger); }
.dl.flat { background: var(--line-2); color: var(--muted); }
.pool { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; letter-spacing: .04em; }
.pool.grow { background: var(--yellow-soft); color: #7a5d00; box-shadow: inset 0 0 0 1px var(--yellow); }
.pool.fixed { background: var(--ink); color: var(--yellow); }
.eco { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin: 0 4px 4px 0; display: inline-block; }
.eco.good { background: #e3f4ea; color: #1f7a4a; }
.eco.bad { background: #fbe5e0; color: #a4321f; }
.eco.mid { background: var(--line-2); color: var(--muted); }
.ecos.big .eco { font-size: 13px; padding: 3px 12px; }
.actdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 8px; animation: pulse 2.2s ease-out infinite; vertical-align: middle; }
.good { color: var(--ok); } .bad { color: var(--danger); }
.numc { font-family: var(--num); text-align: right; white-space: nowrap; }

.clist { display: grid; gap: 8px; }
.ch, .crow { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.1fr 130px .7fr .7fr 74px; gap: 14px; align-items: center; }
.ch { padding: 0 18px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.crow { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; text-decoration: none;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 30ms);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.crow:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(46, 38, 8, .5); border-color: #d6cfb9; }
.crow.warnrow::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--danger); }
.cn b { font-size: 15px; }
.cn small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 4px; }
.cd b { font: 600 22px/1 var(--num); margin-right: 6px; }
.cp { font: 15px var(--num); color: var(--muted); }
.spark { width: 120px; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 1; }
.hs { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.hs i { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--yellow) calc(var(--v) * 1%), var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }
.hs span { font: 600 13px var(--num); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pager a { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font: 13px var(--num); }
.pager a.on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.bulk { margin-top: 22px; }
.bulk summary { cursor: pointer; font-weight: 600; }
.bulk textarea { margin-top: 12px; }

.circle-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 18px; }
.circle-head .kicker { color: var(--muted); }
.circle-head h1 { font-size: 34px; }
.poolform { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.poolform label { margin: 0; }
.pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pbtns button.on { background: var(--ink); color: var(--yellow); }

.kcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kcards.mini { min-width: 420px; margin: 0; }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; animation: rise .55s var(--ease) both; }
.kc span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.kc b { font: 600 26px/1.3 var(--num); margin-right: 6px; }
.kc small { display: block; color: var(--muted); font-size: 12px; }
.kc.health { background: var(--ink); color: #fff; border-color: var(--ink); }
.kc.health b { color: var(--yellow); }
.kc.health span, .kc.health small { color: #a4a8a2; }

.chart header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.legend { font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.legend .l1 { background: var(--yellow); } .legend .l2 { background: rgba(20, 22, 23, .25); } .legend .l3 { background: #ebe6d6; } .legend .l4 { background: var(--danger); border-radius: 50%; }
.trend { width: 100%; height: auto; display: block; }
.trend .area { fill: url(#tg); animation: rise 1s var(--ease) both; }
.trend .line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 1.6s var(--ease) both; }
.trend .bar { fill: rgba(20, 22, 23, .16); transform-origin: bottom; transform-box: fill-box; animation: rise .8s var(--ease) both; }
.trend .bar:hover { fill: var(--yellow); }
.trend .hol { fill: #ebe6d6; opacity: .7; }
.trend .grid { stroke: var(--line-2); }
.trend .ax { font: 11px var(--num); fill: var(--muted); text-anchor: end; }
.trend .mark line { stroke: var(--danger); stroke-dasharray: 3 3; opacity: .7; }
.trend .mark circle { fill: var(--danger); }
.trend .dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two > .panel { margin-bottom: 0; }
.two + * { margin-top: 18px; }
.meter { display: grid; grid-template-columns: 70px minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center; margin: 10px 0 14px; }
.meter > span { font-size: 13px; font-weight: 600; }
.mbar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.mbar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 99px; background: linear-gradient(90deg, var(--yellow), #e0b300);
  transform-origin: left; animation: grow 1.1s var(--ease) both; }
.meter b { font: 600 14px var(--num); text-align: right; }
.meter small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; margin-top: -2px; }
.ecolist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.ecolist li { padding: 8px 12px; border-radius: 12px; background: var(--line-2); font-size: 13px; }
.ecolist li b { margin-right: 10px; }
.ecolist li.good { background: #e3f4ea; color: #1f5f3c; } .ecolist li.bad { background: #fbe5e0; color: #8a2c1c; }
.plain { list-style: none; margin: 0 0 12px; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.plain li span { color: var(--muted); font-size: 13px; text-align: right; }
.plain.small li { font-size: 12px; display: block; }
.obs header { display: flex; flex-wrap: wrap; gap: 12px; }
.obsform { background: #faf7ec; border: 1px dashed var(--line); border-radius: 16px; padding: 14px 16px; margin: 6px 0 18px; }
.obsform .row { margin: 0 0 8px; }
.obsform .row:last-child { margin: 8px 0 0; }
.obsform input[name=title] { flex: 3 1 260px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 4px 0 18px; animation: rise .5s var(--ease) both; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--paper); }
.timeline li.k-0::before, .timeline li.k-1::before { background: var(--ok); }
.timeline li.k-4::before { background: var(--danger); }
.timeline time { font: 600 13px var(--num); color: var(--muted); padding-top: 2px; }
.timeline p { margin: 0 0 4px; }
.timeline small { color: var(--muted); }
.okind { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--yellow); margin-right: 8px; }

.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.camp { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; text-decoration: none;
  animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.camp:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(46, 38, 8, .45); }
.camp.live { border-color: var(--yellow); box-shadow: inset 0 3px 0 var(--yellow); }
.camp.closed { opacity: .72; }
.camp header { display: flex; gap: 6px; }
.camp h3 { margin: 0; font-size: 18px; }
.camp p { margin: 0; color: var(--muted); font-size: 13px; min-height: 2.6em; }
.ck, .cs { font-style: normal; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--line-2); }
.ck.project { background: var(--ink); color: var(--yellow); }
.cs.live { background: #e3f4ea; color: var(--ok); }
.cm { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.funnel { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.funnel b { font: 600 18px/1 var(--num); color: var(--text); margin-right: 4px; }
.funnel.big b { font-size: 26px; }
.prog { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: auto; }
.prog i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--ok); border-radius: 99px; transform-origin: left; animation: grow 1s var(--ease) both; }
.cardmsg { white-space: pre-wrap; font: 14px/1.7 inherit; background: #eef7f0; border: 1px solid #cfe8d6; border-radius: 4px 18px 18px 18px; padding: 14px 16px; margin: 0; position: relative; }
.entries td { vertical-align: middle; }
.entries input.tiny { width: 70px; display: inline-block; margin: 2px 0; }
.entries tr.st-approved td { background: #f2faf5; }
.entries tr.st-rejected td { opacity: .6; }
.rank { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rank li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.rank em { font: italic 600 18px var(--num); color: #c9c4b4; }
.rank li:nth-child(-n+3) em { color: #d4a800; }
.rank b { font: 600 17px var(--num); }
.big { font: 600 22px var(--num); margin-left: 8px; }
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan h3 { margin: 0 0 6px; }
.campform .kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.campform .kind { flex: 1 1 200px; margin: 0; }
.campform .row label { flex: 1 1 140px; margin: 0; }
.pick { margin-top: 10px; }

.circ-mini .cm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.circ-mini .cm-kpis div { background: var(--paper); border-radius: 14px; padding: 10px 12px; }
.circ-mini .cm-kpis b { font: 600 24px/1.1 var(--num); display: block; }
.circ-mini .cm-kpis span { font-size: 12px; color: var(--muted); }
.circ-mini .cm-kpis .bad b { color: var(--danger); }
.warnlist li { display: flex; justify-content: space-between; align-items: center; }
.warnlist a { text-decoration: none; }

@media (max-width: 900px) {
  .side .sec { display: none; }
  .side nav { overflow-x: auto; overflow-y: visible; }
  .dept-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .dept-hero h1 { font-size: 30px; }
  .dh-fox { display: none; }
  .ch { display: none; }
  .crow { grid-template-columns: minmax(0, 1fr) auto; }
  .crow .cs, .crow .cp { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .kcards.mini { min-width: 0; width: 100%; }
  .poolform { align-items: stretch; }
  .search input[name=q] { width: 100%; }
  .circ-mini .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); }
}


/* ============ 幕后团队（2026-10-14） ============ */
.crew-strip { display: flex; align-items: center; gap: 0; margin: 14px 4px 10px; padding: 8px 10px; border-radius: 14px; text-decoration: none;
  color: #a4a8a2; font-size: 12px; transition: background .25s, color .25s; }
.crew-strip em { width: 26px; height: 26px; margin-left: -7px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
  background: var(--ink-2); color: var(--yellow); box-shadow: 0 0 0 2px var(--ink); transition: transform .3s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.crew-strip em:first-child { margin-left: 0; }
.crew-strip span { margin-left: 10px; letter-spacing: .08em; }
.crew-strip:hover, .crew-strip.on { background: rgba(255, 255, 255, .06); color: #fff; }
.crew-strip:hover em { transform: translateY(-3px); background: var(--yellow); color: var(--ink); }

.credits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; font-size: 13px; color: var(--muted); }
.credits span { font-size: 11px; letter-spacing: .24em; color: #b5b0a0; }
.credits i { font-style: normal; color: var(--text); font-weight: 600; }
.credits small { font-weight: 400; color: var(--muted); margin-right: 6px; font-size: 12px; }
.login-form { grid-template-rows: 1fr auto; }
.login-credits { align-self: end; justify-content: center; padding-top: 28px; animation: rise .8s var(--ease) .35s both; }
.home-credits { display: block; margin-top: 30px; padding: 18px 6px 0; border-top: 1px dashed var(--line); text-decoration: none; }
.home-credits:hover .credits i { color: #8a6b00; }

.team-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 24px;
  background: var(--stage); color: #fff; border-radius: 28px; padding: 40px 42px; margin-bottom: 22px; }
.team-hero h1 { font-size: 48px; letter-spacing: -.02em; margin: 0 0 10px; }
.team-hero h1 em { font-style: normal; color: var(--yellow); }
.team-hero .lede { color: #c9cbc5; max-width: 560px; margin: 0; }
.team-hero .fox { width: 220px; animation: fox-in .9s var(--ease) both, float 6s ease-in-out 1s infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tm { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px 22px; min-height: 280px;
  display: flex; flex-direction: column; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 90ms);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.tm:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: 0 26px 46px -28px rgba(46, 38, 8, .5); }
.tm-mono { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: var(--ink); color: var(--yellow);
  transition: transform .4s var(--ease), background .3s, color .3s; }
.tm:hover .tm-mono { transform: rotate(-8deg) scale(1.06); background: var(--yellow); color: var(--ink); }
.tm-role { margin: 22px 0 2px; font-size: 13px; color: var(--muted); }
.tm-role span { display: block; font: 11px/1.6 var(--num); letter-spacing: .22em; color: #b5a24a; }
.tm h2 { font-size: 26px; margin: 0 0 10px; }
.tm-do { margin: auto 0 0; font-size: 13px; color: var(--muted); max-width: 80%; }
.tm-fox { position: absolute; right: -14px; bottom: -10px; width: 96px; opacity: .9; transition: transform .45s var(--ease); }
.tm:hover .tm-fox { transform: translate(-6px, -6px) rotate(-6deg); }
.team-foot { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.team-foot img { width: 22px; }

@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .crew-strip { display: none; }
  .team-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .team-hero h1 { font-size: 34px; }
  .team-hero .fox { display: none; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .tm { min-height: 0; }
}
/* 修：横幅狐呦呦不顶出上沿；卡片贴图不压说明文字 */
.team-hero { min-height: 260px; }
.team-hero .fox { width: auto; max-width: 210px; max-height: 230px; object-fit: contain; align-self: end; justify-self: end; }
.tm { padding-bottom: 92px; }
.tm-do { position: relative; z-index: 1; max-width: none; margin-top: 4px; }
.tm-fox { width: 78px; right: 8px; bottom: 6px; }


/* ============ 话题库（2026-10-14） ============ */
.pack, .lib { margin-top: 8px; }
.pack > header, .lib > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.pack h2, .lib h2 { margin: 0; }
.daynav { display: flex; align-items: center; gap: 14px; font: 13px var(--num); }
.daynav a { text-decoration: none; color: var(--muted); padding: 4px 10px; border-radius: 999px; transition: background .2s, color .2s; }
.daynav a:hover { background: var(--ink); color: var(--yellow); }
.daynav b { font-size: 15px; }
.pcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pcol { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 16px 6px; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.pcol h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.pcol h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.pcol h3 sup { font: 11px var(--num); color: var(--muted); }
.tlist { list-style: none; margin: 0; padding: 0; }
.tp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 2px; border-top: 1px solid var(--line-2); }
.tp:first-child { border-top: 0; }
.tlist.big { display: grid; gap: 8px; }
.tlist.big .tp { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; animation: rise .45s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tlist.big .tp:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(46, 38, 8, .5); }
.ttext { margin: 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ttags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.ttags i { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.ttags .tsheet { background: var(--ink); color: var(--yellow); }
.ttags .tsheet.k-case { background: #4a3d0a; }
.ttags .tday { font-family: var(--num); }
.ttags .tc { background: #e3f4ea; color: #1f7a4a; }
.ttags .tsens { background: #fbe5e0; color: #a4321f; }
.topts { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.tnote { margin: 6px 0 0; font-size: 12px; color: #8a6b00; }
.tact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; opacity: .55; transition: opacity .2s; }
.tp:hover .tact, .tact:focus-within { opacity: 1; }
.tact .btn, .tact button { padding: 4px 11px; font-size: 12px; border-radius: 9px; }
.tact form { margin: 0; }
.tact .star { background: none; border: 0; font-size: 18px; padding: 0 4px; color: #c9c4b4; box-shadow: none; }
.tact .star.on { color: #e0b300; }
.tact .star:hover { color: #e0b300; transform: scale(1.15); background: none; box-shadow: none; }
.tact button.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tchips a { font-size: 12px; text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: all .2s; }
.tchips a:hover, .tchips a.on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.pager span { padding: 5px 4px; color: var(--muted); }
.topic-mini h2 small { font: 12px var(--num); color: var(--muted); margin-left: 6px; }
.topic-mini li p { margin: 0; font-size: 13.5px; }
@media (max-width: 900px) {
  .tlist.big .tp { grid-template-columns: minmax(0, 1fr); }
  .tact { opacity: 1; }
  .pcols { grid-template-columns: minmax(0, 1fr); }
}
.pcols { align-items: start; }
.tlist.big .tp { gap: 24px; }
.tlist.big .tact { flex-wrap: nowrap; white-space: nowrap; }
.lib .search { gap: 10px; }
.lib .search .chk { margin: 0 6px; }

/* 员工登录页：圈主入口 */
.leader-entry { width: min(360px, 100%); display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #141617; color: #fff; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.leader-entry:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(20,22,23,.8); }
.leader-entry b { flex: none; padding: 4px 10px; border-radius: 999px; background: #f4d74b; color: #141617; font-size: 13px; }
.leader-entry span { font-size: 14px; color: #e8e6dc; }

/* 网关：圈主平台管理新增 */
.qa-preview { max-width: 640px; }
.qa-preview .q-daily { background: #fffbea; border: 2px solid #141617; border-radius: 22px; padding: 16px 18px; box-shadow: 6px 6px 0 #141617; }
.qa-preview .q-daily header { display: flex; justify-content: space-between; border-bottom: 2px solid #141617; padding-bottom: 6px; margin-bottom: 8px; }
.qa-preview .dl-sub { color: #c2412d; font-weight: 700; margin: 2px 0; }
.qa-preview .dl-sec h4 { margin: 10px 0 4px; } .qa-preview .dl-sec li small { display: block; color: #7a776c; }
.qa-preview .dl-tip { display: flex; gap: 10px; align-items: center; background: #f4d74b; border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.qa-preview .dl-tip img { width: 40px; } .qa-preview .dl-tip p { margin: 0; } .qa-preview .dl-tip b { display: block; }

/* 管理后台：模块权限 */
.perms summary { cursor: pointer; white-space: nowrap; font-size: 13px; color: var(--ink); }
.perms .chks { max-width: 420px; margin-top: 6px; }
.perms .pgrp { width: 100%; margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* 推送中心：给圈主推送 */
.ptabs { flex-wrap: wrap; }
.push-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; max-width: 1180px; }
.push-grid > div { display: grid; gap: 18px; }
.pushform { max-width: none; }
.pgrp { margin: 6px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.pgrp a { margin-left: 6px; }
.pushform:has(input[name=kind][value=notice]:checked) .pk-camp,
.pushform:not(:has(input[name=kind][value=notice]:checked)) .pk-notice { display: none; }
.pk-notice, .pk-camp { display: grid; gap: 10px; }
.push-side { position: sticky; top: 18px; display: grid; gap: 12px; background: var(--ink); color: #f3efe3; border-radius: 22px; padding: 20px; }
.push-side h2 { margin: 0; font-size: 13px; letter-spacing: .12em; color: var(--yellow); }
.push-side .quiet { color: #b9b4a6; margin: 0; font-size: 12px; }
.push-count { font-size: 14px; }
.push-count b { font: 700 40px/1 var(--num, inherit); color: var(--yellow); margin-right: 6px; transition: transform .25s; display: inline-block; }
.push-count b.bump { transform: scale(1.12); }
.push-side .row { gap: 8px; }
.push-side button.ghost { color: #f3efe3; border-color: #4a4d4f; }
.wx { background: #ededed; border-radius: 16px; padding: 12px; color: #1f1f1f; }
.wx-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #777; margin-bottom: 8px; }
.wx-head img { width: 30px; height: 30px; border-radius: 8px; background: var(--yellow); object-fit: contain; }
.wx-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; word-break: break-word; min-height: 40px; box-shadow: 0 1px 0 rgba(0,0,0,.04); animation: wxin .35s var(--ease, ease); }
.wx-bubble a { color: #2b6bd6; text-decoration: none; }
.wx-bubble .wc-warning { color: #e28a00; } .wx-bubble .wc-info { color: #1aad19; } .wx-bubble .wc-comment { color: #999; }
.wx-bubble .wc-q { display: block; border-left: 3px solid #ddd; padding-left: 8px; color: #555; }
@keyframes wxin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.funnel { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.funnel span { display: grid; min-width: 92px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 12px; color: var(--muted); }
.funnel b { font-size: 22px; color: var(--text); }
.tplrow { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.tplrow textarea { width: 100%; font: 13px/1.6 ui-monospace, Menlo, monospace; }
@media (max-width: 900px) {
  .push-grid, .tplrow { grid-template-columns: minmax(0, 1fr); }
  .push-side { position: static; }
}
@media (prefers-reduced-motion: reduce) { .wx-bubble { animation: none; } }
.pushform .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pushform .pgrp { margin-bottom: -4px; }
.pushform:not(:has(input[name=when][value=at]:checked)) input[name=at] { display: none; }
.push-side button.ghost { background: transparent; color: #f3efe3; border: 1px solid #5a5d5f; }
.push-side button.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.push-side .row button { flex: 1; }
.push-side .pv-miss { margin: 0; font-size: 12px; color: #ffb547; }
.push-side .pv-miss:empty, .push-side .quiet:empty { display: none; }
.wx-head img { padding: 2px; box-sizing: border-box; }
@media (max-width: 600px) { .pushform .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wx-bubble .wc-q + br { display: none; }
.wx-bubble .wc-q + br + .wc-q { margin-top: 0; }

/* 服务器指挥台 */
.console-hero { background: radial-gradient(120% 140% at 0% 0%, #2a2c2d 0%, var(--ink) 60%); }
.console-hero .fox { border-radius: 22px; object-fit: cover; width: 180px; height: 180px; box-shadow: 0 0 0 1px #3a3d3f, 0 18px 40px rgba(0,0,0,.35); }
.yoyo-hero .meta .warn::before { background: #ffb547; }
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.console-grid + .panel { margin-top: 18px; }
.console-log { max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--ink); color: #e9e5d8;
  border-radius: 14px; padding: 14px 16px; font: 12.5px/1.65 ui-monospace, Menlo, monospace; margin: 0; }
@media (max-width: 900px) { .console-grid { grid-template-columns: minmax(0, 1fr); } .console-hero .fox { width: 120px; height: 120px; } }
.panel h2 small.quiet { display: block; font-weight: 400; font-size: 12px; overflow-wrap: anywhere; margin-top: 4px; }
.console-grid code { overflow-wrap: anywhere; }

/* 指挥台徽章：深色圆角底 + 狐狸 logo + 终端提示符 + 在线点（替换雕塑照片） */
.cbadge { position: relative; justify-self: center; width: 168px; height: 168px; border-radius: 40px; display: grid; place-items: center;
  background: radial-gradient(90% 90% at 30% 20%, #3a3c3d 0%, #1d1f20 70%); box-shadow: inset 0 0 0 1px #45484a, 0 22px 50px rgba(0,0,0,.45); }
.cbadge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .35;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(244,215,75,.10) 5px 6px); }
.cbadge img { position: relative; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(244,215,75,.35)); animation: cfloat 5s ease-in-out infinite; }
.cbadge b { position: absolute; left: 18px; bottom: 14px; font: 700 15px/1 ui-monospace, Menlo, monospace; color: var(--yellow); letter-spacing: 1px; }
.cbadge b::after { content: ""; display: inline-block; width: 7px; height: 2px; margin-left: 1px; background: var(--yellow); animation: cblink 1.1s steps(1) infinite; vertical-align: 0; }
.cbadge em { position: absolute; right: 18px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s ease-out infinite; }
.cbadge .ring { position: absolute; inset: -10px; border-radius: 48px; border: 1px solid rgba(244,215,75,.28); animation: cring 3.6s ease-out infinite; }
.cbadge .ring.r2 { animation-delay: 1.8s; }
@keyframes cfloat { 50% { transform: translateY(-5px); } }
@keyframes cblink { 50% { opacity: 0; } }
@keyframes cring { from { transform: scale(.94); opacity: .9; } to { transform: scale(1.12); opacity: 0; } }
@media (max-width: 900px) { .cbadge { width: 116px; height: 116px; border-radius: 30px; } .cbadge img { width: 62px; height: 62px; } .cbadge .ring { border-radius: 36px; } }
@media (prefers-reduced-motion: reduce) { .cbadge img, .cbadge b::after, .cbadge em, .cbadge .ring { animation: none; } .cbadge .ring { display: none; } }

/* 活动重做：状态、详情六宫格、审批 */
.cs.pending { background: var(--yellow-soft); color: #7a5d00; } .cs.rejected { background: #fbe5e0; color: var(--danger, #c2412d); }
.cs.draft { background: var(--line-2); color: var(--muted); } .cs.closed { background: #ececec; color: #888; }
.camp.pending { border-color: var(--yellow); border-style: dashed; } .camp.rejected { border-color: #f0c2b8; }
.toolbar .tabs + .tabs { margin-left: 0; }
.camp-review-bar { display: block; text-decoration: none; margin-bottom: 14px; }
.camp-approve { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.camp-approve .row button { white-space: nowrap; }
.camp-st form.inline { display: inline-block; margin-top: 8px; }
.camp-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
.camp-detail .panel { margin: 0; }
.camp-detail .panel:first-child { grid-column: span 2; grid-row: span 2; }
.camp-detail h2 { font-size: 14px; letter-spacing: .04em; margin: 0 0 10px; }
.camp-detail .cbody { line-height: 1.8; font-size: 14px; max-height: 360px; overflow: auto; }
.camp-detail .cbody .wc-q { display: block; border-left: 3px solid var(--line); padding-left: 8px; color: var(--muted); }
.kv, .mats, .rw { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.kv li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; }
.kv li b { color: var(--muted); font-weight: 500; } .kv li.stg span { color: var(--text); }
.mats a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mats .lock { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.rw { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.rw li { display: grid; padding: 10px 12px; border-radius: 14px; background: var(--yellow-soft); }
.rw li b { font: 700 20px/1.2 var(--num, inherit); } .rw li span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.camp-bulk { align-items: center; background: var(--yellow-soft); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.camp-bulk span b { font-size: 18px; margin-right: 4px; }
.fb-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.fb-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.fb-list time { color: var(--muted); margin-right: 8px; } .fb-list p { margin: 4px 0 0; }
@media (max-width: 900px) { .camp-detail { grid-template-columns: minmax(0, 1fr); } .camp-detail .panel:first-child { grid-column: auto; grid-row: auto; } }
.campform section, .campform .kind { min-width: 0; }
.campform .kind small { white-space: normal; overflow-wrap: anywhere; }
.campform .matrow { align-items: center; margin: 6px 0; }
.campform .matrow input { min-width: 0; flex: 1 1 150px; }
@media (max-width: 600px) { .campform .kinds { grid-template-columns: minmax(0, 1fr); } .campform .matrow input { flex-basis: 100%; } }
.campform .chk { max-width: 100%; white-space: normal; }
.campform .row label { min-width: 0; } .campform .row label input, .campform .row label select { min-width: 0; width: 100%; }
.wx-bubble .wc-warning { color: #b86e00; } .wx-bubble .wc-comment { color: #7d7d7d; }
.cs.live { color: #217a4b; }
.q-gate .ok i { color: #217a4b; }

/* 员工通知（表单式） */
.staffform .tplchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.staffform .tplchips .pgrp { margin: 0 4px 0 0; }
.staffform .tplchip { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.staffform .chk.off { opacity: .5; cursor: not-allowed; }
.staffform:has(input[name=all]:checked) .people .chk:not(.off) { opacity: .45; pointer-events: none; }
.staffform .whenin > * { display: none; max-width: 220px; }
.staffform:has(input[name=when][value=at]:checked) .w-at,
.staffform:has(input[name=when][value=daily]:checked) .w-daily,
.staffform:has(input[name=when][value=weekly]:checked) .w-weekly { display: block; }
.staffform:has(input[name=when][value=now]:checked) .whenin { display: none; }
.stasks td { vertical-align: top; }
.stasks details summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.stasks .wx-bubble { margin-top: 6px; max-width: 420px; background: #f3f3f3; }
.tst { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--line-2); white-space: nowrap; }
.tst.active { background: var(--yellow-soft); color: #7a5d00; } .tst.done { background: #e3f4ea; color: #217a4b; } .tst.failed { background: #fbe5e0; color: #a5361f; }
small.bad { color: #a5361f; }

/* 对话增强：附件、思考过程、导出 */
/* 会话栏：对话 / 任务 / 企业微信 */
.chat.talk { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.tmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tside { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px; max-height: calc(100vh - 40px); }
.tnew { width: 100%; }
.ttabs { display: flex; gap: 2px; padding: 3px; background: var(--line-2); border-radius: 999px; }
.ttabs a { flex: 1; text-align: center; padding: 5px 4px; border-radius: 999px; font-size: 12.5px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.ttabs a.on { background: var(--ink); color: #fff; } .ttabs a small { font-size: 11px; opacity: .7; }
.tlist { overflow-y: auto; display: grid; gap: 4px; min-height: 60px; }
.titem { position: relative; display: grid; gap: 2px; padding: 8px 28px 8px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.titem:hover { background: var(--line-2); } .titem.on { background: var(--yellow-soft); }
.titem b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem small { font-size: 11.5px; color: var(--muted); }
.tdel { position: absolute; right: 4px; top: 6px; padding: 0 6px; min-height: 26px; background: none; color: var(--muted); font-size: 16px; opacity: 0; }
.titem:hover .tdel, .titem.on .tdel { opacity: 1; } .tdel:hover { color: var(--danger); background: none; box-shadow: none; }
.tempty { font-size: 12.5px; color: var(--muted); margin: 6px 4px; }
.tbanner { padding: 10px 14px; border-radius: 14px; background: var(--yellow-soft); font-size: 13px; }
.talk .thist { display: none; }
@media (max-width: 900px) {
  .chat.talk { grid-template-columns: minmax(0, 1fr); }
  .tside { display: none; position: static; max-height: 360px; }
  .talk.side-open .tside { display: flex; }
  .talk .thist { display: inline-flex; align-self: flex-start; }
}

.talk.drop .log { outline: 2px dashed var(--yellow); outline-offset: -8px; background: var(--yellow-soft); }
.talk .chat-actions { align-items: center; }
.talk .tgrow { flex: 1; }
.talk .tsend.stop { background: var(--ink); color: var(--yellow); }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  max-width: 260px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; animation: rise .3s var(--ease) both; }
.tchip img, .tchip > i { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; font-style: normal; background: var(--yellow-soft); }
.tchip em { font-style: normal; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tchip small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tchip button { grid-row: 1 / span 2; grid-column: 3; padding: 0 6px; background: none; color: var(--muted); font-size: 16px; min-height: 30px; }
.tchip.up small { color: #9a7b00; } .tchip.bad { border-color: #f0c2b8; } .tchip.bad small { color: var(--danger); }
.tfiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.tfile { display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px;
  background: rgba(255,255,255,.65); text-decoration: none; color: var(--text); font-size: 12px; max-width: 240px; }
.tfile i { grid-row: span 2; font-style: normal; font-size: 18px; } .tfile span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfile small { color: var(--muted); } .tfile.img { padding: 0; background: none; } .tfile.img img { display: block; max-width: 180px; max-height: 140px; border-radius: 10px; }
.tkeep { margin-top: 6px; padding: 3px 10px; font-size: 12px; background: rgba(255,255,255,.7); color: var(--text); border-radius: 999px; min-height: 30px; }
.tthink { margin: 2px 0 8px; border-left: 3px solid var(--yellow); padding: 2px 0 2px 10px; }
.tthink summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; }
.tthink summary::before { content: "▸ "; } .tthink[open] summary::before { content: "▾ "; }
.tthink .tthought { white-space: pre-wrap; font-size: 12.5px; line-height: 1.7; color: #6f6b5f; max-height: 260px; overflow: auto; margin-top: 6px; }
.tthink .ttools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tthink .ttools span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--yellow-soft); color: #7a5d00; }
.tthink .ttools span.done { background: #e3f4ea; color: #217a4b; }
.tmd { line-height: 1.75; word-break: break-word; }
.tmd p { margin: 0 0 6px; white-space: pre-wrap; } .tmd h3, .tmd h4, .tmd h5, .tmd h6 { margin: 10px 0 4px; font-size: 15px; }
.tmd ul, .tmd ol { margin: 4px 0 8px; padding-left: 20px; } .tmd blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); }
.tmd pre { background: var(--ink); color: #eee8d6; border-radius: 10px; padding: 10px 12px; overflow: auto; font-size: 12.5px; }
.tmd code { font: 12.5px ui-monospace, Menlo, monospace; background: rgba(0,0,0,.05); padding: 1px 4px; border-radius: 4px; } .tmd pre code { background: none; padding: 0; }
.tmd .ttable { overflow-x: auto; margin: 6px 0; } .tmd table { border-collapse: collapse; font-size: 13px; } .tmd th, .tmd td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.tmd th { background: var(--yellow-soft); } .tmd a { color: #2b6bd6; }
.tfoot { margin-top: 6px; } .tacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; opacity: .55; transition: opacity .2s; }
.msg:hover .tacts, .tacts:focus-within { opacity: 1; }
.tacts button { padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 999px; background: #fff; color: var(--text); border: 1px solid var(--line); min-height: 30px; }
.tacts button:hover { border-color: var(--ink); box-shadow: none; }
@media (hover: none) { .tacts { opacity: 1; } }
/* 工作区 / 记忆 / 技能 */
.space-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 4px 0 10px; }
.space-bar i { display: block; height: 100%; width: calc(var(--v) * 1%); min-width: 2px; background: var(--yellow); }
.mem header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mem-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.mem-row textarea { width: 100%; min-width: 0; }
.mem-row.new textarea { border-color: var(--yellow); background: var(--yellow-soft); }
.newtag { position: absolute; left: -6px; top: -6px; font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--yellow); }
.skills h2 small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.skill { border-top: 1px solid var(--line); padding: 8px 0; } .skill summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.skill summary span { color: var(--muted); font-size: 13px; } .skill.off summary b { color: var(--muted); text-decoration: line-through; }
.skill textarea { width: 100%; font: 13px/1.6 ui-monospace, Menlo, monospace; margin-top: 8px; }
.skill-body { white-space: pre-wrap; font-size: 12.5px; max-height: 260px; overflow: auto; background: #faf7ec; padding: 10px; border-radius: 10px; }
details.skills > summary { cursor: pointer; } details.skills > summary h2 { display: inline; }
@media (max-width: 600px) { .talk .chat-actions { flex-wrap: wrap; } .tchip { max-width: 100%; } }

/* 商业化工作台 */
.biz-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.biz-link code { font-size: 16px; padding: 6px 12px; border-radius: 10px; background: var(--yellow-soft); }
.bizleads td { vertical-align: top; } .bizleads tr.ls-new td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }

/* Approval feedback remains in document flow. */
.approval-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#dcfce7;color:#166534;border:1px solid #86efac;padding:12px 16px;margin-bottom:16px;border-radius:8px;position:static}
.approval-notice.error{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
.approval-notice button{background:transparent;color:inherit;padding:2px 8px}
.approval-actions{display:flex;justify-content:flex-start;gap:12px;margin-top:12px}
textarea{min-height:100px!important;max-height:300px!important;box-sizing:border-box;resize:none;overflow-y:auto}
.side details>summary{cursor:pointer;padding:10px 14px;color:var(--muted);font-weight:600}
/* Hierarchy is scoped to the existing sidebar navigation. */
.side nav details.menu-child, .side nav details.menu-grandchild { padding-left: 0; }
.side .brand { color: #fff; }
.side nav summary.menu-parent, .side nav a.menu-parent { font-size: 16px; font-weight: 700; color: #fff; padding: 10px 14px; }
.side nav summary.menu-child, .side nav a.menu-child { font-size: 13px; font-weight: 400; color: #fff; padding: 10px 14px 10px 32px; }
.side nav summary.menu-grandchild, .side nav a.menu-grandchild { font-size: 12px; font-weight: 400; color: #fff; padding: 10px 14px 10px 48px; }
.side nav a.on { background: #FFD700; color: #000; border-radius: 20px; }
/* Keep native disclosure behavior, but place its visible indicator at the right. */
.side nav details[data-nav-group] > summary { display: flex; align-items: center; position: relative; list-style: none; padding-right: 36px; }
.side nav details[data-nav-group] > summary::-webkit-details-marker { display: none; }
.side nav details[data-nav-group] > summary::marker { content: ""; }
.side nav details[data-nav-group] > summary::after { content: "▸"; position: absolute; right: 14px; width: 12px; text-align: center; color: currentColor; }
.side nav details[data-nav-group][open] > summary::after { content: "▾"; }

/* Intern workspace keeps the existing brand and stacks at narrow widths. */
.intern-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.intern-number{font-size:38px;color:#141617}.intern-hero{display:flex;align-items:center;gap:24px;overflow:hidden}.intern-hero>div{flex:1;min-width:0}.intern-hero img{width:160px;max-width:30%;object-fit:contain}.intern-review-row{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #dedbd0;color:inherit;text-decoration:none}.intern-review-row span{overflow-wrap:anywhere}pre{max-width:100%;overflow:auto}@media(max-width:640px){.intern-grid{grid-template-columns:minmax(0,1fr)}.intern-hero{align-items:flex-start}.intern-hero img{width:76px}.intern-review-row{flex-wrap:wrap}.intern-hero h1{font-size:30px}}
