/* Streamcio 1.7.4 · pełny picker emotek i czytelny wybór wielu ról */
.emoji-picker-head-actions-v174 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.emoji-smart-popover .smart-popover-head > strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.emoji-smart-popover [data-emoji-count] {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 21px;
    padding: 0 6px;
    border: 1px solid rgba(139, 92, 246, .3);
    border-radius: 999px;
    background: rgba(139, 92, 246, .12);
    color: #d8ccff;
    font-size: 10px;
    font-weight: 850;
}

.emoji-smart-popover [data-refresh-server-emojis],
.emoji-smart-popover [data-close-smart-popover] {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 9px;
}

.emoji-smart-popover [data-refresh-server-emojis] {
    color: #b9a8ff;
    font-size: 19px !important;
}

.emoji-smart-popover [data-refresh-server-emojis].is-loading {
    animation: emoji-picker-spin-v174 .75s linear infinite;
    pointer-events: none;
}

.emoji-picker-tabs-v174 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 9px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 11px;
    background: rgba(5, 10, 24, .58);
}

.emoji-picker-tabs-v174 button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #96a3b8;
    font-size: 11px;
    font-weight: 800;
}

.emoji-picker-tabs-v174 button:hover,
.emoji-picker-tabs-v174 button:focus-visible {
    color: #eef3ff;
    background: rgba(139, 92, 246, .09);
}

.emoji-picker-tabs-v174 button.is-active {
    border-color: rgba(139, 92, 246, .42);
    background: linear-gradient(135deg, rgba(79, 140, 255, .15), rgba(139, 92, 246, .2));
    color: #f3efff;
    box-shadow: inset 0 0 16px rgba(139, 92, 246, .08);
}

.emoji-picker-tabs-v174 small {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    font-size: 9px;
}

.emoji-picker-panel-v174 { min-height: 0; }

.emoji-recents-v174 {
    margin: 0 0 9px;
    padding: 8px;
    border: 1px solid rgba(139, 92, 246, .2);
    border-radius: 11px;
    background: rgba(139, 92, 246, .055);
}

.emoji-recents-v174 > small {
    display: block;
    margin: 0 0 7px;
    color: #aeb9cc;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.emoji-recent-grid-v174 {
    display: grid;
    grid-auto-columns: 42px;
    grid-auto-flow: column;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 1px 4px;
    scrollbar-width: thin;
}

.emoji-recent-grid-v174 .emoji-copy {
    width: 42px;
    min-height: 42px !important;
    padding: 5px !important;
    border-radius: 9px;
}

.emoji-recent-grid-v174 .emoji-copy small { display: none; }
.emoji-recent-grid-v174 .emoji-copy img { width: 27px; height: 27px; }

.emoji-unicode-symbol-v174 {
    font-size: 25px;
    line-height: 1;
}

.emoji-unicode-v174 small { margin-top: 6px; }

.emoji-picker-state-v174 {
    margin: 2px 0 0;
    padding: 10px 11px;
    border: 1px dashed rgba(148, 163, 184, .18);
    border-radius: 10px;
    text-align: center;
}

.emoji-picker-state-v174.is-error {
    border-color: rgba(248, 113, 113, .3);
    background: rgba(248, 113, 113, .08);
    color: #fecaca;
}

@keyframes emoji-picker-spin-v174 { to { transform: rotate(360deg); } }

.member-smart-popover-v174 .emoji-search { margin-bottom: 9px; }
.member-mention-results-v174 {
    display: grid;
    gap: 6px;
    max-height: min(340px, calc(100vh - 190px));
    overflow: auto;
}

.member-mention-option-v174 {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: #eef3ff;
    text-align: left;
}

.member-mention-option-v174:hover,
.member-mention-option-v174:focus-visible {
    border-color: rgba(88, 101, 242, .58);
    background: rgba(88, 101, 242, .1);
}

.member-mention-avatar-v174 {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8cff, #7c5cff);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.member-mention-avatar-v174 img { width: 100%; height: 100%; object-fit: cover; }
.member-mention-option-v174 > span:last-child { display: grid; gap: 3px; min-width: 0; }
.member-mention-option-v174 strong,
.member-mention-option-v174 small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-mention-option-v174 strong { font-size: 12px; }
.member-mention-option-v174 small { color: #92a0b8; font-size: 10px; }
.member-mention-state-v174 { margin: 8px 0 0; text-align: center; }
.member-mention-state-v174.is-error { color: #fecaca; }

.discord-user-mention-v174 {
    padding: 0 3px;
    border-radius: 3px;
    background: rgba(88, 101, 242, .25);
    color: #c9cdfb;
    font-weight: 600;
}

.embed-editor-shortcuts-v174 {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(88, 101, 242, .2);
    border-radius: 11px;
    background: rgba(88, 101, 242, .06);
    color: #aebbd0;
    font-size: 11px;
    line-height: 1.5;
}

.embed-editor-shortcuts-v174 strong { color: #eef3ff; }
.rich-bold-tool-v174 strong { font: 900 15px/1 Georgia, serif; }

/* Pola nie mogą wyglądać na pogrubione przez styl otaczającej etykiety formularza. */
.rich-command-editor-v66 {
    font-weight: 400 !important;
}

.rich-command-editor-v66 .rich-discord-bold-v174 {
    font-weight: 700;
}

/* Rozwinięta edycja panelu wykorzystuje całą dostępną szerokość. */
.ar2-panel-body .ar2-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
}

.ar2-panel-body .ar2-settings-card,
.ar2-panel-body .ar2-items-card,
.ar2-panel-body .ar2-preview-history {
    width: 100%;
    min-width: 0;
}

.ar2-panel-body .ar2-preview-history {
    grid-column: 1;
}

.ar2-add-item-form .ar2-role-option,
.ar2-item-form .ar2-role-option {
    position: relative;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center !important;
    gap: 10px !important;
    min-height: 48px;
    padding: 8px 10px !important;
    overflow: hidden;
}

.ar2-add-item-form .ar2-role-option[hidden],
.ar2-item-form .ar2-role-option[hidden] {
    display: none !important;
}

.ar2-role-search-empty {
    margin: 8px 0 2px;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, .2);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

.ar2-role-option input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(50%);
}

.ar2-role-check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 6px;
    background: rgba(7, 14, 29, .9);
    color: transparent;
    font-size: 12px;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ar2-role-check::after { content: "✓"; }
.ar2-role-option input:checked + .ar2-role-check {
    border-color: #65a0ff;
    background: linear-gradient(135deg, #4f8cff, #7c5cff);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .13);
    color: #fff;
}

.ar2-role-option input:focus-visible + .ar2-role-check {
    outline: 2px solid #9fc0ff;
    outline-offset: 2px;
}

.ar2-role-option:has(input:checked) {
    border-color: rgba(79, 140, 255, .5) !important;
    background: rgba(79, 140, 255, .09) !important;
}

.ar2-role-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ar2-role-copy b {
    overflow: hidden;
    color: #eaf0ff;
    font-size: .73rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ar2-role-copy small {
    color: #e7b56b;
    font-size: .65rem;
    line-height: 1.3;
}

.ar2-role-option.is-unavailable .ar2-role-check {
    border-style: dashed;
    filter: saturate(.35);
}

@media (max-width: 900px) {
    .ar2-role-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .emoji-smart-popover [data-refresh-server-emojis].is-loading { animation: none; }
}
