/* ==========================================================================
   硅基办公 · ME分身（系统级 agent）的界面
   类名统一 as- 前缀。交互与文案在 assets/js/assist.js。

  这一层不属于任何 App：挂在桌面外壳 #dsk 上，任何窗口开着都能唤出来，
   干完就收。样子只讲一件事 —— 「一个听你说话的东西」：
   顶部一颗会呼吸的光环 = 它醒着；下面一条细面板 = 你现在能对它做什么。

  它是**从小球里长出来的一块小面板**，不是盖住屏幕的大弹窗：
   贴着任务栏那颗小球、右边缘对齐、下沿停在小球上方；宽度压到 328（一根手指量得过来），
   正中间一枚精致的「AI」字样当它的记号；正文只留「说一句话 + 能做什么 + 最近说过」，
   配置全部收进右上角的齿轮里。
   位置由 assist.js 的 place() 量小球的 rect 写内联 right / bottom
   （量不到小球 —— 手机上、或小球被关掉 —— 就退回 CSS 的右下角 / 整宽抽屉）。
   能真做的行是亮的，接口没接的写「待接」且不装可点。不放任何按下去没反应的假开关。
   ========================================================================== */

/* 它身上那条会淌的彩虹描边（Uiverse「StealthWorm」那套的四个停点，原样搬过来）。
   放在 :root 上 —— 托盘那颗小球不在 .as 里，也得取得到同一个变量。 */
:root {
  --as-rain: linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
}

.as {
  --as-ink: #e6f5fa;
  --as-dim: #8fa6b4;
  --as-dim2: #5d7280;
  --as-go: #6ef0ff;
  --as-ok: #7fd8a8;
  --as-no: #e0a83c;
  --as-hair: rgba(110, 240, 255, .16);
  --as-panel: linear-gradient(180deg, rgba(9, 20, 26, .95), rgba(5, 11, 16, .97));
  --as-ease: cubic-bezier(.22, .61, .36, 1);

  position: absolute;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  color: var(--as-ink);
  font-variant-numeric: tabular-nums;
}
.as[hidden] { display: none; }

/* 点空白处收起。它现在只是「一层能接点击的膜」—— 面板不再盖屏幕，桌面就不该被压暗 */
.as-veil { position: absolute; inset: 0; background: rgba(3, 8, 12, .12); animation: asVeil .18s var(--as-ease); }
@keyframes asVeil { from { opacity: 0; } to { opacity: 1; } }
@keyframes asVeilOut { from { opacity: 1; } to { opacity: 0; } }
.as-veil.is-out { animation: asVeilOut .16s var(--as-ease) forwards; }

/* ---------- 面板：从小球里长出来的那一块 ---------- */
.as-panel {
  position: relative;
  /* JS 量到小球时这几个内联值会被盖掉；量不到就落在这儿（右下角、抬到任务栏上面） */
  margin: 0 16px 66px 0;
  width: min(328px, calc(100vw - 24px));
  max-height: min(64vh, 520px);     /* 屏幕再矮也不许溢出：正文自己滚 */
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--as-panel);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(var(--wb-ink-rgb), .12), 0 0 40px rgba(110, 240, 255, .07);
  overflow: hidden;
  transform-origin: 100% 100%;      /* 从球心那条竖线上长出来（place() 算好真位置） */
  animation: asIn .3s cubic-bezier(.16, 1, .3, 1);
}
/* 下沿一道跑过去的电流线：面板「通着电」的意思 */
.as-panel::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--as-go), transparent);
  background-size: 34% 100%; background-repeat: no-repeat;
  opacity: .55;
  animation: asFlow 3.6s linear infinite;
}
@keyframes asIn { from { opacity: 0; transform: translateY(12px) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes asOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.86); } }
/* 收起来也走一小段：不是啪一下消失 */
.as-panel.is-out { animation: asOut .16s var(--as-ease) forwards; pointer-events: none; }
@keyframes asFlow {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

/* ---------- 头 ---------- */
.as-hd { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--as-hair); }
.as-hd__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-hd__t b { font-size: 12.5px; font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
.as-hd__t i { font-style: normal; font-size: 10.5px; line-height: 1.2; color: var(--as-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-sp { flex: 1; }
.as-ico {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 0; border-radius: 8px;
  background: transparent; color: var(--as-dim); font-size: 16px; line-height: 1;
  transition: background-color .14s var(--as-ease), color .14s var(--as-ease);
}
.as-ico svg { width: 14px; height: 14px; }
.as-ico:hover { background: rgba(var(--wb-ink-rgb), .12); color: var(--wb-ink); }
.as-ico.is-on { background: rgba(110, 240, 255, .16); color: var(--as-go); }

/* ---------- 正中间那枚「AI」---------- */
/* 面板的记号，不是装饰堆料：绝对居中（不跟着左边标题的字数左右晃），
   两边各一道细线收口，字本身是一条很浅的竖向渐变 —— 亮一下、暗下去，
   像一枚刻在玻璃上的小标记。它不吃点击（pointer-events:none）。 */
.as-ai {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  display: flex; align-items: center; gap: 7px;
  transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 700; letter-spacing: 2.6px; line-height: 1;
  text-indent: 2.6px;                       /* 字距会把整块往左偏，补回来才是真居中 */
  background: linear-gradient(180deg, #ffffff 6%, #9fe9fb 56%, #4fb4dd 100%);
  background-size: 100% 300%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 7px rgba(110, 240, 255, .4));
  pointer-events: none;
  animation: asAi 6s ease-in-out infinite;
}
.as-ai::before, .as-ai::after {
  content: ""; flex: none; width: 13px; height: 1px; text-indent: 0;
  background: linear-gradient(90deg, transparent, rgba(110, 240, 255, .55));
}
.as-ai::after { background: linear-gradient(270deg, transparent, rgba(110, 240, 255, .55)); }
@keyframes asAi { 0%, 100% { background-position: 50% 0%; opacity: .92; } 50% { background-position: 50% 100%; opacity: 1; } }

/* ---------- 那颗光环：它醒着 ---------- */
/* ==========================================================================
   它「亮着」的那套光 —— 声纹星轨
   取自 Uiverse「StealthWorm」的按钮（渐变描边会淌 + 外面两团呼吸的辉光 + 里头一层走动的星野），
   按本项目的尺寸与配色重写，三处共用同一套：托盘那颗常驻小球 / 面板顶部这颗光环 / 「执行」按钮。
   只有「亮着」这一个意思，不加别的装饰。
   ========================================================================== */
@keyframes asGrad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes asHalo { 0% { transform: scale(.72); opacity: .38; } 70% { transform: scale(1); opacity: .92; } 100% { transform: scale(.72); opacity: .38; } }
@keyframes asStarUp { from { transform: translateY(0); } to { transform: translateY(-54px); } }   /* 54 = 6 格 × 9px，正好接上 */
@keyframes asStarGo { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes asOrb { 0%, 100% { transform: scale(.88); opacity: .6; } 50% { transform: scale(1.06); opacity: 1; } }

/* 星野：一层慢慢往上走、一层极慢地转（对齐原版 #stars 的 ::before / ::after） */
.as-stars { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.as-stars::before, .as-stars::after {
  content: ""; position: absolute;
  background-image: radial-gradient(#fff 1px, transparent 1.2px);
  background-size: 9px 9px;
}
.as-stars::before { top: 0; left: -50%; width: 200%; height: 500%; opacity: .5; animation: asStarUp 14s linear infinite; }
.as-stars::after { top: -40%; left: -40%; width: 180%; height: 180%; opacity: .34; animation: asStarGo 90s linear infinite; }

.as-orb { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.as-orb .as-stars { inset: 2px; z-index: 2; opacity: .75; transition: opacity .4s var(--as-ease); }
/* 外面那两团（原版 .circle 的粉与紫）—— 呼吸的辉光 */
.as-orb__halo {
  position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  filter: blur(7px); animation: asHalo 4s ease-in-out infinite;
}
.as-orb__halo:nth-of-type(1) { background: rgba(254, 83, 186, .55); }
.as-orb__halo:nth-of-type(2) { background: rgba(142, 81, 234, .55); animation-delay: -2s; }
/* 那圈描边：透明 border + 双背景（内层是底、外层是彩虹），底图放大到 300% 才淌得起来 */
.as-orb__ring {
  position: absolute; inset: 0; z-index: 1; border: 1.5px solid transparent; border-radius: 50%;
  background-image: linear-gradient(#0a1216, #0a1216), var(--as-rain);
  background-origin: border-box; background-clip: padding-box, border-box;
  background-size: 300% 300%; animation: asGrad 5s ease infinite;
}
.as-orb__core {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 26px rgba(110, 240, 255, .6);
  animation: asOrb 2.6s var(--as-ease) infinite;
}

/* ---------- 输入行 ---------- */
.as-in { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 9px 6px; }
.as-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 11px;
  border: 1px solid var(--as-hair); border-radius: 9px;
  background: rgba(4, 12, 16, .8); color: var(--as-ink);
  font: inherit; font-size: 12.5px; outline: none;
  transition: border-color .16s var(--as-ease), box-shadow .16s var(--as-ease);
}
.as-input::placeholder { color: var(--as-dim2); }
.as-input:focus { border-color: rgba(110, 240, 255, .45); box-shadow: 0 0 0 3px rgba(110, 240, 255, .12); }
.as-go {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 13px; cursor: pointer; overflow: hidden;
  border: 3px double transparent; border-radius: 999px;
  background-image: linear-gradient(#141a1f, #141a1f), var(--as-rain);
  background-origin: border-box; background-clip: padding-box, border-box;
  background-size: 300% 300%; animation: asGrad 5s ease infinite;
  color: var(--wb-ink); text-shadow: 0 0 4px rgba(var(--wb-ink-rgb), .75);
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .5px;
  transition: transform .5s var(--as-ease), box-shadow .5s var(--as-ease);
}
/* 按钮底下那两团（原版 #glow 的两颗 .circle）：粉一朵、紫一朵，交替呼吸 */
.as-goWrap { position: relative; flex: none; display: flex; }
.as-goHalo {
  position: absolute; inset: 20% 8%; border-radius: 999px; pointer-events: none;
  filter: blur(14px); animation: asHalo 4s ease-in-out infinite;
}
.as-goHalo:nth-of-type(1) { background: rgba(254, 83, 186, .42); }
.as-goHalo:nth-of-type(2) { background: rgba(142, 81, 234, .48); animation-delay: -2s; }
.as-go .as-stars { opacity: 0; transition: opacity .5s var(--as-ease); }
.as-go:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(254, 83, 186, .32); }
.as-go:hover .as-stars { opacity: .8; }
.as-go:active { border: 3px solid #fe53bb; animation: none; transform: scale(.98); }
.as-kbd { flex: none; margin: 0; padding: 0 10px 7px; font-size: 10.5px; color: var(--as-dim2); }

/* ---------- 正文 ---------- */
.as-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 9px 11px; }
.as-body--set { padding: 0; }
.as-sec + .as-sec { margin-top: 10px; }
.as-sec h4 {
  margin: 0 0 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .6px;
  color: var(--as-dim2); text-transform: uppercase;
}

/* 结果卡：办好了 / 没听懂，一眼分得出 */
.as-res {
  position: relative; padding: 13px 14px 13px 16px;
  border-radius: 12px; background: rgba(var(--wb-ink-rgb), .045);
  box-shadow: inset 0 0 0 1px rgba(var(--wb-ink-rgb), .09);
}
.as-res::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--as-ok); }
.as-res.is-no::before { background: var(--as-no); }
.as-res__hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.as-res__hd b { font-size: 13px; font-weight: 600; }
.as-res__hd em { margin-left: auto; flex: none; font-style: normal; font-size: 11px; color: var(--as-ok); }
.as-res.is-no .as-res__hd em { color: var(--as-no); }
.as-res p { margin: 0; font-size: 12.5px; line-height: 1.65; color: rgba(230, 245, 250, .78); }
.as-mini {
  margin-top: 10px; padding: 6px 12px; border: 1px solid var(--as-hair); border-radius: 999px;
  background: transparent; color: var(--as-go); font: inherit; font-size: 11.5px;
  transition: background-color .14s var(--as-ease);
}
.as-mini:hover { background: rgba(110, 240, 255, .14); }

/* 现在就能做的四件事：一条一件，细 */
.as-cans { display: grid; grid-template-columns: 1fr; gap: 5px; }
.as-can {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  border: 1px solid var(--as-hair); border-radius: 8px;
  background: rgba(110, 240, 255, .045); text-align: left;
  transition: background-color .14s var(--as-ease), transform .14s var(--as-ease), border-color .14s var(--as-ease);
}
.as-can:hover { background: rgba(110, 240, 255, .11); border-color: rgba(110, 240, 255, .34); transform: translateY(-1px); }
.as-can b { flex: none; min-width: 76px; font-size: 11.5px; font-weight: 600; }
.as-can span { flex: 1; min-width: 0; font-size: 11px; color: var(--as-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 最近说过：一颗颗小胶囊，点一下再来一遍 */
.as-hists { display: flex; flex-wrap: wrap; gap: 6px; }
.as-hist {
  max-width: 100%; padding: 4px 9px; border: 1px solid rgba(var(--wb-ink-rgb), .1); border-radius: 999px;
  background: rgba(var(--wb-ink-rgb), .05); color: rgba(230, 245, 250, .8);
  font: inherit; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background-color .14s var(--as-ease);
}
.as-hist:hover { background: rgba(var(--wb-ink-rgb), .13); color: var(--wb-ink); }

/* 接口已预留：灰的、写「待接」，展开才看解释 —— 不装成能点 */
.as-soons { display: grid; grid-template-columns: 1fr; gap: 6px; }
.as-soon {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px dashed rgba(var(--wb-ink-rgb), .13); border-radius: 12px;
  background: rgba(var(--wb-ink-rgb), .022); text-align: left;
  transition: background-color .14s var(--as-ease), border-color .14s var(--as-ease);
}
.as-soon:hover, .as-soon.is-on { background: rgba(var(--wb-ink-rgb), .06); border-color: rgba(var(--wb-ink-rgb), .22); }
.as-soon b { font-size: 12px; font-weight: 600; color: rgba(230, 245, 250, .72); }
.as-soon em {
  align-self: flex-start; padding: 1px 7px; border-radius: 999px;
  background: rgba(224, 168, 60, .16); color: #e8bf74; font-style: normal; font-size: 11px;
}
.as-soon span { display: none; font-size: 11.5px; line-height: 1.6; color: var(--as-dim); }
.as-soon.is-on span, .as-soon--row span { display: block; }

/* 设置页：一行一个开关，一行一条预留说明 */
.as-set { padding: 12px 14px 6px; }
.as-set h4 {
  margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  color: var(--as-dim2); text-transform: uppercase;
}
.as-set__gap { margin-top: 18px !important; }
.as-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(var(--wb-ink-rgb), .06); font-size: 12.5px;
}
.as-row > span:first-child { flex: 1; min-width: 0; color: rgba(230, 245, 250, .86); }
.as-row--in { align-items: center; }
.as-inp {
  flex: none; width: 210px; height: 32px; padding: 0 11px;
  border: 1px solid var(--as-hair); border-radius: 9px;
  background: rgba(4, 12, 16, .8); color: var(--as-ink); font: inherit; font-size: 12.5px; outline: none;
}
.as-inp::placeholder { color: var(--as-dim2); }
.as-inp:focus { border-color: rgba(110, 240, 255, .45); }
.as-seg { flex: none; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--as-hair); border-radius: 9px; background: rgba(4, 12, 16, .7); }
.as-seg button {
  padding: 5px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--as-dim); font: inherit; font-size: 11.5px;
  transition: background-color .14s var(--as-ease), color .14s var(--as-ease);
}
.as-seg button:hover { color: var(--wb-ink); }
.as-seg button.is-on { background: rgba(110, 240, 255, .16); color: var(--as-go); }

/* 开关 */
.as-sw {
  flex: none; position: relative; width: 38px; height: 21px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(110, 240, 255, .38);
  transition: background-color .16s var(--as-ease);
}
.as-sw.off { background: rgba(var(--wb-ink-rgb), .16); }
.as-sw i {
  position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: #eaf7fb; transition: transform .16s var(--as-ease);
}
.as-sw:not(.off) i { transform: translateX(17px); }

.as-soons--set { margin-top: 4px; }
.as-soon--row { cursor: default; }
.as-foot { margin: 14px 0 6px; font-size: 11px; line-height: 1.65; color: var(--as-dim2); }

/* ---------- 我的档案：写得下一份人 ---------- */
/* 这一页要放 48 道题 + 长答案，比正文那块小玻璃板宽一档 */
.as-panel.is-wide { width: min(500px, calc(100vw - 24px)); }

.as-mehead { padding: 2px 2px 0; }
.as-mehead b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.as-mehead p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--as-dim); }
/* 进度条：就是「你把自己交出去多少」 */
.as-mebar {
  position: relative; height: 4px; margin: 12px 0 7px; border-radius: 3px;
  background: rgba(var(--wb-ink-rgb), .08); overflow: hidden;
}
.as-mebar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #3fb8d8, var(--as-go));
  box-shadow: 0 0 12px rgba(110, 240, 255, .45);
  transition: width .22s var(--as-ease);
}
.as-mestat { display: block; font-size: 11.5px; color: var(--as-dim); }
.as-mestat b { display: inline; color: var(--as-ink); font-size: 12.5px; }

/* 工具条：搜 / 分组 / 加一题 / 复制
   —— 面板只有 560 宽，一行塞不下（搜索框 + 9 个分组 + 两颗按钮），
   摆成 2×2 的格子：上面「搜索 + 两颗按钮」，下面整整一行给分组。 */
.as-metools {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "search acts" "chips chips";
  gap: 8px; align-items: center;
  margin: 12px 0 10px; padding: 10px;
  border: 1px solid rgba(var(--wb-ink-rgb), .07); border-radius: 12px;
  background: rgba(var(--wb-ink-rgb), .028);
}
.as-mesearch {
  grid-area: search; display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border: 1px solid var(--as-hair); border-radius: 9px; background: rgba(4, 12, 16, .8);
}
.as-mesearch svg { flex: none; width: 14px; height: 14px; color: var(--as-dim2); }
.as-mesearch input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  color: var(--as-ink); font: inherit; font-size: 12.5px;
}
.as-mesearch input::placeholder { color: var(--as-dim2); }
.as-mesearch:focus-within { border-color: rgba(110, 240, 255, .45); }
.as-mechips { grid-area: chips; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.as-chip {
  padding: 5px 10px; border: 1px solid rgba(var(--wb-ink-rgb), .1); border-radius: 999px;
  background: rgba(var(--wb-ink-rgb), .04); color: var(--as-dim);
  font: inherit; font-size: 11.5px; white-space: nowrap;
  transition: background-color .14s var(--as-ease), color .14s var(--as-ease), border-color .14s var(--as-ease);
}
.as-chip:hover { color: var(--wb-ink); background: rgba(var(--wb-ink-rgb), .11); }
.as-chip.is-on { background: rgba(110, 240, 255, .16); border-color: rgba(110, 240, 255, .38); color: var(--as-go); }
.as-meacts { grid-area: acts; display: flex; gap: 7px; }
.as-meacts .as-mini { display: inline-flex; align-items: center; gap: 5px; margin-top: 0; }
.as-meacts .as-mini svg { width: 13px; height: 13px; }
.as-mini--go {
  border-color: transparent; background: linear-gradient(180deg, #6ef0ff, #3fb8d8); color: #04222b;
  font-weight: 600;
}
.as-mini--go:hover { background: linear-gradient(180deg, #8df4ff, #4ac6e6); }
.as-mini--go svg { color: #04222b; }

/* 一条一题：点开的才有输入框，收起时是一张细条 */
.as-megrp + .as-megrp { margin-top: 14px; }
.as-megrp h4 {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--as-dim2);
}
.as-megrp h4 i { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: 0; color: var(--as-dim2); }
.as-me {
  border: 1px solid rgba(var(--wb-ink-rgb), .07); border-radius: 11px;
  background: rgba(var(--wb-ink-rgb), .022);
  transition: border-color .14s var(--as-ease), background-color .14s var(--as-ease);
}
.as-me + .as-me { margin-top: 6px; }
.as-me:hover { border-color: rgba(var(--wb-ink-rgb), .16); }
.as-me.is-open { border-color: rgba(110, 240, 255, .34); background: rgba(110, 240, 255, .05); }
/* 写过的：左边一道细绿线，扫一眼就知道哪几条有着落 */
.as-me.is-done { box-shadow: inset 2px 0 0 var(--as-ok); }
.as-merow {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 11px; background: transparent; color: var(--as-ink);
  font: inherit; font-size: 12.5px; text-align: left;
}
.as-merow:hover { background: rgba(var(--wb-ink-rgb), .05); }
.as-metag {
  flex: none; min-width: 76px; padding: 3px 8px; border-radius: 999px;
  background: rgba(110, 240, 255, .11); color: #9fe6f4;
  font-style: normal; font-size: 11px; text-align: center;
}
.as-merow b { flex: 1; min-width: 0; font-weight: 500; }
.as-merow em { flex: none; font-style: normal; font-size: 11px; color: var(--as-dim2); }
.as-me.is-done .as-merow em { color: var(--as-ok); }

.as-mecard { padding: 0 12px 11px; }
.as-mearea {
  display: block; width: 100%; min-height: 96px; padding: 10px 12px;
  border: 1px solid var(--as-hair); border-radius: 10px;
  background: rgba(4, 12, 16, .82); color: var(--as-ink);
  font: inherit; font-size: 12.5px; line-height: 1.7; resize: vertical; outline: none;
}
.as-mearea::placeholder { color: var(--as-dim2); }
.as-mearea:focus { border-color: rgba(110, 240, 255, .45); box-shadow: 0 0 0 3px rgba(110, 240, 255, .1); }
.as-mecard__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.as-mecard__foot > span { flex: 1; min-width: 0; font-size: 11px; color: var(--as-dim2); }
.as-mecard__foot .as-mini { margin-top: 0; }
.as-mecard--new { padding: 12px; border: 1px dashed rgba(110, 240, 255, .3); border-radius: 11px; background: rgba(110, 240, 255, .04); }
.as-mefields { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.as-mefields .as-inp { width: 100%; height: 34px; }
.as-mempty { margin: 18px 0; font-size: 12.5px; color: var(--as-dim2); text-align: center; }

/* ---------- 窄屏 ---------- */
/* 手机上量不出「小球旁边」这个位置（任务栏太窄），退回贴着底边的整宽抽屉 */
@media (max-width: 760px) {
  .as-panel {
    position: absolute; left: 8px; right: 8px; bottom: 8px; top: auto; width: auto;
    margin: 0; max-height: calc(100vh - 24px); border-radius: 16px;
    transform-origin: 50% 100%;
  }
  .as-body { max-height: 62vh; }
  .as-hd__t i { display: none; }
  .as-row { flex-wrap: wrap; }
  .as-inp { width: 100%; order: 2; }
  .as-metag { min-width: 62px; padding: 3px 6px; }
  .as-merow { flex-wrap: wrap; }
  .as-merow b { flex: 1 1 100%; order: 3; }
  .as-mefields { grid-template-columns: 1fr; }
  .as-mecard__foot { flex-wrap: wrap; }
  .as-mecard__foot > span { flex: 1 1 100%; }
  /* 整宽的时候工具条不用挤：一行搜索、一行按钮、一行分组 */
  .as-metools { grid-template-columns: 1fr; grid-template-areas: "search" "acts" "chips"; }
  .as-meacts .as-mini { flex: 1; justify-content: center; }
}

/* ---------- 任务栏上那颗小球（ME分身 的常驻入口，设置里可关掉） ---------- */
.dk-orb[hidden] { display: none; }
/* 和面板里那颗同款：会淌的彩虹描边 + 呼吸的辉光 + 里头一层星野（hover 时亮起来） */
.dk-tray .wb-iconbtn.dk-orb {
  /* 32 的球 + 左右各留 2px：**排面还是 36 那一格**（旁边几颗的间距、整排的宽度都不动），
     但这一圈彩虹描边比原来小一档 —— 36 的圈扣住一枚 13 的「AI」显得圈太大、边太空 */
  width: 32px; height: 32px; margin: 0 2px;
  border: 2px solid transparent; border-radius: 50%;
  background-image: linear-gradient(#0a1216, #0a1216), var(--as-rain);
  background-origin: border-box; background-clip: padding-box, border-box;
  background-size: 300% 300%; animation: asGrad 5s ease infinite;
  box-shadow: 0 0 14px rgba(110, 240, 255, .16);
  transition: transform .5s var(--as-ease), box-shadow .5s var(--as-ease);
}
/* 球心那枚「AI」：和面板正中那枚**同一套做法** —— 白到青的一条竖向渐变 + 一层青光。
   原来球心画的是两个同心圆（一个圈 + 一个实心点），缩小到 36 的球里就剩一团糊；
   换成「AI」两个字，一眼就认出这是系统里那个 AI 分身。 */
.dk-orb .dk-orb__ai {
  position: relative; z-index: 2;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; line-height: 1;
  text-indent: 1.5px;                       /* 字距会把整块往左偏，补回来才是真居中 */
  background: linear-gradient(180deg, #ffffff 6%, #9fe9fb 56%, #4fb4dd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(110, 240, 255, .6));
  pointer-events: none;
}
.dk-orb .as-stars { z-index: 1; opacity: .3; transition: opacity .5s var(--as-ease); }
.dk-orb::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(110, 240, 255, .55), rgba(110, 240, 255, 0) 70%);
  filter: blur(6px); animation: asHalo 4s ease-in-out infinite;
}
.dk-orb:hover { transform: scale(1.1); box-shadow: 0 0 24px rgba(254, 83, 186, .4); }
.dk-orb:hover .as-stars { opacity: 1; }
.dk-orb:active {
  animation: none; transform: scale(.96);
  background-image: linear-gradient(#0a1216, #0a1216), linear-gradient(137.48deg, #fe53bb, #8f51ea);
}

@media (prefers-reduced-motion: reduce) {
  .as-veil, .as-panel, .as-panel::after, .as-orb__core, .as-orb__ring, .as-orb__halo,
  .as-go, .as-goHalo, .as-stars::before, .as-stars::after, .dk-orb, .dk-orb::before { animation: none; }
  .as-veil.is-out, .as-panel.is-out { animation: none; }
  .as-ai { animation: none; }
  .as-can:hover, .as-go:hover { transform: none; }
  .as-go .as-stars, .dk-orb .as-stars { opacity: .45; }
}
