.buddha-panel{--paper:#fbf5ea;--paper-deep:#f4ead8;--field:#fffdf8;--field-edge:#8a8296;--rule:#e4d6ba;--ink:#3a3550;--ink-soft:#6b6480;--member:#ebe5f6;--accent:#ffd98a;--button:#3a355012;--button-hover:#3a355021;--shadow:0 18px 50px #3a35503d, 0 2px 8px #3a35501f;--tap:48px;z-index:2;top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));box-sizing:border-box;background:var(--paper);width:min(420px,40vw);box-shadow:var(--shadow);color:var(--ink);border-radius:28px;flex-direction:column;font-size:16px;animation:.45s both buddha-panel-arrives;display:flex;position:fixed;overflow:hidden}.buddha-panel[hidden]{display:none}.buddha-panel:focus{outline:none}@keyframes buddha-panel-arrives{0%{opacity:0;transform:translate(28px)}}.buddha-head{border-bottom:1px solid var(--rule);align-items:center;gap:6px;padding:12px 12px 10px 18px;display:flex}.buddha-portrait{width:44px;height:44px;margin-right:auto}.buddha-keeping{background:var(--button);border-radius:14px;flex:none;place-items:center;width:0;height:44px;display:grid}.buddha-keeping:not(:empty){width:44px;margin-right:2px}.buddha-keeping img{width:32px;height:32px;display:block}.buddha-panel button{width:var(--tap);height:var(--tap);background:var(--button);color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;border:0;border-radius:999px;flex:none;place-items:center;padding:0;font-size:13px;transition:background-color .2s,opacity .2s;display:grid}.buddha-panel button img{pointer-events:none;-webkit-user-select:none;user-select:none;width:30px;height:30px;display:block}.buddha-panel button:hover:not(:disabled){background:var(--button-hover)}.buddha-panel button:disabled{cursor:default;opacity:.38}.buddha-panel button:focus-visible,.buddha-lines:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.buddha-lines:focus-visible{outline-offset:-3px}.buddha-field:focus-visible{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);outline:none}.buddha-lines{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--rule) transparent;flex-direction:column;flex:1;min-height:0;padding:10px 20px 14px;display:flex;position:relative;overflow-y:auto}.buddha-lines:before{content:"";flex:1}.buddha-line{margin:0;transition:color .4s,border-color .4s}.buddha-line.is-arriving{animation:.55s both buddha-line-arrives}@keyframes buddha-line-arrives{0%{opacity:0;transform:translateY(6px)}}.buddha-speaker{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.buddha-line.from-buddha{border-left:3px solid var(--accent);letter-spacing:.02em;white-space:pre-line;overflow-wrap:anywhere;margin:14px 26px 14px 0;padding:2px 0 2px 16px;font-family:Songti TC,Noto Serif TC,Noto Serif CJK TC,Source Han Serif TC,PMingLiU,serif;font-size:18px;line-height:1.9}.buddha-line+.buddha-line.is-greeting{margin-top:44px}.buddha-line.from-buddha.is-smile img{width:68px;height:68px;margin:4px 0;display:block}.buddha-line.from-member{background:var(--member);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:20px 20px 6px;align-self:flex-end;max-width:86%;margin:8px 0;padding:10px 15px;line-height:1.65}.buddha-tail:empty{display:none}.buddha-tail.is-listening{border-left:3px solid var(--accent);margin:14px 26px 14px 0;padding:2px 0 2px 16px}.buddha-tail.is-listening img{transform-origin:50% 80%;width:46px;height:46px;animation:3.6s ease-in-out infinite buddha-lotus-breathes;display:block}@keyframes buddha-lotus-breathes{0%,to{opacity:.75;transform:scale(.9)}50%{opacity:1;transform:scale(1.06)}}.buddha-tail.is-undelivered{justify-content:flex-end;align-items:center;gap:10px;padding:2px 0 8px;animation:.55s both buddha-line-arrives;display:flex}.buddha-tail.is-undelivered>img{box-sizing:border-box;width:var(--tap);height:var(--tap);background:var(--button);border-radius:14px;padding:4px}.buddha-tail.is-asking{animation:.55s both buddha-line-arrives}.buddha-answers{justify-content:center;align-items:center;gap:28px;padding:4px 0 12px;display:flex}.buddha-panel .buddha-answers button{background:0 0;width:52px;height:52px}.buddha-panel .buddha-answers button img{width:44px;height:44px}.buddha-panel .buddha-answers button.is-default{width:64px;height:64px}.buddha-panel .buddha-answers button.is-default img{width:58px;height:58px}.buddha-lines.is-asking>.buddha-line{border-left-color:var(--rule);color:var(--ink-soft)}.buddha-lines.is-asking>.buddha-line img{opacity:.6}.buddha-say{border-top:1px solid var(--rule);background:var(--paper-deep);align-items:flex-end;gap:8px;padding:10px 12px 12px;display:flex;position:relative}.buddha-field{min-width:0;min-height:var(--tap);max-height:min(9.5em, calc(var(--view-height,100dvh) * .25));box-sizing:border-box;border:2px solid var(--field-edge);background:var(--field);color:var(--ink);font:inherit;resize:none;border-radius:24px;flex:1;margin:0;padding:11px 16px;font-size:17px;line-height:1.45}.buddha-field:disabled{opacity:.5}.buddha-brush{opacity:.5;pointer-events:none;width:26px;height:26px;transition:opacity .2s;position:absolute;bottom:22px;left:24px}.buddha-say.has-words .buddha-brush{opacity:0}.buddha-panel .buddha-send{background:var(--accent)}.buddha-panel .buddha-send:hover:not(:disabled){background:#ffcf6b}.buddha-panel .buddha-send:disabled{background:var(--button)}.buddha-panel .icon-fallback{padding:0 6px;font-size:13px;line-height:1.3}@media (width<=720px),(height<=500px){.buddha-panel{--sheet:min(calc(var(--view-height,100dvh) - 8px), max(calc(var(--view-height,100dvh) * .58), min(calc(var(--view-height,100dvh) - 150px), 440px), 330px));top:calc(var(--view-top,0px) + var(--view-height,100dvh) - var(--sheet));width:auto;height:var(--sheet);border-radius:28px 28px 0 0;animation-name:buddha-panel-rises;bottom:auto;left:0;right:0}.buddha-panel.is-typing{--sheet:calc(var(--view-height,100dvh) - 8px)}.buddha-panel.is-typing .buddha-head{padding-top:6px;padding-bottom:6px}.buddha-say{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.buddha-panel.is-typing .buddha-say{padding-bottom:12px}.buddha-lines{padding:8px 16px 12px}}@media (height<=500px){.buddha-head{padding-top:6px;padding-bottom:6px}}@keyframes buddha-panel-rises{0%{opacity:0;transform:translateY(28px)}}@media (prefers-color-scheme:dark){.buddha-panel{--paper:#2b2539;--paper-deep:#241f31;--field:#332c44;--field-edge:#8a80ab;--rule:#463e5e;--ink:#f3ecdd;--ink-soft:#bdb4cf;--member:#40385a;--accent:#e8c27a;--button:#b9aec9;--button-hover:#cfc6dc;--shadow:0 18px 50px #00000073, 0 2px 8px #0000004d}.buddha-panel .buddha-send:hover:not(:disabled){background:#f3d394}.buddha-brush{filter:invert(.85)hue-rotate(180deg)}}@media (forced-colors:active){.buddha-panel button,.buddha-keeping:not(:empty),.buddha-tail.is-undelivered>img{forced-color-adjust:none;background:#fff;border:2px solid buttontext}.buddha-panel button:disabled{border-color:graytext}.buddha-line.from-member{border:1px solid canvastext}.buddha-field:focus-visible{outline:2px solid highlight}}@media (prefers-reduced-motion:reduce){.buddha-panel,.buddha-line.is-arriving,.buddha-tail.is-undelivered,.buddha-tail.is-asking{animation:none}.buddha-tail.is-listening img{opacity:.9;animation:none}.buddha-line,.buddha-panel button,.buddha-brush{transition:none}}
