
/* messages */
.page-messages .layout-main{max-width:100%}.chat{display:grid;grid-template-columns:300px 1fr;height:calc(100vh - 140px);min-height:420px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-card);overflow:hidden}.chat-list{border-right:1px solid var(--line);overflow-y:auto}.chat-list-head{padding:12px 16px;border-bottom:1px solid var(--line)}.chat-list-head h3{margin:0}.chat-item{display:flex;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.chat-item:hover,.chat-item.active{background:var(--bg-soft)}.chat-item-main{flex:1;min-width:0}.chat-item-top{display:flex;justify-content:space-between;gap:8px}.chat-item-top time{color:var(--text-muted);font-size:var(--font-size-xs);white-space:nowrap}.chat-item-last{color:var(--text-muted);font-size:var(--font-size-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item.unread .chat-item-last{color:var(--text);font-weight:600}.chat-item.unread b::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--brand);margin-left:6px;vertical-align:middle}.chat-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}.chat-head-tools{margin-left:auto;display:flex;gap:6px}.chat-back{display:none;color:inherit}.chat-log{flex:1;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:4px}.chat-day{text-align:center;margin:10px 0 4px;color:var(--text-muted);font-size:var(--font-size-xs)}.chat-msg{display:flex}.chat-msg.me{justify-content:flex-end}.bubble{max-width:75%;padding:8px 12px;border-radius:18px;background:var(--bg-soft);line-height:1.4}.chat-msg.me .bubble{background:var(--brand);color:#fff}.chat-msg.me .bubble a{color:#fff;text-decoration:underline}.bubble .post-content{display:inline}.bubble .post-content p{display:inline;margin:0}.bubble .post-content p+p::before{content:"\A";white-space:pre}.bubble time{display:inline-block;font-size:10px;opacity:.7;margin-left:8px;vertical-align:bottom}.chat-input{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--line);align-items:flex-end}.chat-input textarea{flex:1;resize:none;min-height:38px;max-height:140px}.chat-empty{padding:40px 20px;text-align:center}.chat-none .chat-empty{margin:auto}.messages-btn{position:relative}@media (max-width:760px){.chat{grid-template-columns:1fr;height:calc(100vh - 110px)}.chat-open .chat-list{display:none}.chat:not(.chat-open) .chat-pane{display:none}.chat-back{display:inline-flex}.bubble{max-width:88%}}

/* poll */
.poll-box{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel-2);padding:14px;margin:14px 0}.poll-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.poll-head b{font-size:var(--font-size-md)}.poll-head svg{width:16px;height:16px;color:var(--brand)}.poll-tag{font-size:var(--font-size-xs);color:var(--text-muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px}.poll-tag.poll-over{color:var(--text);border-color:var(--text-muted)}.poll-list{list-style:none;margin:0;padding:0}.poll-row{position:relative;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);overflow:hidden}.poll-row+.poll-row{margin-top:6px}.poll-fill{position:absolute;inset-inline-start:0;top:0;bottom:0;background:var(--brand);opacity:.14}.poll-pick{position:relative;display:flex;align-items:center;gap:8px;flex:1;cursor:pointer;margin:0}.poll-pick input{margin:0}.poll-label{position:relative;flex:1;display:flex;align-items:center;gap:6px}.poll-label.poll-mine{font-weight:600}.poll-label svg{width:14px;height:14px;color:var(--success)}.poll-num{position:relative;color:var(--text-muted);font-size:var(--font-size-sm);font-variant-numeric:tabular-nums;white-space:nowrap}.poll-voters{position:relative;display:flex;align-items:center;gap:2px}.poll-voters img{width:20px;height:20px;border-radius:50%;border:1px solid var(--panel)}.poll-more{color:var(--text-muted);font-size:var(--font-size-xs);margin-inline-start:2px}.poll-actions{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.poll-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;color:var(--text-muted);font-size:var(--font-size-xs)}.poll-links{display:flex;gap:12px;margin-inline-start:auto;flex-wrap:wrap}.poll-links form{display:inline}.poll-links .danger{color:var(--danger,#d64545)}.poll-chip{display:inline-flex;align-items:center;gap:3px;margin-inline-start:6px;font-size:var(--font-size-xs);color:var(--brand);vertical-align:middle}.poll-chip svg{width:12px;height:12px}.poll-chip-over{color:var(--text-muted)}.poll-composer{border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:12px;background:var(--panel-2)}.poll-composer summary{cursor:pointer;display:flex;align-items:center;gap:6px;font-weight:600}.poll-composer summary svg{width:15px;height:15px;color:var(--brand)}.poll-composer[open] summary{margin-bottom:10px}.poll-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 14px}.poll-locked{border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;background:var(--panel-2)}
