/* Excel 转导图 — 独立页 / 测试用例 Hub 共用 */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

        /* Excel 转导图整页背景（Hub Excel 标签 / 独立页） */
        body.tc-hub-excel-tab,
        body.ctm-excel-page {
            background-color: #0f172a;
            color: #e2e8f0;
        }
        main.tc-page-main-testcase {
            background: transparent !important;
        }
        .tc-excel-page__bg {
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            background-color: #0f172a;
        }
        .tc-excel-page__bg-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            object-fit: cover;
            object-position: center top;
            display: block;
        }
        .tc-excel-page__bg-scrim {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(30, 41, 59, 0.36) 42%, rgba(15, 23, 42, 0.4) 100%),
                radial-gradient(ellipse 80% 55% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 68%);
        }
        body.tc-hub-excel-tab .tc-hub-mode-bar {
            position: relative;
            z-index: 1;
        }
        body.tc-hub-excel-tab .tc-hub-scope,
        body.ctm-excel-page .ctm-page-shell {
            position: relative;
            z-index: 1;
        }
        /* Excel 页：完全隐藏 AI 生成页的悬浮控件（勿与 Hub 内 AI 面板互通） */
        body.tc-hub-excel-tab #tc-left-input-float-wrap,
        body.tc-hub-excel-tab #tc-stash-rail-col,
        body.tc-hub-excel-tab #tc-stash-rail-float-wrap,
        body.tc-hub-excel-tab #tc-table-fab-wrap {
            display: none !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .ctm-page-decor {
            position: relative;
            width: 100%;
            background: transparent;
        }
        .ctm-page-decor__content {
            position: relative;
            z-index: 1;
        }
        .ctm-page-decor .ctm-card {
            border-color: rgba(99, 102, 241, 0.32);
            background: rgba(255, 255, 255, 0.76);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow:
                0 1px 3px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
        }
        .ctm-page-shell { width: 100%; max-width: min(100vw - 1rem, 1280px); margin: 0 auto; }
        .ctm-page-header { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(99, 102, 241, 0.28); }
        .ctm-page-header h1 { font-size: 1.25rem; font-weight: 600; color: #f8fafc; text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35); }
        .ctm-page-header p { margin: 0.25rem 0 0; font-size: 0.8125rem; color: rgba(226, 232, 240, 0.92); line-height: 1.5; }
        .ctm-card {
            border-radius: 1rem;
            border: 1px solid rgba(99, 102, 241, 0.32);
            background: rgba(255, 255, 255, 0.76);
            box-shadow:
                0 1px 3px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
        }
        .ctm-toolbar {
            display: grid;
            grid-template-columns: minmax(11rem, 14rem) auto 1fr auto;
            gap: 0.75rem 1rem;
            align-items: end;
            width: 100%;
        }
        .ctm-toolbar-field {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .ctm-toolbar-field--template {
            grid-column: 1;
        }
        .ctm-toolbar-field--file {
            grid-column: 2;
        }
        .ctm-toolbar-actions {
            grid-column: 4;
            justify-self: end;
            align-self: end;
            display: flex;
            align-items: flex-end;
        }
        .ctm-toolbar-actions .ctm-btn-secondary {
            white-space: nowrap;
            min-height: 2.5rem;
        }
        .ctm-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 600;
            color: rgb(51 65 85);
            margin-bottom: 0.4rem;
            letter-spacing: 0.01em;
        }
        .ctm-select-wrap {
            position: relative;
            width: 100%;
        }
        .ctm-select-wrap::after {
            content: '';
            pointer-events: none;
            position: absolute;
            right: 0.85rem;
            top: 50%;
            width: 0.45rem;
            height: 0.45rem;
            border-right: 2px solid #64748b;
            border-bottom: 2px solid #64748b;
            transform: translateY(-70%) rotate(45deg);
        }
        .ctm-select {
            width: 100%;
            appearance: none;
            -webkit-appearance: none;
            border-radius: 0.625rem;
            border: 1px solid rgba(148, 163, 184, 0.55);
            padding: 0.5rem 2rem 0.5rem 0.75rem;
            font-size: 0.8125rem;
            min-height: 2.5rem;
            box-sizing: border-box;
            background: rgba(255, 255, 255, 0.85);
            color: rgb(15 23 42);
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .ctm-select:hover:not(:disabled) { border-color: rgb(148 163 184); }
        .ctm-select:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
        }
        .ctm-select:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            background: rgb(248 250 252);
        }
        .ctm-select--ms { background-color: #fafbff; border-color: #dbeafe; }
        .ctm-select--zt { background-color: #f7fefc; border-color: #ccfbf1; }
        .ctm-select--jira { background-color: #f5f9ff; border-color: #dbeafe; }
        .ctm-select--tr { background-color: #fffaf5; border-color: #ffedd5; }
        .ctm-select--excel { background-color: #f6fdf8; border-color: #dcfce7; }
        #ctm-template-select option.ctm-opt--ms { background-color: #fafbff; color: #334155; }
        #ctm-template-select option.ctm-opt--zt { background-color: #f7fefc; color: #334155; }
        #ctm-template-select option.ctm-opt--jira { background-color: #f5f9ff; color: #334155; }
        #ctm-template-select option.ctm-opt--tr { background-color: #fffaf5; color: #334155; }
        #ctm-template-select option.ctm-opt--excel { background-color: #f6fdf8; color: #334155; }
        #ctm-template-select option.ctm-opt--default { background-color: #fff; color: #334155; }
        .ctm-upload {
            position: relative;
            display: inline-flex;
            align-items: center;
            width: auto;
        }
        .ctm-upload--busy {
            pointer-events: none;
        }
        .ctm-upload-input {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .ctm-upload-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            min-height: 2.5rem;
            padding: 0.5rem 1rem;
            border-radius: 0.625rem;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #4338ca;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(99, 102, 241, 0.45);
            cursor: pointer;
            user-select: none;
            box-sizing: border-box;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .ctm-upload-trigger:hover { background: #e0e7ff; border-color: #a5b4fc; }
        .ctm-upload-trigger svg {
            width: 0.875rem;
            height: 0.875rem;
            flex-shrink: 0;
        }
        .ctm-upload-loading {
            position: absolute;
            inset: 0;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            border-radius: 0.625rem;
            background: rgba(238, 242, 255, 0.95);
            font-size: 0.75rem;
            font-weight: 600;
            color: #4338ca;
            white-space: nowrap;
            padding: 0 0.5rem;
        }
        .ctm-upload-loading.hidden { display: none !important; }
        .ctm-spinner {
            width: 1rem;
            height: 1rem;
            border: 2px solid #e0e7ff;
            border-top-color: #6366f1;
            border-radius: 50%;
            animation: ctm-spin 0.7s linear infinite;
            flex-shrink: 0;
        }
        @keyframes ctm-spin { to { transform: rotate(360deg); } }
        @media (max-width: 767px) {
            .ctm-toolbar {
                grid-template-columns: 1fr;
            }
            .ctm-toolbar-field--template,
            .ctm-toolbar-field--file,
            .ctm-toolbar-actions {
                grid-column: 1;
            }
            .ctm-toolbar-actions {
                justify-self: end;
            }
        }
        .ctm-btn-primary {
            padding: 0.5rem 1.1rem;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            border: none;
            cursor: pointer;
        }
        .ctm-btn-primary:hover { filter: brightness(1.05); }
        .ctm-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
        .ctm-btn-secondary {
            padding: 0.5rem 1.1rem;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #4338ca;
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            cursor: pointer;
        }
        .ctm-btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }
        .ctm-status {
            margin-top: 0.75rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
        }
        .ctm-status--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
        .ctm-status--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
        .ctm-field-map { margin-top: 0.5rem; font-size: 0.75rem; color: rgb(100 116 139); }
        .ctm-mindmap-panel { margin-top: 1rem; }
        .ctm-mindmap-view-panel {
            position: relative;
            --ctm-mindmap-stage-h: min(74vh, 700px);
            min-height: var(--ctm-mindmap-stage-h);
            background: rgba(255, 255, 255, 0.78);
            overflow: hidden;
            border-radius: 0.75rem;
            border: 1px solid rgba(99, 102, 241, 0.28);
            box-shadow:
                0 1px 3px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
        }
        .ctm-mindmap-stage {
            position: relative;
            width: 100%;
            height: var(--ctm-mindmap-stage-h);
            overflow: hidden;
        }
        .ctm-mindmap-canvas {
            position: absolute;
            inset: 0;
            z-index: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background-color: #f8fafc;
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
            background-size: 24px 24px;
        }
        #ctm-mindmap-container {
            position: relative;
            z-index: 1;
            width: 100%;
            height: var(--ctm-mindmap-stage-h);
        }
        #ctm-mindmap-container .jsmind-inner { background: transparent !important; }
        #ctm-mindmap-container canvas.jsmind {
            background: transparent !important;
            pointer-events: none;
        }
        #ctm-mindmap-container svg.th-mindmap-free-lines,
        #ctm-mindmap-container jmnodes svg.th-mindmap-free-lines {
            background: transparent;
            pointer-events: none;
        }
        .ctm-mindmap-empty {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgb(148 163 184);
            font-size: 0.875rem;
            pointer-events: none;
        }
        .ctm-mindmap-empty.hidden { display: none !important; }
        .ctm-mindmap-view-panel--polish-busy .ctm-mindmap-stage {
            pointer-events: none;
        }
        .ctm-mindmap-polish-loading {
            position: absolute;
            inset: 0;
            z-index: 30;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.65rem;
            background: rgba(248, 250, 252, 0.52);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            pointer-events: auto;
        }
        .ctm-mindmap-polish-loading.hidden {
            display: none !important;
        }
        .ctm-mindmap-polish-loading__text {
            font-size: 0.875rem;
            font-weight: 600;
            color: #4338ca;
            letter-spacing: 0.01em;
        }
        .ctm-mindmap-polish-loading__spinner {
            width: 1.35rem;
            height: 1.35rem;
            border-width: 2.5px;
        }
        .ctm-mindmap-zoom-bar {
            position: absolute;
            right: 12px;
            bottom: 10px;
            z-index: 25;
            display: inline-flex;
            align-items: center;
            gap: 0.15rem;
            padding: 0.25rem 0.35rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(226, 232, 240, 0.95);
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
            font-size: 12px;
            color: #475569;
        }
        .ctm-mindmap-zoom-bar.hidden { display: none !important; }
        .ctm-mindmap-zoom-bar__btn,
        .ctm-mindmap-zoom-bar__fit {
            border: none;
            background: transparent;
            color: #334155;
            cursor: pointer;
            padding: 0.2rem 0.35rem;
            border-radius: 0.35rem;
            font-size: 14px;
        }
        .ctm-mindmap-zoom-bar__btn:hover,
        .ctm-mindmap-zoom-bar__fit:hover { background: #f1f5f9; }
        .ctm-mindmap-zoom-bar__label {
            min-width: 2.75rem;
            text-align: center;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }
        .ctm-mindmap-zoom-bar__fit {
            margin-left: 0.15rem;
            padding: 0.2rem 0.5rem;
            font-size: 12px;
            font-weight: 600;
            color: #1d4ed8;
        }
        .ctm-mindmap-context-menu {
            position: fixed;
            z-index: 12050;
            min-width: 9.5rem;
            padding: 0.35rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(226, 232, 240, 0.98);
            background: #fff;
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
        }
        .ctm-mindmap-context-menu.hidden { display: none !important; }
        .ctm-mindmap-context-menu__item {
            display: block;
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: none;
            border-radius: 0.45rem;
            background: transparent;
            color: #334155;
            font-size: 13px;
            text-align: left;
            cursor: pointer;
        }
        .ctm-mindmap-context-menu__item:hover { background: #f1f5f9; }
        .ctm-mindmap-context-menu__item--primary { color: #1d4ed8; font-weight: 600; }
        .ctm-mindmap-view-panel jmnode {
            cursor: grab;
            font-size: 13px;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
            min-width: 4.5rem;
            padding: 4px 12px;
        }
        .ctm-mindmap-view-panel jmnode:not(.root) { border: 1px solid #93c5fd; }
        .ctm-mindmap-view-panel jmnode.ctm-mindmap-node-empty {
            min-width: 5.5rem;
            background-color: #eff6ff !important;
            color: #1d4ed8 !important;
        }
        .ctm-mindmap-view-panel jmnode.ctm-mindmap-node-empty.selected {
            background-color: #dbeafe !important;
            color: #1e40af !important;
            border-color: #60a5fa !important;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35) !important;
        }
        .ctm-mindmap-view-panel jmnodes.theme-primary jmnode.selected {
            background-color: #1d4ed8 !important;
            color: #ffffff !important;
            border-color: #1e40af !important;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45) !important;
        }
        .ctm-mindmap-view-panel jmnode.root { cursor: default; font-weight: 600; font-size: 15px; }
        .ctm-mindmap-view-panel input.jsmind-editor {
            background: #fff !important;
            color: #0f172a !important;
            border: none;
            outline: none;
            font: inherit;
        }

        /* Excel 工作台：紧凑工具栏 */
        .ctm-workbench-head {
            background: #fff;
        }
        .ctm-workbench__grid {
            display: grid;
            grid-template-columns: auto minmax(11rem, 14rem) auto;
            gap: 0.75rem 1rem;
            align-items: end;
        }
        @media (max-width: 767px) {
            .ctm-workbench__grid {
                grid-template-columns: 1fr;
            }
        }
        .ctm-workbench-block {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .ctm-workbench-block--export {
            justify-self: end;
        }
        @media (max-width: 767px) {
            .ctm-workbench-block--export {
                justify-self: stretch;
            }
        }
        .ctm-label--spacer {
            visibility: hidden;
            margin-bottom: 0.4rem;
        }
        .ctm-select-wrap--wide {
            width: 100%;
        }
        .ctm-workbench-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 0.5rem;
        }
        .ctm-btn-ai-polish {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.5rem;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid #a7f3d0;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #047857;
            background: #ecfdf5;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .ctm-btn-ai-polish:hover:not(:disabled) {
            background: #d1fae5;
            border-color: #6ee7b7;
        }
        .ctm-btn-ai-polish:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }
        .ctm-modal {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .ctm-modal.hidden {
            display: none !important;
        }
        .ctm-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
        }
        .ctm-modal__card {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 36rem;
            max-height: min(92vh, 42rem);
            display: flex;
            flex-direction: column;
            border-radius: 1rem;
            border: 1px solid rgb(226 232 240);
            background: #fff;
            box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.35);
            overflow: hidden;
        }
        .ctm-modal__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid rgb(241 245 249);
        }
        .ctm-modal__head-actions {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-shrink: 0;
        }
        .ctm-modal__title {
            flex: 1;
            min-width: 0;
            font-size: 1rem;
            font-weight: 600;
            color: rgb(15 23 42);
        }
        #ctm-ai-polish-modal[data-mode="custom"] #ctm-preset-model-settings-btn {
            display: none !important;
        }
        #ctm-ai-polish-modal[data-mode="preset"] #ctm-preset-model-settings-btn {
            display: inline-flex;
        }
        /* 内网解锁 / 模型配置弹窗须高于 AI 润色弹窗 (z-index: 80) */
        #tc-feature-unlock-modal,
        #tc-preset-model-modal {
            z-index: 100 !important;
        }
        .ctm-preset-summary {
            margin: 0 0 0.75rem;
        }
        .ctm-ai-polish-config {
            margin-bottom: 0.75rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgb(241 245 249);
        }
        .ctm-modal__close {
            border: none;
            background: transparent;
            color: rgb(100 116 139);
            font-size: 1.1rem;
            line-height: 1;
            cursor: pointer;
            padding: 0.25rem 0.4rem;
            border-radius: 0.375rem;
        }
        .ctm-modal__close:hover {
            background: rgb(241 245 249);
            color: rgb(51 65 85);
        }
        .ctm-modal__body {
            padding: 0.85rem 1rem;
            overflow-y: auto;
        }
        .ctm-modal__hint {
            margin: 0 0 0.75rem;
            font-size: 0.75rem;
            line-height: 1.55;
            color: rgb(100 116 139);
        }
        .ctm-modal__textarea {
            width: 100%;
            margin-top: 0.35rem;
            border-radius: 0.625rem;
            border: 1px solid rgb(203 213 225);
            padding: 0.55rem 0.65rem;
            font-size: 0.8125rem;
            line-height: 1.5;
            resize: vertical;
            min-height: 6.5rem;
            box-sizing: border-box;
        }
        .ctm-modal__textarea:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
        }
        .ctm-modal__err {
            margin-top: 0.5rem;
            padding: 0.45rem 0.6rem;
            border-radius: 0.5rem;
            border: 1px solid #fecaca;
            background: #fef2f2;
            color: #991b1b;
            font-size: 0.75rem;
            line-height: 1.45;
        }
        .ctm-modal__foot {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-top: 1px solid rgb(241 245 249);
        }
        .ctm-modal__field {
            min-width: 0;
        }
        .ctm-modal__input {
            width: 100%;
            margin-top: 0.3rem;
            border-radius: 0.625rem;
            border: 1px solid rgb(203 213 225);
            padding: 0.45rem 0.6rem;
            font-size: 0.8125rem;
            line-height: 1.35;
            box-sizing: border-box;
        }
        .ctm-modal__input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
        }
        .ctm-req {
            color: #dc2626;
            font-weight: 700;
        }
        .hf-mono {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        }
        #ctm-toast.ctm-toast {
            position: fixed;
            left: 50%;
            top: 12vh;
            z-index: 120;
            max-width: min(92vw, 26rem);
            padding: 0.75rem 1.25rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            line-height: 1.45;
            text-align: center;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, -12px);
            transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.32s;
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }
        #ctm-toast.ctm-toast.ctm-toast--visible {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 0);
            transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0s;
        }
        .ctm-btn-export {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.5rem;
            padding: 0.5rem 1.1rem;
            border-radius: 0.5rem;
            border: 1px solid #c7d2fe;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #4338ca;
            background: #eef2ff;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .ctm-btn-export:hover:not(:disabled) {
            background: #e0e7ff;
            border-color: #a5b4fc;
        }
        .ctm-btn-export:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }
