* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { --bg: #0f1117; --card: #181b24; --line: #262a36; --text: #e8eaf0; --dim: #8a90a0; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Manrope, system-ui, sans-serif; }
header { position: sticky; top: 0; z-index: 5; background: rgba(15,17,23,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 16px 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.logo { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--dim); font-weight: 600; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
.round { font-size: 13px; color: var(--dim); text-align: right; }
.round b { color: var(--text); }
.steps { display: flex; gap: 4px; max-width: 1100px; margin: 10px auto 0; }
.steps div { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; }
.steps div.done { background: #4f8cff; } .steps div.cur { background: linear-gradient(90deg, #4f8cff, #b26bff); animation: glow 1.5s infinite alternate; }
@keyframes glow { to { opacity: .5; } }
.team { display: flex; gap: 8px; overflow-x: auto; max-width: 1100px; margin: 10px auto 0; padding-bottom: 2px; scrollbar-width: none; }
.member { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px 6px 6px; min-width: 180px; flex: 1; }
.member img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--c); }
.member b { display: block; font-size: 13px; } .member small { display: block; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.member.typing small::before { content: "● "; color: var(--c); animation: glow .8s infinite alternate; }
nav { display: flex; gap: 4px; max-width: 1100px; margin: 10px auto 0; overflow-x: auto; scrollbar-width: none; }
nav button { background: none; border: 0; color: var(--dim); font: 700 14px Manrope, sans-serif; padding: 10px 12px; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
nav button.on { color: var(--text); border-color: #b26bff; }
nav i { font-style: normal; background: var(--line); border-radius: 8px; padding: 0 6px; font-size: 11px; }
main { max-width: 1100px; margin: 0 auto; padding: 14px 16px 80px; }
.tab { display: none; } .tab.on { display: block; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px; font: 600 12px Manrope; cursor: pointer; }
.filters button.off { opacity: .35; }
.msg { display: flex; gap: 10px; margin: 0 0 12px; animation: inn .35s ease-out; }
@keyframes inn { from { opacity: 0; transform: translateY(6px); } }
.msg img.av { width: 36px; height: 36px; border-radius: 50%; flex: none; border: 2px solid var(--c); }
.msg .b { background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 8px 12px; max-width: 760px; min-width: 0; }
.msg .h { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.msg .h b { color: var(--c); font-size: 13px; }
.msg .t { white-space: pre-wrap; word-wrap: break-word; }
.msg.thought .b { background: transparent; border-style: dashed; }
.msg.thought .t { color: #b7bccb; font-style: italic; }
.msg.decision .b { border-color: #2fbf71; background: rgba(47,191,113,.08); }
.msg.vote .b { border-color: #ffb020; background: rgba(255,176,32,.06); }
.msg.question .b { border-color: #4f8cff; }
.msg.host .b { background: #1e2230; border-color: #39405a; }
.badge { font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--line); color: var(--text); }
.msg .att { margin-top: 8px; }
.msg .att img { max-width: min(100%, 420px); max-height: 420px; border-radius: 10px; cursor: zoom-in; display: block; background: #fff1; }
.msg a, .md a { color: #8fb3ff; }
.doccard { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; background: #22273a; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; }
#toBottom { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #4f8cff; color: #fff; border: 0; border-radius: 20px; padding: 8px 16px; font: 700 13px Manrope; cursor: pointer; }
.doclist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.doclist button { background: var(--card); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 8px 12px; font: 600 13px Manrope; cursor: pointer; text-align: left; }
.doclist button.on { background: #232838; }
.doclist small { display: block; color: var(--dim); font-size: 11px; }
.md { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px 18px; }
.md:empty { display: none; }
.md h1 { font-size: 24px; } .md h2 { font-size: 19px; margin-top: 26px; } .md h3 { font-size: 16px; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.md td, .md th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.md img { max-width: 100%; border-radius: 10px; }
.md code { background: #252a38; padding: 1px 5px; border-radius: 5px; }
.md blockquote { border-left: 3px solid #b26bff; margin: 0; padding: 2px 14px; color: #c5c9d6; }
.gallery { columns: 3 260px; column-gap: 12px; }
.gallery figure { break-inside: avoid; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery img, .gallery object { width: 100%; display: block; cursor: zoom-in; background: repeating-conic-gradient(#20242f 0 25%, #1a1d26 0 50%) 0 0 / 16px 16px; }
.gallery figcaption { padding: 8px 10px; font-size: 12px; color: var(--dim); }
.gallery figcaption b { color: var(--c); }
#protoBox { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: 390px; max-width: 100%; height: 800px; border: 10px solid #2a2f3d; border-radius: 42px; overflow: hidden; background: #000; }
.phone iframe { width: 100%; height: 100%; border: 0; }
.empty { color: var(--dim); text-align: center; padding: 40px 10px; }
#zoom { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 20; display: grid; place-items: center; cursor: zoom-out; }
#zoom img { max-width: 94vw; max-height: 92vh; border-radius: 10px; background: #fff1; }
@media (max-width: 600px) { .member { min-width: 150px; } .round { max-width: 45vw; } }
