:root{font:15px/1.45 system-ui,sans-serif;color:#242a31;background:#e8e9eb;--orange:#b94d00;--line:#e2d9d0;--dark:#222529}
*{box-sizing:border-box}body{margin:0}a{color:#97410c}button,input,select{font:inherit}button,select,input:not([type=checkbox]){border:1px solid #d9cec2;border-radius:7px;background:white;padding:8px 11px;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:2px}[hidden]{display:none!important}
.voice-header{background:#fff;border-bottom:4px solid var(--orange);display:flex;align-items:center;justify-content:space-between;padding:12px max(16px,calc((100% - 1120px)/2));gap:12px}.voice-header > a:first-child img{display:block;width:174px;max-height:56px;object-fit:contain}main{max-width:1150px;margin:auto;padding:20px 15px 36px}h1{margin:0 0 14px;font-size:28px}h2{font-size:17px;margin:0 0 12px}.selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:630px}label{display:grid;gap:4px}select,input{min-width:0;width:100%}.actions,.audio{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions{margin-top:10px}.primary{display:inline-block;color:white;background:var(--orange);border-color:var(--orange);text-decoration:none;padding:8px 12px;border-radius:7px}#status{min-height:1.45em;margin:8px 0;color:#8d3500}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,245px);gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.stage{position:relative;width:100%;max-width:620px;aspect-ratio:1;justify-self:center;background:radial-gradient(circle,#fff,#f4efe9);overflow:hidden}.table{position:absolute;inset:30%;border-radius:50%;background:#fff;border:4px solid #c35b18;box-shadow:0 0 0 6px #302923,0 12px 25px #3c250d38;display:grid;align-content:center;justify-items:center;gap:4px}.table img{width:80%;max-height:55px;object-fit:contain}.table span{font-size:clamp(10px,2.7vw,14px);font-weight:650;text-align:center}
.seat{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:17%;max-width:92px;display:grid;justify-items:center;gap:3px;padding:3px!important;border:0!important;background:transparent!important;font-size:clamp(9px,2.4vw,13px);line-height:1.2}.seat:disabled{opacity:1}.seat-name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:clamp(30px,8vw,56px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:white;border:2px solid #fff;box-shadow:0 0 0 1px #bfa78e;font-weight:700;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.empty .avatar{background:#f1e7dc;color:#844314;border:1px dashed #b68b67}.speaking .avatar{box-shadow:0 0 0 3px #64dab3}.sidebar ul{padding:0;list-style:none}.sidebar li{display:flex;align-items:center;gap:9px;margin:8px 0;overflow-wrap:anywhere}.sidebar .avatar{width:31px;flex:none}.audio{margin-top:14px}.audio label{display:flex;align-items:center;white-space:nowrap}.audio input{width:auto}.audio p{flex-basis:100%;margin:0}#hold{touch-action:none}dialog{width:min(400px,calc(100% - 26px));border:1px solid var(--line);border-radius:12px;padding:20px}dialog::backdrop{background:#24252980}dialog label{margin-bottom:10px}.gate{max-width:540px}
@media(max-width:640px){main{padding:12px 9px 25px}.voice-header{padding:8px 12px}.voice-header > a:first-child img{width:128px}h1{font-size:22px;margin-bottom:8px}.layout{grid-template-columns:1fr;gap:9px}.selectors{gap:7px}.table{border-width:2px;box-shadow:0 0 0 3px #302923}.actions{gap:5px}}
.voice-brand{display:block;width:174px;height:46px;overflow:hidden}
.voice-brand img,.voice-header .voice-brand img,.table .voice-brand img{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.voice-brand-sheet img,.voice-header .voice-brand-sheet img,.table .voice-brand-sheet img{height:auto;object-fit:initial}
.table .voice-brand{width:80%;height:auto;aspect-ratio:3.2}
.forum-link,.secondary{border:1px solid var(--line);border-radius:7px;padding:8px 12px;text-decoration:none;background:#fff;white-space:nowrap}
.voice-cta{display:flex;gap:8px;flex-wrap:wrap}
.demo-room{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;background:#252629;color:#fff;border-radius:10px;margin-bottom:10px}
.demo-tag{font-size:11px;font-weight:700;letter-spacing:.1em;color:#984208}.demo-room .demo-tag{color:#f4b383}.demo-room h2{margin:2px 0 0}.room-open{font-size:12px;color:#d3f0df;border:1px solid #63756b;padding:4px 8px;border-radius:20px;white-space:nowrap}
.demo-layout{grid-template-columns:minmax(0,1fr) minmax(220px,300px);align-items:start}.demo-layout .stage{max-width:470px}
.demo-layout .seat{text-align:center}.demo-layout .seat small{color:#276852;font-size:10px}.demo-details h2{display:flex;align-items:center;gap:8px}.demo-number{font-size:12px;background:#f4e9db;color:#873b07;border-radius:20px;padding:2px 8px}
.demo-list{list-style:none;margin:0;padding:0}.demo-list li{display:flex;align-items:center;gap:8px;padding:6px 0}.demo-list .avatar{width:32px}.demo-list small{margin-left:auto;background:#f8ecdf;color:#824214;border-radius:5px;padding:3px 5px}
.demo-help{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.demo-help ol{padding-left:20px}.demo-help li+li{margin-top:8px}.demo-help p{margin-bottom:0;color:#575d64;font-size:13px}
@media(max-width:640px){.voice-brand{width:144px;height:38px}.demo-layout{grid-template-columns:1fr}}
.table .voice-brand{aspect-ratio:3.7}
.directory-search{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 20px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}
.directory-search .voice-cta{margin-left:auto}.directory-search label{flex:1 1 130px;max-width:340px;font-weight:650}.directory-group{margin-bottom:24px}.directory-group-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.directory-group-head h2{display:inline;margin-right:10px}.directory-group-head small{display:block;color:#555c63}.open-community{font-size:12px;padding:4px 7px}
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.room-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;color:#292b31;text-decoration:none;min-height:142px;overflow-wrap:anywhere}.room-card:hover{border-color:#b94d00;background:#fffaf5}.room-icon{background:#f6e9dc;color:#9b4407;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;font-size:20px}.room-card span:not(.room-icon){font-size:13px}.room-open-link{color:#984208}.demo-text{margin-top:15px}.legacy-control{display:none!important}
.community-view{display:grid;grid-template-columns:calc(245px + var(--room-sort-space,0px)) minmax(0,1fr);gap:14px}.community-sidebar h2{margin-top:12px;overflow-wrap:anywhere}.community-sidebar nav{display:grid;gap:5px;margin:10px 0}.community-sidebar nav button{text-align:left;overflow-wrap:anywhere}.community-sidebar details{margin-top:14px}.community-sidebar form{display:grid;gap:6px;margin-top:8px}.community-content{min-width:0}.community-content .layout{grid-template-columns:minmax(0,1fr) minmax(155px,205px)}#chat-messages{min-height:180px;max-height:55vh;overflow:auto}#chat-messages p{margin:0;padding:9px;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}#chat-messages strong{display:block;color:#984208}#chat-form{display:grid;gap:8px;margin-top:12px}#chat-form button{justify-self:start}:is(#chat-body,.description-editor){width:100%;font:inherit}
@media(max-width:750px){.community-view{grid-template-columns:minmax(105px,28%) minmax(0,1fr);gap:7px}.community-sidebar{padding:7px;font-size:12px}.community-sidebar button{width:100%;padding:5px}.community-sidebar h2{font-size:14px}.community-content .layout{grid-template-columns:1fr}.directory-grid{gap:6px}.room-card{padding:8px;min-height:120px}.room-card span:not(.room-icon){font-size:11px}.community-content .seat .avatar{width:clamp(20px,6vw,40px)}}
.community-card{min-height:180px}.community-logo{display:grid;place-items:center;width:64px;height:64px;border-radius:13px;background:#f5e7d9;color:#93420b;font-size:28px;font-weight:700;overflow:hidden}.community-logo img{width:100%;height:100%;object-fit:cover}.community-sidebar nav a{display:block;padding:7px;background:#f8f4ef;border-radius:6px;text-decoration:none;overflow-wrap:anywhere}
@media(max-width:580px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-card{min-height:145px}.community-logo{width:48px;height:48px}}
.community-card{position:relative;padding:18px;gap:8px;min-height:205px;border-radius:14px;box-shadow:0 2px 8px #2a1c0c0b}
.community-card strong{font-size:17px;line-height:1.25}.community-card .room-open-link{margin-top:auto;font-weight:650}
.community-member-count{display:inline-flex;align-items:center;gap:5px;border-radius:20px;background:#f7eee5;color:#813b0b;padding:4px 8px;line-height:1.2}.community-member-count svg{width:15px;height:15px}.community-group-id{color:#62666d}
@media(max-width:580px){.community-card{min-height:175px;padding:12px}.community-card strong{font-size:15px}}
.community-view{align-items:start}.community-banner{grid-column:1/-1;display:flex;align-items:center;gap:12px;background:linear-gradient(115deg,#fff,#fcf5ed);border-top:3px solid var(--orange)}.community-banner h2,.community-banner p{margin:0;overflow-wrap:anywhere}.community-banner h2{font-size:22px}.community-banner p{font-size:13px;color:#575d65}.community-banner .community-logo{flex:none;width:46px;height:46px;font-size:22px}.community-identity{min-width:0;flex:1}
.community-gear{display:inline-flex;align-items:center;gap:6px;color:#8b400c}.community-gear svg{width:19px;height:19px;display:block}.channel-row{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.channel-row button:first-child{width:100%;text-align:left}.channel-row button[aria-current=true]{background:#f8e6d5;border-color:#cd8d56}.channel-empty{text-align:center;padding:clamp(18px,4vw,36px) 12px;background:linear-gradient(160deg,#fff,#fcf7f1)}
.channel-empty h2{font-size:clamp(17px,3vw,24px);margin:10px 0 6px}
.channel-empty p{max-width:45ch;margin:0 auto;line-height:1.6}
.channel-welcome-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f6e9dc}
.channel-welcome-icon svg{width:22px;height:22px}.channel-empty p,#active-room-description,#announcement-note{color:#555e66}#active-room-description:empty{display:none}
#settings-dialog,#room-settings-dialog{width:min(520px,calc(100% - 24px));max-height:85vh}.voice-settings-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.voice-settings-head h2{margin:0}.voice-settings-form{padding:12px 0;border-top:1px solid var(--line)}.voice-settings-form h3{margin:0 0 10px;font-size:15px}.voice-settings-form textarea{font:inherit;width:100%;padding:8px;border:1px solid var(--line);border-radius:7px}.voice-check{display:flex;align-items:center;gap:6px}.voice-check input{width:auto}
@media(max-width:580px){.community-banner{padding:8px;gap:6px}.community-banner h2{font-size:16px}.community-banner .community-logo{width:32px;height:32px}.community-banner button{padding:5px;font-size:12px}.community-gear span{display:none}}
.room-card.community-card{align-items:center;text-align:center;justify-content:center;gap:8px;padding:22px 12px}
.community-card .community-group-id{color:inherit}.community-card .community-logo{border:1px solid #c989532e}
.community-card .room-open-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:6px 0 0;padding:8px 14px;border-radius:9px;background:#9b4309;color:#fff;box-shadow:0 2px 5px #3119012b;transition:background .15s}
.community-card:hover .room-open-link,.community-card:focus-visible .room-open-link{background:#743005}
#settings-dialog{width:min(740px,calc(100% - 24px))}.tayfa-settings-layout{display:grid;grid-template-columns:155px minmax(0,1fr);gap:16px}.tayfa-settings-nav{display:flex;flex-direction:column;align-items:stretch;gap:5px}.tayfa-settings-nav button{text-align:left}.tayfa-settings-nav button[aria-pressed=true]{background:#faeadb;border-color:#cb905f;color:#713005}.voice-settings-form input[type=color]{width:54px;height:36px;padding:3px}.voice-settings-form .voice-check input{width:auto}
@media(max-width:540px){.tayfa-settings-layout{grid-template-columns:1fr;gap:8px}.tayfa-settings-nav{flex-direction:row;flex-wrap:wrap}.tayfa-settings-nav button{flex:1;text-align:center}}
.directory-section{margin-bottom:25px}.directory-section h2{margin-bottom:10px}.directory-hint{color:#545b64}

.community-share{background:#fff2e5;border-color:#e1bf9e}.community-share:hover{background:#fae6d2}.community-share span{display:inline}
.tayfa-logo-settings{display:grid;justify-items:start;gap:7px;margin-bottom:12px}
.tayfa-logo-toggle{display:inline-flex;align-items:center;gap:10px;padding:7px 12px 7px 7px}
.tayfa-logo-toggle:hover,.tayfa-logo-toggle[aria-expanded=true]{background:#fff3e8;border-color:#d8a77b}
.tayfa-logo-toggle .community-logo{width:56px;height:56px}
.tayfa-logo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tayfa-logo-actions small{flex-basis:100%;color:#545b64}
.community-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:5px}
.community-sidebar-head h2{margin:0}
#sidebar-new-room{width:auto;padding:5px 8px;white-space:nowrap;font-size:12px;color:#843707;background:#fff2e5;border-color:#e1bf9e}
#sidebar-new-room:hover{background:#fae6d2}
@media(max-width:540px){#sidebar-new-room{padding:4px;font-size:11px}}
.active-room-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.active-room-heading h2{margin:0;overflow-wrap:anywhere;min-width:0}
#leave{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;color:#bd202b;border-color:#edc5c9;background:#fff1f2}
#leave:hover{background:#ffe0e3;border-color:#dc8f96}
#leave svg{width:22px;height:22px}
#room-participants{margin:0 0 8px;padding:6px 9px;font-size:12px}

.voice-channel-icon{vertical-align:-.2em;color:#984208}

.channel-participants{grid-column:1/-1;list-style:none;margin:0 0 5px;padding:0 4px 0 12px;font-size:12px;color:#3d4842}.channel-participants:empty{display:none}.channel-participants li{padding:3px 0;overflow-wrap:anywhere}.channel-participants li::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#378558;vertical-align:1px}

.channel-row .channel-participants button:first-child{background:none;border:0;padding:3px 0;text-align:left;color:inherit;font:inherit;width:auto;max-width:calc(100% - 14px);overflow-wrap:anywhere}
.channel-participants button:hover,.channel-participants button:focus-visible{text-decoration:underline;color:#984208}
#participant-menu,#channel-menu{position:fixed;inset:auto;margin:0;width:min(235px,calc(100% - 16px));box-sizing:border-box;padding:10px;background:#fff;color:#282b31;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #221a1826}
#participant-menu strong{display:block;padding:4px 6px 8px;overflow-wrap:anywhere}
#participant-menu-actions{display:grid;gap:4px}
#participant-menu-actions button{text-align:left}
#participant-menu-actions .participant-kick{color:#a52626}
#participant-menu-status{margin:6px 0 0;color:#a52626}
#participant-menu-status:empty{display:none}
#participant-menu-identity{display:flex;align-items:center;gap:10px;padding:9px 7px 11px;margin-bottom:5px;border-bottom:1px solid #eadfd4}
#participant-menu-identity .channel-participant-avatar{width:44px;height:44px;min-width:44px;flex:0 0 44px;border-radius:50%;overflow:hidden;font-size:19px}
#participant-menu-identity .channel-participant-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.participant-menu-detail{min-width:0;flex:1;display:grid;gap:4px;text-align:left}
#participant-menu-identity #participant-menu-name{padding:0;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.participant-menu-title{font-size:11px;line-height:1.4;color:#827567;overflow-wrap:anywhere}
.participant-menu-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;color:#8d511e;font-size:10px}
.participant-menu-role,.participant-menu-rank{display:inline-flex;align-items:center;gap:4px;line-height:1.3}
#participant-menu-identity .voice-role-icon{width:18px;height:18px;flex:0 0 18px}
#participant-menu-identity .voice-role-icon :is(img,svg){width:100%;height:100%;object-fit:contain}
#participant-menu-identity .tayfa-rank-badge-mini{width:23px;height:23px}

.role-switch{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:7px 10px;background:#faf8f5;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.role-switch input{position:absolute;right:10px;width:42px;height:24px;margin:0;opacity:0;cursor:pointer}
.role-switch-track{position:relative;flex:0 0 42px;height:24px;border-radius:20px;background:#d6d1cc}
.role-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}
.role-switch input:checked + .role-switch-track{background:var(--orange)}
.role-switch input:checked + .role-switch-track::after{transform:translateX(18px)}
.role-switch input:focus-visible + .role-switch-track{outline:2px solid var(--orange);outline-offset:3px}
.role-switch:has(input:disabled){opacity:.6;cursor:default}

#text-room-view{padding:12px;background:#fff}
#chat-messages{height:clamp(300px,58dvh,680px);max-height:none;background:#faf9f7;border:1px solid var(--line);border-radius:9px}
#chat-messages p{padding:10px 12px}
.chat-composer{border:1px solid var(--line);border-radius:9px;background:#fff}
.chat-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px;background:#f7f3ee;border-bottom:1px solid var(--line);border-radius:9px 9px 0 0}
.chat-toolbar button,.chat-toolbar select{padding:5px 8px}
.chat-toolbar button[aria-pressed=true]{background:#f8e6d5;color:#813902;border-color:#cb905f}
:is(#chat-body,.description-editor){min-height:76px;max-height:180px;overflow:auto;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere}
:is(#chat-body,.description-editor):focus{outline:2px solid var(--orange);outline-offset:-2px;border-radius:0 0 8px 8px}
:is(#chat-body,.description-editor):empty::before{content:attr(data-placeholder);color:#6c6865;pointer-events:none}
:is(#chat-emojis,#description-emojis){max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:10px;padding:8px}
:is(#chat-emojis,#description-emojis) button{font-size:18px;margin:2px}
.chat-submit{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#chat-feedback{color:#a52626}

.channel-participants li{display:flex;align-items:center;gap:6px}
.channel-participants li::before{flex:0 0 7px;margin-right:0}
.channel-participant-avatar{position:relative;display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;overflow:hidden;background:#f1e3d6;color:#803a09;font-size:10px;font-weight:700}
.channel-participant-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.channel-row .channel-participants button:first-child{max-width:calc(100% - 39px)}

#room-description-card{position:relative;margin:6px 0 14px;padding:10px 14px;text-align:center;background:#fbf8f4;border:1px solid var(--line);border-radius:10px}
#text-room-view>#room-description-card{margin:0 0 8px;border-radius:8px}
#active-room-description,#room-description-full{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#active-room-description{margin:0;max-height:3em;overflow:hidden}
#room-description-toggle{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:4px 9px;font-size:12px;color:#984208}
#room-description-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
#room-description-full{position:absolute;z-index:4;top:calc(100% + 4px);left:0;right:0;max-height:45vh;overflow:auto;padding:14px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 22px #221a1826}

:is(#chat-color,#description-color){display:inline-flex;align-items:center;gap:5px}
:is(#chat-color,#description-color) span,:is(#chat-colors,#description-colors) button{background:var(--swatch,#282b31);border-radius:4px}
:is(#chat-color,#description-color) span{width:16px;height:16px}
:is(#chat-colors,#description-colors){max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:10px;padding:9px}
:is(#chat-colors,#description-colors) button{width:26px;height:26px;margin:3px;vertical-align:middle}
:is(#chat-colors,#description-colors) button[aria-pressed=true]{outline:2px solid var(--orange);outline-offset:2px}

:is(#chat-colors,#description-colors),:is(#chat-emojis,#description-emojis){position:fixed;inset:auto;margin:0;box-shadow:0 8px 22px #221a1826}
:is(#chat-emojis,#description-emojis){width:min(285px,calc(100vw - 24px))}

#group-delete-dialog{width:min(460px,calc(100% - 24px))}#group-delete,#group-delete-status{color:#a52626}#group-delete-confirm{background:#a52626;border-color:#a52626;color:#fff}

.chat-message-actions{display:flex;gap:5px;margin-top:5px}
.chat-message-actions button{padding:2px 7px;font-size:11px;color:#984208}
.chat-edited{display:block;color:#6c6865;font-size:11px}

.chat-alignment{display:inline-flex;flex-wrap:wrap;gap:4px}

#tayfa-members{grid-area:members;max-height:75vh;overflow:auto;padding:13px}
#tayfa-members h2{margin:0 0 14px}
#tayfa-members h3{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:12px 0 4px;color:#525a60}
#tayfa-members ul{list-style:none;padding:0;margin:0}
#tayfa-members li{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:12px;overflow-wrap:anywhere}
#tayfa-members small{display:block;color:#984208}
#tayfa-members .channel-participant-avatar{flex-basis:25px;height:25px;border:2px solid #969b98}
#tayfa-online .channel-participant-avatar{border-color:#378558}
#community-view{grid-template-areas:"banner banner" "sidebar content" ". members"}
#community-view .community-banner{grid-area:banner}
#community-view .community-sidebar{grid-area:sidebar}
#community-view .community-content{grid-area:content}
@media(min-width:901px){
  #community-view:has(#tayfa-members:not([hidden])){grid-template-columns:calc(225px + var(--room-sort-space,0px)) minmax(0,1fr) 175px;grid-template-areas:"banner banner banner" "sidebar content members"}
}
@media(max-width:540px){#community-view{grid-template-areas:"banner banner" "sidebar content" "members members"}}

.channel-divider{align-self:center;padding:6px 2px;text-align:center;color:#655246;font-size:12px;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap;cursor:default}

#channel-menu{width:auto;padding:5px}#channel-menu-settings{display:block}
.voice-role-icon { display:inline-flex; flex:none; width:1.1em; height:1.1em; margin-inline-start:.3em; color:#a84800; vertical-align:-.15em; }
.voice-role-icon svg,.voice-role-icon img { width:100%; height:100%; object-fit:contain; }
.seat-name .voice-role-icon { width:1em; height:1em; }
#chat-messages .chat-message > strong { display:flex; align-items:center; gap:.45rem; }
.role-icon-editor { margin:0 0 1rem; border:1px solid #e4d7c9; border-radius:.65rem; padding:.8rem; }
.role-icon-preview { display:flex; align-items:center; gap:.35rem; padding:.65rem; background:#faf4eb; border-radius:.5rem; font-weight:600; }
#role-permissions-editor:not([hidden]) { display:grid; gap:.6rem; }
.seat-name { display:flex; justify-content:center; align-items:center; }
.seat-name-text { min-width:0; overflow:hidden; text-overflow:ellipsis; }
#tayfa-members li { position:relative; }
#tayfa-members .member-role-trigger { display:inline-grid; place-items:center; flex:none; background:none; border:0; padding:.25rem; min-width:24px; }
.member-role-trigger .voice-role-icon { margin:0; }
.member-role-tooltip { position:absolute; right:0; top:100%; z-index:2; padding:.35rem .55rem; border-radius:.35rem; background:#282b31; color:#fff; }
.channel-row > [data-channel], .channel-row > .channel-divider {
  min-width:0;
  overflow:hidden;
  overflow-wrap:normal;
  text-overflow:clip;
  white-space:nowrap;
}

.channel-name-space { display:block; min-width:0; white-space:nowrap; }
.channel-name { display:inline-block; transform:scaleX(var(--name-scale,1)); transform-origin:left center; }
.channel-divider .channel-name { transform-origin:center; }
.channel-divider .channel-name-space { display:flex; justify-content:center; }
#tayfa-members h2,.member-state { display:flex; align-items:center; gap:6px; }
#tayfa-members h2 { font-size:15px; white-space:nowrap; }
#tayfa-members h2 svg { color:#ad4d00; flex:none; }
.member-state.online svg { color:#378558; }
.member-state.offline svg { color:#bd3b45; }
#tayfa-members li { min-width:0; gap:5px; }
.tayfa-member-name { flex:1; min-width:0; overflow:hidden; white-space:nowrap; }
.tayfa-member-name > span { display:inline-block; transform-origin:left center; }
#tayfa-members .member-role-trigger { min-width:18px; padding:2px; }

#channel-menu-settings { width:100%; text-align:left; }
.role-icon-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:8px 0 12px; }
.role-icon-options button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:76px; padding:10px 5px; font-size:12px; }
.role-icon-options .voice-role-icon,.role-icon-placeholder { width:25px; height:25px; margin:0; display:grid; place-items:center; font-size:25px; line-height:1; color:#a84800; }
.role-icon-options button[aria-pressed=true] { background:#fff1e3; border-color:#c45400; box-shadow:inset 0 0 0 1px #c45400; color:#924000; }
@media(max-width:420px) { .role-icon-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Room and separator labels share one visual language. */
.channel-row > [data-channel],.channel-row > .channel-divider{display:block;width:100%;border:1px solid #d9cec2;border-radius:7px;padding:8px 11px;background:#fff;font:inherit;line-height:1.45;min-height:40px;white-space:nowrap}
.channel-row > .channel-divider{cursor:default;align-self:stretch}
.channel-divider .channel-name-space{display:block}
.channel-name{transform-origin:left center}
[data-name-align=center] .channel-name{transform-origin:center}
[data-name-align=right] .channel-name{transform-origin:right center}

.room-name-editor{border:1px solid #d9cec2;border-radius:8px;overflow:hidden;margin-bottom:12px;background:#fff}
.room-name-toolbar{display:flex;align-items:center;gap:5px;padding:6px 8px;background:#faf7f3;border-bottom:1px solid #e2d9d0}
.room-name-toolbar button{display:grid;place-items:center;padding:6px;width:32px;height:32px;border:1px solid transparent;background:transparent;color:#795334}
.room-name-toolbar button[aria-pressed=true]{background:#f8e6d5;border-color:#ce956b;color:#a44400}
.room-name-toolbar input[type=color]{width:32px!important;height:32px;padding:3px;border-radius:5px;margin-left:5px;cursor:pointer}
.room-name-editor #room-settings-name{width:100%;border:0;border-radius:0;padding:10px 12px;min-height:42px;background:#fff}
/* Integrated Tayfa tools */
.feature-toast{position:fixed;right:20px;bottom:24px;z-index:10000;max-width:min(420px,calc(100vw - 28px));padding:13px 18px;border:1px solid #edcdb3;border-left:4px solid var(--orange);border-radius:10px;background:#fff;box-shadow:0 10px 35px #282b3126;color:#66350e}
.feature-dialog{width:min(680px,calc(100% - 24px));max-height:88dvh;overflow:auto}.feature-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.feature-dialog header h2{margin:0}.feature-dialog header button{padding:3px 10px}.feature-dialog h3{font-size:15px}.feature-dialog textarea{width:100%;min-height:75px;border:1px solid var(--line);border-radius:7px;padding:10px;font:inherit}.feature-dialog form{margin-top:16px}.feature-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feature-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}.feature-tabs button{white-space:nowrap}.feature-tabs button[aria-current=true]{background:#fff0e2;color:#994200;border-color:#d7a579}.feature-empty{padding:20px;text-align:center;color:#767b80}.feature-event,.feature-request,.feature-invite,.feature-audit{padding:14px;border:1px solid var(--line);border-radius:10px;margin:10px 0;background:#fcfaf7}.feature-event h3{margin:0 0 5px}.feature-event time{color:#b14d09;font-size:13px}.feature-event p{white-space:pre-wrap}.feature-event button{margin:10px 6px 0 0}.feature-event small{display:block;color:#656b70}.feature-request img,.feature-request .channel-participant-avatar{width:32px;height:32px;border-radius:50%;vertical-align:middle;margin-right:8px}.feature-request button,.feature-invite button{margin:8px 5px 0 0}.feature-audit small{display:block;color:#72787e}.feature-group-details{margin-top:14px}.feature-group-details textarea{font:inherit;border:1px solid var(--line);border-radius:7px;padding:9px;min-height:65px;width:100%}.feature-group-details label{margin-top:10px}
#voice-room-actions{display:flex;align-items:center;gap:6px;margin-left:auto}#voice-room-actions button{display:grid;place-items:center;padding:7px}#chat-notification-mode{width:auto;max-width:160px;font-size:12px;padding:7px}#chat-search-panel{display:flex;gap:7px;margin-bottom:10px}#chat-search-panel input{flex:1}#chat-reply-preview{display:flex;justify-content:space-between;align-items:center;border-left:3px solid var(--orange);background:#fff3e8;padding:7px 10px;margin-bottom:5px;font-size:12px}#chat-reply-preview button{border:0;background:none;padding:2px 7px}
#chat-messages > .chat-message{position:relative;border:1px solid #ede7df;border-radius:10px;background:#fff;padding:12px 14px;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}#chat-messages > .chat-message > strong{display:flex;align-items:center;gap:7px;color:#9e470b;font-size:13px;margin-bottom:8px}#chat-messages time{margin-left:auto;color:#858a8f;font-size:11px;font-weight:400;white-space:nowrap}#chat-messages > .chat-message blockquote{border-left:3px solid #d4ab86;background:#faf3eb;border-radius:0 6px 6px 0;padding:8px 10px;margin:6px 0 10px;font-size:12px;display:grid;gap:3px;max-height:120px;overflow:auto}#chat-messages > .chat-message blockquote strong{font-size:12px}.chat-quick-actions{display:flex;gap:5px;margin-top:8px;align-items:center;opacity:.2;transition:opacity .15s}.chat-quick-actions button,.chat-message-actions button,.chat-reactions button,.chat-reaction-picker summary{padding:4px 8px;font-size:11px;border-radius:6px;background:#faf7f3;border:1px solid #e4d8ca;cursor:pointer}#chat-messages > .chat-message:hover .chat-quick-actions,#chat-messages > .chat-message:focus-within .chat-quick-actions,#chat-messages > .chat-message.show-actions .chat-quick-actions{opacity:1}.chat-reaction-picker{position:relative}.chat-reaction-picker[open]{display:flex;gap:3px}.chat-reaction-picker summary{list-style:none}.chat-reactions{display:flex;gap:5px;margin-top:6px;flex-wrap:wrap}.chat-reactions:empty{display:none}.chat-reactions button[aria-pressed=true]{background:#fff0df;border-color:#c6824b}.chat-pinned-label{display:block;font-size:11px;color:#a74c10;margin-bottom:5px}.announcement-message{border-left:3px solid var(--orange)!important;background:linear-gradient(120deg,#fff9f0,#fff)!important}.chat-message-continuation{margin-top:-5px!important;border-top-color:transparent!important}.chat-message-continuation>strong .channel-participant-avatar{opacity:.35}.chat-mention{color:#a64700;background:#fff0db;border-radius:4px;padding:0 3px}.channel-unread{position:absolute;right:7px;top:50%;transform:translateY(-50%);font-size:14px;color:#c35803;background:#fff2df;min-width:15px;border-radius:12px;text-align:center;padding:0 3px}.channel-unread.mentioned{font-size:11px;background:#c35803;color:white}.channel-row > [data-channel]{position:relative;padding-right:23px}
.voice-session-bar{position:sticky;bottom:12px;border:1px solid #e8cfb9;background:#fff8ee;border-radius:10px;padding:10px;margin-top:16px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;z-index:5;box-shadow:0 4px 14px #5a310b12}.voice-session-bar>div{flex:1 1 100%;min-width:0}.voice-session-bar strong{display:block;font-size:12px;overflow-wrap:anywhere}.voice-session-bar small{display:block;color:#678071;font-size:11px}.voice-session-bar button{font-size:11px;padding:6px 7px}.voice-disconnect{color:#b72c36;background:#fff3f3;border-color:#edc0c4}.voice-session-bar [aria-pressed=true]{color:#166a43;background:#e5f6eb}.voice-volume-row{display:flex;align-items:center;gap:10px;padding:9px 0}.voice-volume-row input{flex:1;width:100px}.voice-volume-row span{font-size:12px;min-width:100px}.voice-mobile-nav,.mobile-panel-close{display:none}#voice-test-level{width:100%;height:20px;margin:12px 0}#voice-output-help{font-size:12px;color:#74797e}.seat-name{overflow:visible;text-overflow:clip;gap:2px}.seat-name-text{flex:none;white-space:nowrap;overflow:visible;text-overflow:clip;transform-origin:center;max-width:none}.seat{max-width:110px;width:22%;padding-inline:0!important}.seat-name .voice-role-icon{flex:none}.seat-muted{position:absolute;top:35px;right:20%;width:16px;height:16px;border-radius:50%;background:#fff;color:#b42e36;display:grid;place-items:center}.listener-queue{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.listener-queue button{font-size:11px;padding:4px 7px}.community-description{font-size:13px;color:#71757a;display:block;white-space:pre-wrap;overflow-wrap:anywhere}.community-online{font-size:11px;color:#378558}.community-favorite{position:absolute;right:12px;top:12px;width:30px;height:30px;padding:4px;background:#fffaf4;color:#a96416}.community-card{position:relative}.community-favorite[aria-pressed=true]{color:#d0770c;background:#fff0d0}.mention-suggestions{position:absolute;bottom:100%;left:8px;z-index:9;background:#fff;box-shadow:0 6px 24px #242a3125;border:1px solid var(--line);border-radius:9px;padding:5px;max-height:180px;overflow:auto;min-width:190px}.mention-suggestions button{display:block;width:100%;text-align:left;border:0;font-size:12px}.chat-composer{position:relative}
@media(max-width:760px){
 #community-view{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"banner" "mobile" "content"!important;gap:10px}
 .voice-mobile-nav{grid-area:mobile;display:flex;gap:8px}.voice-mobile-nav button{flex:1}.mobile-panel-close{display:block;margin-left:auto;margin-bottom:8px;padding:3px 9px}
 #community-view .community-sidebar,#community-view #tayfa-members{display:none;position:fixed;top:12px;bottom:12px;left:10px;width:min(300px,calc(100vw - 30px));max-height:none;overflow:auto;z-index:42;box-shadow:0 10px 50px #242a3130}
 #community-view #tayfa-members{left:auto;right:10px}#community-view.mobile-rooms-open .community-sidebar,#community-view.mobile-members-open #tayfa-members{display:block}
 #voice-mobile-backdrop{position:fixed;inset:0;background:#20252b70;z-index:41}
 .has-voice-session{padding-bottom:84px}.voice-session-bar{position:fixed;left:8px;right:8px;bottom:8px;z-index:40;margin:0;display:flex}.voice-session-bar>div{flex:1 1 100px}.voice-session-bar button{padding:8px}.has-voice-session .feature-toast{bottom:92px}
 #chat-messages{height:55dvh;min-height:290px}#chat-messages time{font-size:10px}.chat-quick-actions{opacity:1;flex-wrap:wrap}.feature-form-row{grid-template-columns:1fr}.community-banner{flex-wrap:wrap}.community-banner .actions{margin-left:auto}#voice-room-actions{flex-wrap:wrap}#chat-notification-mode{max-width:120px}.layout{grid-template-columns:minmax(0,1fr)}
}

.compact-notification{display:flex;align-items:center;gap:4px}.compact-notification>svg{flex:none}
.feature-record{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--line)}.feature-record strong{font-size:13px}.feature-record small{display:block;color:#72777c;font-size:12px}.feature-record .channel-participant-avatar{width:30px;height:30px;flex:none}.feature-record button{font-size:12px;padding:5px 8px}
@media(max-width:760px){
 .community-banner{display:grid;grid-template-columns:auto 38px minmax(0,1fr) auto;gap:8px!important}
 #back-directory{grid-row:1;grid-column:1}#community-avatar{grid-row:1;grid-column:2}.community-identity{grid-row:1;grid-column:3 / -1}.community-banner #community-name{overflow-wrap:anywhere;line-height:1.25;font-size:16px}.community-banner #community-role{font-size:11px}
 #community-join{grid-row:2;grid-column:1 / 3}#community-events{grid-row:2;grid-column:3;justify-self:end}#community-tools{grid-row:2;grid-column:2;justify-self:end}#community-share{grid-row:2;grid-column:4;justify-self:end}#community-settings{grid-row:2;grid-column:1;justify-self:start}
 .community-banner:has(#community-join:not([hidden])) #community-settings{grid-column:2}
}
.role-switch-track{pointer-events:none}

@media(max-width:760px){.active-room-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.active-room-heading>h2{grid-column:1;grid-row:1;font-size:15px;white-space:nowrap;min-width:0}.active-room-heading>#leave{grid-column:2;grid-row:1}.active-room-heading>#voice-room-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;flex-wrap:nowrap}.compact-notification{max-width:none}#chat-notification-mode{max-width:165px}}

.feature-tabs button[aria-pressed=true]{background:#fff0e2;color:#994200;border-color:#d7a579}.feature-person{display:flex;align-items:center;gap:7px;min-width:0}

.voice-session-bar{display:grid;grid-template-columns:repeat(4,32px);justify-content:start;gap:6px}.voice-session-bar>div{grid-column:1/-1}.voice-session-bar>button{width:32px;height:32px;display:grid;place-items:center;padding:5px}.voice-session-bar>button svg{display:block}.voice-session-bar #voice-session-name{font-size:12px}.voice-session-bar #voice-session-state{font-size:10px}
@media(max-width:760px){.voice-session-bar{grid-template-columns:minmax(0,1fr) repeat(4,32px);align-items:center}.voice-session-bar>div{grid-column:1;grid-row:1}.voice-session-bar>button{grid-row:1}}

/* Voice controls and room chat share one consistent workspace. */
#audio{display:none!important}
.voice-control-on{color:#21864c!important;background:#eef9f1!important;border-color:#a6d8b6!important}
.voice-session-bar .voice-control-off{position:relative;color:#b63240!important;background:#fff1f2!important;border-color:#efbdc3!important}
.voice-control-off::after{content:"";position:absolute;width:22px;height:2px;background:#d73845;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-45deg);border-radius:2px;pointer-events:none}
#text-room-view{margin-top:14px}
.active-room-heading{display:flex!important;flex-wrap:nowrap!important;gap:8px}
.active-room-heading h2{flex:1;min-width:0}
#voice-room-actions{margin-left:auto;flex-wrap:nowrap!important;gap:5px}
#voice-room-actions button,#leave{width:32px;height:32px;min-width:32px;padding:6px;box-sizing:border-box;display:grid;place-items:center}
.compact-notification{display:flex;align-items:center;position:relative;border:1px solid #dfd3c5;border-radius:7px;background:white;height:32px;padding-left:8px;box-sizing:border-box;gap:4px}
.compact-notification>svg{width:15px;height:15px;flex-shrink:0}
#chat-notification-mode{border:0;background:transparent;height:30px;max-width:105px!important;padding:4px;font-size:12px}
@media(max-width:760px){
.active-room-heading>h2{font-size:14px!important;flex:1}
.active-room-heading>#voice-room-actions{margin-left:auto!important;grid-column:auto;grid-row:auto;flex-shrink:0}
.active-room-heading>#leave{grid-column:auto;grid-row:auto;flex-shrink:0}
#voice-room-actions{gap:4px}
#chat-notification-mode{max-width:78px!important;font-size:11px}
.community-banner{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;align-items:center!important;padding:10px!important}
.community-banner>#back-directory{font-size:0;padding:7px;width:29px;min-width:29px;margin:0}
.community-banner>#back-directory::before{content:"←";font-size:17px}
.community-banner>.community-logo{width:30px!important;height:30px!important;flex:0 0 30px}
.community-banner>.community-identity{flex:1!important;min-width:0!important;grid-column:auto!important}
.community-identity h2{font-size:14px!important;overflow-wrap:anywhere}
.community-identity p{font-size:10px!important}
.community-banner>#community-events,.community-banner>#community-tools,.community-banner>#community-settings{width:29px!important;height:30px!important;min-width:29px!important;margin:0!important;padding:5px!important;grid-column:auto!important;grid-row:auto!important}
.community-banner>#community-settings span{display:none}
}

.audio-icon-label{display:inline-flex;align-items:center;gap:7px}.audio-icon-label>svg{flex-shrink:0;color:var(--orange)}.active-room-heading>#voice-room-actions{margin-top:0!important;margin-bottom:0!important;align-self:center}.active-room-heading>#leave{align-self:center;margin-top:0;margin-bottom:0}

@media(max-width:760px){
 body.mobile-chat-screen{height:var(--chat-screen-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column;padding-bottom:0!important}
 .mobile-chat-screen>.voice-header{flex:none;padding-block:5px}
 .mobile-chat-screen>main{flex:1;min-height:0;width:100%;margin:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}
 .mobile-chat-screen #status{display:none}
 .mobile-chat-screen #community-view{flex:1;min-height:0;grid-template-rows:auto auto minmax(0,1fr);gap:6px;align-items:stretch}
 .mobile-chat-screen .community-content,.mobile-chat-screen #oda{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .mobile-chat-screen .active-room-heading{flex:none;margin-bottom:5px}
 .mobile-chat-screen #room-description-card{flex:none;margin:0 0 5px;padding:6px 10px}
 .mobile-chat-screen #active-room-description{max-height:1.5em}
 .mobile-chat-screen #text-room-view{display:flex;flex-direction:column;flex:1;min-height:0;margin-top:0;padding:7px;overflow:hidden;gap:5px}
 .mobile-chat-screen #chat-messages{height:auto;min-height:0;max-height:none;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .mobile-chat-screen #chat-form{flex:none;gap:4px;margin-top:0;min-height:0}
 .mobile-chat-screen #chat-body{min-height:45px;max-height:90px;padding:7px 9px}
 .mobile-chat-screen .chat-toolbar{padding:4px;gap:4px}
 .mobile-chat-screen .chat-toolbar button{padding:4px 7px}
 .mobile-chat-screen #text-room-view>.voice-session-bar{position:static;flex:none;left:auto;right:auto;bottom:auto;z-index:auto;margin:0;padding:6px 8px;grid-template-columns:minmax(0,1fr) repeat(4,30px)}
 .mobile-chat-screen #text-room-view>.voice-session-bar button{width:30px;height:30px;padding:5px}
 .mobile-chat-screen #chat-event-card{max-height:65px;overflow:auto;flex:none}
 #community-view .stage .seat .avatar{width:clamp(38px,10vw,48px)!important;height:clamp(38px,10vw,48px)!important}
 #community-view .stage .seat-muted{top:clamp(24px,6.5vw,34px);right:calc(50% - clamp(19px,5vw,24px));width:16px;height:16px;z-index:2;border:1px solid #fff}
}

#oda:has(#voice-room-view:not([hidden])) #chat-messages{height:200px;min-height:0;max-height:200px}
#oda:has(#voice-room-view:not([hidden])) #chat-body{min-height:48px;max-height:100px}
@media(max-width:760px){#oda:has(#voice-room-view:not([hidden])) #chat-messages{height:170px;max-height:170px}}

@media(max-width:760px){
 .community-banner>.community-logo{font-size:15px!important;line-height:1}
 #voice-tools-dialog .feature-tabs{display:grid;grid-template-columns:1fr .72fr 1fr;gap:5px;overflow:visible}
 #voice-tools-dialog .feature-tabs button{padding:8px 4px;font-size:12px;min-width:0;opacity:1}
 .voice-mobile-nav{position:relative;z-index:43;flex:none}
 .voice-mobile-nav button{display:flex;align-items:center;justify-content:center;gap:6px}
 #community-view .community-sidebar,#community-view #tayfa-members{top:var(--mobile-menu-top,180px)!important;left:var(--mobile-menu-left,8px)!important;right:auto!important;bottom:auto!important;width:calc(var(--mobile-menu-width,180px) + var(--room-sort-space,0px))!important;max-height:var(--mobile-menu-height,60dvh)!important;padding:10px;transform-origin:top;animation:mobile-room-menu-open .18s ease-out}
 .mobile-panel-close{padding:2px 7px;margin-bottom:3px}
 #community-view .community-sidebar h2,#community-view #tayfa-members h2{font-size:13px}
 @keyframes mobile-room-menu-open{from{opacity:0;transform:translateY(-6px) scaleY(.95)}to{opacity:1;transform:translateY(0) scaleY(1)}}
}
@media(prefers-reduced-motion:reduce){#community-view .community-sidebar,#community-view #tayfa-members{animation:none}}
@media(max-width:760px){.mobile-chat-screen #oda{flex:1}}
@media(max-width:760px){
 .mobile-chat-keyboard .voice-header,.mobile-chat-keyboard #tayfa-upcoming-event,.mobile-chat-keyboard #room-description-card{display:none}
 .mobile-chat-keyboard #community-view{grid-template-rows:auto auto minmax(0,1fr)!important}
 .mobile-chat-keyboard #text-room-view #chat-messages{min-height:0}
}

.community-gear{display:grid;place-items:center;width:40px;height:40px;padding:8px}
.invite-preview{flex:1 1 100%;min-width:0;display:flex;align-items:center;gap:10px;padding:10px;background:#fcf8f2;border:1px solid var(--line);border-radius:9px;text-decoration:none}
.invite-preview .community-logo{width:38px;height:38px;flex:0 0 38px;font-size:18px;border-radius:8px}
.invite-preview>span:last-child{min-width:0}.invite-preview code{display:block;font:11px/1.5 system-ui;overflow-wrap:anywhere;color:#71777e}.invite-preview[aria-disabled]{opacity:.65}
#description-native-color{width:32px;height:30px;padding:3px;cursor:pointer;flex:none}
.tayfa-settings-nav button{display:flex;align-items:center;gap:7px}
@media(max-width:760px){
 .voice-mobile-nav button{height:40px;line-height:1;gap:7px;padding:8px;display:flex;align-items:center;justify-content:center}
 .voice-mobile-nav button>svg{width:18px;height:18px;flex:0 0 18px;display:block}.voice-mobile-nav button>span{line-height:18px}
 .channel-participants li::before{display:none!important}
 .channel-participants{padding-left:4px;font-size:11px}
 .channel-participants li{flex-wrap:nowrap;gap:5px;min-width:0}
 .channel-row .channel-participants .channel-member-name{display:block;flex:1;min-width:0;max-width:none!important;white-space:nowrap;overflow:hidden;line-height:20px}
 .channel-member-name>span{display:inline-block;white-space:nowrap;transform-origin:left center;overflow-wrap:normal}
 .channel-participants .voice-role-icon{flex:none}
 #voice-tools-dialog .feature-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 #voice-tools-dialog .feature-tabs button{display:flex;flex-direction:column;gap:4px;font-size:10px;line-height:1.3;white-space:nowrap;padding:7px 2px}
}

.voice-header .voice-brand{width:174px;height:48px}.voice-header .voice-brand img{width:100%;height:100%;object-fit:contain}
@media(max-width:760px){html{touch-action:pan-x pan-y}input,textarea,select,[contenteditable=true]{font-size:16px!important}.voice-header .voice-brand{width:128px;height:36px}}

.voice-profile-card{position:fixed;z-index:15000;width:min(390px,calc(100vw - 16px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fffdf9;box-shadow:0 12px 40px #25272a40}
.voice-profile-close{position:absolute;right:7px;top:7px;z-index:1;width:28px;height:28px;padding:0;border-radius:50%;background:white}
.voice-profile-cover{display:block;width:100%;aspect-ratio:4/1;object-fit:contain;background:#222}
.voice-profile-top{display:flex;align-items:flex-start;gap:12px;padding:22px 18px 16px}.voice-profile-top>.channel-participant-avatar{width:60px;height:60px;flex:0 0 60px;font-size:24px}.voice-profile-top>div{flex:1;min-width:0;text-align:center}.voice-profile-name{display:block;font-size:16px}.voice-profile-top small{display:block;font-size:10px;color:#8e8373;margin:6px 0}.voice-profile-badges{display:grid;gap:7px;justify-items:center;margin:10px 0}.voice-profile-badges img{width:185px;max-width:100%;height:36px;object-fit:contain}.voice-profile-stats{display:grid;grid-template-columns:repeat(5,1fr);padding:13px 8px;border-block:1px solid var(--line);text-align:center}.voice-profile-stats strong{display:block;font-size:15px;color:#789061}.voice-profile-stats small{font-size:9px;color:#8c887f}.voice-profile-link{display:block;text-align:center;margin:10px;padding:9px;border:1px solid var(--line);border-radius:6px;font-size:12px;text-decoration:none}
.voice-auth-dialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #e2d7ca;border-radius:16px;padding:28px;color:#282b31;background:#fff}.voice-auth-dialog::backdrop{background:#17212a88;backdrop-filter:blur(3px)}.voice-auth-dialog h2{margin:0 25px 8px 0}.voice-auth-dialog p{color:#767c80}.voice-auth-dialog label{display:grid;gap:7px;margin:16px 0}.voice-auth-dialog input:not([type=checkbox]){width:100%;box-sizing:border-box;font-size:16px}.voice-auth-dialog .voice-auth-check{display:flex;align-items:center;gap:8px;font-size:13px}.voice-auth-check input{width:16px;height:16px;margin:0;flex:none}.voice-auth-close{position:absolute;right:14px;top:12px;border:0;font-size:22px}.voice-auth-switch{margin-left:8px}.voice-auth-status{color:#b52a30!important}.voice-verification{margin-bottom:18px;border-left:4px solid #c45400}.voice-verification span{display:block;margin-top:10px}

.voice-field-limit{display:block;width:100%;box-sizing:border-box;text-align:right;font-size:11px;line-height:1.5;color:#85898d;margin-top:4px;font-weight:400}

.voice-profile-badges .voice-profile-staff{width:185px;max-width:100%;height:36px}.voice-profile-badges .staff-ribbon{width:185px;height:36px;max-width:100%;margin:0}.voice-profile-badges .staff-ribbon img{width:100%;height:100%;object-fit:contain}

.channel-participants li::before{display:none}
.channel-participants .voice-role-icon,.tayfa-member-name .voice-role-icon{width:18px;height:18px}
.voice-profile-top>div{flex:0 1 205px}
@media(min-width:761px){.community-banner{column-gap:8px}.community-banner>button:is(#community-events,#community-tools,#community-settings){margin-inline:0}}

#room-settings-form > :is(label:has(#room-edit-type), #room-description-settings, #room-access-label, .room-welcome-choice) {
  border-top:1px solid #ede7df;
  padding-top:13px;
  margin-top:13px;
}
#room-settings-form > #room-permissions-button { margin-top:4px; }
#room-settings-form .room-welcome-choice:not([hidden]) {
  position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer;
}
.room-welcome-choice input { position:absolute; width:1px; height:1px; opacity:0; }
.room-welcome-options { display:inline-flex; flex-shrink:0; padding:3px; border:1px solid #e6ddd2; border-radius:9px; background:#f8f5f1; }
.room-welcome-options span { padding:5px 10px; border-radius:6px; color:#666; font-size:12px; }
.room-welcome-choice input:not(:checked) + .room-welcome-options span:first-child { background:#fff; color:#282b31; box-shadow:0 1px 3px #0002; }
.room-welcome-choice input:checked + .room-welcome-options span:last-child { background:#a84800; color:white; }
.room-welcome-choice input:focus-visible + .room-welcome-options { outline:2px solid #a84800; outline-offset:2px; }

#community-rooms.is-reordering .channel-row:has(>.room-sort-handle){position:relative;padding-right:28px}
.channel-row>.room-sort-handle{position:absolute;top:4px;right:0;width:24px;height:30px;padding:0;cursor:grab;touch-action:none;color:#a84800}
.channel-row.room-sorting{opacity:.65}
.channel-row.room-sorting>.room-sort-handle{cursor:grabbing}

.feature-event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.feature-event .feature-event-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;margin:0;padding:6px 11px;line-height:1.2}

#tayfa-upcoming-event{grid-area:event;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0;border-left:3px solid #a84800}
#tayfa-upcoming-event:not([hidden]){display:flex}
#tayfa-upcoming-event>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0;overflow-wrap:anywhere}
#tayfa-upcoming-event small{color:#a84800}
#tayfa-upcoming-event time{font-size:12px;color:#655d55}
#tayfa-upcoming-event button{flex:none}
#community-view:has(#tayfa-upcoming-event:not([hidden])){grid-template-areas:"banner banner" "event event" "sidebar content" ". members"}
@media(min-width:901px){#community-view:has(#tayfa-members:not([hidden])):has(#tayfa-upcoming-event:not([hidden])){grid-template-areas:"banner banner banner" "event event event" "sidebar content members"}}
@media(max-width:760px){#community-view:has(#tayfa-upcoming-event:not([hidden])){grid-template-areas:"banner" "event" "mobile" "content"!important}}

#room-access-help{text-align:left}

.room-sidebar-actions{display:flex;align-items:center;gap:5px}
.room-sidebar-actions button{display:grid;place-items:center;width:30px;height:30px;padding:0;color:#843707}
.room-sidebar-actions #sidebar-new-room{width:30px;padding:0}
.room-sidebar-actions svg,.room-sort-handle svg{width:16px;height:16px;display:block}
#sidebar-sort-rooms[aria-pressed=true]{background:#fae6d2;border-color:#c85e17}
.channel-row>.room-sort-handle{display:none}
#community-rooms.is-reordering .room-sort-handle{display:grid;place-items:center}

#voice-events-dialog .feature-event-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

.chat-message>strong>.chat-message-actions{display:inline-flex;flex:none;align-items:center;gap:4px;margin:0}
.chat-message>strong>.chat-message-actions button{display:grid;place-items:center;width:26px;height:26px;padding:0}
.chat-message-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.channel-row [data-name-align="center"]{padding-inline:11px}
.channel-row [data-name-align="center"]:has(.channel-unread:not([hidden])){padding-inline:23px}
.channel-row [data-name-align="center"] .channel-name-space{display:flex;justify-content:center}
.channel-name-space>.channel-name{flex:none;overflow-wrap:normal}

#community-view:has(#community-rooms.is-reordering){--room-sort-space:28px}
#community-view #tayfa-members{--room-sort-space:0px}

#channel-menu>button{display:flex;align-items:center;gap:8px;width:100%;text-align:left}
#channel-menu>button+button{margin-top:5px}
#channel-menu>button>svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#channel-menu-delete{color:#b83e39}
.chat-message-actions button[aria-pressed=true]{color:#a34705;background:#fff0df;border-color:#d79c67}

#room-delete-confirm{width:min(440px,calc(100% - 28px));padding:22px;border-radius:14px}
#room-delete-confirm p{font-size:14px;line-height:1.65;overflow-wrap:anywhere;margin:18px 0 24px}
#room-delete-confirm .actions{justify-content:flex-end;gap:8px}
#room-delete-confirm-accept{background:#bb4038;border-color:#bb4038;color:#fff}
#room-delete-confirm-accept:hover{background:#a3332d}

/* Uploaded role artwork keeps a readable fixed size in every participant list. */
#tayfa-members .uploaded-role-icon,.seat-name .uploaded-role-icon,.channel-participants .uploaded-role-icon{width:24px;height:24px;min-width:24px;flex:0 0 24px;vertical-align:middle}
#tayfa-members .member-role-trigger:has(.uploaded-role-icon){min-width:28px;min-height:28px;display:inline-flex;align-items:center;justify-content:center}

.channel-row>[data-channel]{padding-inline:32px!important}.channel-unread{box-sizing:border-box;width:26px;min-width:26px;height:20px;line-height:20px;padding:0;font-size:10px;font-weight:700;pointer-events:none}.channel-unread.mentioned{background:#b93636;font-size:10px}.channel-row [data-name-align="center"]:has(.channel-unread:not([hidden])){padding-inline:32px!important}

.guest-tayfa-banner{display:flex;align-items:center;gap:12px;border-top:3px solid var(--orange);margin-bottom:16px}.guest-tayfa-banner h1{font-size:22px;margin:0 0 4px}.guest-tayfa-banner small{color:#7b838c}.guest-tayfa-banner .community-logo{width:48px;height:48px;flex:none;margin:0}.guest-tayfa-action{margin-left:auto}.guest-tayfa-layout{display:grid;grid-template-columns:225px minmax(0,1fr) 180px;gap:16px;align-items:start}.guest-tayfa-rooms{display:grid;gap:7px}.guest-tayfa-rooms a{display:block;text-align:center;text-decoration:none}.guest-tayfa-stage{min-height:430px;display:flex;align-items:center;flex-direction:column;text-align:center;padding:48px 24px 20px;background:linear-gradient(135deg,#fffaf3,#fff)}.guest-welcome-symbol{display:grid;place-items:center;width:64px;height:64px;background:#f7e9dc;color:#ae4c00;border-radius:18px;margin-bottom:14px}.guest-welcome-symbol svg{width:30px;height:30px}.guest-tayfa-stage h2{font-size:23px;margin:10px 0}.guest-tayfa-stage p{line-height:1.7;max-width:480px;color:#717780}.guest-tayfa-stage small{color:#8b8e92}.guest-message-box{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px;border:1px solid #e4d9cd;border-radius:10px;background:#fff;text-align:left;text-decoration:none;color:#92969b}.guest-message-box svg{width:22px;height:22px;color:#b34f00}.guest-tayfa-members h2{font-size:14px}.guest-tayfa-members p{font-size:12px;line-height:1.7;color:#7a8189}@media(max-width:900px){.guest-tayfa-layout{grid-template-columns:190px minmax(0,1fr)}.guest-tayfa-members{display:none}}@media(max-width:600px){.guest-tayfa-layout{grid-template-columns:1fr}.guest-tayfa-banner{gap:8px}.guest-tayfa-banner h1{font-size:18px}.guest-tayfa-rooms{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-tayfa-stage{min-height:360px;padding:28px 16px 16px}.guest-tayfa-stage h2{font-size:20px}}

.guest-tayfa-action{width:40px;height:40px;padding:10px;display:inline-flex;align-items:center;justify-content:center}.guest-tayfa-action svg{width:18px;height:18px;flex:none}.guest-tayfa-layout h2:has(>svg){display:flex;align-items:center;gap:7px}.guest-tayfa-layout h2>svg{width:16px;height:16px;flex:none;color:#ad4d00}

#chat-messages>.chat-message{width:88%;box-sizing:border-box}#chat-messages>.chat-message-own{margin-left:0;margin-right:auto;background:#fffaf4}#chat-messages>.chat-message-incoming{margin-left:auto;margin-right:0}@media(max-width:600px){#chat-messages>.chat-message{width:95%}}

#chat-messages { box-sizing: border-box; padding: 10px; }
#chat-pins-toggle { position: relative; }
#chat-pins-count { position: absolute; top: -6px; right: -6px; min-width: 16px; padding: 0 3px; border-radius: 12px; background: #ad4d00; color: white; font-size: 10px; line-height: 16px; }
#chat-pins-count[hidden] { display: none; }
.voice-premium-name[data-premium-tone=gold] { color: #9f813b; }
.voice-premium-name[data-premium-tone=ice] { color: #5d8a9e; }
.voice-premium-name[data-premium-tone=copper] { color: #a16e4e; }
.voice-premium-name[data-premium-tone=teal] { color: #447c78; }
.voice-premium-name[data-premium-tone=rose] { color: #986c88; }
.voice-premium-name[data-premium-tone=violet] { color: #7b6498; }
.voice-premium-name[data-premium-tone=olive] { color: #728455; }
.voice-premium-name[data-premium-tone=blue] { color: #567e9a; }
.voice-premium-name[data-premium-tone=slate] { color: #64717c; }

.voice-header-right { display:flex; align-items:center; gap:12px; min-width:0; }
#voice-header-status:empty { display:none; }
@media(max-width:640px) { .voice-header:has(.header-actions) .forum-link { display:none; } }

#community-tools{position:relative}#community-request-count:not([hidden]){position:absolute;inset:-6px -6px auto auto;min-width:17px;padding:2px 4px;border-radius:12px;background:#a72d2d;color:#fff;font:700 10px/13px system-ui;text-align:center;pointer-events:none}

.channel-row .channel-participants .channel-member-trigger{border:0;background:transparent;box-shadow:none;padding:3px 0;color:inherit;font:inherit;text-align:start;min-height:0}
#participant-menu-actions > :is(button,a){display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;min-height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:#faf7f3;color:#332b24;font:inherit;text-align:start;text-decoration:none}
#participant-menu-actions > :is(button,a):hover{background:#f7e9db;color:#863700}
#participant-menu-actions .profile-ui-icon{display:inline-flex;flex:0 0 16px;color:#99501e}
#participant-menu-actions svg{width:16px;height:16px}

[data-settings-panel="bans"] { border-top: 1px solid #e7d9ca; padding-top: 14px; }
[data-settings-panel="bans"] h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
[data-settings-panel="bans"] h3 svg { color: #a94800; }
#tayfa-bans-empty { margin: 0; padding: 12px; border-radius: 8px; background: #f8f4ef; color: #62584d; }
#tayfa-bans { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
#tayfa-bans li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #e7d9ca; border-radius: 8px; }
#tayfa-bans .channel-participant-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
#tayfa-bans strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#tayfa-bans button { flex-shrink: 0; }

.channel-row .channel-participants li { display: flex; flex-wrap: nowrap; min-width: 0; }
.channel-row .channel-participants .channel-member-name,
#tayfa-members .tayfa-member-name { display: block; flex: 1; min-width: 0; max-width: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#tayfa-members .tayfa-member-name > span { display: inline; }
.channel-participants li > .voice-role-icon,
.channel-participants li > .uploaded-role-icon,
#tayfa-members .member-role-trigger { flex-shrink: 0; margin-inline-start: auto; }

.voice-listeners summary { cursor: pointer; font-weight: 700; }
.voice-listeners summary svg { vertical-align: middle; color: var(--orange); }
@media (max-width: 760px) {
  .mobile-chat-screen #community-view { grid-template-rows: auto auto minmax(0, 1fr); }
  .mobile-chat-screen #community-view:has(#tayfa-upcoming-event:not([hidden])) {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }
  .mobile-chat-screen #oda { flex: 1; }
  #community-view #voice-room-view:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }
  #voice-room-view .stage { min-height: 0; height: auto; aspect-ratio: 1; }
  #voice-room-view .voice-listeners { padding: 10px 12px; }
}

@media (max-width: 760px) {
  .voice-header { gap: 8px; padding-inline: 10px; }
  .voice-header > a:first-child { flex: 0 1 128px; min-width: 0; }
  .voice-header .voice-brand { max-width: 100%; }
  .voice-header .voice-header-right { flex: 0 0 auto; }
  .voice-header:has(.header-actions) .forum-link { display: none; }
  .voice-header .voice-header-right > .header-actions {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 4px !important;
  }
  #status:empty { display: none; }
}
@media(max-width:760px){
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 6px}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>.chat-author-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>time{grid-column:1/3;grid-row:2}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>.chat-message-actions{grid-column:3;grid-row:2}
}

@media (max-width: 760px) {
  /* Keep header popovers above the mobile room and member controls (43). */
  .voice-header {
    position: relative;
    z-index: 44;
  }
}

#chat-messages > .chat-message > strong > .channel-participant-avatar {
  width: 20px;
  height: 20px;
  justify-self: start;
}

.voice-listeners summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
}
.voice-listeners summary::-webkit-details-marker { display: none; }
#listener-preview { display: flex; align-items: center; gap: 4px; font-size: 12px; }
#listener-preview .channel-participant-avatar { width: 20px; }
.voice-listeners[open] #listener-preview { visibility: hidden; }

#participant-menu { width: min(220px, calc(100% - 16px)); padding: 5px; }
#participant-menu strong { padding: 4px 7px 6px; font-size: 13px; }
#participant-menu-actions { gap: 2px; }
#participant-menu-actions > :is(button,a) {
  min-height: 30px;
  padding: 4px 7px;
  gap: 7px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
}
#participant-menu-actions .participant-kick,
#participant-menu-actions .participant-kick .profile-ui-icon { color: #a52626; }

#voice-room-view.layout { grid-template-columns: minmax(0, 1fr); }
#voice-participants:not([hidden]) { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#voice-participant-stack { display:flex; padding-inline-start:6px; }
#voice-participant-stack .channel-participant-avatar { flex:0 0 30px; width:30px; height:30px; border:2px solid white; margin-inline-start:-6px; }

/* Keep the voice stage aligned with the full conversation column. */
#community-view #voice-room-view{width:100%;min-width:0;margin-inline:0}
#community-view #voice-room-view .stage{width:100%;max-width:none;justify-self:stretch;margin:0;aspect-ratio:1}

@media(max-width:540px){
 .tayfa-settings-nav{flex-direction:row;flex-wrap:nowrap;gap:4px;min-width:0}
 .tayfa-settings-nav button{flex:1 1 0;min-width:0;white-space:nowrap;justify-content:center;padding:9px 4px;font-size:11px;gap:4px}
 .tayfa-settings-nav button svg{width:14px;height:14px;flex:0 0 14px}
}

#group-username-label .tayfa-username-hint{display:block;font-size:11px;line-height:1.5;color:#858d96;text-align:left;margin-top:5px;font-weight:400}

#logo-label > small{display:block;font-size:11px;line-height:1.5;color:#858d96;text-align:left;margin-top:5px;font-weight:400}

.voice-safety-menu{position:relative;margin-left:4px}.voice-safety-menu>summary{list-style:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:7px;cursor:pointer;background:white}.voice-safety-menu>summary::-webkit-details-marker{display:none}.voice-safety-menu>div{position:absolute;right:0;top:calc(100% + 6px);width:190px;padding:6px;display:grid;gap:4px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0002;z-index:80}.voice-safety-menu:not([open])>div{display:none}.voice-safety-menu button{text-align:left;font-size:12px}.voice-safety-menu button:not([hidden]){display:flex;align-items:center;gap:8px}.voice-safety-menu button svg{flex:none;color:var(--orange)}.voice-safety-menu button[data-action="group-leave"] svg{color:#b42318}.voice-safety-dialog{width:min(480px,calc(100% - 24px))}.voice-safety-dialog textarea{width:100%;min-height:100px;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}.safety-description{color:#727b85;font-size:13px;line-height:1.6}.safety-error{color:#b42318;font-size:13px}.voice-safety-dialog .actions{justify-content:flex-end}
@media(max-width:760px){.chat-message>strong .channel-participant-avatar{flex:0 0 20px;width:20px;height:20px}.mobile-chat-screen #chat-body{font-size:16px!important}.mobile-chat-screen #text-room-view{min-height:0}.mobile-chat-screen #chat-messages{overscroll-behavior:contain;min-height:100px}}

/* Duyurular sohbet balonlarından farklı olarak satırı doldurur. */
#chat-messages > .chat-message.announcement-message{width:100%;margin-left:0;margin-right:0}

.tayfa-role-group + .tayfa-role-group{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.tayfa-role-group h3{display:flex;align-items:center;gap:7px;font-size:12px;margin:0 0 9px}.tayfa-role-group h3 small{margin-left:auto;color:#92969b;font-weight:400}.tayfa-role-group h3 .voice-role-icon{flex:none;width:22px;height:22px}.tayfa-role-group ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}.tayfa-role-group li{display:flex;align-items:center;gap:6px;min-width:0}.tayfa-role-group .tayfa-person-offline{opacity:.55}

/* Tayfa progression */
.community-banner-area{grid-area:banner;min-width:0}
.tayfa-progress{margin-top:8px;padding:10px 15px;border:1px solid #e4d6c9;border-radius:10px;background:#fffcf8;--level-hue:32}
.tayfa-progress[hidden]{display:none}
.tayfa-progress-meta,.tayfa-progress-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.tayfa-progress-meta{font-size:13px;color:#34271f}
.tayfa-progress-footer{margin-top:6px;font-size:11px;color:#685649}
.tayfa-progress-meter{height:10px;margin-top:7px;border-radius:99px;background:hsl(var(--level-hue) 26% 89%);overflow:hidden}
.tayfa-progress-meter>span{display:block;position:relative;height:100%;border-radius:inherit;background:linear-gradient(180deg,hsl(var(--level-hue) 85% 66%),hsl(var(--level-hue) 84% 37%));box-shadow:0 0 12px hsl(var(--level-hue) 83% 56%);transition:width .45s ease}
.tayfa-progress-meter>span::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,#ffffffa0 50%,transparent 65%);animation:tayfa-meter-shine 3s infinite}
@keyframes tayfa-meter-shine{from{transform:translateX(-105%)}to{transform:translateX(105%)}}
#tayfa-my-rank{display:inline-flex;align-items:center;gap:6px}
.tayfa-rank-badge{display:inline-block;width:60px;aspect-ratio:192/59;flex:none;background:url('/voice-ranks.webp') center 0/100% 500% no-repeat;border-radius:4px;vertical-align:middle}
.tayfa-rank-badge[data-rank="2"]{background-position:center 25%}
.tayfa-rank-badge[data-rank="3"]{background-position:center 50%}
.tayfa-rank-badge[data-rank="4"]{background-position:center 75%}
.tayfa-rank-badge[data-rank="5"]{background-position:center 100%}
.tayfa-card-level{display:inline-block;padding:3px 8px;border-radius:99px;background:#f4e8d8;color:#754318;font-size:11px}
.community-card.tayfa-card-framed{
    isolation:isolate;
    border-color:#b67c36;
    background:linear-gradient(145deg,#fff8e8 0%,#fffdfa 24%,#fff 55%,#fff7e9 100%);
    box-shadow:inset 0 0 0 3px #fff8e7,inset 0 0 0 4px #dfbd7b55,0 3px 12px #69421c12;
}
.community-card.tayfa-card-framed::before{
    content:"";
    position:absolute;
    inset:0;
    padding:3px;
    border-radius:inherit;
    pointer-events:none;
    background:linear-gradient(110deg,#86501f 0%,#a56c27 32%,#e1a742 40%,#fffbdc 47%,#fff 50%,#fff0b3 53%,#e1a742 60%,#a56c27 68%,#86501f 100%);
    background-size:250% 100%;
    animation:tayfa-frame-light 4.8s linear infinite;
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:exclude;
}
.community-card.tayfa-card-framed::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;
    opacity:.7;
    animation:tayfa-frame-sparkle 3s ease-in-out infinite;
    background:
        radial-gradient(ellipse 1px 6px at 12px 12px,#fff8df 20%,transparent 100%),
        radial-gradient(ellipse 6px 1px at 12px 12px,#e4b65e 20%,transparent 100%),
        radial-gradient(ellipse 1px 6px at calc(100% - 12px) calc(100% - 12px),#fff8df 20%,transparent 100%),
        radial-gradient(ellipse 6px 1px at calc(100% - 12px) calc(100% - 12px),#e4b65e 20%,transparent 100%),
        radial-gradient(circle at 34% 2px,#fff9da 0 1px,transparent 3px),
        radial-gradient(circle at 73% calc(100% - 2px),#fff9da 0 1px,transparent 3px),
        radial-gradient(circle at 2px 68%,#edc77b 0 1px,transparent 2px),
        radial-gradient(circle at calc(100% - 2px) 27%,#edc77b 0 1px,transparent 2px);
}
.community-card.tayfa-card-rooted{
    background-color:#fffcf7;
    background-image:
        radial-gradient(ellipse at 20% 25%,#edb96770 0%,transparent 55%),
        radial-gradient(ellipse at 80% 75%,#9dd7c95c 0%,transparent 55%),
        linear-gradient(125deg,transparent 25%,#ffffffd9 38%,#ddc3eb66 48%,#ffffffb3 58%,transparent 72%),
        linear-gradient(145deg,#fff6df,#f6f0fb 45%,#eaf7f2 75%,#fff2d8);
    background-size:180% 180%,180% 180%,280% 280%,100% 100%;
    background-repeat:no-repeat;
    animation:tayfa-aurora-flow 7s ease-in-out infinite alternate;
}
.community-card.tayfa-card-rooted::after{
    background-image:
        radial-gradient(circle,#dca54b99 0 1px,transparent 2px),
        radial-gradient(circle,#fff 0 1px,transparent 3px),
        radial-gradient(circle,#6bbaa366 0 1px,transparent 2px);
    background-size:79px 97px,113px 137px,151px 83px;
    animation:tayfa-aurora-dust 9s linear infinite;
    opacity:.6;
}
@keyframes tayfa-aurora-flow{
    0%{background-position:0% 0%,100% 100%,0% 30%,center}
    50%{background-position:75% 30%,20% 60%,60% 70%,center}
    100%{background-position:100% 100%,0% 0%,100% 40%,center}
}
@keyframes tayfa-aurora-dust{
    from{background-position:0 0,37px 23px,53px 11px}
    to{background-position:79px -97px,150px -114px,-98px -72px}
}
.community-card.tayfa-card-legend{
    border-color:#ba8538;
    box-shadow:inset 0 0 0 3px #fff5d7,inset 0 0 0 4px #d6a95366,0 0 15px #d8a34a38,0 4px 14px #5c3b1615;
}
.community-card.tayfa-card-legend::before{animation-duration:2.8s;filter:drop-shadow(0 0 4px #e9b03c)}
.community-card.tayfa-card-legend::after{animation-duration:1.8s;filter:drop-shadow(0 0 3px #e5a93d)}
.community-card.tayfa-card-rooted.tayfa-card-legend::after{animation-duration:7s}
.tayfa-card-flames{position:absolute;inset:3px;border-radius:11px;overflow:hidden;pointer-events:none;z-index:-1}
.tayfa-card-flames::before,.tayfa-card-flames::after{
    content:"";
    position:absolute;
    top:0;bottom:0;
    width:clamp(22px,10%,38px);
    background-image:url('/assets/tayfa-flames.svg?v=1');
    background-size:100% 180px;
    background-repeat:repeat-y;
    animation:tayfa-fire-rise 2.4s linear infinite,tayfa-fire-flicker 1.3s ease-in-out infinite alternate;
    filter:drop-shadow(0 0 5px #ff8c2580);
    transform-origin:left center;
}
.tayfa-card-flames::before{left:0}
.tayfa-card-flames::after{right:0;scale:-1 1;transform-origin:center center;animation-delay:-1.2s,-.6s}
@keyframes tayfa-fire-rise{from{background-position:0 180px}to{background-position:0 0}}
@keyframes tayfa-fire-flicker{0%{opacity:.75;transform:scaleX(.82)}45%{opacity:1;transform:scaleX(1)}100%{opacity:.85;transform:scaleX(.92)}}
@media(prefers-reduced-motion:reduce){.tayfa-card-flames::before,.tayfa-card-flames::after{animation:none}}
@keyframes tayfa-frame-light{from{background-position:0% 50%}to{background-position:100% 50%}}
@keyframes tayfa-frame-sparkle{0%,100%{opacity:.15}38%{opacity:1}65%{opacity:.25}78%{opacity:1}}
.tayfa-level-up{position:fixed;inset:0;margin:auto;text-align:center;padding:28px;border:1px solid #d6a96f;border-radius:14px;width:min(400px,calc(100% - 32px));background:#fffcf8;color:#392619;overflow:hidden}
.tayfa-level-up::backdrop{background:#241a16aa}
.tayfa-confetti{position:absolute;left:50%;top:10%;width:7px;height:12px;pointer-events:none;opacity:0;animation:tayfa-confetti 1s ease-out both}
@keyframes tayfa-confetti{10%{opacity:1}100%{opacity:0;transform:translate(var(--confetti-x),var(--confetti-y)) rotate(310deg)}}
@media(max-width:760px){.mobile-chat-keyboard .tayfa-progress{display:none}.tayfa-progress{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.tayfa-progress-meter>span,.tayfa-progress-meter>span::after,.tayfa-card-legend{animation:none;transition:none}}
@media(prefers-reduced-motion:reduce){.community-card.tayfa-card-framed::before,.community-card.tayfa-card-framed::after{animation:none}}
@media(prefers-reduced-motion:reduce){.community-card.tayfa-card-rooted{animation:none}}

.tayfa-rank-badge-mini{width:21px;height:21px;aspect-ratio:1;background-image:url(/voice-rank-icons-v2.webp);border-radius:0}
.tayfa-title-display{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.tayfa-title-art{width:86px}
.community-card .tayfa-title-display{flex-direction:column}
.member-progress{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 0 0;border-top:1px solid #eadfd4;flex:none}
.member-progress-details{display:grid;gap:5px;min-width:0;flex:1}
.member-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}
.community-sidebar #member-progress-info{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;padding:3px;border:0;border-radius:50%;background:transparent;color:#a26937}
#member-progress-info:hover{background:#f7e8d6}
#member-progress-info svg{display:block;width:16px;height:16px}
.member-progress-guide{box-sizing:border-box;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #e7d5c3;border-radius:14px;background:#fff;color:#303038;overflow:auto}
.member-progress-guide::backdrop{background:#211a155e;backdrop-filter:blur(3px)}
.member-progress-guide h2{font-size:17px;line-height:1.4}
.member-guide-summary{padding:10px 12px;border-radius:8px;background:#fff4e5;color:#86491b;font-size:12px;line-height:1.5}
.member-guide-ranks{list-style:none;padding:0;margin:12px 0;display:grid;gap:6px}
.member-guide-ranks li{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #ece4dc;border-radius:8px}
.member-guide-ranks li[aria-current]{border-color:#bd650e;background:#fff8ee}
.member-guide-ranks .tayfa-rank-badge-mini{width:30px;height:30px}
.member-guide-ranks li>span:nth-child(2){display:grid;gap:2px;flex:1;font-size:12px}
.member-guide-ranks small{font-size:11px;color:#8a7a6d}
.member-guide-rank-state{font-size:10px;color:#a55a1b}
.member-guide-earning{border-top:1px solid #eee4d9;padding-top:12px}
.member-guide-earning h3{margin:0 0 10px;font-size:14px}
.member-guide-earning>div{margin:8px 0;padding:10px 12px;border-radius:8px;background:#faf7f3}
.member-guide-earning strong{font-size:12px;color:#87501e}
.member-guide-earning p,.member-guide-note{font-size:11px;line-height:1.65;color:#81746a;margin:5px 0 0}
.member-guide-note{margin-top:12px}
@media(max-width:480px){.member-progress-guide{padding:15px}.member-progress-guide h2{font-size:15px}}
#member-progress-rank{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.3;color:#794318}
#member-progress-rank .tayfa-rank-badge-mini{width:23px;height:23px;flex:none}
#member-progress-meter{height:6px;overflow:hidden;border-radius:99px;background:#eae1d6}
#member-progress-meter>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b7550b,#f0ae40);transition:width .5s ease}
#member-progress-xp{font-size:10px;line-height:1.3;color:#8b7d6f}
#member-progress-avatar{display:block;flex:0 0 42px;width:42px;height:42px}
#member-progress-avatar .channel-participant-avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;min-width:42px;border-radius:50%;overflow:hidden;font-size:18px}
#member-progress-avatar img{display:block;width:100%;height:100%;object-fit:cover}
@media(prefers-reduced-motion:reduce){#member-progress-meter>span{transition:none}}
.community-card .tayfa-title-art{width:104px}
.tayfa-progress-actions{display:inline-flex;align-items:center;gap:8px}
.tayfa-progress-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;color:var(--orange)}
.tayfa-progress-guide{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.tayfa-progress-guide p{font-size:13px;line-height:1.5;color:#685649}
.tayfa-progress-guide ul{display:grid;gap:6px;list-style:none;padding:0;margin:0}
.tayfa-progress-guide li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:8px;border:1px solid var(--line);border-radius:8px}
.tayfa-progress-guide li[aria-current=true]{border-color:var(--orange);background:#fff5e9}
.tayfa-progress-guide li>span:nth-child(2){display:grid;gap:2px;font-size:12px}
.tayfa-progress-guide small{color:#685649}
.tayfa-reward-open{width:32px;height:32px;padding:7px;display:grid;place-items:center}
.tayfa-reward-open svg{width:17px;height:17px}
.tayfa-reward-dialog{width:380px;max-width:calc(100vw - 40px);box-sizing:border-box}
.tayfa-reward-dialog p{font-size:12px;line-height:1.6;color:#716457}
.tayfa-reward-dialog .community-card{width:100%;box-sizing:border-box;text-decoration:none}

.voice-directory-title{margin:0 0 14px;font-size:clamp(22px,4vw,30px)}
.voice-directory-footer{margin-block:32px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.voice-guide-heading{padding:18px 22px;border-top:3px solid var(--orange);background:#faf5ef}
.voice-guide-heading span{color:#944000;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.voice-guide-heading h2{margin:5px 0 0;font-size:clamp(17px,3vw,22px)}
.voice-guide-scroll{box-sizing:border-box;max-block-size:280px;overflow-y:auto;padding:16px 22px;line-height:1.65;scrollbar-gutter:stable}
.voice-guide-scroll:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.voice-guide-scroll p{margin:0 0 12px}
.voice-guide-scroll p:last-child{margin:0}
.voice-guide-scroll h3{margin:14px 0 4px;font-size:15px}
.voice-guide-links,.voice-guide-links nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.voice-guide-links{justify-content:space-between;border-top:1px solid var(--line);padding:12px 22px;font-size:13px}
.voice-guide-links a{color:#944000}
@media(max-width:600px){
 .voice-guide-heading,.voice-guide-scroll,.voice-guide-links{padding-inline:14px}
 .voice-guide-scroll{max-block-size:220px}
}

#voice-volume-list .member-volume{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:9px 10px;border:1px solid var(--line);border-radius:8px}
.member-volume-identity{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
#voice-volume-list .channel-participant-avatar{position:relative;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#f3e7da}
#voice-volume-list .channel-participant-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
#voice-volume-list input[type=range]{width:100%;min-width:0;margin:0;accent-color:var(--orange)}
#voice-volume-list output{min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}

.participant-menu-volume{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;margin-top:4px;padding:7px 9px;border-top:1px solid var(--line);font-size:12px}
.participant-menu-volume span{grid-column:1/-1}
.participant-menu-volume input[type=range]{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;accent-color:var(--orange)}
.participant-menu-volume output{min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}

/* Full-width community workspace and compact channel rows. */
@media(min-width:751px){
 body>main{width:100%;max-width:none;padding-inline:24px}
 .voice-header{padding-inline:24px}
}
#community-rooms .channel-row>[data-channel],
#community-rooms .channel-row>.channel-divider{
 position:relative;border:0;box-shadow:none;background:transparent;border-radius:6px;
}
#community-rooms .channel-row>[data-channel]{padding-inline:30px}
#community-rooms .channel-row>[data-channel]:hover{background:#f7eee5}
#community-rooms .channel-row>[data-channel][aria-current=true]{background:#fae7d6}
.channel-type-icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:16px;height:16px;color:#a84a00;pointer-events:none}
.channel-type-icon svg{display:block;width:16px;height:16px}
#community-rooms .channel-row [data-name-align=center]{padding-inline:30px}
#community-rooms .channel-row [data-name-align=center]:has(.channel-unread:not([hidden])){padding-inline:30px}

.guest-tayfa-rooms a.secondary{position:relative;border:0;box-shadow:none;padding-inline:30px;background:transparent}

/* Direct voice rooms share the message workspace; member directory is removed. */
#voice-room-view,#tayfa-members,.guest-tayfa-members{display:none!important}
@media(min-width:761px){
 body #community-view,body #community-view:has(#tayfa-members:not([hidden])){grid-template-columns:260px minmax(0,1fr)!important;grid-template-areas:"banner banner" "sidebar content"!important}
 body #community-view:has(#tayfa-upcoming-event:not([hidden])){grid-template-areas:"banner banner" "event event" "sidebar content"!important}
 .guest-tayfa-layout{grid-template-columns:260px minmax(0,1fr)}
}
.mobile-community-controls>button:nth-child(2){display:none!important}
.mobile-community-controls{grid-template-columns:1fr!important}

.voice-mobile-nav>button:nth-child(2){display:none!important}.voice-mobile-nav{grid-template-columns:1fr!important}

.channel-participants li{position:relative}
.channel-participants li:has(.channel-mic-state){padding-inline-start:18px}
.channel-mic-state{position:absolute;left:0;top:50%;transform:translateY(-50%);display:inline-flex;width:14px;height:14px;color:#25985b;pointer-events:none}
.channel-mic-state svg{width:14px;height:14px;overflow:visible}
.channel-mic-state .mic-slash{display:none}
.channel-mic-state.mic-off{color:#d44855}
.channel-mic-state.mic-off .mic-slash{display:block}
.channel-mic-state.mic-speaking{animation:channel-speaking .65s ease-in-out infinite alternate}
@keyframes channel-speaking{from{opacity:1;filter:drop-shadow(0 0 2px #2cbf7c)}to{opacity:.35;filter:none}}
.channel-participants li>.tayfa-rank-badge-mini{width:21px;height:21px;flex:0 0 21px;margin-inline-start:3px}
.channel-participants li>.voice-role-icon{margin-inline-start:3px}

/* Desktop room workspace fits the viewport; only lists scroll. */
@media(min-width:901px){
 body:has(#community-view:not([hidden])){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#community-view:not([hidden]))>.voice-header{flex:0 0 auto}
 body:has(#community-view:not([hidden]))>main{flex:1 1 0;height:auto;min-height:0;max-height:none;width:100%;max-width:none;box-sizing:border-box;margin:0;padding:14px 20px;display:flex;flex-direction:column;overflow:hidden}
 body:has(#community-view:not([hidden])) #status{flex:none;margin:0 0 6px}
 body:has(#community-view:not([hidden])) #status:empty{display:none}
 body #community-view:not([hidden]){flex:1 1 0;min-height:0;height:100%;align-items:stretch;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden}
 body #community-view:not([hidden]):has(#tayfa-upcoming-event:not([hidden])){grid-template-rows:auto auto minmax(0,1fr)!important}
 #community-view .community-banner-area,#community-view #tayfa-upcoming-event{min-height:0;flex:none}
 #community-view .community-sidebar{height:100%;max-height:100%;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;margin:0}
 #community-view #community-rooms{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 #community-view #member-progress-card,#community-view .voice-session-bar{flex:none}
 #community-view .community-content{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 #community-view #oda:not([hidden]){flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
 #community-view .active-room-heading,#community-view #room-description-card{flex:none;margin:0}
 #community-view #room-description-card{max-height:86px}
 #community-view #text-room-view:not([hidden]){flex:1 1 0;min-height:0;height:auto;max-height:none;display:flex;flex-direction:column;overflow:hidden;margin:0;gap:8px;box-sizing:border-box}
 #community-view #chat-messages{flex:1 1 0;min-height:0;height:auto;max-height:none;overflow-y:auto;overscroll-behavior:contain}
 #community-view #chat-form{flex:none;margin:0;gap:6px}
 #community-view #chat-body{min-height:50px;max-height:100px;overflow-y:auto}
 #community-view #choose-channel{min-height:0;max-height:100%;box-sizing:border-box;overflow:auto}
}

/* Wider room panel preserves full usernames and balanced rank/role badges. */
@media(min-width:901px){body #community-view,body #community-view:has(#tayfa-members:not([hidden])){grid-template-columns:320px minmax(0,1fr)!important}.guest-tayfa-layout{grid-template-columns:320px minmax(0,1fr)}}
@media(min-width:901px) and (max-width:1199px){body #community-view,body #community-view:has(#tayfa-members:not([hidden])){grid-template-columns:280px minmax(0,1fr)!important}.guest-tayfa-layout{grid-template-columns:280px minmax(0,1fr)}}
.channel-row .channel-participants .channel-member-name{font-size:12px;text-overflow:clip}
.channel-member-text{display:inline-block;white-space:nowrap;transform-origin:left center;max-width:none}
.channel-mic-state{width:18px;height:18px;color:#179b54;visibility:hidden}
.channel-mic-state svg{width:18px;height:18px}
.channel-mic-state .talking-speaker,.channel-mic-state .closed-microphone{display:none}
.channel-mic-state.mic-speaking,.channel-mic-state.mic-off{visibility:visible}
.channel-mic-state.mic-speaking .talking-speaker,.channel-mic-state.mic-off .closed-microphone{display:block}
.channel-mic-state.mic-off .talking-speaker{display:none}
.channel-mic-state.mic-speaking{animation:none;filter:drop-shadow(0 0 2px #45bc7780)}

#community-view #community-rooms{align-content:start;grid-auto-rows:max-content;gap:5px}
#community-view #community-rooms>.channel-row{align-self:start}

.channel-deafened-state{display:inline-flex;position:absolute;left:0;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#d44855}
.channel-deafened-state[hidden]{display:none}
.channel-deafened-state svg{width:18px;height:18px}
.channel-participants li.is-deafened .channel-mic-state{left:19px}
.channel-participants li.is-deafened{padding-inline-start:38px}

/* Mobile channel drawer: one room list, without a separate community rail. */
@media(max-width:760px){
 #community-view.mobile-rooms-open .community-sidebar{display:flex!important;flex-direction:column;position:fixed;inset:0 auto 0 0!important;width:min(340px,90vw)!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box;overflow:hidden!important;border:0;border-right:1px solid #e8ded4;border-radius:0 18px 18px 0;padding:16px 14px max(14px,env(safe-area-inset-bottom))!important;z-index:52;background:#fffdfb;box-shadow:12px 0 40px #25201a25;animation:channel-drawer-enter .2s ease-out}
 #community-view.mobile-rooms-open .community-sidebar-head{flex:none;min-height:44px;padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #eee5dc;gap:8px}
 #community-view.mobile-rooms-open .community-sidebar-head h2{font:600 17px/1.2 Arial,sans-serif;margin:0;display:flex;align-items:center;gap:8px;flex:1}
 #community-view.mobile-rooms-open .room-sidebar-actions{display:flex;gap:5px}
 #community-view.mobile-rooms-open .room-sidebar-actions button{width:30px;height:30px;min-height:30px;padding:6px;display:grid;place-items:center}
 #community-view.mobile-rooms-open .room-sidebar-actions button[hidden]{display:none}
 #community-view.mobile-rooms-open .community-sidebar-head>.mobile-panel-close{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;min-height:30px;margin:0;padding:0;border:0;background:#f2eee9;border-radius:50%;color:#6a6e74;font:20px/1 Arial,sans-serif}
 #community-view.mobile-rooms-open #community-rooms{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;gap:4px;margin:0;padding:0 1px;overscroll-behavior:contain}
 #community-view.mobile-rooms-open .channel-row>[data-channel],#community-view.mobile-rooms-open .channel-divider{min-height:40px;line-height:22px;padding-block:9px;border-radius:7px;font-size:13px}
 #community-view.mobile-rooms-open .channel-row>[data-channel][aria-current=true]{background:#fae7d6;box-shadow:inset 3px 0 #c65b06}
 #community-view.mobile-rooms-open .channel-row>[data-channel]:hover{background:#f8efe5}
 #community-view.mobile-rooms-open .channel-participants{margin:3px 0 6px;padding-inline-start:16px}
 #community-view.mobile-rooms-open .channel-participants li{min-height:28px;gap:5px}
 #community-view.mobile-rooms-open #member-progress{flex:none;margin-top:12px;padding-top:12px;border-top:1px solid #eadfd3}
 #community-view.mobile-rooms-open~#voice-mobile-backdrop,#voice-mobile-backdrop:not([hidden]){z-index:51}
 @keyframes channel-drawer-enter{from{transform:translateX(-100%);opacity:.7}to{transform:translateX(0);opacity:1}}
}
@media(prefers-reduced-motion:reduce){#community-view.mobile-rooms-open .community-sidebar{animation:none}}

@media(max-width:760px){
 #community-view.mobile-rooms-open .community-sidebar>.voice-session-bar{position:static;inset:auto;flex:none;width:100%;box-sizing:border-box;margin:10px 0 0;padding:10px;z-index:auto;grid-template-columns:repeat(4,32px);justify-content:start;gap:6px}
 #community-view.mobile-rooms-open .community-sidebar>.voice-session-bar>div{grid-column:1/-1;grid-row:1}
 #community-view.mobile-rooms-open .community-sidebar>.voice-session-bar>button{grid-row:2;width:32px;height:32px}
}

/* Compact room composer controls with a little more writing space. */
#chat-form .chat-toolbar{gap:4px;padding:4px}
#chat-form .chat-toolbar>button,#chat-form .chat-alignment>button{min-height:26px;height:26px;padding:3px 6px;font-size:12px;line-height:18px;border-radius:6px}
#chat-form .chat-alignment{gap:4px}
#chat-form .chat-alignment svg{width:15px;height:15px}
#chat-form #chat-color span{width:14px;height:14px}
#community-view #chat-form #chat-body{min-height:66px;max-height:120px}
@media(max-width:760px){.mobile-chat-screen #community-view #chat-form #chat-body{min-height:61px;max-height:110px}}

/* Keep notification counters inside the room header's clipped viewport. */
#community-view .active-room-heading{padding-top:7px;box-sizing:border-box}
#chat-pins-toggle{overflow:visible}
#chat-pins-count{top:-5px;right:-4px;z-index:2;box-sizing:border-box;height:16px;min-width:16px;display:grid;place-items:center;line-height:16px;font-weight:600}
#chat-pins-count[hidden]{display:none}
@media(max-width:760px){
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;align-items:center;gap:4px;white-space:nowrap}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>.chat-author-name{grid-column:2;grid-row:1;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>time{grid-column:3;grid-row:1;margin:0;font-size:8px;line-height:1.2}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>.chat-message-actions{grid-column:4;grid-row:1;gap:3px}
 #oda:has(#voice-room-view[hidden]) #chat-messages>.chat-message>strong>.chat-message-actions button{width:22px;height:24px;min-width:22px;padding:3px}
 #chat-messages .chat-message-actions svg{width:13px;height:13px}
}

/* The directory list scrolls independently; its guide/footer stays visible. */
body:has(#directory:not([hidden])){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body:has(#directory:not([hidden]))>.voice-header{flex:none}
body:has(#directory:not([hidden]))>main{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;box-sizing:border-box;padding-block:14px;margin-block:0}
#directory:not([hidden]){display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;gap:14px}
.voice-directory-content{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 3px 12px}
#directory .voice-directory-footer{flex:0 1 auto;display:flex;flex-direction:column;min-height:0;max-height:42dvh;margin:0;box-sizing:border-box}
#directory .voice-guide-heading,#directory .voice-guide-links{flex:none}
#directory .voice-guide-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){#directory{gap:10px}#directory .voice-guide-heading{padding-block:10px}#directory .voice-guide-links{padding-block:9px}}

.chat-toolbar .chat-emoji-toggle,
#chat-form .chat-toolbar > .chat-emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    padding: 0;
}
.chat-toolbar .chat-emoji-toggle > span {
    font: 16px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    transform: translateY(-1px);
}
.chat-new-messages-anchor { position: relative; flex: 0 0 0; height: 0; }
#directory .directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 12px;
}
#directory .community-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 275px;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    padding: 12px 8px;
    gap: 4px;
}
#directory .community-card > strong,
#directory .community-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    max-width: 100%;
    overflow: hidden;
}
.community-card-counts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
}
#directory .community-logo { flex: none; width: 48px; height: 48px; }
#directory .room-open-link { margin-top: 2px; padding: 6px 10px; }
@media (max-width: 760px) {
    #directory .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    #directory .community-card { max-width: none; padding: 6px; gap: 2px; }
    #directory .community-logo { width: 32px; height: 32px; font-size: 18px; border-radius: 8px; }
    #directory .community-card > strong { font-size: 13px; }
    #directory .community-card span:not(.community-logo) { font-size: 10px; }
    #directory .community-card .tayfa-title-art { width: 62px; }
    #directory .community-card .tayfa-title-display { gap: 2px; }
    #directory .community-card .tayfa-card-level { padding: 1px 4px; }
    #directory .community-member-count { padding: 2px 4px; gap: 3px; }
    #directory .community-member-count svg { width: 11px; height: 11px; }
    #directory .room-open-link { padding: 4px 7px; }
    #directory .community-favorite { width: 24px; height: 24px; right: 6px; top: 6px; }
}
@media (max-width: 360px) {
    #directory .community-card { padding: 4px; line-height: 1.15; }
    #directory .community-logo { width: 26px; height: 26px; font-size: 15px; }
    #directory .community-card .tayfa-title-art { width: 52px; }
}
#chat-new-messages {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 3px 12px #49220026;
}

.directory-filters{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 12px}
.directory-categories{display:flex;gap:6px;overflow-x:auto;min-width:0}
.directory-categories button{white-space:nowrap;border-radius:999px;padding:6px 12px}
.directory-categories [aria-pressed=true]{background:#9b4309;color:#fff;border-color:#9b4309}
.directory-filters label{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap;font-size:12px}
.directory-filters select{width:auto;margin:0}
#directory .community-card[hidden]{display:none}
#directory .community-category{line-height:1.15;color:#864615}
#discover-empty{color:#60676d;font-size:13px}
@media(max-width:760px){.directory-filters{flex-wrap:wrap}.directory-categories{width:100%}.directory-categories button{font-size:12px}.directory-filters label{margin-left:auto}.directory-filters select{padding:4px 6px}}
@media(max-width:360px){#directory .community-card{gap:1px}#directory .community-card .tayfa-title-art{width:44px}}

.chat-personal{max-width:800px;margin:20px auto;padding:0 12px}.chat-personal nav{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px}.chat-personal form+form{margin-top:16px}.chat-personal-identity{display:flex;align-items:center;gap:12px}.chat-personal-identity img{width:54px;height:54px;object-fit:cover;border-radius:50%}.chat-private-history{max-height:52dvh;overflow:auto}.chat-private-history article{padding:8px 12px;border-bottom:1px solid var(--line)}.chat-private-history p{overflow-wrap:anywhere}.chat-private-history small{color:#666}
