/* ===== 小团子 · 小雨机小助手（近黑白、细线、留白） ===== */
.tz-win{--tzbg:#f4f4f5;--tzcard:#fff;--tzink:#1d1d1f;--tzsub:#8e8e93;--tzfaint:#c7c7cc;--tzline:rgba(60,60,67,.11);--tzme:#2a2a2c;--tzmetx:#fff;--tzpill:#ececee;--tzbar:rgba(248,248,249,.86);--tzcode:#f6f6f7;--tzerr:#b4554b;
  background:var(--tzbg)!important;color:var(--tzink);z-index:32;overflow:hidden;font-size:var(--fs,14px);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased}
.phone.night .tz-win{--tzbg:#0f0f10;--tzcard:#1c1c1e;--tzink:#f2f2f3;--tzsub:#8d8d92;--tzfaint:#48484a;--tzline:rgba(255,255,255,.08);--tzme:#e9e9eb;--tzmetx:#161617;--tzpill:#2a2a2c;--tzbar:rgba(22,22,24,.86);--tzcode:#141415;--tzerr:#e08a80}
.tz-win svg.tz-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* 顶部 */
.tz-nav{position:absolute;left:0;right:0;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top) + var(--sbh,46px) - 6px) 12px 10px;background:var(--tzbar);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border-bottom:.5px solid var(--tzline)}
.tz-nb{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--tzink)}
.tz-nb:active{background:var(--tzpill)}
.tz-nt{flex:1;text-align:center;line-height:1.2}
.tz-nt b{display:block;font-size:15px;font-weight:600;letter-spacing:.02em}
.tz-nt small{display:block;font-size:9.5px;letter-spacing:.14em;color:var(--tzsub);margin-top:2px}

/* 消息区 */
.tz-sc{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(env(safe-area-inset-top) + var(--sbh,46px) + 54px) 14px calc(env(safe-area-inset-bottom) + 92px)}
.tz-m{display:flex;gap:8px;margin:0 0 14px;align-items:flex-start}
.tz-m.me{justify-content:flex-end}
.tz-av{width:30px;height:30px;border-radius:50%;flex:none;background:var(--tzcard);border:.5px solid var(--tzline);display:flex;align-items:center;justify-content:center;color:var(--tzsub)}
.tz-av svg,.tz-big svg,.tz-appic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tz-col{flex:1;min-width:0;max-width:86%;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.tz-b{background:var(--tzcard);border-radius:18px 18px 18px 6px;padding:10px 13px;line-height:1.62;font-size:14px;word-break:break-word;border:.5px solid var(--tzline)}
.tz-m.me .tz-b{background:var(--tzme);color:var(--tzmetx);border-radius:18px 18px 6px 18px;max-width:78%;border:0}
.tz-b code{font-family:ui-monospace,Menlo,monospace;font-size:12px;background:var(--tzpill);padding:1px 5px;border-radius:5px}
.tz-b b{font-weight:600}
.tz-dots{display:flex;gap:4px;padding:14px 15px}
.tz-dots i{width:5px;height:5px;border-radius:50%;background:var(--tzsub);opacity:.35;animation:tzDot 1.1s infinite}
.tz-dots i:nth-child(2){animation-delay:.18s}.tz-dots i:nth-child(3){animation-delay:.36s}
@keyframes tzDot{0%,60%,100%{opacity:.25;transform:none}30%{opacity:.85;transform:translateY(-2px)}}

/* 欢迎 */
.tz-hi{text-align:center;padding:26px 10px 10px}
.tz-big{width:64px;height:64px;border-radius:22px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;background:var(--tzcard);border:.5px solid var(--tzline);color:var(--tzink)}
.tz-big svg{width:34px;height:34px;stroke-width:1.2}
.tz-hi>b{display:block;font-size:17px;font-weight:600}
.tz-hi>small{display:block;font-size:9.5px;letter-spacing:.14em;color:var(--tzsub);margin-top:5px}
.tz-hi p{font-size:13px;color:var(--tzsub);line-height:1.7;margin:14px 6px 18px}
.tz-sug{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.tz-sug span{font-size:12.5px;padding:8px 13px;border-radius:999px;background:var(--tzcard);border:.5px solid var(--tzline);cursor:pointer;color:var(--tzink)}
.tz-sug span:active{background:var(--tzpill)}

/* 卡片 */
.tz-cd{width:100%;background:var(--tzcard);border-radius:16px;border:.5px solid var(--tzline);padding:12px 13px;box-sizing:border-box}
.tz-cd.ing{opacity:.6}
.tz-ch{display:flex;align-items:center;gap:10px}
.tz-ch>svg.tz-i{width:32px;height:32px;padding:7px;box-sizing:border-box;border-radius:10px;background:var(--tzpill);color:var(--tzink);stroke-width:1.5}
.tz-ch>div{min-width:0;flex:1}
.tz-ch b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tz-ch small{display:block;font-size:11px;color:var(--tzsub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tz-cd p{font-size:12.5px;color:var(--tzsub);line-height:1.6;margin:9px 0 0}
.tz-cd p.tz-q{color:var(--tzink)}
.tz-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.tz-tags span{font-size:11px;padding:2px 8px;border-radius:999px;border:.5px solid var(--tzline);color:var(--tzsub)}
.tz-pre,.tz-code pre{margin:10px 0 0;max-height:150px;overflow:auto;font:11px/1.55 ui-monospace,Menlo,monospace;background:var(--tzcode);color:var(--tzink);border-radius:10px;padding:9px 10px;white-space:pre;-webkit-overflow-scrolling:touch}
.tz-ul{list-style:none;margin:9px 0 0;padding:0}
.tz-ul li{display:flex;align-items:center;gap:7px;font-size:12.5px;padding:6px 0;border-top:.5px solid var(--tzline)}
.tz-ul li:first-child{border-top:0}
.tz-ul li i{width:5px;height:5px;border-radius:50%;border:1px solid var(--tzsub);flex:none}
.tz-ul li i.al{background:var(--tzink);border-color:var(--tzink)}
.tz-ul li small{margin-left:auto;font-size:10.5px;color:var(--tzsub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.tz-ul li.mu{color:var(--tzsub);font-size:11.5px}
.tz-apph{display:flex;gap:10px;align-items:center;margin-top:10px}
.tz-appic{width:42px;height:42px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;background:var(--tzpill);color:var(--tzink)}
.tz-appic svg{width:22px;height:22px}
.tz-apph p{margin:0}
.tz-err{font-size:11.5px;color:var(--tzerr);margin-top:8px}
.tz-ca{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:11px}
.tz-ca.solo{margin-top:0}
.tz-ca em{font-style:normal;font-size:12px;color:var(--tzsub);display:flex;align-items:center;gap:3px;cursor:pointer}
.tz-ca em svg.tz-i{width:15px;height:15px}
.tz-ok{border:0;font:inherit;font-size:12.5px;font-weight:600;padding:7px 16px;border-radius:999px;background:var(--tzme);color:var(--tzmetx);display:flex;align-items:center;gap:4px;cursor:pointer}
.tz-ok svg.tz-i{width:15px;height:15px;stroke-width:1.9}
.tz-ok.on{background:var(--tzpill);color:var(--tzink);font-weight:500}
.tz-ok:disabled{opacity:.35}
.tz-ok:active{opacity:.75}
.tz-code{width:100%;background:var(--tzcard);border-radius:14px;border:.5px solid var(--tzline);padding:9px 11px;box-sizing:border-box}
.tz-coh{display:flex;align-items:center;font-size:11px;color:var(--tzsub);letter-spacing:.06em}
.tz-coh em{margin-left:auto;font-style:normal;display:flex;gap:3px;align-items:center;cursor:pointer}
.tz-coh em svg.tz-i{width:14px;height:14px}

/* 输入 */
.tz-in{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:flex-end;gap:8px;padding:8px 12px calc(env(safe-area-inset-bottom) + 14px);background:var(--tzbar);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border-top:.5px solid var(--tzline)}
.tz-in textarea{flex:1;resize:none;border:.5px solid var(--tzline);background:var(--tzcard);color:var(--tzink);border-radius:20px;padding:9px 14px;font:inherit;font-size:14px;line-height:1.45;max-height:110px;outline:none;box-sizing:border-box;min-height:38px}
.tz-in textarea::placeholder{color:var(--tzfaint)}
.tz-send{width:38px;height:38px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:var(--tzpill);color:var(--tzsub);cursor:pointer;transition:background .2s,color .2s}
.tz-win.has .tz-send{background:var(--tzme);color:var(--tzmetx)}
.tz-send.busy{opacity:.4;pointer-events:none}
.tz-send svg.tz-i{stroke-width:1.9}

/* 小团子头像：描出来的实心小兔（路径自带 fill="currentColor"），不要描边；颜色跟普通图标的灰 / 深色字 */
.tz-av svg path,.tz-big svg path,.tz-appic svg path{stroke:none}
.app[data-app="tuanzi"] .kr{display:none!important}
.app[data-app="tuanzi"] .ic>svg,.skin-soft .app[data-app="tuanzi"] .ic>svg{display:block!important;width:30px!important;height:30px!important;stroke:none!important;color:#6b6b70}
.app[data-app="tuanzi"] .ic>svg path{stroke:none!important}
.tz-big svg{width:38px;height:38px}
