.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #e0dbd3;
    border-bottom: 1px solid #e0dbd3;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 120px;
    padding: 18px 16px;
    border: 1px solid #e0dbd3;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.72);
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
}

.nav-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.stat-info {
    display: grid;
    gap: 4px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(23, 25, 29, 0.04);
    color: #888;
}

.stat-icon svg {
    width: 19px;
    height: 19px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-menu {
    position: relative;
}

.filter-menu[open] .filter-menu-trigger {
    background: rgba(23, 25, 29, 0.06);
}

.filter-menu.is-active .filter-menu-trigger {
    background: rgba(93, 102, 246, 0.1);
    color: var(--accent);
    box-shadow: 0 0 0 1px rgba(93, 102, 246, 0.14), 0 0 18px rgba(93, 102, 246, 0.14);
}

.filter-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #ccc6ba;
    background: rgba(255, 253, 248, 0.96);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-menu-trigger::-webkit-details-marker {
    display: none;
}

.filter-menu-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: 260px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(23, 25, 29, 0.08);
    box-shadow: var(--shadow-card);
}

.filter-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-menu-title {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-menu-reset {
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-menu-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-menu-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.filter-select,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #ddd7cb;
    border-radius: 14px;
    background-color: rgba(255, 253, 248, 0.96);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.filter-select,
.form-input,
.form-select {
    min-height: 46px;
    padding: 0 14px;
}

.filter-select,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23606b7d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 16px) 50%;
    background-size: 14px 14px;
    background-repeat: no-repeat;
}

.form-textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
    line-height: 1.7;
}

.filter-select:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(15, 107, 255, 0.28);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 107, 255, 0.08);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-bar,
    .filter-group {
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .stats-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 108px;
        padding: 16px 14px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-menu-panel {
        width: min(100vw - 32px, 320px);
    }
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(23, 25, 29, 0.06);
    box-shadow: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.video-thumbnail-container {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2030, #2a3041);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
}

.placeholder-icon {
    font-size: 3rem;
}

.duration-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
}

.video-thumbnail-container > .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.status-ready {
    background: var(--success-soft);
    color: var(--success);
}

.status-rendering,
.status-processing {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-pending,
.status-scheduled {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-failed {
    background: var(--error-soft);
    color: var(--error);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.play-overlay:hover {
    opacity: 1;
}

.play-button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    font-size: 1.8rem;
}

.video-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
}

.video-card-divider {
    height: 1px;
    background: var(--border);
}

.tweet-preview {
    min-height: 0;
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.social-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-status-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.social-status-item:last-child {
    border-bottom: 0;
}

.social-status-left {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.social-platform-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--bg-soft);
    color: var(--text-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.social-platform-name {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: capitalize;
}

.social-status-detail {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.social-pill.published {
    background: var(--success-soft);
    color: var(--success);
}

.social-pill.manual_publish_ready {
    background: rgba(22, 29, 41, 0.08);
    color: var(--text-primary);
}

.social-pill.queued,
.social-pill.scheduled {
    background: var(--warning-soft);
    color: var(--warning);
}

.social-pill.publishing {
    background: var(--accent-soft);
    color: var(--accent);
}

.social-pill.failed {
    background: var(--error-soft);
    color: var(--error);
}

.social-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.social-link:hover {
    text-decoration: underline;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-actions .btn {
    flex: 1 1 0;
    justify-content: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
}

.empty-state p {
    max-width: 520px;
    margin: 0 0 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.empty-state-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.section-title {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.section-copy {
    color: var(--text-secondary);
    max-width: 62ch;
    font-size: 0.88rem;
    line-height: 1.52;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-label {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.char-counter,
.usage-plan-detail,
.usage-count,
.tweet-meta,
.status-note,
.card-subtitle,
.plan-tile-meta,
.usage-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.char-counter {
    color: #aaa397;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(17, 28, 39, 0.06);
}

.toggle-pill {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-muted);
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.toggle-pill.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.usage-panel {
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(23, 25, 29, 0.06);
}

.usage-sidebar {
    position: sticky;
    top: 108px;
}

.usage-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usage-label {
    font-size: 0.94rem;
    font-weight: 600;
}

.usage-plan-tag {
    color: var(--text-muted);
    font-weight: 500;
}

.usage-remaining {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.usage-remaining strong.normal {
    color: var(--text-primary);
}

.usage-remaining strong.warning {
    color: var(--warning);
}

.usage-remaining strong.exhausted {
    color: var(--error);
}

.usage-bar-track,
.loading-progress {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: #e7e0d5;
}

.usage-bar-fill,
.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
}

.usage-bar-fill.normal,
.progress-bar {
    background: var(--bg-ink);
}

.usage-bar-fill.warning {
    background: linear-gradient(90deg, #a96b17, #d89635);
}

.usage-bar-fill.exhausted {
    background: linear-gradient(90deg, #b63f3f, #de7878);
}

.usage-warning,
.usage-limit-banner,
.usage-exhausted,
.field-note,
.tweet-prefill-banner,
.social-banner,
.tweet-error,
.tweet-session-banner {
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.usage-warning,
.tweet-session-banner {
    border: 1px solid rgba(217, 119, 6, 0.18);
    background: var(--warning-soft);
    color: var(--warning);
}

.usage-limit-banner,
.tweet-error,
.social-banner.error {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: var(--error-soft);
    color: var(--error);
}

.social-banner.success {
    border: 1px solid rgba(22, 163, 74, 0.18);
    background: var(--success-soft);
    color: var(--success);
}

.social-banner.warning {
    border: 1px solid rgba(217, 119, 6, 0.18);
    background: var(--warning-soft);
    color: var(--warning);
}

.tweet-prefill-banner {
    display: none;
}

.tweet-prefill-banner.visible {
    display: block;
}

.tweet-prefill-banner.error {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: var(--error-soft);
    color: var(--error);
}

.tweet-prefill-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(6px);
}

.loading-overlay.is-visible {
    display: flex;
}

.loading-content {
    width: min(420px, 100%);
    padding: 32px 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-shell);
    text-align: center;
}

.loading-kicker {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loading-content h3 {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.5rem;
}

.loading-content p {
    margin: 8px 0 18px;
    color: var(--text-secondary);
}

.loading-stage-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.loading-stage-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loading-stage-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.loading-stage-timing-note {
    margin: 14px auto 0;
    text-align: center;
    max-width: 280px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-left: auto !important;
    margin-right: auto !important;
}

.loading-spinner {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid #e7e0d5;
    border-top-color: var(--bg-ink);
    animation: spin 0.9s linear infinite;
}

.create-loading-failure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.create-loading-failure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--error-soft);
    color: var(--error);
    font-size: 1.8rem;
    font-weight: 800;
}

.create-loading-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    padding: 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-shell);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.6rem;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-secondary);
    cursor: pointer;
}

.video-modal-inner {
    display: grid;
    grid-template-columns: fit-content(420px) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
    max-height: calc(100vh - 152px);
}

.video-player-shell {
    width: min(100%, calc((100vh - 180px) * 9 / 16));
}

.video-player-container {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f172a;
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding-right: 4px;
}

.info-row,
.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row label,
.info-item label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tweet-text {
    line-height: 1.75;
    color: var(--text-primary);
}

.render-details-block {
    gap: 12px;
}

.render-details-table {
    display: grid;
    border: 1px solid rgba(25, 36, 48, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(250, 247, 241, 0.88);
}

.render-details-row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(25, 36, 48, 0.08);
}

.render-details-row:last-child {
    border-bottom: 0;
}

.render-details-key {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.render-details-value {
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-action-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.modal-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 900px) {
    .modal-content {
        overflow: auto;
    }

    .video-modal-inner {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .video-player-shell {
        width: 100%;
    }

    .video-info {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .render-details-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(340px, calc(100vw - 36px));
}

.toast {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(23, 25, 29, 0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 300ms ease;
}

.toast-success {
    border-color: rgba(22, 163, 74, 0.18);
    color: var(--success);
}

.toast-error {
    border-color: rgba(220, 38, 38, 0.18);
    color: var(--error);
}

.user-message-flyout-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 220;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: min(360px, calc(100vw - 36px));
}

.user-message-flyout {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(23, 25, 29, 0.08);
    pointer-events: auto;
}

.user-message-flyout-success {
    border-color: rgba(22, 163, 74, 0.18);
}

.user-message-flyout-warning {
    border-color: rgba(183, 121, 31, 0.2);
}

.user-message-flyout-error {
    border-color: rgba(220, 38, 38, 0.18);
}

.user-message-flyout-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.user-message-flyout-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.user-message-flyout-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(15, 107, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
}

.user-message-flyout-body {
    margin-top: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.user-message-flyout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.tweets-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tweets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.tweets-subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
}

.tweets-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tweets-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.tweets-select {
    min-width: 260px;
}

.tweets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.tweet-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 230px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.tweet-card p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    color: var(--text-primary);
}

.tweet-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.skeleton-card {
    height: 230px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.32), rgba(226, 232, 240, 0.7), rgba(203, 213, 225, 0.32));
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}
