:root,:host{color-scheme:dark;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;color:#eef5fa;background:#12212b}*{box-sizing:border-box}body,p{margin:0}.widget{display:flex;height:100dvh;flex-direction:column;background:radial-gradient(ellipse at 95% 13%,#30445454,transparent 58%),#111f29}
.topic{padding:12px 16px 9px;color:#cbd7df;border-bottom:1px solid #91abba24}.topic span{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topic p{font-size:12px;color:#aebfc9;margin-top:2px}
.scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:18px 14px;background:radial-gradient(ellipse at 0% 100%,#31536638,transparent 72%)}
.welcome,.bubble{width:fit-content;max-width:86%;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 13px;border-radius:14px 14px 14px 4px;background:linear-gradient(135deg,#2a404d,#223542);border:1px solid #6e89994f;margin:0 0 9px;color:#eef4f7;font-size:14px;line-height:1.45}
.welcome{color:#dfeaf0}.scroll:has(.bubble) .welcome{display:none}.bubble.mine{margin-left:auto;border-radius:14px 14px 4px 14px;background:#39403f;border-color:#d2b1875e}.bubble small{display:block;margin-top:3px;color:#b4c4ce;font-size:10px}.bubble.mine small{color:#d3c7b3}.bubble img{display:block;max-width:100%;max-height:150px;border-radius:8px}
#compose{flex:none;padding:9px 12px 5px;border-top:1px solid #8ba7b827;background:#14232e}.inputBox{border:1px solid #647d8c99;border-radius:14px;background:#0e1d27;box-shadow:inset 0 1px 4px #0003}.inputBox:focus-within{border-color:#c8a77e}.actions,#preview,.foot{display:flex;align-items:center;gap:8px}.actions{justify-content:space-between;padding:0 6px 6px}textarea{display:block;resize:none;width:100%;height:54px;border:0;outline:0;border-radius:14px;background:transparent;color:#f4f7fa;font:inherit;font-size:16px;padding:9px 11px}textarea::placeholder{color:#abbecb}
button,#attach{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;border-radius:10px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}button:disabled{opacity:.65}
#send{margin-left:auto;padding:0 13px;color:#21303b;font-weight:700;border:1px solid #f5d5ac;background:linear-gradient(160deg,#ffe2b6,#e6b888);box-shadow:inset 0 1px #fff9,0 2px #835d42}
#attach{position:relative;padding:0 8px;color:#dae5ec;font-size:13px}#attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}
:focus-visible,#attach:focus-within{outline:2px solid #f0ca9a;outline-offset:2px}textarea:focus{outline:none}#preview{padding-bottom:6px}#preview img{max-width:60px;max-height:45px;border-radius:6px}#remove{color:#dbe4eb;background:#243945;border:1px solid #586e7a}.foot{justify-content:space-between;padding:4px 2px 1px;color:#aabbc8;font-size:10px}.foot a{color:inherit}#status:not(:empty){font-size:12px;padding:2px 14px 5px;color:#f5d2a6}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}[hidden]{display:none!important}
@media(max-height:310px){.topic{padding:3px 12px}.topic p{display:none}.scroll{padding:6px 10px}#compose{padding-top:4px}textarea{height:36px}.actions{padding-bottom:4px}.foot{padding-block:1px}}

.standalone{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#293d4b,#0c1821 70%);padding:12px}
.standalone .widget{width:min(100%,410px);height:min(580px,calc(100dvh - 24px));overflow:hidden;border:1px solid #8296a4;border-radius:20px;box-shadow:0 20px 65px #030c1770}
.standHead{display:flex;align-items:center;gap:11px;padding:14px 16px;background:linear-gradient(118deg,#293f4d,#172b37);border-bottom:1px solid #60778680}
.standHead strong,.standHead small{display:block}.standHead small{color:#bdccd4;font-size:11px}.standHead a{margin-left:auto;color:#e8c59c;font-size:13px;padding:8px}
.standMark{display:grid;place-items:center;width:38px;height:40px;border-radius:10px;border:1px solid #89a2b1;background:linear-gradient(145deg,#475f6b,#142631);color:#f3cb98;font-size:22px}

:host{display:block;height:100%;min-height:0;text-align:left}:host .widget{height:100%;min-height:0}
