.pgtsp-ops-desk-role {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

.pgtsp-ops-header-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pgtsp-ops-back-btn {
    white-space: nowrap;
}

.pgtsp-ops-nav-badge {
    margin-left: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

#pgtsp-view-operations-desk {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100vh - 220px);
}

.pgtsp-ops-desk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    height: 100%;
}

.pgtsp-ops-desk-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgtsp-ops-desk-messages {
    flex: 1;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.pgtsp-ops-empty {
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    padding: 24px;
}

.pgtsp-ops-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.pgtsp-ops-msg.is-own .pgtsp-ops-body {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.pgtsp-ops-msg.is-mention-for-me .pgtsp-ops-body {
    background: #ecfeff;
    border-color: #67e8f9;
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.22);
}

.pgtsp-ops-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.pgtsp-ops-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    flex: 1;
}

.pgtsp-ops-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 4px;
}

.pgtsp-ops-delete-message {
    margin-left: auto;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
}

.pgtsp-ops-delete-message:hover {
    background: #fee2e2;
}

.pgtsp-ops-head strong {
    color: #0f172a;
    font-size: 13px;
}

.pgtsp-ops-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.pgtsp-ops-text {
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
}

.pgtsp-ops-desk-composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 82px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
}

.pgtsp-ops-desk-composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgtsp-ops-desk-composer .pgtsp-btn {
    align-self: flex-end;
}

.pgtsp-ops-composer-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pgtsp-ops-composer-actions #pgtsp-ops-add-order-context[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.pgtsp-ops-composer-actions #pgtsp-ops-add-order-context.is-disabled {
    opacity: 0.7;
}

.pgtsp-ops-order-context-help {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.pgtsp-ops-order-context-help.is-error {
    color: #b91c1c;
}

.pgtsp-ops-order-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 12px;
    color: #334155;
}

.pgtsp-ops-order-line a {
    color: #2563eb;
    text-decoration: underline;
}

.pgtsp-ops-inline-error {
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 13px;
}

.pgtsp-ops-sidebar {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pgtsp-ops-sidebar-title {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.pgtsp-ops-participants {
    padding: 10px;
    overflow: auto;
}

.pgtsp-ops-participant-hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.pgtsp-ops-participant {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-areas:
        "avatar name"
        "avatar login";
    gap: 2px 8px;
    text-align: left;
    margin-bottom: 8px;
    cursor: pointer;
}

.pgtsp-ops-participant:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.pgtsp-ops-participant img {
    grid-area: avatar;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.pgtsp-ops-participant-name {
    grid-area: name;
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.pgtsp-ops-participant-login {
    grid-area: login;
    font-size: 12px;
    color: #6366f1;
}

@media (max-width: 1024px) {
    .pgtsp-ops-desk-layout {
        grid-template-columns: 1fr;
    }
}

