/* top/x-layout.css */
@charset "UTF-8";

.top-two-columns > .top-column-x {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.top-x-section {
    background: var(--theme-bg-color, rgba(255, 255, 255, 0.70)) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: clamp(16px, 1.2vw, 28px);
    padding: clamp(16px, 1.5vw, 30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    transition: background 0.3s ease;
}

.top-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-top-expand-btn,
.x-top-settings-btn {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.x-top-expand-btn:hover,
.x-top-settings-btn:hover {
    background: var(--theme-color, #333);
    border-color: var(--theme-color, #333);
    color: #fff;
    transform: scale(1.08);
}

.x-account-tabs {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.5vw, 10px);
    margin-bottom: clamp(10px, 0.8vw, 16px);
    border-bottom: 2px solid rgba(241, 245, 249, 0.8);
    padding-bottom: clamp(8px, 0.6vw, 12px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    scrollbar-width: none;
}

.x-account-tabs::-webkit-scrollbar {
    display: none;
}

.x-account-tab {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.3vw, 8px);
    height: clamp(32px, 1.2vw + 20px, 48px);
    padding: 0 clamp(10px, 0.7vw + 3px, 16px);
    border-radius: clamp(16px, 1vw + 10px, 24px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    color: #475569;
    font-size: clamp(0.78rem, 0.72rem + 0.18vw, 1.0rem);
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.x-account-tab img {
    width: clamp(18px, 1vw + 6px, 26px);
    height: clamp(18px, 1vw + 6px, 26px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.x-account-tab:hover {
    background: #fff !important;
    border-color: var(--theme-color, #333) !important;
    color: var(--theme-color, #333) !important;
}

.x-account-tab.active {
    background-color: var(--theme-color, #333) !important;
    border-color: var(--theme-color, #333) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.x-account-select-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    max-width: 180px;
    height: clamp(32px, 1.2vw + 20px, 48px);
    box-sizing: border-box;
}

.x-account-select-wrap .x-select-current-icon {
    position: absolute;
    left: 8px;
    width: clamp(18px, 1vw + 6px, 26px);
    height: clamp(18px, 1vw + 6px, 26px);
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}

.x-account-select-other {
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 180px;
    height: 100%;
    padding: 0 28px 0 12px;
    border-radius: clamp(16px, 1vw + 10px, 24px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: #ffffff;
    color: #475569;
    font-size: clamp(0.78rem, 0.72rem + 0.18vw, 1.0rem);
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    box-sizing: border-box;
}

.x-account-select-wrap.has-icon .x-account-select-other {
    padding-left: clamp(32px, 1vw + 20px, 40px);
}

.x-account-select-other:hover {
    border-color: var(--theme-color, #333);
    color: var(--theme-color, #333);
}

.x-account-select-other.active {
    background-color: var(--theme-color, #333) !important;
    border-color: var(--theme-color, #333) !important;
    color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.x-single-post-container {
    flex: 1;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.x-single-post-body {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-x-section .x-thread-group {
    border: 1px solid rgba(241, 245, 249, 0.9);
    border-radius: 16px;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    width: 100%;
    min-width: 0 !important;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.x-section-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(241, 245, 249, 0.8);
    flex-shrink: 0;
    width: 100%;
}

.x-open-fullscreen-btn {
    width: 100%;
}

.x-fetch-popup-btn {
    width: 100%;
    background-color: rgba(248, 250, 252, 0.9) !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.x-fetch-popup-btn:hover {
    background-color: #fff !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.x-fullscreen-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999999 !important;
    background-color: #f8fafc;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.admin-bar .x-fullscreen-modal {
    top: 0 !important;
}

.x-fullscreen-modal.is-single-col {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.x-fullscreen-modal.is-multi-col {
    overflow: hidden !important;
}

html.x-modal-open,
body.x-modal-open,
html.x-submodal-open,
body.x-submodal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.x-modal-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 100;
}

.x-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 1;
}

.x-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #334155;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.x-modal-close-btn:hover {
    background-color: #f1f5f9;
}

.x-modal-current-account {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-modal-current-account img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.x-modal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.x-modal-account-selector-wrap {
    display: flex;
    align-items: center;
}

.x-modal-account-select {
    padding: 7px 28px 7px 12px;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    width: 100%;
    max-width: 180px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.x-account-select-wrap.has-icon .x-modal-account-select {
    padding-left: 34px;
}

.x-modal-account-select:hover,
.x-modal-account-select:focus {
    border-color: var(--theme-color, #1da1f2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.x-modal-main-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.x-fullscreen-modal.is-single-col .x-modal-main-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.x-fullscreen-modal.is-multi-col .x-modal-main-wrap {
    height: calc(100vh - 60px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 20px 20px;
    justify-content: center;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
}

.x-modal-columns-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-shrink: 0;
}

.x-fullscreen-modal.is-multi-col .x-modal-columns-container {
    height: 100%;
}

.x-modal-sidebar-col {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.x-modal-sidebar-fetch-btn {
    width: 100%;
    margin-top: 14px;
    height: 42px;
}

.x-fullscreen-modal.is-multi-col .x-modal-sidebar-col {
    height: 100%;
    overflow-y: auto;
    top: 0;
    overscroll-behavior: contain;
}

.x-modal-timeline-col {
    width: 600px;
    min-width: 600px;
    max-width: 600px;
    background: #ffffff;
    border-left: 1px solid #EFF3F4;
    border-right: 1px solid #EFF3F4;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.x-fullscreen-modal .x-thread-group {
    border-bottom: 1px solid #EFF3F4;
    background: #ffffff !important;
}

.x-fullscreen-modal.is-multi-col .x-modal-timeline-col {
    height: 100%;
    border: 1px solid #EFF3F4;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
}

.x-column-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #EFF3F4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 10;
}

.x-column-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e293b;
}

.x-column-header-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.x-column-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.x-column-close-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.x-column-scroll-body {
    flex: 1;
    width: 100%;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.x-fullscreen-modal.is-multi-col .x-column-scroll-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.6) transparent;
    overscroll-behavior: contain;
}

.x-fullscreen-modal.is-multi-col .x-column-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.x-fullscreen-modal.is-multi-col .x-column-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.x-fullscreen-modal.is-multi-col .x-column-scroll-body::-webkit-scrollbar-thumb {
    background-color: rgba(203, 213, 225, 0.6);
    border-radius: 3px;
}

.x-modal-add-column-slot {
    width: 300px;
    min-width: 300px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    text-align: center;
    gap: 12px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    flex-shrink: 0;
}

.x-fullscreen-modal.is-multi-col .x-modal-add-column-slot {
    height: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    position: static;
}

.x-add-column-icon {
    font-size: 2rem;
    color: var(--theme-color, #94a3b8);
}

.x-add-column-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.x-add-column-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.x-add-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: bold;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.x-add-account-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.x-add-account-btn:hover {
    border-color: var(--theme-color, #1da1f2);
    color: var(--theme-color, #1da1f2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.x-search-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.x-search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.x-search-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-form-group {
    margin-bottom: 14px;
}

.x-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 6px;
}

.x-input-text {
    width: 100%;
    height: 38px;
    min-height: 38px;
    line-height: normal;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
}

.x-input-text:focus {
    border-color: var(--theme-color, #1da1f2);
    background-color: #ffffff;
}

.x-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.x-date-range .x-input-date {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 38px;
    min-height: 38px;
    line-height: normal;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
}

.x-date-range .x-input-date:focus {
    border-color: var(--theme-color, #1da1f2);
    background-color: #ffffff;
}

.x-date-sep {
    color: #94a3b8;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.x-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.x-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.x-checkbox-label input[type="checkbox"] {
    display: none;
}

.x-checkbox-label span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.x-checkbox-label input[type="checkbox"]:checked + span {
    background-color: var(--theme-color, #1da1f2);
    border-color: var(--theme-color, #1da1f2);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.x-search-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.x-search-actions .button {
    flex: 1;
}

.x-floating-fetch-btn {
    display: none;
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--theme-color, #1da1f2);
    color: #ffffff;
    border: 1.5px solid var(--theme-color, #1da1f2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10000010;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.x-floating-fetch-btn:hover {
    background-color: #ffffff;
    color: var(--theme-color, #1da1f2);
    border-color: var(--theme-color, #1da1f2);
}

.x-floating-fetch-btn:active {
    transform: scale(0.92);
}

.x-floating-search-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--theme-color, #1da1f2);
    color: #ffffff;
    border: 1.5px solid var(--theme-color, #1da1f2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10000010;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.x-floating-search-btn:hover {
    background-color: #ffffff;
    color: var(--theme-color, #1da1f2);
    border-color: var(--theme-color, #1da1f2);
}

.x-floating-search-btn:active {
    transform: scale(0.92);
}

.x-sub-modal-overlay {
    position: fixed !important;
    top: var(--vv-top, 0px) !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--vv-height, 100dvh) !important;
    max-height: var(--vv-height, 100dvh) !important;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000005 !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-sizing: border-box;
}

.x-sub-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: calc(var(--vv-height, 100dvh) - 32px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    margin: auto 0;
}

.x-sub-modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #EFF3F4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.x-sub-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0F1419;
}

.x-sub-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #536471;
}

.x-sub-modal-body {
    padding: 10px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.revision-thread:not(:last-child) {
    border-bottom: 4px solid #EFF3F4;
}

.x-search-modal-content {
    max-width: 440px;
}

.x-search-modal-body {
    padding: 20px 24px;
}

.x-settings-modal-content {
    max-width: 460px;
}

.x-settings-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.x-settings-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.x-settings-sec-title {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e293b;
}

.x-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.x-settings-row label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
}

.x-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 160px;
    -webkit-appearance: none;
}

.x-select:focus {
    border-color: var(--theme-color, #1da1f2);
}

.x-settings-save-sec {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    gap: 4px;
}

.x-settings-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.x-settings-toggle-label input[type="checkbox"] {
    display: none;
}

.x-toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    background-color: #cbd5e1;
    border-radius: 11px;
    transition: background-color 0.25s ease;
    flex-shrink: 0;
}

.x-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.x-settings-toggle-label input[type="checkbox"]:checked + .x-toggle-switch {
    background-color: var(--theme-color, #1da1f2) !important;
}

.x-settings-toggle-label input[type="checkbox"]:checked + .x-toggle-switch::after {
    transform: translateX(16px);
}

.x-toggle-text {
    font-size: 0.86rem;
    font-weight: 800;
    color: #1e293b;
}

.x-settings-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.x-settings-actions .button {
    flex: 1;
}

@media screen and (max-width: 1024px) {
    .x-modal-header {
        padding: 0 10px;
        gap: 8px;
    }

    .x-modal-current-account span {
        display: none;
    }

    .x-account-select-wrap {
        max-width: 140px;
    }

    .x-modal-account-select {
        padding: 5px 22px 5px 8px;
        font-size: 0.78rem;
        max-width: 130px;
    }

    .x-account-select-wrap.has-icon .x-modal-account-select {
        padding-left: 28px;
    }

    .x-account-select-wrap .x-select-current-icon {
        left: 6px;
        width: 18px;
        height: 18px;
    }

    .x-fullscreen-modal.is-single-col .x-modal-main-wrap,
    .x-fullscreen-modal.is-multi-col .x-modal-main-wrap {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 12px 10px 80px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .x-modal-columns-container {
        width: 100% !important;
        max-width: 600px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    .x-modal-timeline-col {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        border-left: 1px solid #EFF3F4 !important;
        border-right: 1px solid #EFF3F4 !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        height: auto !important;
    }

    .x-post-item {
        padding: 12px 14px !important;
    }

    .x-column-scroll-body {
        overflow-y: visible !important;
        width: 100% !important;
    }

    .x-modal-add-column-slot {
        display: none !important;
    }

    .media-container,
    .youtube-facade-container,
    .twitter-card,
    .quoted-tweet {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .media-container.media-count-1 {
        width: fit-content !important;
        max-width: 100% !important;
    }

    .media-container.media-count-1 .media-item {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
    }

    .x-modal-sidebar-col {
        display: none !important;
    }

    .x-floating-fetch-btn {
        display: flex;
    }

    .x-floating-search-btn {
        display: flex;
    }
}

@media screen and (max-width: 480px) {
    .x-modal-timeline-col {
        border-left: none !important;
        border-right: none !important;
    }
}