.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow: hidden; animation: pop 380ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: border-color 160ms ease; }
.item:hover { border-color: var(--line-3); }
.item.open { border-color: rgba(var(--accent-rgb), 0.45); }
.item-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.item-ico { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.item-ico svg { width: 19px; height: 19px; }
.item-t { flex: 1; min-width: 0; }
.item-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 800; }
.item-t small { display: block; color: var(--muted); font-size: 12.5px; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 200ms ease; margin: 0 4px 3px; }
.item.open .chev { transform: rotate(225deg); margin-bottom: -3px; }
.item-body { display: none; padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.item.open .item-body { display: block; animation: pop 300ms var(--ease) both; }
.item-body dl { display: grid; gap: 14px; margin-top: 16px; }
.kv dt { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.kv dd { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.pre { white-space: pre-line; }
.links { list-style: none; display: grid; gap: 4px; }
.links a { color: var(--accent-text); }
.links a:hover { text-decoration: underline; }
.who { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who code { padding: 2px 8px; border: 1px solid var(--line-3); border-radius: 7px; background: var(--surface-0); font-size: 12.5px; color: var(--accent-soft); }
.pbox { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-0); }
.pbox b { font-size: 14.5px; }
.pbox small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.reply { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--ok); border-radius: 0 12px 12px 0; background: rgba(95, 174, 126, 0.08); }
.reply.wait { border-left-color: var(--warn); background: rgba(224, 168, 74, 0.07); }
.reply b { display: block; margin-bottom: 4px; font-size: 13px; }
.reply p { color: #c3ccd8; font-size: 14px; line-height: 1.6; white-space: pre-line; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; border: 1px dashed var(--line-3); border-radius: 18px; text-align: center; }
.empty svg { width: 40px; height: 40px; color: var(--muted); opacity: 0.6; }
.empty b { font-size: 16px; }
.empty p { max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 200px; color: var(--muted); font-size: 14px; }
.loading i { width: 22px; height: 22px; border: 2px solid rgba(var(--accent-rgb), 0.22); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: background 140ms ease, color 140ms ease, border-color 140ms ease; }
.tab:hover { color: var(--text); background: rgba(var(--accent-rgb), 0.08); }
.tab.on { background: rgba(var(--accent-rgb), 0.15); border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent-soft); }
.tab i { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 12px; font-weight: 800; text-align: center; }
.tab i[hidden] { display: none; }
.tabs-act { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 520px) { .item-head { padding: 12px 14px; gap: 10px; } .item-head .chip { display: none; } .tabs-act { width: 100%; margin-left: 0; } .tabs-act .btn { flex: 1; } }
