        :root {
            --bg: #f0f2f7;
            --card: #ffffff;
            --primary: #4f6ef7;
            --primary-dark: #3a55d9;
            --text: #1f2937;
            --text-secondary: #6b7280;
            --border: #e5e7eb;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --radius: 12px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: linear-gradient(135deg, #eef1f8 0%, #f6f8fc 100%);
            color: var(--text);
            min-height: 100vh;
        }

        .header {
            background: linear-gradient(135deg, #4f6ef7, #7b5cf0);
            color: #fff;
            padding: 22px 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 12px rgba(79, 110, 247, .3);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header h1 {
            font-size: 20px;
            font-weight: 600;
            letter-spacing: .5px;
        }

        /* 系统语言选择：位于标题右侧，模拟 APP 系统语言 */
        .header-head-lang {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            opacity: .9;
            white-space: nowrap;
        }

        .header-head-lang .header-config-select {
            width: auto;
            min-width: 160px;
        }

        .header-config {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-config label {
            font-size: 13px;
            opacity: .9;
        }

        .header-config input {
            border: 1px solid rgba(255, 255, 255, .4);
            background: rgba(255, 255, 255, .15);
            color: #fff;
            border-radius: 8px;
            padding: 8px 12px;
            width: 320px;
            font-size: 13px;
            outline: none;
        }

        .header-config input::placeholder {
            color: rgba(255, 255, 255, .6);
        }

        .header-config-select {
            border: 1px solid rgba(255, 255, 255, .4);
            background: rgba(255, 255, 255, .15);
            color: #fff;
            border-radius: 8px;
            padding: 8px 12px;
            width: 320px;
            font-size: 13px;
            outline: none;
            cursor: pointer;
        }

        .header-config-select option {
            color: var(--text);
            background: #fff;
        }

        .header-config-btn {
            border: 1px solid rgba(255, 255, 255, .4);
            background: rgba(255, 255, 255, .15);
            color: #fff;
            border-radius: 8px;
            padding: 8px 14px;
            font-size: 13px;
            cursor: pointer;
            transition: background .2s;
        }

        .header-config-btn:hover {
            background: rgba(255, 255, 255, .3);
        }

        .layout {
            display: flex;
            gap: 20px;
            padding: 24px 32px;
            align-items: flex-start;
        }

        .panel {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
            overflow: hidden;
        }

        .panel-params {
            width: 320px;
            flex-shrink: 0;
            position: sticky;
            top: 24px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
        }

        .panel-conversation {
            flex: 0.8;
            min-width: 0;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 100px);
        }

        .panel-analysis {
            flex: 1.2;
            min-width: 0;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 100px);
        }

        /* 右侧分析结果 Tab 切换 */
        .analysis-tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            background: #fafbfd;
        }

        .analysis-tab {
            flex: 1;
            text-align: center;
            padding: 10px 0;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
            transition: all .2s;
            user-select: none;
        }

        .analysis-tab:hover {
            color: var(--text);
            background: rgba(79, 110, 247, .04);
        }

        .analysis-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: transparent;
        }

        .analysis-tab .tab-icon {
            margin-right: 4px;
        }

        .analysis-tab-content {
            display: none;
            flex: 1;
            overflow-y: auto;
        }

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

        /* 对话内容区 */
        .conv-audio {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border);
            background: #fafbfd;
        }

        .conv-audio audio {
            width: 100%;
            height: 40px;
        }

        .conv-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 18px;
        }

        .conv-segments {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .conv-seg {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.65;
            transition: background .2s, box-shadow .2s;
        }

        .conv-seg.active {
            background: rgba(79, 110, 247, .10);
            box-shadow: inset 3px 0 0 var(--primary);
        }

        .seg-time {
            flex-shrink: 0;
            font-size: 11px;
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
            padding-top: 4px;
            min-width: 40px;
        }

        .seg-speaker {
            flex-shrink: 0;
            font-weight: 600;
            font-size: 12px;
            color: var(--primary);
            background: rgba(79, 110, 247, .08);
            padding: 2px 8px;
            border-radius: 20px;
            white-space: nowrap;
        }

        .seg-text {
            flex: 1;
            min-width: 0;
            word-break: break-word;
        }

        /* KTV 歌词式逐字渐变高亮 */
        .word {
            transition: color .25s, background-color .25s, text-shadow .25s;
            border-radius: 2px;
        }

        .word-future {
            color: inherit;
        }

        .word-past {
            color: #3a55d9;
            text-shadow: 0 0 1px rgba(79, 110, 247, .3);
        }

        .word-current {
            color: #fff;
            background: var(--primary);
            text-shadow: 0 0 4px rgba(255, 255, 255, .6);
        }

        .conv-text {
            white-space: pre-wrap;
            font-size: 14px;
            line-height: 1.8;
        }

        .panel-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-header .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
        }

        .panel-body {
            padding: 20px;
        }

        .form-item {
            margin-bottom: 18px;
        }

        .form-item label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .form-item label .req {
            color: var(--danger);
        }

        .text-format-hint {
            background: #f8f6ff;
            border: 1px solid #e8e0ff;
            border-radius: 8px;
            padding: 10px 14px;
            margin-bottom: 8px;
            font-size: 13px;
            line-height: 1.7;
            color: #555;
        }

        .text-format-hint .format-hint-title {
            font-weight: 600;
            color: #6b4fcf;
            margin-bottom: 4px;
        }

        .text-format-hint code {
            background: #ede6ff;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
            color: #5a3eb5;
        }

        .text-format-hint .format-hint-example {
            margin-top: 6px;
            padding: 6px 10px;
            background: #fff;
            border-radius: 6px;
            font-size: 12px;
            color: #888;
            line-height: 1.6;
        }

        .file-limit-hint {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            padding: 6px 10px;
            background: #fff8e6;
            border: 1px solid #f0dca0;
            border-radius: 6px;
        }

        .form-item input[type="text"],
        .form-item textarea,
        .form-item select {
            width: 100%;
            border: 1px solid var(--border);
            color: var(--text);
            background: #fff;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 14px;
            outline: none;
            transition: border-color .2s, box-shadow .2s;
            font-family: inherit;
        }

        .form-item input:focus,
        .form-item textarea:focus,
        .form-item select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 110, 247, .12);
        }

        .form-item textarea {
            resize: vertical;
            min-height: 90px;
            line-height: 1.6;
        }

        .note-audio-picker {
            margin-top: 8px;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #fafbfd;
        }

        .note-audio-picker audio {
            width: 100%;
            height: 34px;
        }

        .note-time-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .note-time-row input[type="range"] {
            flex: 1;
        }

        .note-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }

        .note-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 12px;
            color: var(--primary);
            background: rgba(79, 110, 247, .1);
            font-size: 12px;
        }

        .note-tag button {
            padding: 0;
            border: 0;
            color: inherit;
            background: transparent;
            cursor: pointer;
        }

        .mode-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .mode-tab {
            flex: 1;
            text-align: center;
            padding: 9px 0;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            transition: all .2s;
            background: #fafafa;
        }

        .mode-tab.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            font-weight: 500;
        }

        .lang-search-wrap {
            position: relative;
        }

        .lang-search-wrap input {
            width: 100%;
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            max-height: 260px;
            overflow-y: auto;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
            z-index: 100;
        }

        .lang-option {
            padding: 9px 12px;
            font-size: 13px;
            cursor: pointer;
            border-bottom: 1px solid #f3f4f6;
            transition: background .15s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lang-option:hover {
            background: #f0f4ff;
        }

        .lang-option.active {
            background: var(--primary);
            color: #fff;
        }

        .file-drop {
            border: 2px dashed var(--border);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all .2s;
            font-size: 13px;
        }

        .file-drop:hover,
        .file-drop.dragging {
            border-color: var(--primary);
            background: rgba(79, 110, 247, .05);
            color: var(--primary);
        }

        .file-drop .icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .file-name {
            margin-top: 10px;
            font-size: 12px;
            color: var(--success);
            word-break: break-all;
        }

        /* 思维导图 - markmap 左右分叉树 */
        .am-mindmap-wrap {
            width: 100%;
            height: 100%;
            min-height: 360px;
            position: relative;
        }

        .am-mindmap-wrap svg {
            width: 100%;
            height: 100%;
            min-height: 360px;
        }

        .am-mindmap-wrap svg .markmap-node {
            cursor: pointer;
        }

        .am-mindmap-wrap svg .markmap-node circle {
            fill: var(--primary);
            stroke: #fff;
            stroke-width: 2;
            transition: r .2s;
        }

        .am-mindmap-wrap svg .markmap-node:hover circle {
            fill: #7b5cf0;
            r: 6;
        }

        .am-mindmap-wrap svg .markmap-node:hover .markmap-foreign {
            color: #4f6ef7;
        }

        .am-mindmap-wrap svg .markmap-link {
            stroke: #cbd5e1;
            stroke-width: 2;
        }

        .am-mindmap-wrap svg .markmap-foreign {
            word-break: break-word;
            overflow-wrap: break-word;
            line-height: 1.5;
        }

        /* 历史记录 */
        .history-section {
            margin-top: 16px;
            border-top: 1px solid var(--border);
            padding-top: 12px;
        }

        .history-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px 0;
            user-select: none;
        }

        .history-head:hover {
            color: var(--primary);
        }

        .history-list {
            margin-top: 8px;
            max-height: 240px;
            overflow-y: auto;
        }

        .history-empty {
            font-size: 12px;
            color: var(--text-secondary);
            padding: 8px 4px;
        }

        .history-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: background .15s;
        }

        .history-item:hover {
            background: #f0f4ff;
        }

        .history-time {
            color: var(--text-secondary);
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        .history-model {
            flex-shrink: 0;
            font-size: 10px;
            color: #fff;
            background: var(--primary);
            border-radius: 4px;
            padding: 1px 6px;
        }

        .history-task {
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-elapsed {
            flex-shrink: 0;
            font-size: 11px;
            color: var(--success);
            background: rgba(16, 185, 129, .1);
            border-radius: 4px;
            padding: 1px 5px;
            font-variant-numeric: tabular-nums;
        }

        .history-clear {
            margin-top: 6px;
            padding: 6px;
            text-align: center;
            font-size: 12px;
            color: var(--danger);
            cursor: pointer;
            border-radius: 6px;
        }

        .history-clear:hover {
            background: rgba(239, 68, 68, .08);
        }

        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background: var(--primary);
            color: #fff;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: background .2s;
            letter-spacing: 1px;
        }

        .btn:hover {
            background: var(--primary-dark);
        }

        .btn:disabled {
            background: #c3c9e0;
            cursor: not-allowed;
        }

        .template-bar {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .template-loading-wrap {
            min-height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .template-loading {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .template-loading .spinner {
            width: 14px;
            height: 14px;
            border-width: 2px;
        }

        .template-select {
            flex: 1;
            min-width: 0;
            height: 40px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #fff;
            color: var(--text);
            padding: 0 12px;
            font: inherit;
            font-size: 13px;
            outline: none;
            cursor: pointer;
        }

        /* 点开后的下拉选项列表：固定最大高度，超出内部滚动（Chrome/Edge Blink 内核） */
        .template-select::-webkit-listbox {
            max-height: min(300px, 55vh);
        }

        .template-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 110, 247, .12);
        }

        .template-manage-btn {
            flex-shrink: 0;
            padding: 9px 11px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--bg);
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            white-space: nowrap;
        }

        .template-manage-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .template-modal-mask {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 23, 42, .45);
        }

        .template-secondary-mask {
            z-index: 100000;
            background: rgba(15, 23, 42, .28);
        }

        .template-modal {
            width: min(1280px, 100%);
            height: min(720px, 90vh);
            overflow: hidden;
            padding: 22px;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 16px 48px rgba(15, 23, 42, .2);
        }

        /* 短内容弹窗（删除确认）仍按内容高度自适应 */
        .template-modal.template-compact-modal {
            height: auto;
        }

        .template-editor-modal {
            width: min(680px, 100%);
            height: min(690px, 88vh);
            display: flex;
            flex-direction: column;
        }

        .template-editor-body {
            min-height: 0;
            flex: 1 1 auto;
            overflow-y: auto;
            padding-right: 2px;
            display: flex;
            flex-direction: column;
        }

        .template-lang-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 4px 0 6px;
        }

        .template-lang-tab {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 11px;
            border: 1px solid var(--border);
            border-radius: 999px;
            background: #f8f9fc;
            color: var(--text-secondary);
            font-size: 12.5px;
            cursor: pointer;
            transition: all .15s;
        }

        .template-lang-tab:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .template-lang-tab.active {
            color: #fff;
            border-color: var(--primary);
            background: var(--primary);
        }

        .template-lang-tab .lang-config-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .template-lang-tab .lang-config-dot.status-complete {
            background: #23c798;
        }

        .template-lang-tab .lang-config-dot.status-partial {
            background: linear-gradient(90deg, #f59e0b 50%, #d5d9e2 50%);
        }

        .template-lang-tab .lang-config-dot.status-empty {
            background: #d5d9e2;
        }

        .template-lang-tab .lang-progress {
            font-size: 11px;
            opacity: .75;
            margin-left: 2px;
        }

        .template-lang-hint {
            margin: 6px 0 4px;
            padding: 6px 10px;
            border-radius: 6px;
            background: #f3f6ff;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .template-lang-hint b {
            color: var(--text);
        }

        .template-field {
            display: flex;
            flex-direction: column;
        }

        .template-add-lang {
            /* 与普通语言 Tab 尺寸相当：固定宽度收窄。泛规则 .template-modal select（1134 行，
               特异性更高）把 height:38px / padding:9px 11px 压上来，导致下拉文字被上边裁掉，
               所以这里用 !important 全部盖回，让 select 按自身内容定高 */
            width: 128px !important;
            height: auto !important;
            padding: 6px 8px !important;
            line-height: normal;
            border: 1px dashed var(--primary);
            border-radius: 6px;
            background: #fff;
            color: var(--primary);
            font-size: 13px;
            cursor: pointer;
            transition: all .15s;
            align-self: center;
        }

        .template-add-lang:hover {
            background: rgba(79, 110, 247, .06);
        }

        .template-actions-spacer {
            flex: 1;
        }

        .template-modal-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        .template-modal h3 {
            margin-bottom: 16px;
            font-size: 17px;
        }
        .template-manager-lang-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .template-manager-lang-tab {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: #fff;
            color: var(--text-secondary);
            font-size: 13px;
            cursor: pointer;
        }

        .template-manager-lang-tab:hover,
        .template-manager-lang-tab.active {
            border-color: var(--primary);
            color: var(--primary);
        }

        .template-manager-lang-tab.active {
            background: var(--primary);
            color: #fff;
        }

        .template-manager-lang-tab .lang-count {
            font-size: 11px;
            opacity: .8;
        }

        .template-add-lang {
            /* 与普通语言 Tab 尺寸相当：固定宽度收窄。泛规则 .template-modal select（特异性更高）
               把 height:38px / padding:9px 11px 压上来，导致下拉文字被上下边裁掉，
               所以这里用 !important 全部盖回，让 select 按自身内容定高 */
            width: 128px !important;
            height: auto !important;
            padding: 6px 8px !important;
            line-height: normal;
            border: 1px dashed var(--primary);
            border-radius: 6px;
            background: #fff;
            color: var(--primary);
            font-size: 12.5px;
            cursor: pointer;
            transition: all .15s;
        }

        .template-manager-lang-tabs .template-add-lang {
            align-self: center;
        }

        .template-manager-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 4px 0 12px;
        }

        .template-manager-search {
            flex: 1;
            min-width: 0;
            min-height: 32px;
            padding: 0 30px 0 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: #fff;
            color: var(--text);
            font-size: 13px;
            transition: border-color .15s;
        }

        .template-manager-search:focus {
            outline: none;
            border-color: var(--primary);
        }

        .template-manager-clear {
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1;
            margin-left: -24px;
            opacity: .7;
        }

        .template-manager-clear:hover {
            opacity: 1;
            color: var(--primary);
        }

        .template-manager-count {
            color: var(--text-secondary);
            font-size: 12px;
            white-space: nowrap;
        }

        .template-status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
        }

        .template-status-badge.configured {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .template-status-badge.fallback {
            background: #fff3e0;
            color: #e65100;
        }

        .template-table-wrap {
            max-height: min(460px, 58vh);
            overflow: auto;
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .template-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
            font-size: 13px;
        }

        .template-table th,
        .template-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #eef0f4;
            text-align: left;
            vertical-align: middle;
        }

        .template-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f8f9fc;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .template-table tr:last-child td {
            border-bottom: 0;
        }

        .template-table tr.selected {
            background: rgba(79, 110, 247, .07);
        }

        .template-table .template-icon-col {
            width: 56px;
            text-align: center;
        }

        .template-table .template-icon-col .template-icon {
            width: 28px;
            height: 28px;
            object-fit: contain;
            vertical-align: middle;
        }

        .template-table .template-name {
            width: 18%;
            font-weight: 500;
            word-break: break-word;
        }

        .template-table .template-content {
            width: 38%;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .template-table .template-actions {
            width: 18%;
            text-align: right;
            white-space: nowrap;
        }

        .template-table .template-actions button {
            border: 0;
            background: transparent;
            color: var(--primary);
            cursor: pointer;
            padding: 3px 5px;
        }

        .template-table .template-actions button.danger-text {
            color: var(--danger);
        }

        .template-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .template-tag {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            line-height: 1.6;
            color: var(--primary);
            background: rgba(79, 110, 247, .1);
        }

        .template-empty {
            padding: 28px 12px;
            text-align: center;
            color: var(--text-secondary);
        }

        .template-operation-message {
            margin: -6px 0 12px;
            padding: 8px 10px;
            border-radius: 6px;
            color: #047857;
            background: #ecfdf5;
            font-size: 13px;
        }

        /* 生产环境密码验证弹窗 */
        .env-password-mask {
            z-index: 100100;
        }

        .env-password-modal {
            width: min(420px, 100%);
        }

        .env-password-modal h3 {
            margin-top: 0;
        }

        .env-password-hint {
            margin: 10px 0;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .env-password-input {
            width: 100%;
            font-size: 14px;
            letter-spacing: 2px;
        }

        .env-password-error {
            margin: 8px 0 0;
            color: var(--danger);
            font-size: 13px;
        }

        @media (max-width: 560px) {
            .template-modal-mask {
                padding: 12px;
            }

            .template-modal {
                padding: 16px;
            }

            .template-table {
                min-width: 600px;
            }

            .template-table-wrap {
                overflow-x: auto;
            }
        }

        .template-modal label {
            display: block;
            margin: 12px 0 6px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .template-modal input,
        .template-modal select,
        .template-modal textarea {
            width: 100%;
            height: 38px;
            padding: 9px 11px;
            border: 1px solid var(--border);
            border-radius: 7px;
            font: inherit;
            outline: none;
            color: var(--text);
            background: #fff;
        }

        .template-modal textarea {
            height: min(260px, 34vh);
            min-height: 120px;
            resize: vertical;
            line-height: 1.6;
        }

        .template-modal select {
            cursor: pointer;
            appearance: auto;
        }

        .template-modal input[type="file"] {
            height: auto;
            padding: 0;
            border: 0;
            border-radius: 0;
        }

        .template-modal input:focus,
        .template-modal select:focus,
        .template-modal textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 110, 247, .12);
        }

        .template-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 18px;
        }

        .template-modal-actions button {
            padding: 8px 18px;
            border: 1px solid var(--border);
            border-radius: 7px;
            background: #fff;
            cursor: pointer;
        }

        .template-modal-actions .primary {
            color: #fff;
            border-color: var(--primary);
            background: var(--primary);
        }

        .template-modal-actions .danger {
            color: #fff;
            border-color: var(--danger);
            background: var(--danger);
        }

        .status-bar {
            padding: 14px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
        }

        .poll-stop-btn {
            margin-left: auto;
            padding: 5px 10px;
            border: 1px solid var(--warning);
            border-radius: 6px;
            background: #fffaf0;
            color: #b7791f;
            font-size: 12px;
            cursor: pointer;
            white-space: nowrap;
        }

        .poll-stop-btn:hover {
            background: #fff3d6;
        }

        .export-btns {
            margin-left: auto;
            display: flex;
            gap: 6px;
        }

        .export-btn {
            padding: 3px 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: #fff;
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all .15s;
            font-family: inherit;
        }

        .export-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(79, 110, 247, .06);
        }

        .spinner {
            width: 18px;
            height: 18px;
            border: 2.5px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin .8s linear infinite;
            flex-shrink: 0;
        }

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

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .result-content {
            padding: 20px;
        }

        .empty-state {
            text-align: center;
            color: var(--text-secondary);
            padding: 80px 20px;
            font-size: 14px;
        }

        .empty-state .big-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: .4;
        }

        .markdown-body {
            line-height: 1.8;
            font-size: 14px;
            color: var(--text);
            word-wrap: break-word;
            padding: 4px 0;
        }

        .markdown-body h1,
        .markdown-body h2,
        .markdown-body h3,
        .markdown-body h4 {
            margin: 24px 0 12px;
            font-weight: 600;
            line-height: 1.4;
        }

        .markdown-body h1 {
            font-size: 22px;
            color: #1f2937;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 8px;
        }

        .markdown-body h2 {
            font-size: 18px;
            color: #1f2937;
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 6px;
        }

        .markdown-body h3 {
            font-size: 16px;
            color: var(--primary);
            border-left: 3px solid var(--primary);
            padding-left: 12px;
        }

        .markdown-body h4 {
            font-size: 15px;
            color: #374151;
        }

        .markdown-body p {
            margin: 10px 0;
        }

        .markdown-body ul,
        .markdown-body ol {
            margin: 10px 0;
            padding-left: 24px;
        }

        .markdown-body ul {
            list-style: disc;
        }

        .markdown-body ul li {
            margin: 6px 0;
            line-height: 1.7;
        }

        .markdown-body ul li::marker {
            color: var(--primary);
        }

        .markdown-body ol li {
            margin: 6px 0;
            line-height: 1.7;
        }

        .markdown-body strong {
            color: #1f2937;
            font-weight: 600;
        }

        .markdown-body code {
            background: #f0f2f7;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 13px;
            color: #e11d48;
        }

        .markdown-body pre {
            background: #f6f8fa;
            padding: 14px 16px;
            border-radius: 8px;
            overflow-x: auto;
            border: 1px solid #e5e7eb;
        }

        .markdown-body pre code {
            background: none;
            padding: 0;
            color: inherit;
        }

        .markdown-body blockquote {
            margin: 12px 0;
            padding: 8px 16px;
            border-left: 4px solid var(--primary);
            background: #f8f9ff;
            border-radius: 0 6px 6px 0;
            color: #4b5563;
        }

        .markdown-body hr {
            margin: 20px 0;
            border: none;
            border-top: 1px solid #e5e7eb;
        }

        .markdown-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 12px 0;
            font-size: 13px;
        }

        .markdown-body th,
        .markdown-body td {
            padding: 8px 12px;
            border: 1px solid #e5e7eb;
            text-align: left;
        }

        .markdown-body th {
            background: #f9fafb;
            font-weight: 600;
            color: #374151;
        }

        .markdown-body tr:nth-child(even) {
            background: #f9fafb;
        }

        .markdown-body a {
            color: var(--primary);
            text-decoration: none;
        }

        .markdown-body a:hover {
            text-decoration: underline;
        }

        /* 待办事项复选框样式 */
        .todo-section {
            margin-top: 28px;
            padding-top: 16px;
            border-top: 2px solid #e5e7eb;
        }

        .todo-section h3 {
            font-size: 16px;
            font-weight: 600;
            color: #1f2937;
            margin: 0 0 12px;
        }

        .todo-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .todo-item {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            padding: 10px 12px;
            margin: 4px 0;
            border-radius: 8px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            transition: all 0.2s;
        }

        .todo-item:hover {
            background: #f3f4f6;
        }

        .todo-item label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            flex: 1;
            min-width: 0;
        }

        .todo-checkbox {
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: var(--primary);
            flex-shrink: 0;
        }

        .todo-text {
            font-size: 14px;
            color: #1f2937;
            transition: all 0.2s;
        }

        .todo-item.done .todo-text {
            text-decoration: line-through;
            color: #9ca3af;
        }

        .todo-tag {
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 10px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .todo-assignee {
            background: #e8f4fd;
            color: #1d4ed8;
        }

        .todo-deadline {
            background: #fef3c7;
            color: #92400e;
        }

        .todo-priority {
            font-weight: 500;
        }
