.app {
    grid-template-columns: 0 0 minmax(0, 1fr) 0 !important;
}

.app > .side,
.pt-shell {
    display: none !important;
}

.app > .con {
    grid-column: 3 !important;
    min-width: 0 !important;
    width: auto !important;
}

.content-wrap {
    max-width: 960px !important;
}

.composer-card .toolbar {
    position: relative !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.composer-card .toolbar > .toolbar-right {
    position: absolute !important;
    right: 0 !important;
    margin-left: 0 !important;
}

.support-quota {
    position: fixed;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: var(--color-text-muted, currentColor);
    font-size: 11px;
    line-height: 1.35;
    pointer-events: none;
}

.support-quota-text {
    overflow-wrap: anywhere;
    white-space: normal;
}

.support-quota-track {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-line, rgba(128, 128, 128, 0.35));
}

.support-quota-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #3b82f6;
    transition: width 240ms ease;
}

.support-quota.is-exhausted {
    color: #ef7777;
}

.support-quota.is-exhausted .support-quota-fill {
    background: #dc2626;
}

.support-quota.is-unlimited .support-quota-track,
.support-quota[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .content-wrap {
        max-width: 100% !important;
    }

    .composer-card {
        padding-bottom: 28px;
    }
}

.support-requirements-open {
    position: fixed;
    z-index: 45;
    width: 96px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #60a5fa;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.support-requirements-open:hover {
    background: #1d4ed8;
}

.support-requirements-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.support-requirements-dialog {
    display: flex;
    flex-direction: column;
    width: min(900px, 100%);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    background: #18181b;
    color: #e4e4e7;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.support-requirements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #3f3f46;
}

.support-requirements-header h2 {
    margin: 0;
    font-size: 20px;
}

.support-requirements-close {
    border: 0;
    background: transparent;
    color: #d4d4d8;
    font-size: 24px;
    cursor: pointer;
}

.support-requirements-meta {
    padding: 10px 22px;
    color: #a1a1aa;
    font-size: 13px;
}

.support-requirements-preview {
    flex: 1;
    min-height: 240px;
    overflow: auto;
    margin: 0 22px;
    padding: 20px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    background: #111113;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.support-requirements-preview h1,
.support-requirements-preview h2,
.support-requirements-preview h3,
.support-requirements-preview h4,
.support-requirements-preview h5,
.support-requirements-preview h6 {
    color: #f4f4f5;
    line-height: 1.4;
}

.support-requirements-preview pre {
    overflow: auto;
    padding: 12px;
    border-radius: 6px;
    background: #27272a;
    white-space: pre-wrap;
}

.support-requirements-error {
    min-height: 22px;
    padding: 8px 22px 0;
    color: #f87171;
    font-size: 13px;
}

.support-requirements-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 20px;
}

.support-requirements-actions button {
    padding: 8px 14px;
    border: 1px solid #52525b;
    border-radius: 7px;
    background: #27272a;
    color: #f4f4f5;
    cursor: pointer;
}

.support-requirements-actions button:hover:not(:disabled) {
    background: #3f3f46;
}

.support-requirements-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.support-requirements-actions .support-requirements-primary {
    border-color: #2563eb;
    background: #2563eb;
}

@media (max-width: 700px) {
    .support-requirements-overlay {
        padding: 0;
    }

    .support-requirements-dialog {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .support-requirements-preview {
        margin: 0 14px;
        padding: 14px;
    }

    .support-requirements-actions {
        padding: 12px 14px 16px;
    }
}

