/* SOC GLOBAL CHAT COMMAND V5 2026-08-12 */

.full-chat-view {
    min-height: calc(100vh - 170px);
    padding: 0;
    overflow: hidden;
}

.soc-chat-command {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: calc(100vh - 170px);
    min-height: 620px;
    color: var(--text);
}

.soc-chat-command-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--panel-line);
    background: rgba(7, 9, 15, 0.88);
}

.soc-chat-command-areas,
.soc-chat-command-tools,
.soc-chat-command-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.soc-chat-area-button,
.soc-chat-tool-button,
.soc-chat-action-button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--panel-line);
    border-radius: 9px;
    color: #cbd2e4;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
}

.soc-chat-area-button:hover,
.soc-chat-tool-button:hover,
.soc-chat-action-button:hover {
    border-color: rgba(40, 231, 255, 0.24);
    color: white;
}

.soc-chat-area-button.active {
    border-color: rgba(40, 231, 255, 0.55);
    color: #041018;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(40, 231, 255, 0.18);
}

.soc-chat-action-button.danger {
    border-color: rgba(255, 69, 103, 0.36);
    color: #ff8ba2;
    background: rgba(255, 69, 103, 0.065);
}

.soc-chat-action-button.danger:hover {
    border-color: rgba(255, 69, 103, 0.72);
    color: white;
    background: rgba(255, 69, 103, 0.18);
}

.soc-chat-search {
    width: min(340px, 28vw);
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--panel-line);
    border-radius: 9px;
    outline: none;
    color: white;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.65rem;
}

.soc-chat-search:focus {
    border-color: rgba(40, 231, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(40, 231, 255, 0.055);
}

.soc-chat-command-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 355px;
    min-height: 0;
}

.soc-chat-command-feed-wrap {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--panel-line);
}

.soc-chat-command-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.6rem;
}

.soc-chat-command-summary strong {
    color: white;
}

.soc-chat-command-feed {
    min-height: 0;
    padding: 8px;
    overflow: auto;
}

.soc-chat-board-message {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
}

.soc-chat-board-message:hover,
.soc-chat-board-message.selected {
    border-color: rgba(40, 231, 255, 0.16);
    background: rgba(40, 231, 255, 0.035);
}

.soc-chat-board-message.hidden-message {
    opacity: 0.62;
    border-color: rgba(255, 193, 92, 0.14);
}

.soc-chat-board-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 10px;
    color: #dfe7ff;
    background: linear-gradient(135deg, rgba(155,108,255,.25), rgba(40,231,255,.11));
    font-size: .68rem;
    font-weight: 900;
}

.soc-chat-board-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soc-chat-board-copy {
    min-width: 0;
}

.soc-chat-board-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.soc-chat-board-meta strong {
    color: #f7f8ff;
    font-size: .69rem;
}

.soc-chat-board-badge {
    padding: 2px 6px;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(40,231,255,.075);
    font-size: .5rem;
    font-weight: 900;
}

.soc-chat-board-badge.warning {
    color: #ffd26f;
    background: rgba(255,193,92,.08);
}

.soc-chat-board-copy p {
    margin: 4px 0 0;
    color: #c8cede;
    font-size: .68rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.soc-chat-board-time {
    color: #666f83;
    font-size: .55rem;
    white-space: nowrap;
}

.soc-chat-command-inspector {
    min-width: 0;
    min-height: 0;
    padding: 13px;
    overflow: auto;
    background: rgba(5, 7, 12, .5);
}

.soc-chat-inspector-empty {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 260px;
    color: var(--muted);
    text-align: center;
}

.soc-chat-inspector-empty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border: 1px solid rgba(155,108,255,.28);
    border-radius: 50%;
    color: var(--purple);
    background: rgba(155,108,255,.06);
    font-size: 1.3rem;
}

.soc-chat-inspector-empty strong,
.soc-chat-inspector-empty small {
    display: block;
}

.soc-chat-inspector-empty strong {
    color: white;
    font-size: .76rem;
}

.soc-chat-inspector-empty small {
    margin-top: 5px;
    line-height: 1.5;
    font-size: .6rem;
}

.soc-chat-inspector-head h3 {
    margin: 0;
    color: white;
    font-size: .9rem;
}

.soc-chat-inspector-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .58rem;
}

.soc-chat-inspector-message {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 11px;
    color: #d7dced;
    background: rgba(255,255,255,.018);
    font-size: .68rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.soc-chat-inspector-identity {
    margin-bottom: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(40,231,255,.08);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(40,231,255,.02);
    font-size: .56rem;
    overflow-wrap: anywhere;
}

.soc-chat-inspector-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 7px;
}

.soc-chat-inspector-actions button {
    min-height: 36px;
    border: 1px solid var(--panel-line);
    border-radius: 9px;
    color: #dbe1f2;
    background: rgba(255,255,255,.025);
    font: inherit;
    font-size: .58rem;
    font-weight: 900;
    cursor: pointer;
}

.soc-chat-inspector-actions button:hover {
    border-color: rgba(40,231,255,.25);
    color: white;
}

.soc-chat-inspector-actions button.danger {
    border-color: rgba(255,69,103,.27);
    color: #ff8aa0;
}

.soc-chat-command-composer {
    padding: 10px 12px;
    border-top: 1px solid var(--panel-line);
    background: rgba(7,9,15,.92);
}

.soc-chat-command-composer-row {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr) 100px;
    gap: 8px;
}

.soc-chat-command-composer select,
.soc-chat-command-composer textarea {
    border: 1px solid var(--panel-line);
    border-radius: 10px;
    outline: none;
    color: white;
    background: rgba(255,255,255,.03);
    font: inherit;
    font-size: .66rem;
}

.soc-chat-command-composer select {
    padding: 0 9px;
}

.soc-chat-command-composer textarea {
    min-height: 42px;
    max-height: 86px;
    padding: 11px 12px;
    resize: none;
}

.soc-chat-command-send {
    border: 0;
    border-radius: 10px;
    color: #051018;
    background: var(--cyan);
    font: inherit;
    font-size: .64rem;
    font-weight: 950;
    cursor: pointer;
}

.soc-chat-command-status {
    min-height: 20px;
    padding: 5px 2px 0;
    color: var(--muted);
    font-size: .55rem;
}

.soc-chat-command-status.success {
    color: var(--green);
}

.soc-chat-command-status.error {
    color: #ff758f;
}

.soc-chat-board-empty {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: var(--muted);
    text-align: center;
    font-size: .66rem;
}

@media (max-width: 1180px) {
    .soc-chat-command-main {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .soc-chat-search {
        width: 230px;
    }
}
