/* 新版87：孟德小翅小幫手 */
.xc-ov{position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh);max-width:480px;margin:0 auto;z-index:9200;display:flex;flex-direction:column;background:linear-gradient(180deg,#fff6ea 0%,#fff9f5 30%,#fff3f5 100%);color:#3b2a22;transform:translateX(100%);transition:transform .22s cubic-bezier(.3,.9,.4,1)}
.xc-ov.in{transform:none}
html.night .xc-ov{background:linear-gradient(180deg,#221b3a,#1b1634);color:#f3ecff}
.xc-hd{flex:none;display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#ffffffd9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 4px 16px #c4513f12;border-radius:0 0 22px 22px}
html.night .xc-hd{background:#221b3ae6;box-shadow:0 4px 18px #0006}
.xc-bk{border:0;background:none;font-size:30px;line-height:1;width:36px;height:40px;color:inherit}
.xc-hav{position:relative;width:54px;height:44px;flex:none;display:grid;place-items:center}
.xc-hav b{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:24px;background:linear-gradient(135deg,#ffd76a,#ff8a74);box-shadow:0 4px 12px #e5576b44;position:relative;z-index:1;animation:xcBob 2.4s ease-in-out infinite}
.xc-hav i{position:absolute;top:8px;width:16px;height:22px;background:linear-gradient(160deg,#fff,#ffd9e2);border-radius:90% 10% 90% 30%;box-shadow:0 2px 6px #ff8a7444;animation:tyflapL .5s ease-in-out infinite alternate}
.xc-hav i.l{left:-4px;transform-origin:100% 80%}.xc-hav i.r{right:-4px;transform-origin:0 80%;border-radius:10% 90% 30% 90%;animation-name:tyflapR}
@keyframes xcBob{50%{transform:translateY(-3px)}}
.xc-ht{display:flex;flex-direction:column;min-width:0}.xc-ht b{font-size:17px}.xc-ht em{font-style:normal;font-size:10.5px;font-weight:800;background:#e85d75;color:#fff;border-radius:99px;padding:1px 7px;margin-left:4px;vertical-align:2px}
.xc-ht small{font-size:12px;opacity:.65}
.xc-msgs{flex:1;min-height:0;overflow-y:auto;padding:14px 12px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.xc-row{display:flex;gap:8px;align-items:flex-end}.xc-row.me{justify-content:flex-end}
.xc-av{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;background:linear-gradient(135deg,#ffd76a,#ff8a74)}
.xc-b{max-width:80%;padding:10px 14px;border-radius:20px 20px 20px 6px;background:#fff;box-shadow:0 4px 14px #c4513f12;border:1px solid #f3e4dc;font-size:14.5px;line-height:1.55;animation:ccIn .35s cubic-bezier(.3,1.5,.5,1)}
.xc-b.wide{max-width:88%}
.xc-b.new{box-shadow:0 0 0 2px #ffb3c3,0 4px 14px #c4513f12}
.xc-b p{margin:0 0 6px}.xc-b p:last-child{margin:0}
.xc-b time{display:block;font-size:10.5px;opacity:.5;margin-top:4px}
.xc-b.me{background:linear-gradient(135deg,#ff9a7b,#ff6f91);color:#fff;border:0;border-radius:20px 20px 6px 20px;animation-name:ccInMe}
html.night .xc-b:not(.me){background:#2a2245;border-color:#3d3363;color:#f3ecff;box-shadow:0 4px 16px #0005}
.xc-ty{display:flex;gap:4px;padding:14px 16px}.xc-ty i{width:6px;height:6px;border-radius:50%;background:#e8a59a;animation:tydot 1.2s infinite}.xc-ty i:nth-child(2){animation-delay:.15s}.xc-ty i:nth-child(3){animation-delay:.3s}
.xc-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.xc-act{border:0;border-radius:99px;padding:7px 13px;font-size:13px;font-weight:800;background:linear-gradient(135deg,#fff0d6,#ffe1ea);color:#c4513f}
html.night .xc-act{background:#3d2f5a;color:#ffc9d6}
.xc-todo{display:flex;flex-direction:column;gap:6px}
.xc-todo div{display:flex;align-items:center;gap:8px;background:#fff8f2;border-radius:14px;padding:8px 10px}
html.night .xc-todo div{background:#231c3a}
.xc-todo i{font-style:normal;font-size:18px;flex:none}.xc-todo span{flex:1;font-size:13.5px;line-height:1.35}
.xc-todo button{flex:none;border:0;border-radius:99px;padding:6px 12px;font-size:12.5px;font-weight:800;background:linear-gradient(135deg,#ff9a7a,#e85d75);color:#fff}
.xc-pps{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.xc-pp{border:0;border-radius:14px;background:#fff8f2;padding:6px 8px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:70px;color:inherit}
.xc-pp span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:18px}.xc-pp b{font-size:12px}.xc-pp small{font-size:10.5px;opacity:.7}
html.night .xc-pp{background:#231c3a}
.xc-day{align-self:center;font-size:11px;opacity:.55;padding:2px 10px;border-radius:99px;background:#00000008}
.xc-chips{flex:none;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:6px 12px}.xc-chips::-webkit-scrollbar{display:none}
.xc-chips button{flex:none;border:0;border-radius:99px;padding:8px 13px;font-size:13px;font-weight:700;background:#fff;color:#6e4f40;box-shadow:0 2px 8px #c4513f14}
html.night .xc-chips button{background:#2f2750;color:#e6dcff}
.xc-bar{flex:none;display:flex;gap:8px;align-items:center;margin:4px 8px calc(8px + env(safe-area-inset-bottom));padding:6px 6px 6px 14px;border-radius:28px;background:#fff;border:1px solid #f0dfd6;box-shadow:0 4px 16px #c4513f12}
html.kb .xc-bar{margin-bottom:6px}
html.night .xc-bar{background:#221b3a;border-color:#3a3058}
.xc-in{flex:1;min-width:0;border:0;background:none;font-size:16px;color:inherit;outline:0;height:40px}
.xc-send{flex:none;width:42px;height:42px;border-radius:50%;border:0;background:linear-gradient(135deg,#ff9a7a,#e85d75);color:#fff;font-size:17px}
/* 列表上的小翅頭像也拍一下翅膀 */
#main .gw-official .gw-oav2{animation:xcBob 2.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.xc-hav b,.xc-hav i,#main .gw-official .gw-oav2,.xc-b{animation:none!important}.xc-ov{transition:none}}
.xc-in{background:transparent!important;border:0!important;box-shadow:none!important}
/* 新版90：輸入框不要紅框，改成整條輸入列亮起來；鍵盤打開時畫面不跳 */
.xc-in:focus,.xc-in:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:none!important;border:0!important}
.xc-bar:focus-within{border-color:#ff9a7a!important;box-shadow:0 0 0 3px #ff9a7a33,0 4px 16px #c4513f12!important}
.xc-ov{contain:layout paint;overscroll-behavior:contain}
html.kb .xc-chips{padding-top:2px;padding-bottom:2px}

/* 新版149：孟德小翅大頭貼換成新 Logo（翅膀愛心） */
.xc-av,.xc-hav b,.gw-oav2{background:url(/mark-w.svg) center/60% no-repeat,linear-gradient(135deg,#ff9a7a,#f0607a)!important;font-size:0!important}
