/**
 * X-Shortcode v2.1 ?????
 */

:root {
    --x-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --x-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
    --x-text: #374151;
    --x-muted: #9ca3af;
    --x-border: #e5e7eb;
    --x-bg: #f9fafb;
    --x-surface: #ffffff;
    --x-accent: #3b82f6;
    --x-accent-hover: #2563eb;
    --x-accent-soft: #eff6ff;
    --x-radius: 8px;
    --x-radius-sm: 6px;
    --x-radius-xs: 2px;
    --x-transition: 0.15s ease;

    --x-info: #3b82f6;
    --x-info-bg: #eff6ff;
    --x-info-gradient: linear-gradient(135deg, #bfdbfe 0%, #eff6ff 55%, #ffffff 100%);
    --x-success: #10b981;
    --x-success-bg: #ecfdf5;
    --x-success-gradient: linear-gradient(135deg, #a7f3d0 0%, #ecfdf5 55%, #ffffff 100%);
    --x-warning: #f59e0b;
    --x-warning-bg: #fffbeb;
    --x-warning-gradient: linear-gradient(135deg, #fde68a 0%, #fffbeb 55%, #ffffff 100%);
    --x-error: #ef4444;
    --x-error-bg: #fef2f2;
    --x-error-gradient: linear-gradient(135deg, #fecaca 0%, #fef2f2 55%, #ffffff 100%);
    --x-tip: #14b8a6;
    --x-tip-bg: #ccfbf1;
    --x-tip-gradient: linear-gradient(135deg, #99f6e4 0%, #ccfbf1 55%, #ffffff 100%);
    --x-note: #6b7280;
    --x-note-bg: #f3f4f6;
    --x-note-gradient: linear-gradient(135deg, #d1d5db 0%, #f3f4f6 55%, #ffffff 100%);
    --x-important: #c026d3;
    --x-important-bg: #fae8ff;
    --x-important-gradient: linear-gradient(135deg, #f0abfc 0%, #fae8ff 55%, #ffffff 100%);
    --x-help: #0284c7;
    --x-help-bg: #e0f2fe;
    --x-help-gradient: linear-gradient(135deg, #7dd3fc 0%, #e0f2fe 55%, #ffffff 100%);

    --x-blue: #3b82f6;
    --x-green: #10b981;
    --x-red: #ef4444;
    --x-yellow: #f59e0b;
    --x-black: #374151;
    --x-purple: #8b5cf6;
    --x-gray: #6b7280;
}

/* ?? Error ?? */
.x-shortcode-error {
    margin: 1.25em 0;
    padding: 12px 16px;
    border-left: 3px solid var(--x-error);
    border-radius: var(--x-radius-sm);
    background: var(--x-error-bg);
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.65;
}

/* ?? Notice ?? */
.x-notice {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 1.25em 0;
    padding: 12px 16px;
    border: none;
    border-left: 3px solid;
    border-radius: var(--x-radius-sm) var(--x-radius) var(--x-radius) var(--x-radius-sm);
    font-size: 14px;
    line-height: 1.7;
    color: var(--x-text);
    overflow: hidden;
}

.x-notice::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 2.75em;
    height: 2.75em;
    transform: translateY(-50%);
    opacity: 0.22;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.x-notice-body {
    overflow-wrap: break-word;
}

.x-notice-body > :first-child { margin-top: 0; }
.x-notice-body > :last-child { margin-bottom: 0; }
.x-notice-icon { display: none; }

.x-notice-info { border-left-color: var(--x-info); }
.x-notice-success { border-left-color: var(--x-success); }
.x-notice-warning { border-left-color: var(--x-warning); }
.x-notice-error { border-left-color: var(--x-error); }
.x-notice-tip { border-left-color: var(--x-tip); }
.x-notice-note { border-left-color: var(--x-note); }
.x-notice-important { border-left-color: var(--x-important); }
.x-notice-help { border-left-color: var(--x-help); }

/* ?????*/
.x-notice-style-gradient.x-notice-info { background: var(--x-info-gradient); }
.x-notice-style-gradient.x-notice-info::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='8' r='1' fill='%233b82f6' stroke='none'/%3E%3Cline x1='12' y1='12' x2='12' y2='16'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-success { background: var(--x-success-gradient); }
.x-notice-style-gradient.x-notice-success::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-warning { background: var(--x-warning-gradient); }
.x-notice-style-gradient.x-notice-warning::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='17' r='0.5' fill='%23f59e0b' stroke='none'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-error { background: var(--x-error-gradient); }
.x-notice-style-gradient.x-notice-error::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-tip { background: var(--x-tip-gradient); }
.x-notice-style-gradient.x-notice-tip::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-note { background: var(--x-note-gradient); }
.x-notice-style-gradient.x-notice-note::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-important { background: var(--x-important-gradient); }
.x-notice-style-gradient.x-notice-important::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c026d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.x-notice-style-gradient.x-notice-help { background: var(--x-help-gradient); }
.x-notice-style-gradient.x-notice-help::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* ?????*/
.x-notice-style-flat::after { display: none; }

.x-notice-style-flat.x-notice-info { background: var(--x-info-bg); }
.x-notice-style-flat.x-notice-success { background: var(--x-success-bg); }
.x-notice-style-flat.x-notice-warning { background: var(--x-warning-bg); }
.x-notice-style-flat.x-notice-error { background: var(--x-error-bg); }
.x-notice-style-flat.x-notice-tip { background: var(--x-tip-bg); }
.x-notice-style-flat.x-notice-note { background: var(--x-note-bg); }
.x-notice-style-flat.x-notice-important { background: var(--x-important-bg); }
.x-notice-style-flat.x-notice-help { background: var(--x-help-bg); }

/* 文字标记：小标签贴顶 + 内容在下方 */
.x-notice-style-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 0 12px;
    border: none;
    border-radius: var(--x-radius);
    box-shadow: none;
    overflow: hidden;
}

.x-notice-style-label::after { display: none; }

.x-notice-style-label::before {
    display: inline-block;
    width: auto;
    padding: 3px 10px;
    border-radius: var(--x-radius) 0 var(--x-radius-sm) 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    flex-shrink: 0;
}

.x-notice-style-label .x-notice-body {
    width: 100%;
    padding: 0 16px;
}

.x-notice-style-label.x-notice-info { background: var(--x-info-bg); }
.x-notice-style-label.x-notice-info::before { content: '信息'; background: var(--x-info); }

.x-notice-style-label.x-notice-success { background: var(--x-success-bg); }
.x-notice-style-label.x-notice-success::before { content: '成功'; background: var(--x-success); }

.x-notice-style-label.x-notice-warning { background: var(--x-warning-bg); }
.x-notice-style-label.x-notice-warning::before { content: '警告'; background: var(--x-warning); }

.x-notice-style-label.x-notice-error { background: var(--x-error-bg); }
.x-notice-style-label.x-notice-error::before { content: '错误'; background: var(--x-error); }

.x-notice-style-label.x-notice-tip { background: var(--x-tip-bg); }
.x-notice-style-label.x-notice-tip::before { content: '技巧'; background: var(--x-tip); }

.x-notice-style-label.x-notice-note { background: var(--x-note-bg); }
.x-notice-style-label.x-notice-note::before { content: '备注'; background: var(--x-note); }

.x-notice-style-label.x-notice-important { background: var(--x-important-bg); }
.x-notice-style-label.x-notice-important::before { content: '重要'; background: var(--x-important); }

.x-notice-style-label.x-notice-help { background: var(--x-help-bg); }
.x-notice-style-label.x-notice-help::before { content: '帮助'; background: var(--x-help); }

/* ???????????????? */
.x-notice-style-icon::after,
.x-notice-style-icon::before { display: none; }

.x-notice-style-icon .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon .x-notice-body > :first-child::before {
    content: '';
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    margin-right: 8px;
    vertical-align: -0.25em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.x-notice-style-icon.x-notice-info { background: var(--x-info-bg); }
.x-notice-style-icon.x-notice-info .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-info .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='8' r='1' fill='%233b82f6' stroke='none'/%3E%3Cline x1='12' y1='12' x2='12' y2='16'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-success { background: var(--x-success-bg); }
.x-notice-style-icon.x-notice-success .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-success .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-warning { background: var(--x-warning-bg); }
.x-notice-style-icon.x-notice-warning .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-warning .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='17' r='0.5' fill='%23f59e0b' stroke='none'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-error { background: var(--x-error-bg); }
.x-notice-style-icon.x-notice-error .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-error .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-tip { background: var(--x-tip-bg); }
.x-notice-style-icon.x-notice-tip .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-tip .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-note { background: var(--x-note-bg); }
.x-notice-style-icon.x-notice-note .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-note .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-important { background: var(--x-important-bg); }
.x-notice-style-icon.x-notice-important .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-important .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c026d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.x-notice-style-icon.x-notice-help { background: var(--x-help-bg); }
.x-notice-style-icon.x-notice-help .x-notice-body:not(:has(> *))::before,
.x-notice-style-icon.x-notice-help .x-notice-body > :first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* ?? Button ?? */
.x-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 8px 4px 0;
    padding: 8px 18px;
    min-height: 36px;
    border: none;
    border-radius: var(--x-radius-sm);
    font-family: var(--x-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--x-transition), background var(--x-transition), box-shadow var(--x-transition), transform var(--x-transition), filter var(--x-transition);
}

.x-button:hover {
    text-decoration: none !important;
}

.x-button-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    font-family: dashicons;
    font-size: 15px;
    line-height: 1;
    speak: never;
}

.x-button-icon:before { content: '\f504'; }
.x-button-icon-external .x-button-icon:before { content: '\f504'; }
.x-button-icon-download .x-button-icon:before { content: '\f316'; }
.x-button-icon-arrow-right .x-button-icon:before { content: '\f139'; }
.x-button-icon-arrow-left .x-button-icon:before { content: '\f141'; }
.x-button-icon-plus .x-button-icon:before { content: '\f132'; }
.x-button-icon-minus .x-button-icon:before { content: '\f460'; }
.x-button-icon-edit .x-button-icon:before { content: '\f464'; }
.x-button-icon-trash .x-button-icon:before { content: '\f182'; }
.x-button-icon-search .x-button-icon:before { content: '\f179'; }
.x-button-icon-info .x-button-icon:before { content: '\f348'; }
.x-button-icon-warning .x-button-icon:before { content: '\f534'; }
.x-button-icon-check .x-button-icon:before { content: '\f147'; }
.x-button-icon-close .x-button-icon:before { content: '\f335'; }
.x-button-icon-heart .x-button-icon:before { content: '\f487'; }
.x-button-icon-star .x-button-icon:before { content: '\f155'; }
.x-button-icon-link .x-button-icon:before { content: '\f103'; }
.x-button-icon-email .x-button-icon:before { content: '\f465'; }
.x-button-icon-phone .x-button-icon:before { content: '\f525'; }
.x-button-icon-location .x-button-icon:before { content: '\f230'; }
.x-button-icon-time .x-button-icon:before { content: '\f469'; }

.x-button-plain { padding: 8px 18px; }
.x-button-plain .x-button-icon { display: none; }

.x-button-blue {
    --x-btn-color: var(--x-blue);
    --x-btn-soft: var(--x-info-bg);
}

.x-button-green {
    --x-btn-color: var(--x-green);
    --x-btn-soft: var(--x-success-bg);
}

.x-button-red {
    --x-btn-color: var(--x-red);
    --x-btn-soft: var(--x-error-bg);
}

.x-button-yellow {
    --x-btn-color: var(--x-warning);
    --x-btn-soft: var(--x-warning-bg);
    --x-btn-text-alt: #b45309;
}

.x-button-black {
    --x-btn-color: var(--x-black);
    --x-btn-soft: var(--x-note-bg);
}

/* ???? */
.x-button-style-solid {
    background: var(--x-btn-color);
    color: #fff !important;
}

.x-button-style-solid:hover { opacity: 0.9; }

/* ???? */
.x-button-style-outline {
    background: transparent !important;
    border: 1.5px solid var(--x-btn-color);
    color: var(--x-btn-text-alt, var(--x-btn-color)) !important;
}

.x-button-style-outline:hover {
    background: var(--x-btn-soft) !important;
}

/* ???? */
.x-button-style-soft {
    background: var(--x-btn-soft);
    color: var(--x-btn-text-alt, var(--x-btn-color)) !important;
}

.x-button-style-soft:hover { filter: brightness(0.96); }

/* ???? */
.x-button-style-pill {
    background: var(--x-btn-color);
    color: #fff !important;
    border-radius: 999px;
    padding-left: 20px;
    padding-right: 20px;
}

.x-button-style-pill:hover {
    filter: brightness(1.06);
}

.x-button-style-pill.x-button-small {
    padding-left: 14px;
    padding-right: 14px;
}

.x-button-style-pill.x-button-large {
    padding-left: 28px;
    padding-right: 28px;
}

.x-button-small { min-height: 30px; padding: 5px 12px; font-size: 12px; }
.x-button-large { min-height: 42px; padding: 10px 24px; font-size: 15px; }

.x-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.25em 0;
}

.x-buttons-container .x-button { margin: 0; }

.x-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.x-buttons-grid .x-button { margin: 0; }

/* ?? Tabs ?? */
.x-tabs-container {
    margin: 1.5em 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    overflow: hidden;
}

.x-tabs-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
}

.x-tabs-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    list-style: none;
    border-right: none;
    border-bottom: 1px solid var(--x-border);
    background: var(--x-bg);
    overflow-x: auto;
    overflow-y: hidden;
}

.x-tabs-nav li.x-tab-title {
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--x-muted) !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    transition: color var(--x-transition), border-color var(--x-transition);
    margin-bottom: -1px;
}

.x-tabs-nav li.x-tab-title:hover { color: var(--x-text) !important; }

.x-tabs-nav li.x-tab-title.active {
    color: var(--x-accent) !important;
    border-bottom-color: var(--x-accent);
    background: transparent;
    box-shadow: none;
}

.x-tabs-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: visible;
}

.x-tabs-content {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 20px;
    overflow: visible;
}

.x-tab-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.75;
    color: var(--x-text);
    font-size: 15px;
}

.x-tab-content.active { display: block; }

@media (min-width: 769px) {
    .x-tabs-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .x-tabs-nav {
        flex: 0 0 auto;
        flex-direction: column;
        width: 148px;
        max-width: 180px;
        padding: 8px 0;
        border-bottom: none;
        border-right: 1px solid var(--x-border);
        overflow-x: hidden;
        overflow-y: visible;
    }

    .x-tabs-nav li.x-tab-title {
        border-bottom: none;
        border-right: 2px solid transparent;
        margin-bottom: 0;
        margin-right: -1px;
        white-space: normal;
    }

    .x-tabs-nav li.x-tab-title.active {
        border-bottom-color: transparent;
        border-right-color: var(--x-accent);
    }
}

/* ?? Accordion ?? */
.x-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5em 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    overflow: hidden;
}

.x-accordion-item {
    border: none;
    border-bottom: 1px solid var(--x-border);
    border-radius: 0;
    background: var(--x-surface);
    box-shadow: none;
}

.x-accordion-item:last-child { border-bottom: none; }

.x-accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--x-surface);
    color: var(--x-text) !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
    transition: background var(--x-transition);
}

.x-accordion-header:hover { background: var(--x-bg); }
.x-accordion-header.active { background: var(--x-accent-soft); color: var(--x-accent) !important; }
.x-accordion-header:after { display: none; }

.x-accordion-num {
    display: none;
}

.x-accordion-title { flex: 1; min-width: 0; }

.x-accordion-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    transition: transform var(--x-transition);
}

.x-accordion-chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--x-muted);
    border-bottom: 1.5px solid var(--x-muted);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform var(--x-transition), border-color var(--x-transition);
}

.x-accordion-header.active .x-accordion-chevron { background: transparent; }

.x-accordion-header.active .x-accordion-chevron::before {
    border-color: var(--x-accent);
    transform: translate(-50%, -30%) rotate(-135deg);
}

.x-accordion-content {
    padding: 0 16px;
    line-height: 1.75;
    color: var(--x-text);
    font-size: 15px;
    border-top: none;
}

.x-accordion-content.expanded,
.x-accordion-header.active + .x-accordion-content {
    border-top: none;
}

/* ?? Quote ?? */
.x-quote {
    display: block;
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--x-accent);
    border-radius: 0 var(--x-radius-sm) var(--x-radius-sm) 0;
    background: var(--x-bg);
    box-shadow: none;
    overflow: visible;
}

.x-quote-glyph { display: none; }

.x-quote-inner { padding: 0; }

.x-quote-body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--x-text);
}

.x-quote-body > :first-child { margin-top: 0; }
.x-quote-body > :last-child { margin-bottom: 0; }

.x-quote-footer {
    margin: 12px 0 0;
    padding: 0;
    border: none;
    text-align: right;
}

.x-quote-footer cite {
    display: inline-block;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    color: var(--x-muted);
}

.x-quote-footer cite:before { content: '??'; }

/* ?? Standalone tab ?? */
.x-standalone-tab {
    margin: 1.5em 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    overflow: hidden;
}

.x-standalone-tab .x-tab-title {
    padding: 10px 16px;
    border-bottom: 1px solid var(--x-border);
    background: var(--x-bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--x-text);
}

.x-standalone-tab .x-tab-content {
    display: block !important;
    padding: 16px 18px !important;
    line-height: 1.75;
    font-size: 15px;
    background: var(--x-surface);
}

/* ?? Gate ?? */
.x-gate {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5em 0;
    padding: 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    overflow: hidden;
}

.x-gate-head {
    display: grid !important;
    grid-template-columns: 20px 1fr;
    align-items: center;
    column-gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid var(--x-border);
    background: var(--x-bg);
    box-sizing: border-box;
}

.x-gate-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px 18px;
    line-height: 0;
    overflow: hidden;
    align-self: center;
    justify-self: center;
}

.x-gate-badge {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 20px;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1 !important;
    color: var(--x-text) !important;
    text-decoration: none !important;
    align-self: center;
}

.x-gate-body {
    flex: 1;
    min-width: 0;
    background: var(--x-surface);
}

.x-gate-body-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px;
}

.x-login-required .x-gate-body-inner,
.x-comment-required .x-gate-body-inner,
.x-password-required .x-gate-body-inner,
.x-share-required .x-gate-body-inner,
.x-role-required .x-gate-body-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
}

.x-gate-message {
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    line-height: 1.65;
    color: var(--x-muted);
}

.x-gate-message p { margin: 0 0 4px; }
.x-gate-message p:last-child { margin-bottom: 0; }
.x-gate-message a {
    color: var(--x-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.x-gate-message a:hover { color: var(--x-accent-hover); }

.x-share-progress {
    margin-bottom: 8px;
}

.x-share-progress-meta {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--x-muted);
}

.x-share-progress-meta strong {
    color: var(--x-accent);
    font-weight: 600;
}

.x-share-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--x-bg);
    overflow: hidden;
}

.x-share-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--x-accent);
    transition: width var(--x-transition);
}

.x-gate-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}

.x-password-required .x-gate-action,
.x-share-required .x-gate-action {
    align-items: flex-end;
    justify-content: center;
}

.x-gate-action a,
.x-password-submit,
.x-share-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 16px;
    border: none;
    border-radius: var(--x-radius-sm);
    background: var(--x-accent-soft);
    color: var(--x-accent) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background var(--x-transition), color var(--x-transition);
    white-space: nowrap;
}

.x-gate-action a:hover,
.x-password-submit:hover,
.x-share-copy-link:hover {
    background: var(--x-accent);
    color: #fff !important;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.x-gate-icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.x-gate-icon-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
}

.x-gate-icon-comment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.x-gate-icon-share {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}

.x-gate-icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.x-password-form {
    width: auto;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.x-password-required .x-password-input-wrapper {
    width: 100%;
    min-width: 200px;
}

.x-password-input-wrapper {
    display: flex;
    min-height: 40px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius-sm);
    overflow: hidden;
    background: var(--x-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.x-password-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--x-text);
}

.x-password-input:focus { outline: none; }
.x-password-input-wrapper:focus-within { border-color: var(--x-accent); }

.x-password-submit {
    border-radius: 0;
    padding: 8px 16px;
}

.x-password-error { margin: 8px 0 0; color: var(--x-error); font-size: 13px; }
.x-password-loading { margin-top: 8px; color: var(--x-muted); font-size: 13px; }
.x-password-loading .dashicons { animation: x-spin 1.5s linear infinite; vertical-align: middle; margin-right: 4px; }

@keyframes x-spin { to { transform: rotate(360deg); } }

.x-login-content,
.x-comment-content,
.x-password-content,
.x-share-content,
.x-role-content {
    margin: 1.25em 0;
    padding: 14px 16px;
    border-left: 3px solid var(--x-accent);
    border-radius: 0 var(--x-radius-sm) var(--x-radius-sm) 0;
    background: var(--x-accent-soft);
    line-height: 1.75;
    color: var(--x-text);
    font-size: 15px;
}

/* ?? Download ?? */
.x-download-box {
    margin: 1.5em 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    overflow: hidden;
}

.x-download-box-head {
    display: grid !important;
    grid-template-columns: 20px 1fr;
    align-items: center;
    column-gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid var(--x-border);
    background: var(--x-bg);
    box-sizing: border-box;
}

.x-download-box-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
}

.x-download-box-head-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--x-accent) !important;
}

.x-download-box-head-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1 !important;
    color: var(--x-text) !important;
}

.x-download-box-body {
    padding: 14px 16px 16px;
}

.x-download-box-description {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--x-muted);
}

.x-download-box-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x-download-box-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius-sm);
    background: var(--x-bg);
    transition: border-color var(--x-transition), background var(--x-transition);
}

.x-download-box-item:hover {
    border-color: #d1d5db;
    background: var(--x-surface);
}

.x-download-box-item-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.x-download-box-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--x-radius-sm);
    background: var(--x-surface);
    box-shadow: inset 0 0 0 1px var(--x-border);
}

.x-download-box-item-favicon { width: 20px; height: 20px; object-fit: contain; }

.x-download-type-baidu .x-download-box-item-icon { background: #eef0ff; }
.x-download-type-aliyun .x-download-box-item-icon { background: #fff4eb; }
.x-download-type-quark .x-download-box-item-icon { background: #eef3ff; }
.x-download-type-weiyun .x-download-box-item-icon { background: #eef8ff; }
.x-download-type-lanzou .x-download-box-item-icon { background: #f0f7ff; }
.x-download-type-tianyi .x-download-box-item-icon { background: #fff0f0; }
.x-download-type-onedrive .x-download-box-item-icon { background: #eef6ff; }
.x-download-type-google .x-download-box-item-icon { background: #f0faf4; }
.x-download-type-dropbox .x-download-box-item-icon { background: #eef5ff; }

.x-download-box-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.x-download-box-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--x-text);
    line-height: 1.35;
}

.x-download-box-item-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    color: var(--x-muted);
    line-height: 1.4;
}

.x-download-box-item-source,
.x-download-box-item-sep {
    color: var(--x-muted);
}

.x-download-box-item-sep {
    margin: 0 6px;
}

.x-download-box-item-description {
    margin-top: 2px;
    font-size: 12px;
    color: var(--x-muted);
    line-height: 1.45;
}

.x-download-box-item-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
}

.x-download-box-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color var(--x-transition);
}

.x-download-box-code:hover {
    color: var(--x-accent);
}

.x-download-box-code-text {
    font-family: var(--x-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--x-text);
    line-height: 1;
}

.x-download-box-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--x-muted);
    cursor: pointer;
    line-height: 1;
}

.x-download-box-copy-btn:hover { color: var(--x-accent); }

.x-download-box-copy-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.x-download-box-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--x-radius-sm);
    background: var(--x-surface);
    box-shadow: inset 0 0 0 1px var(--x-border);
    color: var(--x-muted) !important;
    text-decoration: none !important;
    line-height: 1;
    transition: color var(--x-transition), background var(--x-transition), box-shadow var(--x-transition);
}

.x-download-box-button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.x-download-box-button-text .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.x-download-box-button:hover {
    background: var(--x-accent-soft);
    box-shadow: inset 0 0 0 1px #bfdbfe;
    color: var(--x-accent) !important;
    text-decoration: none !important;
}

/* ?? Emoji ?? */
.x-emoji { display: inline-block; vertical-align: middle; font-style: normal !important; }
.x-emoji-small { font-size: 1em; }
.x-emoji-normal { font-size: 1.3em; }
.x-emoji-large { font-size: 1.6em; }

/* ?? Countdown ?? */
.x-countdown-wrap {
    margin: 1.5em 0;
    padding: 20px 16px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    text-align: center;
}

.x-countdown-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--x-muted);
}

.x-countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
}

.x-countdown-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.x-countdown-sep {
    font-size: 20px;
    font-weight: 400;
    color: var(--x-muted);
    line-height: 1;
    margin-bottom: 16px;
    user-select: none;
}

.x-countdown-grid .x-countdown-days,
.x-countdown-grid .x-countdown-hours,
.x-countdown-grid .x-countdown-minutes,
.x-countdown-grid .x-countdown-seconds {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    margin-bottom: 4px;
    padding: 6px 8px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius-sm);
    background: var(--x-bg);
    font-size: 24px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--x-text);
    line-height: 1;
    box-shadow: none;
}

.x-countdown-grid .x-countdown-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--x-muted);
}

.x-countdown-blocks .x-countdown-expired {
    display: inline-block;
    font-size: 14px;
    color: var(--x-muted);
}

.x-countdown-simple .x-countdown-simple-display {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--x-text);
}

.x-countdown-inline .x-countdown-inline-display {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--x-accent);
}

/* ?? Toggle ?? */
.x-toggle {
    margin: 1.5em 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    overflow: hidden;
}

.x-toggle-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    background: var(--x-bg);
    cursor: pointer;
    user-select: none;
    transition: background var(--x-transition);
}

.x-toggle-head:hover { background: #f3f4f6; }

.x-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--x-text);
    cursor: pointer;
}

.x-toggle-title.active { color: var(--x-accent); }

.x-toggle-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    transition: transform var(--x-transition);
}

.x-toggle-chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--x-muted);
    border-bottom: 1.5px solid var(--x-muted);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform var(--x-transition), border-color var(--x-transition);
}

.x-toggle-head:has(.x-toggle-title.active) .x-toggle-chevron {
    transform: rotate(180deg);
}

.x-toggle-head:has(.x-toggle-title.active) .x-toggle-chevron::before {
    border-color: var(--x-accent);
}

.x-toggle-head:has(.x-toggle-title.active) {
    border-bottom-color: var(--x-border);
}

.x-toggle-icon { position: relative; flex-shrink: 0; width: 10px; height: 10px; }
.x-toggle-icon:before,
.x-toggle-icon:after { content: ''; position: absolute; background: currentColor; }
.x-toggle-icon:before { top: 4px; left: 0; width: 10px; height: 1.5px; }
.x-toggle-icon:after { top: 0; left: 4px; width: 1.5px; height: 10px; transition: opacity var(--x-transition); }
.x-toggle-title.active .x-toggle-icon:after { opacity: 0; }

.x-toggle-content {
    padding: 0;
    line-height: 1.75;
    color: var(--x-text);
    font-size: 15px;
}

.x-toggle-content-inner { padding: 14px 16px; }

.x-toggle-blue .x-toggle-title.active,
.x-toggle-green .x-toggle-title.active,
.x-toggle-red .x-toggle-title.active,
.x-toggle-yellow .x-toggle-title.active,
.x-toggle-purple .x-toggle-title.active,
.x-toggle-gray .x-toggle-title.active { color: var(--x-accent); }

/* ?? Table ?? */
.x-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.25em 0;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
}

.x-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--x-text);
    background: transparent;
}

.x-table th,
.x-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--x-border);
}

.x-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--x-text);
    background: var(--x-bg);
    border-bottom: 1px solid var(--x-border);
}

.x-table-bordered { border: none; }
.x-table-bordered th,
.x-table-bordered td { border: 1px solid var(--x-border); }
.x-table-striped ttr:nth-child(odd) { background: var(--x-bg); }
.x-table-hover ttr:hover { background: var(--x-accent-soft); }

/* ?? Tooltip ?? */
.x-tooltip {
    position: relative;
    display: inline;
    cursor: help;
    border-bottom: 1px dotted var(--x-accent);
    color: inherit;
}

.x-tooltip:before,
.x-tooltip:after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s;
    z-index: 1000;
    pointer-events: none;
}

.x-tooltip:before {
    content: attr(data-tooltip);
    min-width: 80px;
    max-width: 260px;
    padding: 8px 12px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    display: block !important;
}

.x-tooltip:after { content: ''; width: 0; height: 0; border-style: solid; }
.x-tooltip[data-width]:before { width: var(--tooltip-width, 260px) !important; max-width: var(--tooltip-width, 260px) !important; }

.x-tooltip-dark:before { background: #374151; color: #fff; border-color: #374151; }
.x-tooltip-light:before { background: var(--x-surface); color: var(--x-text); }

.x-tooltip[data-position="top"]:before { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.x-tooltip[data-position="top"]:after { bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); border-width: 5px 5px 0; }
.x-tooltip-dark[data-position="top"]:after { border-color: #374151 transparent transparent; }
.x-tooltip-light[data-position="top"]:after { border-color: var(--x-border) transparent transparent; }

.x-tooltip[data-position="right"]:before { top: 50%; left: calc(100% + 8px); transform: translateY(-50%); }
.x-tooltip[data-position="right"]:after { top: 50%; left: calc(100% + 2px); transform: translateY(-50%); border-width: 5px 5px 5px 0; }
.x-tooltip-dark[data-position="right"]:after { border-color: transparent #374151 transparent transparent; }

.x-tooltip[data-position="bottom"]:before { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.x-tooltip[data-position="bottom"]:after { top: calc(100% + 2px); left: 50%; transform: translateX(-50%); border-width: 0 5px 5px; }
.x-tooltip-dark[data-position="bottom"]:after { border-color: transparent transparent #374151; }

.x-tooltip[data-position="left"]:before { top: 50%; right: calc(100% + 8px); transform: translateY(-50%); }
.x-tooltip[data-position="left"]:after { top: 50%; right: calc(100% + 2px); transform: translateY(-50%); border-width: 5px 0 5px 5px; }
.x-tooltip-dark[data-position="left"]:after { border-color: transparent transparent transparent #374151; }

.x-tooltip:hover:before,
.x-tooltip:hover:after { opacity: 1; visibility: visible; }

/* ?? Share Copy Modal ?? */
.x-share-copy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
}

.x-share-copy-modal-inner {
    width: 100%;
    max-width: 360px;
    padding: 22px 20px 18px;
    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);
    background: var(--x-surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    text-align: center;
}

.x-share-copy-modal-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--x-text);
}

.x-share-copy-modal-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--x-muted);
}

.x-share-copy-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 20px;
    border: none;
    border-radius: var(--x-radius-sm);
    background: var(--x-accent-soft);
    color: var(--x-accent) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--x-transition), color var(--x-transition);
}

.x-share-copy-modal-close:hover {
    background: var(--x-accent);
    color: #fff !important;
}

/* ?? Overrides ?? */
.x-button,
.x-button:hover,
.x-button:active,
.x-button:focus { text-decoration: none !important; }

.x-button-style-solid.x-button-blue,
.x-button-style-solid.x-button-green,
.x-button-style-solid.x-button-red,
.x-button-style-solid.x-button-yellow,
.x-button-style-solid.x-button-black,
.x-button-style-pill.x-button-blue,
.x-button-style-pill.x-button-green,
.x-button-style-pill.x-button-red,
.x-button-style-pill.x-button-yellow,
.x-button-style-pill.x-button-black,
.x-button-style-solid.x-button-blue:hover,
.x-button-style-solid.x-button-green:hover,
.x-button-style-solid.x-button-red:hover,
.x-button-style-solid.x-button-yellow:hover,
.x-button-style-solid.x-button-black:hover,
.x-button-style-pill.x-button-blue:hover,
.x-button-style-pill.x-button-green:hover,
.x-button-style-pill.x-button-red:hover,
.x-button-style-pill.x-button-yellow:hover,
.x-button-style-pill.x-button-black:hover { color: #fff !important; }

/* ?? Responsive ?? */
@media (max-width: 768px) {
    .x-download-box-item {
        gap: 10px;
        padding: 10px 12px;
    }

    .x-download-box-item-actions {
        align-self: center;
        flex-shrink: 0;
    }

    .x-login-required .x-gate-body-inner,
    .x-comment-required .x-gate-body-inner,
    .x-password-required .x-gate-body-inner,
    .x-share-required .x-gate-body-inner,
    .x-role-required .x-gate-body-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 12px 14px;
    }

    .x-gate-message { font-size: 13px; line-height: 1.5; }

    .x-gate-action a,
    .x-password-submit,
    .x-share-copy-link {
        min-height: 32px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .x-password-form { max-width: none; width: auto; }

    .x-password-required .x-password-input-wrapper {
        min-width: 0;
        width: auto;
        max-width: 200px;
        min-height: 34px;
    }

    .x-password-input { padding: 6px 8px; font-size: 13px; }

    .x-countdown-grid .x-countdown-days,
    .x-countdown-grid .x-countdown-hours,
    .x-countdown-grid .x-countdown-minutes,
    .x-countdown-grid .x-countdown-seconds {
        min-width: 42px;
        min-height: 42px;
        font-size: 20px;
    }

    .x-table-responsive .x-table thead { display: none; }

    .x-table-responsive .x-table tr {
        display: block;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--x-border);
    }

    .x-table-responsive .x-table td {
        display: block;
        padding: 5px 0 5px 40%;
        text-align: right;
        font-size: 13px;
        border-bottom: none;
        position: relative;
    }

    .x-table-responsive .x-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 5px;
        width: 36%;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
        color: var(--x-muted);
    }
}

