/* V4 requirements: language filters, Explore circles, profile history, progress and stories */
.th4-languages{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}.th4-language-chip{border:1px solid #bbd6f1;background:#fff;color:#155084;border-radius:99px;font:700 12px inherit;padding:8px 12px;cursor:pointer}.th4-language-chip.selected{background:#1168bc;color:white}.room-card{position:relative}.room-card .th4-info{position:absolute;right:15px;top:15px;border:1px solid #c8d9ed;background:#f3f8ff;border-radius:50%;width:28px;height:28px;font-size:16px;cursor:pointer;color:#1c659e}.room-card .stack{padding-right:28px}.th4-participants{display:flex;gap:10px;flex-wrap:wrap;align-items:start;margin:17px 0}.th4-participant{width:61px;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;color:#26445c;cursor:pointer;padding:0}.th4-participant:disabled{cursor:default}.th4-circle{height:50px;width:50px;border-radius:50%;overflow:hidden;border:2px solid #c1dcfa;background:#e5f1fd;display:grid;place-items:center;font-weight:800;color:#1661a4}.th4-circle img{width:100%;height:100%;object-fit:cover}.th4-circle.empty{border-style:dashed;background:transparent;color:#a7b4c4}.th4-participant small{max-width:61px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.th4-participant .th4-count{font-size:9px;color:#7994aa}.th4-history{padding:35px 0 75px;min-height:65vh}.th4-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.th4-heading h1{font-size:clamp(28px,4vw,42px);margin:6px 0}.th4-heading p{color:#64788c}.th4-eyebrow{font-size:11px;color:#217ba5;letter-spacing:1px;text-transform:uppercase;font-weight:800}.th4-tabs{display:flex;gap:9px;margin:28px 0}.th4-tabs button{border:1px solid #cadaed;border-radius:10px;padding:12px 17px;background:#fff;color:#1c4772;font-weight:800;cursor:pointer}.th4-tabs button.active{background:#102f58;color:white}.th4-premium{background:#ffedd0;color:#99510c;font-size:10px;padding:4px 6px;border-radius:7px}.th4-locked{background:#fff;border:1px solid #dce6f4;border-radius:16px;padding:40px;text-align:center}.th4-history-meta{font-size:12px;line-height:1.7;color:#607991}.th4-history-avatars{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.th4-history-avatars span{width:32px;height:32px;border-radius:50%;background:#edf7ff;display:grid;place-items:center;overflow:hidden}.th4-history-avatars img{height:100%;width:100%;object-fit:cover}.th4-progress{height:12px;border-radius:20px;background:#e6f1fb;overflow:hidden}.th4-progress>div{height:100%;border-radius:20px;background:linear-gradient(90deg,#2a99db,#47d4af);transition:width .3s}.th4-story{border:1px solid #dae7f3;border-radius:12px;margin:14px 0;padding:9px}.th4-story img{width:100%;max-height:200px;object-fit:contain;border-radius:8px}.th4-story p{font-size:11px;color:#5f788c}.th4-participant:hover .th4-circle{outline:2px solid #40a7e9;outline-offset:2px}@media(max-width:650px){.th4-participants{gap:5px}.th4-participant{width:53px}.th4-circle{height:43px;width:43px}.th4-heading{align-items:start}.th4-tabs button{padding:9px}}
.th4-newfollow{background:#ffdd90;color:#82500b;border-radius:9px;padding:4px;font-weight:800;font-size:9px}.thf-row .thf-mini{font-size:9px;padding:4px 6px}

.th4-voice-timeline{margin-top:16px;padding:12px;background:#f1f7ff;border-radius:12px}.th4-voice-timeline>strong{display:block;font-size:11px;margin-bottom:8px}.th4-voice-line{display:grid;grid-template-columns:60px 1fr 35px;align-items:center;gap:5px;margin:5px 0}.th4-voice-line>span:first-child{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.th4-voice-track{height:9px;border-radius:20px;background:#dce7f5;position:relative;overflow:hidden}.th4-voice-track i{position:absolute;display:block;top:0;bottom:0;background:#2588e4;border-radius:6px}.th4-voice-line small{font-size:10px;text-align:right}

.th4-modal-backdrop{position:fixed;inset:0;background:#06152ccf;display:grid;place-items:center;padding:18px;z-index:9000}.th4-modal{position:relative;width:min(440px,100%);max-height:85vh;overflow:auto;background:white;border-radius:18px;padding:26px;color:#102d50;box-shadow:0 20px 80px #05132c4d}.th4-modal h3{font-size:21px;margin:0 0 15px}.th4-modal h4{margin:18px 0 9px}.th4-modal p{color:#48647f;font-size:13px;line-height:1.6}.th4-modal-close{position:absolute;top:15px;right:15px;border:0;background:#edf4fc;border-radius:7px;padding:8px 11px;cursor:pointer}.th4-modal-avatar{width:65px;height:65px;border-radius:50%;object-fit:cover}.th4-modal-people{display:grid;gap:7px;max-height:170px;overflow:auto}.th4-modal-people div{display:flex;align-items:center;gap:9px;padding:6px;background:#f4f8fd;border-radius:8px;font-size:12px}.th4-modal-people img{width:28px;height:28px;border-radius:50%;object-fit:cover}

/* ---- History: Members History timeline (client reference: Free4Talk room tracker) ---- */
.th4-hist-card{display:flex;flex-direction:column;gap:8px}
.th4-tag-level{background:#f2eaff;color:#7543ce}.th4-tag-host{background:#fff3d6;color:#8a5a00}.th4-tag-guest{background:#e6f6ee;color:#17734a}
.th4-hist-avatar{width:28px;height:28px;border-radius:50%;background:#d9e8fb;color:#27507f;display:inline-grid;place-items:center;font:800 12px sans-serif;overflow:hidden;flex:none}
.th4-hist-avatar img{width:100%;height:100%;object-fit:cover}
.th4-history-avatars{display:flex;gap:-6px}.th4-history-avatars .th4-hist-avatar{margin-right:-6px;border:2px solid #fff}
.th4-mh-toggle{align-self:flex-start;margin-top:4px}
.th4-members-history{margin-top:6px;padding:12px;background:#f4f8ff;border:1px solid #dbe8f8;border-radius:12px}
.th4-mh-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}.th4-mh-head strong{font-size:12px;color:#173754}.th4-mh-head small{font-size:10px;color:#61809e}
.th4-mh-legend{display:flex;gap:14px;font-size:10px;color:#61809e;margin-bottom:8px}.th4-mh-legend i{display:inline-block;width:14px;height:6px;border-radius:4px;vertical-align:middle;margin-right:4px}
.th4-mh-legend i.present{background:#3b82f6;opacity:.45}.th4-mh-legend i.speak{background:#1d4ed8;height:9px}
.th4-mh-row{display:grid;grid-template-columns:minmax(70px,26%) 1fr 64px;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #e3edf9}
.th4-mh-user{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;font-weight:700;color:#173754}.th4-mh-user span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th4-mh-track{position:relative;height:14px;background:#e6eef9;border-radius:8px;overflow:hidden}
.th4-mh-track i{position:absolute;top:50%;transform:translateY(-50%);border-radius:6px}
.th4-mh-present{height:6px;opacity:.5}.th4-mh-speak{height:12px;background:#1d4ed8;box-shadow:0 0 0 1px #fff inset}
.th4-mh-dur{text-align:right;font-size:11px;color:#173754;line-height:1.2}.th4-mh-dur small{display:block;color:#61809e;font-size:9px}
@media(max-width:520px){.th4-mh-row{grid-template-columns:1fr 56px}.th4-mh-user{grid-column:1/-1}}

/* Badge on Room Explore circles */
.th4-circle{position:relative}
.th4-badge-chip{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:12px;box-shadow:0 1px 4px #0003;line-height:1}
