/* 顶栏图标的基础尺寸：门户里由全局 .icon 提供，这里限定在顶栏与查找弹层内，
   不外溢到工作台页自己的 .icon（若有）。 */
.site-header .icon,.search-mask .icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.site-header .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 顶栏用到的 CSS 变量：从门户 :root 里挑出来，挂在 .site-header 上，避免污染页面自身样式。
   主色 2026-10-01 由蓝 #0e9c8f 改为青绿：--teal 0e9c8f / --teal-deep 0a7d72。
   深色底 #0a7d72 上白字对比度 ≈5.1:1，浅底 #d7f1ed 上 0a7d72 同样过 AA。 */
.site-header{--text:#172033;--muted:#6f7889;--line:#dfe4ec;--pink:#0e9c8f;--pink-dark:#0a7d72;--shadow:0 12px 32px rgba(31,48,82,.08)}
/* 门户靠全局 a{} 与 body 字体把顶栏撑成这个样子；工作台页各有自己的 body，
   所以这两条要按顶栏作用域补上，否则 mega 卡片会变成蓝色带下划线的默认链接。 */
/* 只补「自身没写 color 的那几颗 <a>」：用 .site-header a 会把 .nav-link 自己的配色也压掉 */
.site-header a,.search-mask a{text-decoration:none}
.site-header .mega-item,.search-mask .search-result{color:inherit}
.site-header,.search-mask{font-size:16px;
  font-family:"HarmonyOS Sans SC","Noto Sans SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  color:var(--text);-webkit-font-smoothing:antialiased;
}
.search-mask{--text:#172033;--muted:#6f7889;--line:#dfe4ec;--pink:#0e9c8f;--pink-dark:#0a7d72;--shadow:0 12px 32px rgba(31,48,82,.08)}

.site-header{
  position:sticky;top:0;z-index:50;
  padding:10px 14px 0;}
.nav-shell{
  position:relative;   /* 顶栏主导航据此绝对居中（用户 2026-10-01） */
  width:100%;
  min-height:62px;
  margin:0 auto;
  padding:8px 12px 8px 16px;
  display:flex;
  align-items:center;
  gap:15px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.92);
  border-radius:8px;
  box-shadow:0 9px 30px rgba(76,43,56,.11);
  backdrop-filter:blur(18px);}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;font-size:18px;font-weight:800}
.brand-mark{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;overflow:hidden;
  background:#fff;border:1px solid #f0e4e8;}
.brand-mark img{width:42px;height:42px;object-fit:cover}
.brand-name{white-space:nowrap}
/* 顶栏主导航绝对居中：原先是 flex:1 夹在 brand(≈156) 与右侧操作区(≈419) 之间，
   两侧不等宽 → 导航中心恒偏左约 130px，视觉上跟下方内容对不齐（用户 2026-10-01）。
   这里改成脱离常规流、以 nav-shell 宽度为基准水平居中，页面多宽都对得正。 */
.main-nav{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;
  display:flex;align-items:center;gap:0;min-width:0;white-space:nowrap}
.nav-link{
  flex:0 0 auto;   /* 不许被压扁，宁可交给下面的断点整项隐藏 */
  display:inline-flex;align-items:center;gap:5px;height:38px;padding:0 8px;
  border-radius:8px;color:#414a59;font-size:14px;font-weight:500;letter-spacing:.01em;white-space:nowrap;
  transition:background .16s,color .16s;}
.nav-link:hover{background:#e3f6f3;color:#0a7d72}
.nav-link .icon{width:16px;height:16px}
.nav-link .nav-chevron{width:11px;height:11px;margin-left:-4px;opacity:.6;transition:transform .16s,opacity .16s}
.nav-link:hover .nav-chevron,.nav-link[aria-expanded="true"] .nav-chevron{opacity:1}
.nav-link[aria-expanded="true"]{background:#d7f1ed;color:#0a7d72}
.nav-link[aria-expanded="true"] .nav-chevron{transform:rotate(180deg)}
/* 当前位置常驻标记：和展开态同一块底色，但不受 closeMega 影响，下拉关掉也还在。
   语义交给 aria-current，样式挂在 class 上 —— 纯 CSS 不会误伤没跑 JS 的降级场景。 */
.nav-link.is-active{background:#d7f1ed;color:#0a7d72}
.nav-link.is-active:hover{background:#c9ebe5;color:#076a61}
.nav-link.is-active .nav-chevron{opacity:1}
/* 主导航脱离常规流之后，这里靠 auto 外边距把操作区顶到最右 */
.nav-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
.icon-btn,.search-btn,.lang-btn,.acct-btn,.mobile-btn,.theme-btn{
  height:38px;border:0;background:transparent;border-radius:7px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.search-btn{padding:0 13px;background:#f7f5f6;color:#67636b;font-size:13px;white-space:nowrap}
/* 浅色/深色切换：图标 + 文案，样式跟旁边两颗同一套（配色在下面的深色段里另给一份） */
.theme-btn{padding:0 11px;background:#f0f3f8;color:#596274;font-size:13px;white-space:nowrap;transition:background .15s,color .15s}
.theme-btn:hover{background:#d7f1ed;color:#0a7d72}
.theme-btn .icon{width:15px;height:15px}
.theme-btn .theme-ico-sun{display:none}
[data-theme="dark"] .theme-btn .theme-ico-sun{display:inline-block}
[data-theme="dark"] .theme-btn .theme-ico-moon{display:none}
.lang-wrap{position:relative;flex:0 0 auto}
.lang-btn{padding:0 7px;font-size:13px;color:#625f68;white-space:nowrap}
.lang-btn .lang-chevron{width:13px;height:13px;transition:transform .16s}
.lang-btn[aria-expanded="true"]{background:#e3f6f3;color:#0a7d72}
.lang-btn[aria-expanded="true"] .lang-chevron{transform:rotate(180deg)}
.lang-pop{
  position:absolute;top:46px;left:50%;z-index:55;width:270px;max-height:180px;overflow-y:auto;padding:8px;
  border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.98);
  box-shadow:0 18px 48px rgba(51,35,43,.18);backdrop-filter:blur(16px);
  opacity:0;visibility:hidden;transform:translate(-50%,-6px);pointer-events:none;
  transition:opacity .15s,transform .15s,visibility .15s;}
.lang-pop.open{opacity:1;visibility:visible;transform:translate(-50%,0);pointer-events:auto}
.icon-btn,.mobile-btn{width:38px}
.mobile-btn{display:none}
/* 顶栏高度 2026-10-05 从 68 → 60（.site-header 实际高 69 → 61），凡是按顶栏高度硬算的
   top / max-height 一律同步 -8，否则下拉面板会跟顶栏脱开 8px 或反过来压进顶栏。
   这里 top:78→70（原 69 高的顶栏 + 9px 缝隙），下面那条覆盖规则再把 74 收到 66。 */
.mega-menu{
  position:absolute;top:70px;left:24px;z-index:49;width:min(1180px,calc(100vw - 48px));
  max-height:min(690px,calc(100vh - 90px));overflow:auto;padding:0 18px 18px;
  border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.98);
  box-shadow:0 22px 58px rgba(64,37,48,.17);backdrop-filter:blur(18px);
  opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;
  transition:opacity .16s,transform .16s,visibility .16s;}
.mega-menu.open{opacity:1;visibility:visible;transform:none;pointer-events:auto}
/* 卡片态只有 3 行卡（≈300px），但二级菜单是绝对定位挂在卡下的浮层，
   会被父级的 max-height + overflow:auto 裁掉（只露出第一行）。
   所以卡片态解除高度限制，让浮层完整展开。 */
.mega-menu.cards{max-height:none;overflow:visible}
.mega-menu.cards .mega-grid{padding-bottom:14px}
.mega-head{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;height:58px;
  border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);}
/* 字号统一（2026-10-03 用户：顶部文字和其它页不一致）：
   原来这一层压在 10.5/11/12.5px，比页面正文（16px）小一大截，看着像另一套界面。
   这里只动字号、不动任何盒模型：主文字提到 13.5px，说明文字 12px，计数与标签 12px。 */
.mega-head h2{margin:0;font-size:16px}
/* 「更多」卡片式下拉（2026-10-05 照参考站顶栏实测复刻）
   参考站的「更多」是一块「更多工作区」：头部带副标题，下面 9 张卡
   —— 前 2 张（图片创作 / 学习中心）hover 展开二级菜单，7 张是直达卡。
   二级菜单用 :hover / :focus-within 展开，不用 JS 记状态：
   鼠标横扫 9 张卡时不会残留上一张的菜单。 */
.mega-head-txt{min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
/* toolbox.html 的内联副本里 h2 / sub 是平级兄弟，不是包在 .mega-head-txt 里 */
.mega-head>.mega-sub{flex:0 1 auto;min-width:0}
.mega-sub{color:#9290a0;font-size:12px;line-height:1.4}
.mega-sub[hidden]{display:none}
.mega-count[hidden]{display:none}
.mega-card{
  position:relative;min-width:0;border:1px solid var(--line);border-radius:11px;background:#fff;
  transition:border-color .14s,box-shadow .14s,transform .14s;cursor:pointer}
.mega-card:hover{border-color:#bfe6e0;box-shadow:0 6px 18px rgba(14,156,143,.12);transform:translateY(-1px)}
/* ⚠ 9 张卡是同级兄弟（z-index:auto），DOM 靠后的会盖住展开中的二级菜单 ——
   表现为「全部 / 精品推荐」两项被下一行卡片压住点不到。
   悬停/聚焦时把整张卡抬到最高层，菜单才完整可见可点。 */
.mega-card:hover,.mega-card:focus-within{z-index:5}
.mega-card:focus-visible{outline:2px solid #0e9c8f;outline-offset:2px}
.mega-card-face{display:flex;align-items:center;gap:10px;padding:13px 14px}
.mega-card-icon{
  flex:0 0 38px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  background:#eaf7f5;color:#0e9c8f}
.mega-card-icon .icon{width:19px;height:19px}
.mega-card-copy{min-width:0;flex:1}
.mega-card-copy b{display:block;font-size:13.5px;line-height:1.35}
.mega-card-copy span{display:block;margin-top:3px;color:#9290a0;font-size:12px;line-height:1.4}
.mega-card-arrow{flex:0 0 14px;width:14px;height:14px;color:#b9b4c0}
/* 6 色分类，跟平铺式的 .mega-item[data-hue] 同一套色 */
.mega-card[data-hue="blue"]  .mega-card-icon{background:#e2ebfd;color:#2563eb}
.mega-card[data-hue="purple"] .mega-card-icon{background:#ece9fe;color:#7c5cff}
.mega-card[data-hue="pink"]   .mega-card-icon{background:#fbe6f0;color:#d94f92}
.mega-card[data-hue="orange"] .mega-card-icon{background:#fcecd9;color:#c2690a}
.mega-card[data-hue="green"]  .mega-card-icon{background:#e1f2e5;color:#15803d}
.mega-card[data-hue="teal"]   .mega-card-icon{background:#dff2ef;color:#0a7d72}
/* 二级菜单：绝对定位挂在卡片下方，hover / focus 才显形 */
.mega-subnav{
  position:absolute;left:-1px;right:-1px;top:calc(100% + 6px);z-index:3;
  border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.99);
  box-shadow:0 14px 34px rgba(64,37,48,.16);padding:10px;
  opacity:0;visibility:hidden;transform:translateY(-6px);pointer-events:none;
  transition:opacity .14s,transform .14s,visibility .14s}
.mega-card--has-sub:hover .mega-subnav,
.mega-card--has-sub:focus-within .mega-subnav{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.mega-subnav-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px 8px}
.mega-subnav-head b{font-size:12.5px}
.mega-subnav-head a{color:#0a7d72;font-size:12px;font-weight:700}
.mega-subnav-grid{display:grid;grid-template-columns:1fr;gap:2px}
.mega-sub-item{
  position:relative;display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:8px;
  transition:background .14s}
.mega-sub-item:hover{background:#eaf7f5}
.mega-sub-icon{
  flex:0 0 26px;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;
  background:#f2f4f7;color:#6b7078}
.mega-sub-icon .icon{width:14px;height:14px}
.mega-sub-item[data-hue="blue"]  .mega-sub-icon{background:#e2ebfd;color:#2563eb}
.mega-sub-item[data-hue="purple"] .mega-sub-icon{background:#ece9fe;color:#7c5cff}
.mega-sub-item[data-hue="pink"]   .mega-sub-icon{background:#fbe6f0;color:#d94f92}
.mega-sub-item[data-hue="orange"] .mega-sub-icon{background:#fcecd9;color:#c2690a}
.mega-sub-item[data-hue="green"]  .mega-sub-icon{background:#e1f2e5;color:#15803d}
.mega-sub-item[data-hue="teal"]   .mega-sub-icon{background:#dff2ef;color:#0a7d72}
.mega-sub-copy{min-width:0;flex:1}
.mega-sub-copy b{display:block;font-size:12.5px;line-height:1.35}
.mega-sub-copy span{display:block;margin-top:2px;color:#9290a0;font-size:11.5px;line-height:1.4}
.mega-sub-hot{
  flex:0 0 auto;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.3px;
  color:#fff;background:#f0554f;border-radius:4px;padding:2px 5px}
.mega-count{color:#9b949a;font-size:12px}
.mega-all{
  margin-left:auto;display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border-radius:7px;
  background:#dff2ef;color:#0a7d72;font-size:12px;font-weight:700;}
.mega-all:hover{background:#cdeae5}
.mega-all .icon{width:13px;height:13px}
.mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 20px;padding-top:12px}
.mega-menu.compact .mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mega-menu.narrow .mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* 卡片态列数要压过 .compact/.narrow（同样是 2 class，必须写在它们之后） */
.mega-menu.cards .mega-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:14px}
.mega-menu.cards.compact .mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.mega-menu.cards.narrow .mega-grid{grid-template-columns:1fr}
.mega-item{
  min-width:0;display:flex;align-items:flex-start;gap:10px;padding:10px 8px;border-radius:8px;
  transition:background .14s,transform .14s;}
.mega-item:hover{background:#eaf7f5;transform:translateX(2px)}
.mega-item-icon{
  flex:0 0 38px;width:38px;height:38px;border-radius:8px;display:grid;place-items:center;
  background:#eaf7f5;color:#0e9c8f;}
.mega-item-icon .icon{width:19px;height:19px}
.mega-copy{min-width:0}
.mega-copy b{display:block;margin-bottom:3px;font-size:13.5px;line-height:1.35}
.mega-copy span{display:block;color:#9290a0;font-size:12px;line-height:1.45}
.footer-brand{display:flex;align-items:flex-start;gap:12px}
.footer-brand img{width:48px;height:48px;border-radius:50%;background:#fff;flex:0 0 auto}
.footer-brand b{display:block;font-size:16px}
.footer-brand span{display:block;margin-top:7px;color:#aaa5af;font-size:11px}
.search-mask{
  position:fixed;inset:0;z-index:80;padding:13vh 20px 20px;background:rgba(20,17,20,.38);
  backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .18s;}
.search-mask.open{opacity:1;pointer-events:auto}
.search-panel{
  width:min(620px,100%);max-height:70vh;margin:0 auto;overflow:hidden;border-radius:8px;
  background:#fff;border:1px solid rgba(255,255,255,.8);box-shadow:0 28px 80px rgba(27,19,24,.3);}
.search-field{height:58px;padding:0 15px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.search-field input{flex:1;min-width:0;border:0;outline:0;font-size:16px;color:var(--text)}
.search-close{border:0;background:#f5f2f4;border-radius:6px;padding:5px 8px;color:#7d767c;font-size:12px;cursor:pointer}
.search-results{max-height:calc(70vh - 58px);overflow:auto;padding:8px}
.search-result{display:flex;align-items:center;gap:11px;width:100%;padding:11px;border:0;border-radius:7px;background:#fff;text-align:left;cursor:pointer}
.search-result:hover,.search-result.active{background:#eaf7f5}
/* 图标色块（2026-10-05 用户：把搜索结果这列图标的颜色加上去）。
   ⚠ 下面那条 .search-result span 是**给文字那列**设的灰，而 .result-icon 本身也是个 <span>，
   特异度 .search-result span(0,1,1) > .result-icon(0,1,0)，直接把这里的 color 盖掉了 ——
   结果浅色下图标是 #918a90、深色下是 #9a9fa8，两套主题都没上到色，一直是灰的。
   所以真正要改的是下面那条规则的选择器（见下一行），不是在这儿堆特异度。
   ⚠ 须与 toolbox.html 内联的那份同步改。 */
.result-icon{width:35px;height:35px;border-radius:7px;display:grid;place-items:center;background:#e8eefb;color:var(--pink-dark)}
/* 文字那列才吃灰色：排除图标块，内层简介靠继承拿到同色 */
.search-result b{display:block;font-size:14px}
.search-result>span:not(.result-icon){display:block;margin-top:3px;color:#918a90;font-size:12px}
.search-empty{padding:36px;text-align:center;color:#918a90;font-size:13px}
/* 顶栏随视口收窄逐档隐藏次要分类，让绝对居中的导航既对得正、又不与右侧操作区重叠。
   顶栏已按参考图收敛为 7 个分类 + 更多，项序：
   1 首页 2 商品图 3 模特图 4 图片POD 5 图像工具 6 爆款衍生 7 平面设计 8 更多。
   （跨境上架 / 营销场景 / 电商素材生成 不再常驻，分类与下拉内容都保留，改由「更多」承接。）
   硬约束：视口 ≥ 导航宽 + 2×右侧操作区宽 + 2×gap，否则绝对居中后右侧会压到操作区。
   右侧操作区最坏值 = 285(图标化) + 72(账号名上限) + 52(登录态增量) = 409。
   据此定档：8 项≈738→需 1592 / 7 项≈660→需 1514 / 6 项≈556→需 1410
   5 项≈452→需 1306，1290 以下交给汉堡菜单。 */
@media(max-width:2250px) {
  .search-btn span{display:none}
  .search-btn{width:38px;padding:0;justify-content:center}
  .lang-btn .lang-current,.lang-btn .lang-chevron{display:none}
  .lang-btn{width:38px;padding:0}
}
@media(max-width:1400px) {
  .brand-name{max-width:80px;overflow:hidden;text-overflow:ellipsis}
}
/* ===== 渐进收起（2026-10-06 去掉「一句话作图」，12 项 → 11 项，须与 portal-header.css 保持一致）=====
   nth-child 顺序：1 首页 · 2 商品图 · 3 模特图 · 4 图片POD · 5 图片工具
                  6 爆款衍生 · 7 跨境上架 · 8 营销场景 · 9 平面设计 · 10 电商素材生成 · 11 更多
   ⚠ 删掉第 2 项「一句话作图」后，后面**每一项的 nth-child 都 -1**：
     12 更多→11、11 电商素材生成→10、8 跨境上架→7。只改其中一处就会藏错东西。
   ⚠ 12 项那一档（@1900 藏「更多」）整条删掉了 —— 现在总共就 11 项，没有第 12 项可藏。
   阈值不是拿旧值减出来的，是用实测 navW 重新反推的（gapR = vw/2 − actsW(303) − navW/2 ≥ 12px）：
     11项 navW=1103 → vw≥1797（取 1800）　10项 957 → 1651　9项 867 → 1561
   8 项档（藏掉跨境上架后约 762px → 约 1392）**故意不设**：只剩七颗却还横排，窄屏挤字不如直接进汉堡。
     这是 2026-10-01 顶栏改版时定的设计口径，不是算漏了，别"顺手补上"。
   ⚠ 汉堡线仍留在 1561：1561 以下没有任何一档能腾出 12px 间距（见上面 8 项档那条）。 */
@media(max-width:1800px){
  .main-nav .nav-link:nth-child(11){display:none}   /* 更多：其余分类都收在它里面 → 剩 10 项 */
}
@media(max-width:1651px){
  .main-nav .nav-link:nth-child(10){display:none}   /* 电商素材生成 → 剩 9 项 */
}
@media(max-width:1561px){
  .main-nav .nav-link:nth-child(7){display:none}    /* 跨境上架 → 剩 8 项 */
  .main-nav{gap:0}
}
/* 汉堡线：1290→1400（字号 13→14）→2026-10-06 去掉「一句话作图」回到 11 项后定在 **1561**。
   1561 以下没有任何一档能腾出 12px 间距：9 项档实测要 vw≥1561，8 项档虽然只要 ~1392，
   但只剩七颗却仍横排会被挤字，不如整条收进汉堡（2026-10-01 定的口径，见上面 nth-child 段）。 */
@media(max-width:1561px) {
  /* 收进汉堡菜单：脱离绝对居中，改回贴着顶栏展开的竖排面板。 */
  .main-nav{display:none;position:absolute;left:14px;right:14px;top:69px;transform:none;padding:10px;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
  .main-nav.open{display:flex}
  .main-nav .nav-link{display:flex!important;width:100%;justify-content:flex-start}
  .mega-menu{position:fixed;top:68px;left:12px;right:12px;width:auto;max-height:calc(100vh - 80px);padding-left:12px;padding-right:12px;transform:translateY(-8px)}
  .mega-menu.open{transform:none}
  .mega-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
  .mobile-btn{display:inline-flex}
  .lang-btn{width:38px;padding:0}
  .lang-btn .lang-current,.lang-btn .lang-chevron{display:none}
  .lang-pop{position:fixed;top:62px;right:12px;left:auto;transform:none;width:min(270px,calc(100vw - 24px));max-height:calc(100vh - 74px);overflow:auto}
}
@media(max-width:700px) {
  .site-header{padding:8px 8px 0}
  .nav-shell{min-height:56px;padding:7px 8px 7px 10px}
  .brand-name{font-size:15px}
  .brand-mark{width:34px;height:34px}
  .search-btn{width:38px;padding:0;justify-content:center}
  .search-btn span{display:none}
  .nav-actions{gap:2px}
  .nav-actions>.icon-btn{display:none}
  /* 窄屏顶栏放不下铃铛，只收按钮；面板必须留着 —— 账号面板里那颗「公告消息」还要开它，
     所以整块不能 display:none（子树不渲染，面板就打不开了），改成固定定位挂在导航下方 */
  .notice-wrap>.icon-btn{display:none}
  .notice-pop{position:fixed;right:10px;top:56px;width:min(360px,calc(100vw - 20px))}
  .acct-btn{padding:0 10px;max-width:148px}
  .mega-menu{top:61px}
  .mega-grid{grid-template-columns:1fr}
  .mega-item{padding:9px 6px}
  .section-head>.nav-link{padding-left:4px;padding-right:4px}
}
@media(max-width:430px) {
  .brand-name{max-width:116px;overflow:hidden;text-overflow:ellipsis}
}
.site-header{padding:0;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.nav-shell{
  /* 2026-10-05 用户：主界面顶栏高度减小 8px（68 → 60）。
     内容实测只占 38px（brand / main-nav / nav-actions 都是 38）+ 上下 padding 20 = 58px，
     60 仍有余量，不会裁切。⚠ 须与 toolbox.html 内联的那份同步改。 */
  min-height:60px;padding:10px 18px;width:100%;border:0;border-radius:0;background:transparent;
  box-shadow:none;}
.brand{color:#111b2e;font-size:19px;letter-spacing:.02em}
.brand-mark{border-color:#d9e1f0;box-shadow:0 3px 12px rgba(34,68,130,.1)}
.nav-link{height:38px;padding:0 8px;border-radius:8px;color:#414a59}
.nav-link:hover{background:#e3f6f3;color:#0a7d72}
.nav-link[aria-expanded="true"]{background:#d7f1ed;color:#0a7d72}
.search-btn{background:#f0f3f8;color:#596274}
.lang-btn[aria-expanded="true"]{background:#d7f1ed;color:#0a7d72}
/* ===== 右上角账号面板（照参考站那层下拉：账号条 + 积分卡 + 邀请 + 四宫格 + 管理员区 + 退出） ===== */
/* 顶栏公告面板：和账号面板同一层同一套外观，宽度按公告正文放宽一点 */
.notice-wrap{position:relative;flex:0 0 auto}
.notice-wrap .icon-btn{position:relative}
/* 铃铛上的未读角标：从红点升级成数字（>9 显示 9+），[hidden] 时不占位 */
.notice-dot{position:absolute;top:1px;right:1px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f0433f;color:#fff;
  font-size:10.5px;font-style:normal;font-weight:700;line-height:18px;text-align:center;white-space:nowrap;box-shadow:0 0 0 2px #fff;pointer-events:none}
/* 账号面板「公告消息」那颗是行内数字，跟铃铛角标分开写，免得互相污染定位 */
.notice-tag{display:inline-block;min-width:16px;height:16px;margin-left:5px;padding:0 4px;border-radius:999px;background:#f0433f;color:#fff;
  font-size:10px;font-style:normal;font-weight:700;line-height:16px;text-align:center;vertical-align:middle}
/* ⚠ 账号面板里这颗落在 .acct-grid i 那条 6px 小圆点规则上，而它的权重(0,1,1) 高过 .notice-tag 的(0,1,0)，
   只写 .notice-tag 的话数字会被压回一个装不下字的 6px 圆点。尺寸/圆角/底色都要在这里重写一遍，
   深色主题再跟一条 —— 别让上面那条浅色红把深色红盖掉。
   ⚠ 2026-10-06：markup 从 notice-tag 改名成 notice-dot 后这里没跟着改，数字被裁掉了。
     所以 notice-tag / notice-dot **两个类都要列**。改角标类名时记得回来加。
     主界面 toolbox.html 是另一份 CSS（它有 .acct-grid i.notice-dot），别只改一边。 */
.acct-grid i.notice-tag,.acct-grid i.notice-dot{top:-3px;right:11px;min-width:15px;height:15px;margin-left:0;padding:0 3px;
  font-size:9.5px;line-height:15px;border-radius:8px;background:#f0433f;box-shadow:none}
[data-theme="dark"] .acct-grid i.notice-tag,[data-theme="dark"] .acct-grid i.notice-dot{background:#ff6f6a;color:#1f2126}
/* 这两条必须写在上面两条之后：display 会盖掉浏览器自带的 [hidden]{display:none}，未读归零时要真藏住 */
.notice-dot[hidden],.notice-tag[hidden]{display:none}
.notice-pop{
  position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:min(360px,calc(100vw - 20px));
  border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 22px 54px rgba(23,32,51,.18);
  opacity:0;visibility:hidden;transform:translateY(-7px);pointer-events:none;transition:.17s}
.notice-pop.open{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.notice-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid #eef1f6}
.notice-head b{font-size:14px;color:#172033}
.notice-count{font-size:12px;color:#8d97a6;white-space:nowrap}
/* 每日签到面板：外壳复用 .notice-pop（同一层同一套外观），里面只摆状态 + 验证码 + 按钮 */
.ck-body{padding:11px 13px 13px}
.notice-body{max-height:min(58vh,420px);overflow:auto;padding:2px 13px 10px}
.notice-empty{margin:16px 0;font-size:13px;color:#8d97a6;text-align:center}
.notice-item{padding:11px 0;border-bottom:1px solid #f1f4f9}
.notice-item:last-child{border-bottom:0}
.notice-item.is-unread{position:relative;padding-left:11px}
.notice-item.is-unread::before{content:"";position:absolute;left:0;top:13px;width:4px;height:4px;border-radius:50%;background:#f0433f}
.notice-flag{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:999px;background:#fdeceb;color:#d93a36;
  font-size:10px;font-style:normal;font-weight:700;vertical-align:1px}
.notice-item h4{margin:0;font-size:13.5px;line-height:1.5;color:#172033}
.acct-wrap{position:relative;flex:0 0 auto}
/* 2026-10-03 用户：原来这里是深墨蓝药丸（#172033 + 999px 圆角），
   跟旁边「深色 / 搜索」那几颗浅色圆角按钮完全不是一套，视觉上很跳。
   改成与 .search-btn / .theme-btn 同一套：浅灰底 + 7px 圆角 + 深色文字。
   hover 沿用主题色，交互感不变。 */
.acct-btn{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:0;border-radius:7px;
  background:#f7f5f6;color:#67636b;font-size:13px;font-weight:600;cursor:pointer;max-width:230px;
  transition:background .15s,color .15s}
.acct-btn:hover{background:#eef0f4;color:#172033}
/* 顶栏绝对居中后，右侧操作区宽度直接决定导航能排几项。账号/昵称越长顶栏越挤，
   这里封个上限（10 位数字账号刚好放得下），避免操作区无限变宽把导航挤出去（用户 2026-10-01） */
.acct-btn .acct-name{min-width:0;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-btn .acct-chevron{width:13px;height:13px;opacity:.7}
/* 账号按钮改成浅灰底后（2026-10-03），头像不能再用纯白底 —— 浅灰上白圆几乎看不见。
   换成「白底 + 一圈浅描边」，既能托住 emoji，又能和按钮底色分开。 */
.acct-avatar{display:grid;place-items:center;width:22px;height:22px;flex:0 0 auto;border-radius:50%;
  background:#fff;color:#0e9c8f;box-shadow:0 0 0 1px rgba(23,32,51,.10);
  /* 头像改成 emoji 后（2026-10-03 用户定）：emoji 视觉尺寸比字母小，沿用 11px 会糊成一团。
     字号直接写在这里而不是另起一条覆盖规则 —— 后面还有 .big / .mem-head 的规则会按顺序压过来。 */
  font-size:14px;font-weight:400;line-height:1;overflow:hidden}
/* 深色主题下上传的图片同样按圆形裁剪（不额外加滤镜，避免头像本身颜色被改掉）。
   border-radius:50% 同时加在 img 自己身上：不只依赖父级 overflow:hidden，
   万一某处把 overflow 改成 visible（或嵌进别的容器），图仍是圆的。 */
.acct-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.acct-pop{
  position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:308px;padding:10px;
  border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 22px 54px rgba(23,32,51,.18);
  opacity:0;visibility:hidden;transform:translateY(-7px);pointer-events:none;transition:.17s}
.acct-pop.open{opacity:1;visibility:visible;transform:none;pointer-events:auto}
/* 账号面板瘦身（2026-10-04，与 toolbox.html 内联版同步） */
.acct-id{display:flex;align-items:center;gap:10px;padding:0 2px 9px;border-bottom:1px solid #eef1f6}
.acct-avatar.big{width:32px;height:32px;font-size:15px;background:#dff2ef}
.acct-id-txt{min-width:0;flex:1}
.acct-id-txt b{display:block;font-size:13.5px;color:#172033;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-id-txt em{display:flex;align-items:center;gap:5px;margin-top:3px;font-style:normal;font-size:12px;color:#8d97a6}
.acct-copy{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:5px;background:transparent;color:#9aa4b2;cursor:pointer}
.acct-copy:hover{background:#e3f6f3;color:#0e9c8f}
.acct-copy .icon{width:12px;height:12px}
.acct-role{padding:3px 7px;border-radius:999px;background:#fff4e2;color:#b8791b;font-size:11.5px;font-style:normal;font-weight:700;flex:0 0 auto}
.acct-card{margin-top:9px;padding:9px;border-radius:12px;background:linear-gradient(135deg,#e3f6f3,#fbfcff 62%,#fff6ea);border:1px solid #dceeea}
.acct-card-head{display:flex;align-items:baseline;justify-content:space-between}
/* 当前档位标签（用户 2026-09-28）：主账号/管理员/普通三档的积分价目不同，余额旁边标出来 */
.acct-card-head .acct-tier{margin-left:6px;padding:1px 7px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11px;font-style:normal;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.acct-card-head b{font-size:13.5px;color:#243044}
.acct-card-head span{font-size:16px;font-weight:800;color:#172033;font-variant-numeric:tabular-nums}
.acct-perks{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:7px 0 8px;font-size:11.5px;line-height:1.4;color:#6b7686}
.acct-perks span{white-space:nowrap}
.acct-cta{display:block;height:34px;line-height:34px;text-align:center;border-radius:9px;background:#172033;color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.acct-cta:hover{background:#0e9c8f}
/* 这颗原来是 <a>，改成开弹窗的 <button> 后要自己把浏览器默认样式抹平，否则高度和字体对不上 */
button.acct-cta{width:100%;border:0;font-family:inherit;cursor:pointer}
.acct-card-more{display:block;margin-top:6px;text-align:center;font-size:12px;color:#7b8798;text-decoration:none}
.acct-card-more:hover{color:#0e9c8f}
.acct-invite{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:34px;margin-top:8px;border:0;border-radius:10px;
  background:#dff2ef;color:#0a7d72;font-size:13px;font-weight:700;font-family:inherit;text-decoration:none;cursor:pointer}
.acct-invite:hover{background:#cfe9e4}
.acct-invite .icon{width:15px;height:15px}
.acct-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:8px;padding:8px 0;border-top:1px solid #eef1f6;border-bottom:1px solid #eef1f6}
.acct-grid a,.acct-grid button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 0;border-radius:9px;
  color:#4d5866;font-size:12px;text-decoration:none}
/* 「公告消息」改成了按钮（不跳聊天页，直接开顶栏那个面板），所以把 a 的样式同样喂给 button */
.acct-grid button{border:0;background:transparent;font-family:inherit;cursor:pointer}
.acct-grid a:hover,.acct-grid button:hover{background:#e6f5f2;color:#0e9c8f}
.acct-grid .icon{width:17px;height:17px}
.acct-grid i{position:absolute;top:2px;right:14px;width:6px;height:6px;border-radius:50%;background:#ff4d4f}
.acct-logout{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:32px;margin-top:0;padding:0;
  border:0;border-top:1px solid #eef1f6;border-radius:0;background:transparent;color:#6b7686;font-size:13px;cursor:pointer}
.acct-logout:hover{color:#e05b5b}
.acct-logout .icon{width:15px;height:15px}
@media(max-width:700px) {
  .acct-pop{position:fixed;right:10px;top:56px;width:min(308px,calc(100vw - 20px))}
}
.mem-head .acct-avatar{width:30px;height:30px;font-size:17px}
.mega-menu{
  top:66px;border-color:#dce3ef;box-shadow:0 24px 62px rgba(23,32,51,.16);}
.mega-head{border-bottom-color:#e7ebf2}
.mega-head:before{content:"";width:4px;height:22px;border-radius:2px;background:#0e9c8f}
.mega-all{background:#dff2ef;color:#0a7d72}
.mega-all:hover{background:#cdeae5}
.mega-item:hover{background:#eaf7f5}
.mega-item-icon{background:#dff2ef;color:#0a7d72}
/* 功能图标按分类分 6 色（2026-10-05 用户定）。
   原来 14 个全是同一个淡青 #0e9c8f on #dff2ef = 2.93:1，卡在 WCAG「非文字图形 3:1」门槛下面，
   看着发白没分量。分色既补上了对比度，也让「一眼分功能组」成立。
   六个色相实测 175°/142°/221°/252°/331°/31°，相邻跨度都够大，不会看着像同一色。
   对比度（图标/底色）：青 4.32 蓝 4.32 紫 3.65 粉 3.22 橙 3.41 绿 4.31，全部 >= 3:1。
   ⚠ 须与 toolbox.html 内联的那份同步改。 */
.mega-item[data-hue="blue"]  .mega-item-icon{background:#e2ebfd;color:#2563eb}
.mega-item[data-hue="purple"] .mega-item-icon{background:#ece9fe;color:#7c5cff}
.mega-item[data-hue="pink"]   .mega-item-icon{background:#fbe6f0;color:#d94f92}
.mega-item[data-hue="orange"] .mega-item-icon{background:#fcecd9;color:#c2690a}
.mega-item[data-hue="green"]  .mega-item-icon{background:#e1f2e5;color:#15803d}
/* 聊天文案＝整页让位：先"移动"再"消失"两段分开 —— 前半段只位移不淡出，位移到位后才开始淡。
   （之前位移和淡出同时跑，看着像直接变灰，看不出"往下挪"这个过程。） */
.site-header,.hero-copy,.feature-grid,.trust-strip,.section,.toolbox-band,.cta-section{
  transition:transform .52s cubic-bezier(.32,.72,.28,1),opacity .4s ease .5s}
body.to-chat .site-header{opacity:0;transform:translateY(-26px)}
@media(prefers-reduced-motion:reduce) {
  .site-header,.hero-copy,.hero-composer,.feature-grid,.trust-strip,.section,.toolbox-band,.cta-section,
  .float-tools,.ts-entry,.ts-panel{transition:none}
}
@media(max-width:1160px) {
  .main-nav{top:61px}
  .mega-menu{top:62px}
}
@media(max-width:700px) {
  .nav-shell{min-height:60px}
}
@media(max-width:1850px) {
  .theme-btn{width:38px;padding:0}
  .theme-btn span{display:none}
  .nav-link{padding:0 7px}
  .main-nav{gap:0}
}
/* 必须排在上面这个 1850 断点之后才压得住它的 padding/gap（用户 2026-10-01） */
@media(max-width:1120px){
  .nav-link{padding:0 5px}
}
/* 深色模式下重定义顶栏变量：浅色那套 --text:#172033 是深蓝，落在深色面板上会看不清
   （现象：mega 下拉里条目标题「AI 万能改图」几乎隐形，而同一条目下方的描述文字因为写死了
   color:#9290a0 反而清晰 —— 标题靠 inherit 取 var(--text)，描述不走变量，形成割裂）。
   这里补齐变量，所有靠 color:inherit / var(--text) 取色的文字一次性跟着修好：
   顶栏、语言弹窗、账户面板、搜索面板、mega 下拉。取值沿用本文件深色段既有配色，不引入新色。 */
[data-theme="dark"] .site-header{--text:#e2e5ea;--muted:#9a9fa8;--line:#2c2f36;--pink:#14a89a;--pink-dark:#5eead4;--shadow:0 12px 32px rgba(0,0,0,.5)}
[data-theme="dark"] .search-mask{--text:#e2e5ea;--muted:#9a9fa8;--line:#2c2f36;--pink:#14a89a;--pink-dark:#5eead4;--shadow:0 12px 32px rgba(0,0,0,.5)}
[data-theme="dark"] .search-field input{background:transparent}
[data-theme="dark"] .nav-shell{background:rgba(31,33,38,.94);border:1px solid rgba(31,33,38,.92)}
[data-theme="dark"] .brand-mark{background:#1f2126;border:1px solid #2c2f36}
[data-theme="dark"] .nav-link{color:#b9bfc9}
[data-theme="dark"] .nav-link:hover{background:#23262c;color:#e2e5ea}
[data-theme="dark"] .nav-link[aria-expanded="true"]{background:#262a31}
[data-theme="dark"] .nav-link.is-active{background:#262a31;color:#5eead4}
[data-theme="dark"] .search-btn{background:#23262c;color:#b9bfc9}
[data-theme="dark"] .theme-btn{background:#262a31;color:#a8aeb8}
[data-theme="dark"] .theme-btn:hover{background:#262a31;color:#5eead4}
[data-theme="dark"] .lang-btn{color:#b9bfc9}
[data-theme="dark"] .lang-btn[aria-expanded="true"]{background:#262a31}
[data-theme="dark"] .lang-pop{background:rgba(31,33,38,.98)}
[data-theme="dark"] .mega-menu{background:rgba(31,33,38,.98)}
[data-theme="dark"] .mega-head{background:rgba(31,33,38,.97)}
[data-theme="dark"] .mega-all{background:#23262c}
[data-theme="dark"] .mega-all:hover{background:#233c39}
[data-theme="dark"] .mega-item:hover{background:#262a31}
[data-theme="dark"] .mega-item-icon{background:#23262c}
[data-theme="dark"] .footer-brand img{background:#1f2126}
[data-theme="dark"] .search-panel{background:#1f2126;border:1px solid rgba(31,33,38,.8)}
[data-theme="dark"] .search-close{background:#23262c;color:#b9bfc9}
[data-theme="dark"] .search-result{background:#1f2126}
[data-theme="dark"] .search-result:hover,[data-theme="dark"] .search-result.active{background:#262a31}
[data-theme="dark"] .result-icon{background:#23262c}
/* 同上：这条只该管文字那列，别再把图标块的 color 一起盖掉 */
[data-theme="dark"] .search-result>span:not(.result-icon){color:#9a9fa8}
[data-theme="dark"] .search-empty{color:#9a9fa8}
[data-theme="dark"] .site-header{background:rgba(31,33,38,.94)}
[data-theme="dark"] .brand{color:#eef0f3}
[data-theme="dark"] .brand-mark{border-color:#2c2f36;box-shadow:0 3px 12px rgba(0,0,0,.45)}
[data-theme="dark"] .nav-link{color:#a8aeb8}
[data-theme="dark"] .nav-link:hover{background:#262a31;color:#5eead4}
[data-theme="dark"] .nav-link[aria-expanded="true"]{background:#262a31;color:#5eead4}
[data-theme="dark"] .nav-link.is-active{background:#262a31;color:#5eead4}
[data-theme="dark"] .search-btn{background:#262a31;color:#a8aeb8}
[data-theme="dark"] .lang-btn[aria-expanded="true"]{background:#262a31;color:#5eead4}
[data-theme="dark"] .notice-dot{background:#ff6f6a;color:#1f2126;box-shadow:0 0 0 2px #1f2126}
[data-theme="dark"] .notice-tag{background:#ff6f6a;color:#1f2126}
[data-theme="dark"] .notice-flag{background:#3a2322;color:#ff8f8b}
[data-theme="dark"] .notice-pop{border:1px solid #2c2f36;background:#1f2126;box-shadow:0 22px 54px rgba(0,0,0,.55)}
[data-theme="dark"] .notice-head{border-bottom:1px solid #262a31}
[data-theme="dark"] .notice-head b{color:#e8e9ec}
[data-theme="dark"] .notice-count{color:#8f959e}
[data-theme="dark"] .notice-empty{color:#8f959e}
[data-theme="dark"] .notice-item{border-bottom:1px solid #2c2f36}
[data-theme="dark"] .notice-item h4{color:#e8e9ec}
[data-theme="dark"] .acct-btn{background:#262a31;color:#a8aeb8}
[data-theme="dark"] .acct-btn:hover{background:#262a31;color:#5eead4}
[data-theme="dark"] .acct-avatar{background:#1f2126;color:#5eead4}
[data-theme="dark"] .acct-pop{border:1px solid #2c2f36;background:#1f2126;box-shadow:0 22px 54px rgba(0,0,0,.55)}
[data-theme="dark"] .acct-id{border-bottom:1px solid #262a31}
[data-theme="dark"] .acct-avatar.big{background:#262a31}
[data-theme="dark"] .acct-id-txt b{color:#e8e9ec}
[data-theme="dark"] .acct-id-txt em{color:#8f959e}
[data-theme="dark"] .acct-copy{color:#8f959e}
[data-theme="dark"] .acct-copy:hover{background:#262a31;color:#5eead4}
[data-theme="dark"] .acct-role{background:#332b20;color:#e0a63c}
[data-theme="dark"] .acct-card{background:linear-gradient(135deg,#262a31,#23262c 62%,#332b20);border:1px solid #2c2f36}
[data-theme="dark"] .acct-card-head b{color:#d5d9e0}
[data-theme="dark"] .acct-card-head span{color:#e8e9ec}
[data-theme="dark"] .acct-perks{color:#b9bfc9}
[data-theme="dark"] .acct-cta{background:#2f333c}
[data-theme="dark"] .acct-cta:hover{background:#14a89a}
[data-theme="dark"] .acct-card-more:hover{color:#5eead4}
[data-theme="dark"] .acct-invite{background:#262a31;color:#5eead4}
[data-theme="dark"] .acct-invite:hover{background:rgba(20,168,154,.16)}
[data-theme="dark"] .acct-grid{border-top:1px solid #262a31;border-bottom:1px solid #262a31}
[data-theme="dark"] .acct-grid a,[data-theme="dark"] .acct-grid button{color:#b9bfc9}
[data-theme="dark"] .acct-grid a:hover,[data-theme="dark"] .acct-grid button:hover{background:#23262c;color:#5eead4}
[data-theme="dark"] .acct-logout{border-top:1px solid #262a31;color:#b9bfc9}
[data-theme="dark"] .acct-logout:hover{color:#ff6f6a}
[data-theme="dark"] .mega-menu{border-color:#2c2f36}
[data-theme="dark"] .mega-head:before{background:#14a89a}
[data-theme="dark"] .mega-all{background:#262a31;color:#5eead4}
[data-theme="dark"] .mega-all:hover{background:rgba(20,168,154,.16)}
[data-theme="dark"] .mega-item:hover{background:#23262c}
[data-theme="dark"] .mega-item-icon{background:#14312e;color:#5eead4}
[data-theme="dark"] .mega-item[data-hue="blue"]  .mega-item-icon{background:#1a2540;color:#93b4fd}
[data-theme="dark"] .mega-item[data-hue="purple"] .mega-item-icon{background:#241f42;color:#b9a6ff}
[data-theme="dark"] .mega-item[data-hue="pink"]   .mega-item-icon{background:#3a1f2b;color:#f79bc4}
[data-theme="dark"] .mega-item[data-hue="orange"] .mega-item-icon{background:#3a2715;color:#f0b06a}
[data-theme="dark"] .mega-item[data-hue="green"]  .mega-item-icon{background:#16301f;color:#86e0a3}
[data-theme="dark"] .mega-sub{color:#9a9fa8}
[data-theme="dark"] .mega-card{background:#262a31;border-color:#2c2f36}
[data-theme="dark"] .mega-card:hover{border-color:#3a5f5a;box-shadow:0 6px 18px rgba(0,0,0,.4)}
[data-theme="dark"] .mega-card-icon{background:#23262c;color:#5eead4}
[data-theme="dark"] .mega-card-copy b{color:#e8e9ec}
[data-theme="dark"] .mega-card-copy span{color:#9a9fa8}
[data-theme="dark"] .mega-card-arrow{color:#6c7280}
[data-theme="dark"] .mega-card[data-hue="blue"]  .mega-card-icon{background:#1a2540;color:#93b4fd}
[data-theme="dark"] .mega-card[data-hue="purple"] .mega-card-icon{background:#241f42;color:#b9a6ff}
[data-theme="dark"] .mega-card[data-hue="pink"]   .mega-card-icon{background:#3a1f2b;color:#f79bc4}
[data-theme="dark"] .mega-card[data-hue="orange"] .mega-card-icon{background:#3a2715;color:#f0b06a}
[data-theme="dark"] .mega-card[data-hue="green"]  .mega-card-icon{background:#16301f;color:#86e0a3}
[data-theme="dark"] .mega-card[data-hue="teal"]   .mega-card-icon{background:#14312e;color:#5eead4}
[data-theme="dark"] .mega-subnav{background:rgba(31,33,38,.99);border-color:#2c2f36;box-shadow:0 14px 34px rgba(0,0,0,.5)}
[data-theme="dark"] .mega-subnav-head b{color:#e8e9ec}
[data-theme="dark"] .mega-subnav-head a{color:#5eead4}
[data-theme="dark"] .mega-sub-item:hover{background:#23262c}
[data-theme="dark"] .mega-sub-icon{background:#23262c;color:#c3c8d0}
[data-theme="dark"] .mega-sub-item[data-hue="blue"]  .mega-sub-icon{background:#1a2540;color:#93b4fd}
[data-theme="dark"] .mega-sub-item[data-hue="purple"] .mega-sub-icon{background:#241f42;color:#b9a6ff}
[data-theme="dark"] .mega-sub-item[data-hue="pink"]   .mega-sub-icon{background:#3a1f2b;color:#f79bc4}
[data-theme="dark"] .mega-sub-item[data-hue="orange"] .mega-sub-icon{background:#3a2715;color:#f0b06a}
[data-theme="dark"] .mega-sub-item[data-hue="green"]  .mega-sub-icon{background:#16301f;color:#86e0a3}
[data-theme="dark"] .mega-sub-item[data-hue="teal"]   .mega-sub-icon{background:#14312e;color:#5eead4}
[data-theme="dark"] .mega-sub-copy b{color:#e8e9ec}
[data-theme="dark"] .mega-sub-copy span{color:#9a9fa8}
@media(max-width:1160px) {
  [data-theme="dark"] .main-nav{background:#1f2126}
  .mega-menu.cards .mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px) {
  .mega-menu.cards .mega-grid{grid-template-columns:1fr}
  /* 窄屏没有 hover，二级菜单改成常驻展开，否则 9 张卡里的两个功能区永远点不开 */
  .mega-card--has-sub .mega-subnav{position:static;opacity:1;visibility:visible;transform:none;pointer-events:auto;margin:0 8px 8px}
}

/* 补抽：.sr-only（toolbox.html 46-46） */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 补抽：.toast（toolbox.html 384-389） */
.toast{
  position:fixed;left:50%;bottom:28px;z-index:100;transform:translate(-50%,14px);
  padding:10px 16px;border-radius:999px;background:#1b191d;color:#fff;font-size:12px;
  opacity:0;pointer-events:none;transition:.2s;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* 补抽：.ck-* 浅色（toolbox.html 513-569） */
.ck-body{padding:11px 13px 13px}
.ck-line{margin:0 0 10px;font-size:12px;line-height:1.65;color:#4d5a6e}
.ck-line b{color:#172033}
.ck-cap{display:flex;gap:9px;align-items:flex-start;margin-bottom:10px}
.ck-cap-img{flex:0 0 118px;height:40px;padding:0;border:1px solid #dfe5ef;border-radius:8px;background:#f7f9fc;
  color:#8d97a6;font-size:11px;cursor:pointer;overflow:hidden}
.ck-cap-img svg{display:block;width:118px;height:40px}
.ck-cap-row{flex:1;min-width:0;display:flex;gap:6px}
.ck-cap-input{flex:1;min-width:0;height:40px;padding:0 10px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;
  color:#172033;font-size:13px;font-family:inherit;outline:none}
.ck-cap-input:focus{border-color:#0e9c8f}
.ck-cap-refresh{flex:0 0 auto;height:40px;padding:0 10px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;
  color:#4d5866;font-size:11.5px;font-family:inherit;cursor:pointer}
.ck-cap-refresh:hover,.ck-cap-img:hover{border-color:#0e9c8f;color:#0e9c8f}
.ck-run{width:100%;height:38px;border:0;border-radius:9px;background:#0e9c8f;color:#fff;font-size:13px;font-weight:600;
  font-family:inherit;cursor:pointer}
.ck-run:hover{background:#2a51d6}
.ck-run:disabled{background:#eef1f6;color:#8d97a6;cursor:not-allowed}
.ck-msg{margin:9px 0 0;font-size:11.5px;line-height:1.6;color:#8d97a6;min-height:18px}
.ck-msg.ok{color:#1f9d5b}
.ck-msg.err{color:#e04a43}
.ck-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.ck-nums span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:9px;background:#f5f8ff}
.ck-nums b{font-size:16px;line-height:1.1;color:#172033;font-variant-numeric:tabular-nums}
.ck-nums i{font-style:normal;font-size:10.5px;color:#7c8899}
.ck-rail{display:flex;gap:6px;margin:10px 0 2px}
.ck-mile{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;border:1px solid #e6ebf5;border-radius:9px;background:#fff}
.ck-mile .dot{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eef1f6;color:#7c8899;font-size:11px;font-weight:700}
.ck-mile b{font-size:10.5px;font-weight:600;color:#4d5866;text-align:center;line-height:1.3}
.ck-mile i{font-style:normal;font-size:10.5px;color:#0e9c8f;font-variant-numeric:tabular-nums}
.ck-mile.done{border-color:#bfd0ff;background:#f3f7ff}
.ck-mile.done .dot{background:#0e9c8f;color:#fff}
.ck-mile.next{border-color:#0e9c8f;box-shadow:0 0 0 2px rgba(14,156,143,.12)}
.ck-sub{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 6px;font-size:12px;color:#172033}
.ck-sub span{font-size:10.5px;color:#8d97a6;font-variant-numeric:tabular-nums}
.ck-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.ck-cal .wk{font-size:10px;color:#9aa4b2;text-align:center}
.ck-cal .blank{height:22px}
.ck-cal .day{display:grid;place-items:center;height:22px;border-radius:6px;font-size:10.5px;color:#4d5866;background:#f6f8fc;font-variant-numeric:tabular-nums}
.ck-cal .day.future{color:#c3cad6;background:transparent}
.ck-cal .day.done{background:#0e9c8f;color:#fff;font-weight:600}
.ck-cal .day.mile{box-shadow:inset 0 0 0 1.5px #f0a020}
.ck-cal .day.today{box-shadow:inset 0 0 0 1.5px #0e9c8f;font-weight:700}
.ck-remind{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:12px;color:#243044}
.ck-switch{width:38px;height:21px;padding:0;border:0;border-radius:999px;background:#dfe5ef;cursor:pointer;transition:background .16s}
.ck-switch i{display:block;width:17px;height:17px;margin:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(23,32,51,.25);transition:transform .16s}
.ck-switch[aria-checked="true"]{background:#0e9c8f}
.ck-switch[aria-checked="true"] i{transform:translateX(17px)}
.ck-note{margin:6px 0 0;font-size:10.5px;line-height:1.6;color:#8d97a6}
.ck-invite{margin-top:12px;padding-top:10px;border-top:1px solid #eef1f6}
.ck-invite[hidden]{display:none}
.ck-inv-row{display:flex;gap:6px;margin-top:6px}
.ck-inv-row input{flex:1;min-width:0;height:32px;padding:0 9px;border:1px solid #dfe5ef;border-radius:8px;background:#f7f9fc;
  color:#243044;font-size:11.5px;font-family:inherit;outline:none}
.ck-inv-row button{flex:0 0 auto;height:32px;padding:0 11px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:#4d5866;
  font-size:11.5px;font-family:inherit;cursor:pointer}
.ck-inv-row button:hover{border-color:#0e9c8f;color:#0e9c8f}

/* 补抽：深色：notice / ck / acct（toolbox.html 1469-1545） */
[data-theme="dark"] .notice-dot{background:#ff6f6a;color:#1f2126;box-shadow:0 0 0 2px #1f2126}
[data-theme="dark"] .notice-tag{background:#ff6f6a;color:#1f2126}
[data-theme="dark"] .notice-flag{background:#3a2322;color:#ff8f8b}
  [data-theme="dark"] .notice-pop{border:1px solid #2c2f36;background:#1f2126;box-shadow:0 22px 54px rgba(0,0,0,.55)}
  [data-theme="dark"] .notice-head{border-bottom:1px solid #262a31}
  [data-theme="dark"] .notice-head b{color:#e8e9ec}
  [data-theme="dark"] .notice-count{color:#8f959e}
  [data-theme="dark"] .ck-line{color:#b9bfc9}
  [data-theme="dark"] .ck-line b{color:#e8e9ec}
  [data-theme="dark"] .ck-cap-img{border:1px solid #2c2f36;background:#23262c;color:#8f959e}
  [data-theme="dark"] .ck-cap-input{border:1px solid #2c2f36;background:#1f2126;color:#e8e9ec}
  [data-theme="dark"] .ck-cap-input:focus{border-color:#14a89a}
  [data-theme="dark"] .ck-cap-refresh{border:1px solid #2c2f36;background:#1f2126;color:#b9bfc9}
  [data-theme="dark"] .ck-cap-refresh:hover,[data-theme="dark"] .ck-cap-img:hover{border-color:#14a89a;color:#5eead4}
  [data-theme="dark"] .ck-run{background:#14a89a}
  [data-theme="dark"] .ck-run:hover{background:#14a89a}
  [data-theme="dark"] .ck-run:disabled{background:#262a31;color:#8f959e}
  [data-theme="dark"] .ck-msg{color:#8f959e}
  [data-theme="dark"] .ck-msg.ok{color:#45d68f}
  [data-theme="dark"] .ck-msg.err{color:#ff6f6a}
  [data-theme="dark"] .ck-nums span{background:#23262c}
  [data-theme="dark"] .ck-nums b{color:#e8e9ec}
  [data-theme="dark"] .ck-nums i{color:#9aa1ab}
  [data-theme="dark"] .ck-mile{border:1px solid #2c2f36;background:#1f2126}
  [data-theme="dark"] .ck-mile .dot{background:#262a31;color:#9aa1ab}
  [data-theme="dark"] .ck-mile b{color:#b9bfc9}
  [data-theme="dark"] .ck-mile i{color:#5eead4}
  [data-theme="dark"] .ck-mile.done{border-color:#0f766e;background:#23262c}
  [data-theme="dark"] .ck-mile.done .dot{background:#14a89a}
  [data-theme="dark"] .ck-mile.next{border-color:#14a89a;box-shadow:0 0 0 2px rgba(45,212,191,.22)}
  [data-theme="dark"] .ck-sub{color:#e8e9ec}
  [data-theme="dark"] .ck-sub span{color:#8f959e}
  [data-theme="dark"] .ck-cal .wk{color:#8f959e}
  [data-theme="dark"] .ck-cal .day{color:#b9bfc9;background:#23262c}
  [data-theme="dark"] .ck-cal .day.future{color:#b9bfc9}
  [data-theme="dark"] .ck-cal .day.done{background:#14a89a}
  [data-theme="dark"] .ck-cal .day.today{box-shadow:inset 0 0 0 1.5px #14a89a}
  [data-theme="dark"] .ck-remind{color:#d5d9e0}
  [data-theme="dark"] .ck-switch{background:#2c2f36}
  [data-theme="dark"] .ck-switch i{background:#1f2126;box-shadow:0 1px 3px rgba(0,0,0,.5)}
  [data-theme="dark"] .ck-switch[aria-checked="true"]{background:#14a89a}
  [data-theme="dark"] .ck-note{color:#8f959e}
  [data-theme="dark"] .ck-invite{border-top:1px solid #262a31}
  [data-theme="dark"] .ck-inv-row input{border:1px solid #2c2f36;background:#23262c;color:#d5d9e0}
  [data-theme="dark"] .ck-inv-row button{border:1px solid #2c2f36;background:#1f2126;color:#b9bfc9}
  [data-theme="dark"] .ck-inv-row button:hover{border-color:#14a89a;color:#5eead4}
  [data-theme="dark"] .notice-empty{color:#8f959e}
  [data-theme="dark"] .notice-item{border-bottom:1px solid #2c2f36}
  [data-theme="dark"] .notice-item h4{color:#e8e9ec}
  [data-theme="dark"] .notice-meta{color:#8f959e}
  [data-theme="dark"] .notice-sum{color:#b9bfc9}
  [data-theme="dark"] .notice-sec h5{color:#5eead4}
  [data-theme="dark"] .notice-card{color:#b9bfc9}
  [data-theme="dark"] .notice-card b{color:#d5d9e0}
  [data-theme="dark"] .acct-btn{background:#262a31;color:#a8aeb8}
  [data-theme="dark"] .acct-btn:hover{background:#262a31;color:#5eead4}
  [data-theme="dark"] .acct-avatar{background:#1f2126;color:#5eead4}
  [data-theme="dark"] .acct-pop{border:1px solid #2c2f36;background:#1f2126;box-shadow:0 22px 54px rgba(0,0,0,.55)}
  [data-theme="dark"] .acct-id{border-bottom:1px solid #262a31}
  [data-theme="dark"] .acct-avatar.big{background:#262a31}
  [data-theme="dark"] .acct-id-txt b{color:#e8e9ec}
  [data-theme="dark"] .acct-id-txt em{color:#8f959e}
  [data-theme="dark"] .acct-copy{color:#8f959e}
  [data-theme="dark"] .acct-copy:hover{background:#262a31;color:#5eead4}
  [data-theme="dark"] .acct-role{background:#332b20;color:#e0a63c}
  [data-theme="dark"] .acct-card{background:linear-gradient(135deg,#262a31,#23262c 62%,#332b20);border:1px solid #2c2f36}
  [data-theme="dark"] .acct-card-head b{color:#d5d9e0}
  [data-theme="dark"] .acct-card-head span{color:#e8e9ec}
  [data-theme="dark"] .acct-perks{color:#b9bfc9}
  [data-theme="dark"] .acct-cta{background:#2f333c}
  [data-theme="dark"] .acct-cta:hover{background:#14a89a}
  [data-theme="dark"] .acct-card-more:hover{color:#5eead4}
  [data-theme="dark"] .acct-invite{background:#262a31;color:#5eead4}
  [data-theme="dark"] .acct-invite:hover{background:rgba(20,168,154,.16)}
  [data-theme="dark"] .acct-grid{border-top:1px solid #262a31;border-bottom:1px solid #262a31}
  [data-theme="dark"] .acct-grid a,[data-theme="dark"] .acct-grid button{color:#b9bfc9}
  [data-theme="dark"] .acct-grid a:hover,[data-theme="dark"] .acct-grid button:hover{background:#23262c;color:#5eead4}
  [data-theme="dark"] .acct-logout{border-top:1px solid #262a31;color:#b9bfc9}
  [data-theme="dark"] .acct-logout:hover{color:#ff6f6a}

/* 补抽：语言弹层选项（toolbox.html 111-124） */
.lang-option{
  width:100%;min-height:43px;padding:6px 8px;border:0;border-radius:7px;background:transparent;
  display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:9px;text-align:left;cursor:pointer;
}
.lang-option:hover{background:#eaf7f5}
.lang-option.selected{background:#e3f6f3}
.lang-code{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:#f4f1f3;color:#5f5960;font-size:9px;font-weight:800;
}
.lang-copy{min-width:0}
.lang-copy b{display:block;font-size:12px;line-height:1.3}
.lang-copy span{display:block;margin-top:2px;color:#999199;font-size:10px}
.lang-check{color:#0e9c8f;font-size:15px;font-weight:800;text-align:center}
/* mega 下拉的条目标题原先完全靠继承，描述却写死灰色，深色下两者层级反了；
   这里把标题和描述都显式钉住，浅色深色各自成对。 */
.mega-copy b{color:var(--text)}
[data-theme="dark"] .mega-copy b{color:#e8e9ec}
[data-theme="dark"] .mega-copy span{color:#9a9fa8}
[data-theme="dark"] .mega-head h2{color:#eef0f3}

/* ══════════════════════════════════════════════════════════════════════
   账号区对齐覆盖块（2026-10-06 用户：「顶部的其他功能区账号与主界面下拉不一致」）
   ──────────────────────────────────────────────────────────────────────
   在文件末尾追加，不是改写上面的规则：同特异度下位置靠后的赢。
   全部内容由 .agent-helpers/add-acctalign-css.mjs 从 toolbox.html 逐条原样复制，
   含深色与媒体查询。**改主界面样式时这个块要重跑一次脚本**，否则两边会漂。

   补齐的：账号面板 342px、图标行 6 列、[hidden] 兜底、公告头两颗按钮样式、
   签到面板整套新版、课堂教程阅读层（原来完全没有样式）。
   ══════════════════════════════════════════════════════════════════════ */

.notice-head .notice-count{margin-right:auto;order:0}
.notice-read-btn,.notice-x{order:1;flex:0 0 auto;appearance:none;border:1px solid #dfe5ef;background:#fff;color:#5b6779;
  border-radius:9px;font:inherit;font-size:12px;line-height:1;cursor:pointer;transition:.15s}
.notice-read-btn{padding:6px 10px}
.notice-x{width:26px;height:26px;padding:0;font-size:14px;line-height:24px;text-align:center}
.notice-read-btn:hover,.notice-x:hover{border-color:#c3ccda;color:#172033;background:#f5f7fb}
.notice-read-btn[disabled]{opacity:.45;cursor:default;background:#f7f8fb}
.notice-read-btn[disabled]:hover{border-color:#dfe5ef;color:#5b6779;background:#f7f8fb}
.ck-body{padding:12px 13px 14px}
.ck-line{margin:0 0 11px;font-size:12px;line-height:1.7;color:#4d5a6e}
.ck-line b{color:#0b7d72}
.ck-cap{display:flex;gap:9px;align-items:stretch;margin-bottom:10px}
.ck-cap[hidden]{display:none}
.ck-cap-img{flex:0 0 122px;height:40px;padding:0;border:1px solid #dfe5ef;border-radius:9px;background:#f7f9fc;
  color:#8d97a6;font-size:11px;cursor:pointer;overflow:hidden}
.ck-cap-img svg{display:block;width:122px;height:40px}
.ck-cap-row{flex:1;min-width:0;display:flex;gap:6px}
.ck-cap-input{flex:1;min-width:0;height:40px;padding:0 11px;border:1px solid #dfe5ef;border-radius:9px;background:#fff;
  color:#172033;font-size:13px;letter-spacing:.5px;font-family:inherit;outline:none}
.ck-cap-input::placeholder{letter-spacing:0;color:#a9b2bf}
.ck-cap-input:focus{border-color:#0e9c8f;box-shadow:0 0 0 3px rgba(14,156,143,.12)}
.ck-cap-refresh{flex:0 0 auto;height:40px;padding:0 12px;border:1px solid #dfe5ef;border-radius:9px;background:#fff;
  color:#4d5866;font-size:11.5px;font-family:inherit;cursor:pointer}
.ck-cap-refresh:hover,.ck-cap-img:hover{border-color:#0e9c8f;color:#0e9c8f}
.ck-run{width:100%;height:40px;border:0;border-radius:10px;background:#0e9c8f;color:#fff;font-size:13.5px;font-weight:600;
  font-family:inherit;cursor:pointer;box-shadow:0 4px 12px rgba(14,156,143,.22);transition:background .15s,box-shadow .15s}
.ck-run:hover{background:#0b7d72;box-shadow:0 6px 16px rgba(14,156,143,.3)}
.ck-run:active{box-shadow:0 2px 6px rgba(14,156,143,.22)}
.ck-run:disabled{background:#e7eef0;color:#9aa7ad;cursor:not-allowed;box-shadow:none}
.ck-msg{margin:9px 0 0;font-size:11.5px;line-height:1.6;color:#8d97a6}
.ck-msg:empty{margin:0}
/* 显式归零：上面这条旧规则写着 min-height:18px。CSS 是**逐属性**级联 ——
   新版规则只是「没再提 min-height」，不等于把它清成 0，旧值会原封不动接着生效。
   主界面是原地改写规则所以没这个坑，追加覆盖块就必须每个被删掉的属性都补一条归零。 */
.ck-msg{min-height:0}
.ck-msg.ok{color:#1f9d5b}
.ck-msg.err{color:#e04a43}
.ck-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:11px}
.ck-nums span{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px;border-radius:11px;
  background:#f5f8ff;border:1px solid #e9f0fc}
.ck-nums b{font-size:17px;line-height:1.1;color:#172033;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.ck-nums i{font-style:normal;font-size:10.5px;color:#7c8899}
.ck-rail{display:flex;gap:7px;margin:11px 0 2px}
.ck-mile{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 3px;
  border:1px solid #e9edf5;border-radius:11px;background:#fbfcfe}
.ck-mile .dot{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eef1f6;
  color:#9aa4b2;font-size:11px;font-weight:700}
.ck-mile b{font-size:10.5px;font-weight:600;color:#9aa4b2;text-align:center;line-height:1.3}
.ck-mile i{font-style:normal;font-size:10.5px;color:#bcc4cf;font-variant-numeric:tabular-nums}
.ck-mile.done{border-color:#c6eae3;background:#f0fbf8}
.ck-mile.done .dot{background:#0e9c8f;color:#fff}
.ck-mile.done b{color:#0b7d72}
.ck-mile.done i{color:#0b8d80}
.ck-mile.next{border-color:#0e9c8f;background:#fff;box-shadow:0 4px 12px rgba(14,156,143,.16)}
.ck-mile.next .dot{background:#0e9c8f;color:#fff}
.ck-mile.next b{color:#172033}
.ck-mile.next i{color:#0b7d72}
.ck-sub{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0 7px;font-size:12px;color:#172033}
.ck-sub span{font-size:10.5px;color:#8d97a6;font-variant-numeric:tabular-nums}
.ck-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:3px 3px;max-width:240px;margin:0 auto}
.ck-cal .wk{font-size:10px;color:#9aa4b2;text-align:center;height:15px}
.ck-cal .blank{height:24px}
.ck-cal .day{display:grid;place-items:center;height:24px;border-radius:7px;font-size:11px;color:#4d5866;
  background:#f2f5fa;font-variant-numeric:tabular-nums}
.ck-cal .day.future{color:#c8cfda;background:transparent}
.ck-cal .day.miss{color:#a9b2c0;background:transparent;text-decoration:line-through;text-decoration-thickness:1.5px;
  text-decoration-color:#8e99a8}
.ck-cal .day.done{background:#0e9c8f;color:#fff;font-weight:600}
.ck-cal .day.mile{box-shadow:inset 0 0 0 1.5px #f0a020}
.ck-cal .day.today{box-shadow:inset 0 0 0 1.5px #0e9c8f;font-weight:700}
.ck-cal .day.today:not(.done){background:#e3f6f3;color:#0b7d72}
.ck-remind{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;font-size:12px;color:#243044}
.ck-switch{width:38px;height:21px;padding:0;border:0;border-radius:999px;background:#dfe5ef;cursor:pointer;transition:background .16s}
.ck-switch i{display:block;width:17px;height:17px;margin:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(23,32,51,.25);transition:transform .16s}
.ck-switch[aria-checked="true"]{background:#0e9c8f}
.ck-switch[aria-checked="true"] i{transform:translateX(17px)}
.ck-note{margin:6px 0 0;font-size:10.5px;line-height:1.6;color:#8d97a6}
.ck-invite{margin-top:13px;padding-top:11px;border-top:1px solid #eef1f6}
.ck-invite[hidden]{display:none}
.ck-inv-row{display:flex;gap:6px;margin-top:6px}
.ck-inv-row input{flex:1;min-width:0;height:32px;padding:0 9px;border:1px solid #dfe5ef;border-radius:8px;background:#f7f9fc;
  color:#243044;font-size:11.5px;font-family:inherit;outline:none}
.ck-inv-row button{flex:0 0 auto;height:32px;padding:0 13px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:#4d5866;
  font-size:11.5px;font-family:inherit;cursor:pointer}
.ck-inv-row button:hover{border-color:#0e9c8f;color:#0e9c8f}
.acct-pop{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:342px;padding:10px;
  border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 22px 54px rgba(23,32,51,.18);
  opacity:0;visibility:hidden;transform:translateY(-7px);pointer-events:none;transition:.17s}
.cls-mask{position:fixed;inset:0;z-index:90;display:none;overflow:auto;padding:40px 20px 60px;
  background:rgba(20,17,20,.55);backdrop-filter:blur(4px)}
.cls-mask.open{display:block}
.cls-sheet{position:relative;width:min(820px,100%);margin:0 auto;padding:32px 38px 36px;border-radius:16px;background:#fff;box-shadow:0 26px 60px rgba(20,17,20,.28)}
.cls-close{position:absolute;right:14px;top:14px;border:0;border-radius:8px;padding:6px 12px;background:#f5f2f4;color:#7d767c;font-size:12px;cursor:pointer}
.cls-close:hover{background:#e3f6f3;color:#0e9c8f}
.cls-sheet h2{margin:0 0 8px;font-size:22px;color:var(--text)}
.cls-meta{margin:0 0 20px;color:#918a90;font-size:12px}
.cls-lead{margin:0 0 4px;font-size:13.5px;line-height:1.9;color:#4a4650}
.cls-nav{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 4px}
.cls-nav a{padding:5px 12px;border-radius:999px;background:#f2f4f8;color:#4d5866;font-size:12px;text-decoration:none}
.cls-nav a:hover{background:#dff2ef;color:#0a7d72}
.cls-sheet h3{margin:26px 0 8px;font-size:15px;color:var(--text)}
.cls-sheet p{margin:0 0 9px;font-size:13.5px;line-height:1.9;color:#4a4650}
.cls-sheet ol,.cls-sheet ul{margin:0 0 9px;padding-left:20px;font-size:13.5px;line-height:1.9;color:#4a4650}
.cls-sheet li{margin-bottom:4px}
.cls-tip{margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#f6f8fb;color:#4d5866;font-size:12.5px;line-height:1.8}
.acct-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-top:8px;padding:8px 0;border-top:1px solid #eef1f6;border-bottom:1px solid #eef1f6}
.acct-grid a,.acct-grid button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 0;border-radius:9px;
  color:#4d5866;font-size:12px;text-decoration:none}
.acct-grid a[hidden],.acct-grid button[hidden]{display:none}
[data-theme="dark"] .cls-sheet{background:#1f2126}
[data-theme="dark"] .cls-close{background:#23262c;color:#b9bfc9}
[data-theme="dark"] .cls-close:hover{background:#262a31;color:#5eead4}
[data-theme="dark"] .cls-meta{color:#9a9fa8}
[data-theme="dark"] .cls-lead,[data-theme="dark"] .cls-sheet p{color:#cdd2da}
[data-theme="dark"] .cls-sheet ol,[data-theme="dark"] .cls-sheet ul{color:#cdd2da}
[data-theme="dark"] .cls-nav a{background:#262a31;color:#b9bfc9}
[data-theme="dark"] .cls-nav a:hover{background:rgba(20,168,154,.16);color:#5eead4}
[data-theme="dark"] .cls-tip{background:#23262c;color:#b9bfc9}
[data-theme="dark"] .ck-line{color:#b9bfc9}
[data-theme="dark"] .ck-line b{color:#5eead4}
[data-theme="dark"] .ck-cap-img{border:1px solid #2c2f36;background:#23262c;color:#8f959e}
[data-theme="dark"] .ck-cap-input{border:1px solid #2c2f36;background:#1f2126;color:#e8e9ec}
[data-theme="dark"] .ck-cap-input::placeholder{color:#7d848f}
[data-theme="dark"] .ck-cap-input:focus{border-color:#14a89a;box-shadow:0 0 0 3px rgba(20,168,154,.18)}
[data-theme="dark"] .ck-cap-refresh{border:1px solid #2c2f36;background:#1f2126;color:#b9bfc9}
[data-theme="dark"] .ck-cap-refresh:hover,[data-theme="dark"] .ck-cap-img:hover{border-color:#14a89a;color:#5eead4}
[data-theme="dark"] .ck-run{background:#14a89a;box-shadow:0 4px 12px rgba(20,168,154,.2)}
[data-theme="dark"] .ck-run:hover{background:#0f8c80;box-shadow:0 6px 16px rgba(20,168,154,.28)}
[data-theme="dark"] .ck-run:disabled{background:#232830;color:#79808b;box-shadow:none}
[data-theme="dark"] .ck-msg{color:#8f959e}
[data-theme="dark"] .ck-msg.ok{color:#45d68f}
[data-theme="dark"] .ck-msg.err{color:#ff6f6a}
[data-theme="dark"] .ck-nums span{background:#202329;border:1px solid #272b33}
[data-theme="dark"] .ck-nums b{color:#e8e9ec}
[data-theme="dark"] .ck-nums i{color:#9aa1ab}
[data-theme="dark"] .ck-mile{border:1px solid #272b33;background:#1c1f25}
[data-theme="dark"] .ck-mile .dot{background:#282c33;color:#79808b}
[data-theme="dark"] .ck-mile b{color:#79808b}
[data-theme="dark"] .ck-mile i{color:#5f6672}
[data-theme="dark"] .ck-mile.done{border-color:#0f5f57;background:#16211f}
[data-theme="dark"] .ck-mile.done .dot{background:#14a89a}
[data-theme="dark"] .ck-mile.done b{color:#5eead4}
[data-theme="dark"] .ck-mile.done i{color:#3fbfae}
[data-theme="dark"] .ck-mile.next{border-color:#14a89a;background:#1a2624;box-shadow:0 4px 12px rgba(20,168,154,.18)}
[data-theme="dark"] .ck-mile.next .dot{background:#14a89a}
[data-theme="dark"] .ck-mile.next b{color:#e8e9ec}
[data-theme="dark"] .ck-mile.next i{color:#5eead4}
[data-theme="dark"] .ck-sub{color:#e8e9ec}
[data-theme="dark"] .ck-sub span{color:#8f959e}
[data-theme="dark"] .ck-cal .wk{color:#7b828d}
[data-theme="dark"] .ck-cal .day{color:#b9bfc9;background:#22252b}
[data-theme="dark"] .ck-cal .day.future{color:#5a616c;background:transparent}
[data-theme="dark"] .ck-cal .day.miss{color:#5f6672;background:transparent;text-decoration-thickness:1.5px;text-decoration-color:#727a87}
[data-theme="dark"] .ck-cal .day.done{background:#14a89a;color:#06231f}
[data-theme="dark"] .ck-cal .day.today{box-shadow:inset 0 0 0 1.5px #14a89a}
[data-theme="dark"] .ck-cal .day.today:not(.done){background:#16302c;color:#5eead4}
[data-theme="dark"] .ck-remind{color:#d5d9e0}
[data-theme="dark"] .ck-switch{background:#2c2f36}
[data-theme="dark"] .ck-switch i{background:#1f2126;box-shadow:0 1px 3px rgba(0,0,0,.5)}
[data-theme="dark"] .ck-switch[aria-checked="true"]{background:#14a89a}
[data-theme="dark"] .ck-note{color:#8f959e}
[data-theme="dark"] .ck-invite{border-top:1px solid #262a31}
[data-theme="dark"] .ck-inv-row input{border:1px solid #2c2f36;background:#23262c;color:#d5d9e0}
[data-theme="dark"] .ck-inv-row button{border:1px solid #2c2f36;background:#1f2126;color:#b9bfc9}
[data-theme="dark"] .ck-inv-row button:hover{border-color:#14a89a;color:#5eead4}