@charset "utf-8";

.agora-voice-room {
    --avr-ink: #1a1d26;
    --avr-muted: #6b7280;
    --avr-line: #e5e7eb;
    --avr-soft: #f4f5f7;
    --avr-accent: #0f766e;
    --avr-accent-soft: #ccfbf1;
    --avr-danger: #be123c;
    --avr-green: #16a34a;
    --avr-gray: #9ca3af;
    background: #fff;
    border: 1px solid var(--avr-line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.agora-voice-room .avr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.agora-voice-room .avr-title {
    font-size: 1.05em;
    letter-spacing: -0.02em;
    color: var(--avr-ink);
}

.agora-voice-room .avr-status {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--avr-muted);
    background: var(--avr-soft);
    padding: 4px 8px;
    border-radius: 999px;
}

.agora-voice-room .avr-status.is-live {
    color: #0f766e;
    background: var(--avr-accent-soft);
}

.agora-voice-room .avr-status.is-error {
    color: var(--avr-danger);
    background: #ffe4e6;
}

.agora-voice-room .avr-drive-warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78em;
    line-height: 1.45;
    margin-bottom: 12px;
}

.agora-voice-room .avr-drive-warn strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}

.agora-voice-room .avr-drive-warn em {
    font-style: normal;
    font-weight: 700;
    text-decoration: underline;
}

.agora-voice-room .avr-guest-note {
    margin: 0 0 12px;
    font-size: 0.84em;
    color: var(--avr-muted);
    line-height: 1.4;
}

.agora-voice-room .avr-cost-note {
    margin: 0 0 12px;
    font-size: 0.78em;
    color: var(--avr-muted);
    line-height: 1.45;
    padding: 8px 10px;
    background: var(--avr-soft);
    border-radius: 10px;
}

.agora-voice-room .avr-cost-note strong {
    color: var(--avr-accent);
}

.agora-voice-room .avr-still-here {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.agora-voice-room .avr-still-msg {
    margin: 0 0 10px;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1.4;
}

.agora-voice-room .avr-still-actions {
    display: flex;
    gap: 8px;
}

.agora-voice-room .avr-still-yes,
.agora-voice-room .avr-still-no {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.86em;
    cursor: pointer;
}

.agora-voice-room .avr-still-yes {
    background: var(--avr-ink);
    color: #fff;
}

.agora-voice-room .avr-still-no {
    background: #fff;
    color: var(--avr-muted);
    border: 1px solid var(--avr-line);
}

.agora-voice-room .avr-fav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.agora-voice-room .avr-fav-label {
    font-size: 0.84em;
    color: var(--avr-muted);
}

.agora-voice-room .avr-fav-label b {
    color: var(--avr-ink);
}

.agora-voice-room .avr-add-btn {
    border: 1px solid var(--avr-line);
    background: var(--avr-soft);
    color: var(--avr-ink);
    border-radius: 8px;
    height: 36px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 0.86em;
    cursor: pointer;
}

.agora-voice-room .avr-region-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agora-voice-room .avr-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--avr-muted);
    font-size: 0.9em;
    line-height: 1.5;
    border: 1px dashed var(--avr-line);
    border-radius: 12px;
}

.agora-voice-room .avr-region-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--avr-line);
    border-radius: 12px;
    background: #fff;
    min-width: 0;
}

.agora-voice-room .avr-region-item.is-listen {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.agora-voice-room .avr-region-item.is-talking {
    border-color: #86efac;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

/* 1행: 램프 · 지역 · 인원 */
.agora-voice-room .avr-region-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 2px 2px 0;
}

.agora-voice-room .avr-lamp {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--avr-gray);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
    transition: background .15s ease, box-shadow .15s ease;
}

.agora-voice-room .avr-lamp.is-green {
    background: var(--avr-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.agora-voice-room .avr-region-name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--avr-ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agora-voice-room .avr-count {
    flex-shrink: 0;
    font-size: 0.72em;
    font-weight: 700;
    color: var(--avr-ink);
    background: #fff;
    border: 1px solid var(--avr-line);
    padding: 2px 7px;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
}

.agora-voice-room .avr-region-item.is-listen .avr-count {
    border-color: #99f6e4;
    color: #0f766e;
}

/* 2행: 듣기 · 말하기 · × */
.agora-voice-room .avr-region-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    align-items: stretch;
}

.agora-voice-room .avr-listen-btn,
.agora-voice-room .avr-speak-btn,
.agora-voice-room .avr-remove-btn,
.agora-voice-room .avr-join-btn,
.agora-voice-room .avr-picker-close {
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.78em;
}

.agora-voice-room .avr-listen-btn {
    height: 36px;
    background: var(--avr-soft);
    color: var(--avr-muted);
}

.agora-voice-room .avr-listen-btn.is-on {
    background: var(--avr-accent-soft);
    color: #0f766e;
}

.agora-voice-room .avr-speak-btn {
    height: 36px;
    background: var(--avr-soft);
    color: var(--avr-muted);
    padding: 0 8px;
    min-width: 0;
}

.agora-voice-room .avr-speak-btn.is-on {
    background: var(--avr-ink);
    color: #fff;
}

.agora-voice-room .avr-speak-btn.is-disabled {
    opacity: 0.45;
}

.agora-voice-room .avr-speak-spacer {
    display: block;
}

.agora-voice-room .avr-remove-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    color: #9ca3af;
    font-size: 1.2em;
}

/* aside(약 235px) 데스크톱: 패딩·글자 축소, 2행 고정 */
.agora-voice-room.is-desktop {
    padding: 10px;
    overflow: hidden;
}

.agora-voice-room.is-desktop .avr-title {
    font-size: 0.98em;
}

.agora-voice-room.is-desktop .avr-drive-warn {
    font-size: 0.72em;
    padding: 8px;
}

.agora-voice-room.is-desktop .avr-region-name {
    font-size: 0.84em;
}

.agora-voice-room.is-desktop .avr-listen-btn,
.agora-voice-room.is-desktop .avr-speak-btn {
    font-size: 0.72em;
    height: 34px;
}


.agora-voice-room .avr-picker {
    margin-top: 12px;
    border-top: 1px solid var(--avr-line);
    padding-top: 12px;
}

.agora-voice-room .avr-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.agora-voice-room .avr-picker-close {
    background: transparent;
    color: var(--avr-muted);
    padding: 4px 8px;
}

.agora-voice-room .avr-desc {
    margin: 0 0 10px;
    font-size: 0.8em;
    color: var(--avr-muted);
    line-height: 1.4;
}

.agora-voice-room .avr-sido-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.agora-voice-room .avr-sido-btn {
    border: 1px solid var(--avr-line);
    background: #fff;
    color: var(--avr-ink);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 0.84em;
    cursor: pointer;
    text-align: left;
}

.agora-voice-room .avr-sido-btn:hover {
    background: var(--avr-ink);
    border-color: var(--avr-ink);
    color: #fff;
}

.agora-voice-room .avr-check-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.agora-voice-room .avr-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88em;
}

.agora-voice-room .avr-check.is-checked {
    background: var(--avr-accent-soft);
}

.agora-voice-room .avr-check input {
    accent-color: var(--avr-accent);
}

.agora-voice-room .avr-join-btn {
    width: 100%;
    height: 42px;
    background: var(--avr-ink);
    color: #fff;
}

.avr-fab {
    position: fixed;
    right: 14px;
    bottom: 70px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: #0f766e;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
    cursor: pointer;
}

.avr-sheet-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 29, 38, 0.4);
    z-index: 1001;
}

.avr-sheet-bg.is-open { display: block; }

.avr-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    max-height: 82vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 8px 0 20px;
    box-shadow: 0 -12px 40px rgba(26, 29, 38, 0.18);
}

.avr-sheet.is-open { display: block; }

.avr-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #e8ecf1;
}
.avr-sheet-head strong {
    font-size: 1.05rem;
    font-weight: 700;
}
.avr-sheet-close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 1.4em;
    color: #64748b;
    cursor: pointer;
}

.avr-sheet .agora-voice-room {
    border: 0;
    margin: 0;
    border-radius: 0;
}
