* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 0.25rem;
}

.nav-group {
    position: relative;
}

.nav-group-label {
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-group-label::after {
    content: '▾';
    font-size: 0.7em;
    transition: transform 0.2s;
}

.nav-group:hover .nav-group-label,
.nav-group-label.group-active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-group:hover .nav-group-label::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 200;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-group.nav-group-closing .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.nav-dropdown .nav-link {
    display: block;
    white-space: nowrap;
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.nav-dropdown .nav-link:first-child {
    border-radius: 0.375rem 0.375rem 0 0;
}

.nav-dropdown .nav-link:last-child {
    border-radius: 0 0 0.375rem 0.375rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.main-content {
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--bg-color);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: var(--bg-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--card-bg);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

#modal-body {
    padding: 1.5rem;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    min-width: 200px;
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--danger-color);
}

.toast-info {
    background: var(--primary-color);
}

.toast-warning {
    background: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 0.375rem;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar .form-input {
    flex: 1;
}

.connection-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.connection-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.connection-name {
    font-weight: 600;
    font-size: 1rem;
}

.connection-details {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.connection-actions {
    display: flex;
    gap: 0.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.inline-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-edit input {
    flex: 1;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
}

.comment-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-cell:hover {
    white-space: normal;
    word-break: break-all;
}

.editable {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.editable:hover {
    background: var(--bg-color);
}

.er-container {
    display: flex;
    gap: 1rem;
    height: calc(100vh - 200px);
}

.er-sidebar {
    width: 300px;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    overflow-y: auto;
}

.er-sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.er-sidebar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 48px;
    flex-shrink: 0;
}

.er-sidebar-select {
    flex: 1;
    min-width: 0;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem !important;
}

.er-main {
    flex: 1;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

#er-network {
    width: 100%;
    height: 100%;
}

.er-toolbar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.er-info-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 280px;
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1rem;
    z-index: 10;
    display: none;
}

.er-info-panel.show {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.pk-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    margin-left: 0.25rem;
}

.nullable-badge {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.sync-status.running {
    background: rgba(37, 99, 235, 0.1);
}

.sync-status.success {
    background: rgba(16, 185, 129, 0.1);
}

.sync-status.failed {
    background: rgba(239, 68, 68, 0.1);
}

/* Data Preview & Object Type Tabs */
.data-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.data-tab {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-color);
    border-bottom: none;
    background: var(--bg-color, #f9fafb);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.data-tab:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.data-tab.active {
    color: var(--primary-color);
    background: var(--card-bg, #fff);
    border-color: var(--border-color);
    border-bottom: 2px solid var(--card-bg, #fff);
    font-weight: 600;
}

.data-table-wrapper {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
}

.data-preview-table {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.data-preview-table th {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1;
    font-size: 0.6875rem;
}

.data-preview-table td {
    padding: 0.5rem 0.75rem;
}

.data-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-cell:hover {
    background: rgba(37, 99, 235, 0.05);
    cursor: default;
}

/* Workflow Styles */
.wf-sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.wf-sidebar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 32px;
    flex-shrink: 0;
}

.wf-sidebar-input {
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0.4rem !important;
    font-size: 0.8rem !important;
}

/* 二级菜单区域 */
.wf-menu-section {
    margin-top: 0.375rem;
    flex: 1;
    overflow-y: auto;
}

.wf-menu-group {
    margin-bottom: 0.375rem;
}

.wf-menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.wf-menu-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.wf-menu-list {
    max-height: 200px;
    overflow-y: auto;
}

.wf-menu-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.3rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wf-menu-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.375rem;
    border-radius: 0.2rem;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.15s;
}

.wf-menu-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.wf-menu-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    font-weight: 500;
}

.wf-menu-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-menu-item-actions {
    display: flex;
    gap: 0.1rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.wf-menu-item:hover .wf-menu-item-actions {
    opacity: 1;
}

.wf-tree-arrow {
    font-size: 0.5rem;
    color: var(--text-muted);
    width: 0.6rem;
    display: inline-block;
    flex-shrink: 0;
}

.wf-tree-children {
    border-left: 2px solid var(--primary-color);
    margin-left: 1rem;
    padding-left: 0.5rem;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.wf-tree-children.collapsed {
    display: none;
}

/* 一级流程（父） */
.wf-tree-root {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.375rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.125rem;
}

.wf-tree-root.active {
    background: rgba(37, 99, 235, 0.12);
    border-left: 3px solid var(--primary-color);
}

/* 子流程 */
.wf-tree-child {
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.2rem 0.375rem;
    color: var(--text-muted);
}

.wf-tree-child.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.wf-tree-child:hover {
    color: var(--text-color);
}

.wf-tree-icon {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.2rem;
    font-size: 0.75rem;
    font-style: normal;
    line-height: 1;
}

/* 文件夹图标-展开（一级有子流程） */
.wf-icon-folder-open {
    color: #d97706;
    font-weight: bold;
}
.wf-icon-folder-open::before {
    content: '\25BC';  /* ▼ 实心下三角 */
}

/* 文件夹图标-收起 */
.wf-icon-folder-closed {
    color: #d97706;
    font-weight: bold;
}
.wf-icon-folder-closed::before {
    content: '\25B6';  /* ▶ 实心右三角 */
}

/* 文件图标（一级无子流程） */
.wf-icon-file {
    color: #6b7280;
}
.wf-icon-file::before {
    content: '\25CB';  /* ○ 空心圆 */
}

/* 子流程图标 */
.wf-icon-sub {
    color: var(--primary-color);
    font-size: 0.85rem;
}
.wf-icon-sub::before {
    content: '\2514';  /* └ */
}

.wf-tree-leaf {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.wf-tree-badge {
    font-size: 0.6rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    padding: 0 0.3rem;
    min-width: 1rem;
    text-align: center;
    line-height: 1.1rem;
    flex-shrink: 0;
}

.wf-step-num {
    background: var(--primary-color);
    color: white;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.wf-data-item {
    padding: 0.15rem 0;
    font-size: 0.75rem;
}

.wf-data-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

/* 流程截图样式 */
.wf-has-image {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}

.wf-image-thumb-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--bg-color);
}

.wf-image-thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.wf-image-overlay {
    position: fixed;
    z-index: 2000;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    display: none;
    max-width: 600px;
    max-height: 500px;
}

.wf-image-overlay img {
    max-width: 100%;
    max-height: 480px;
    border-radius: 0.25rem;
}

/* ============ 全屏图片查看器/编辑器 ============ */
.wf-fullscreen-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wf-viewer-toolbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    flex-wrap: wrap;
}

.wf-viewer-toolbar .vt-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.wf-viewer-toolbar .vt-btn:hover {
    background: rgba(255,255,255,0.25);
}

.wf-viewer-toolbar .vt-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.wf-viewer-toolbar .vt-sep {
    width: 1px;
    height: 1.2rem;
    background: rgba(255,255,255,0.2);
    margin: 0 0.2rem;
}

.wf-viewer-toolbar .vt-color {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0;
    background: none;
}

.wf-viewer-toolbar .vt-range {
    width: 60px;
    accent-color: var(--primary-color);
}

.wf-viewer-toolbar .vt-select {
    padding: 0.25rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.wf-viewer-toolbar .vt-select option {
    background: #333;
    color: #fff;
}

/* 画布上的文字输入框 */
.wf-canvas-textinput {
    position: fixed;
    z-index: 3100;
    border: 1px dashed rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.35);
    outline: none;
    padding: 2px 4px;
    min-width: 120px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    border-radius: 2px;
}

.wf-viewer-close {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    z-index: 20;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.wf-viewer-close:hover {
    background: rgba(255,255,255,0.3);
}

.wf-viewer-canvas-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 1rem;
    overflow: auto;
    width: 100%;
}

.wf-viewer-canvas-wrap img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 0.375rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    user-select: none;
}

.wf-viewer-canvas-wrap canvas {
    border-radius: 0.375rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    cursor: crosshair;
}

/* 保存选择弹窗 */
.wf-save-dialog {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3500;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-save-dialog-box {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.wf-save-dialog-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.wf-save-dialog-box .save-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.wf-save-dialog-box .save-opt-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-color);
}

.wf-save-dialog-box .save-opt-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
}

.wf-save-dialog-box .save-opt-icon {
    font-size: 1.3rem;
}

.wf-save-dialog-box .save-opt-text strong {
    display: block;
    font-size: 0.9rem;
}

.wf-save-dialog-box .save-opt-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 多图列表 */
.wf-image-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.wf-image-list-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.35rem;
    text-align: center;
}

.wf-image-list-item .wf-sidebar-thumb {
    max-width: 100%;
    max-height: 120px;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.wf-image-list-item .wf-sidebar-thumb:hover {
    opacity: 0.85;
}

.wf-image-list-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding: 0 0.15rem;
}

.wf-image-current {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

/* 右侧截图边栏 */
.wf-right-sidebar {
    width: 150px;
    min-width: 150px;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    padding: 0.5rem;
    overflow-y: auto;
}

/* 步骤明细栏 */
.wf-detail-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    padding: 0.5rem;
    overflow-y: auto;
}

/* 四栏布局 */
.wf-four-col .er-sidebar {
    width: 220px;
    min-width: 220px;
    padding: 0.5rem;
}

.wf-sidebar-image-wrap {
    background: var(--bg-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    text-align: center;
}

.wf-sidebar-thumb {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wf-sidebar-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============ 登录页面 ============ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.login-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* ============ 用户信息 ============ */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.user-name {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.user-name-btn {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.15s;
}

.user-name-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

/* ============ 系统设置页面 ============ */
.settings-container {
    display: flex;
    height: calc(100vh - 80px);
    background: var(--bg-color);
}

.settings-sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
}

.settings-sidebar h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.settings-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-menu-item {
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.15s;
    margin-bottom: 0.25rem;
}

.settings-menu-item:hover {
    background: var(--bg-color);
}

.settings-menu-item.active {
    background: var(--primary-color);
    color: white;
}

.settings-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.settings-panel {
    display: none;
    max-width: 800px;
}

.settings-panel.active {
    display: block;
}

.settings-panel h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.settings-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.users-list {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    background: var(--bg-color);
    color: var(--text-muted);
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* ============ ER标签右侧边栏 ============ */
.er-right-sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    overflow-y: auto;
}

.er-tag-item {
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    background: var(--bg-color);
    transition: all 0.15s;
    position: relative;
}

.er-tag-item:hover {
    background: var(--primary-color);
    color: white;
}

.er-tag-item:hover .er-tag-info {
    color: rgba(255, 255, 255, 0.8);
}

.er-tag-item.active {
    background: var(--primary-color);
    color: white;
}

.er-tag-item.active .er-tag-info {
    color: rgba(255, 255, 255, 0.8);
}

.er-tag-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.er-tag-info {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.er-tag-actions {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: none;
    gap: 0.25rem;
}

.er-tag-item:hover .er-tag-actions {
    display: flex;
}

.er-tag-actions .btn {
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

/* ============ 问题梳理模块 ============ */

.issues-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.issues-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.issues-filter-bar {
    margin-bottom: 0.6rem;
}

.issues-filters {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.issues-filters .issue-filter-select {
    flex: 0 1 auto;
    width: auto;
}

.form-select-sm, .form-input-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    height: auto;
}

.issue-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.issue-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 500;
    white-space: nowrap;
}

.issue-tag-chip .tag-remove {
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.6;
}
.issue-tag-chip .tag-remove:hover {
    opacity: 1;
}

.issue-table {
    width: 100%;
}

.issue-table th,
.issue-table td {
    padding: 0.25rem 0.45rem;
    font-size: 0.95rem;
}

.issue-table th {
    font-size: 0.825rem;
    padding: 0.35rem 0.45rem;
    background: var(--bg-color);
}

.issue-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.issue-row:hover {
    background: rgba(37, 99, 235, 0.06);
}

.issue-title-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.issue-title-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.issue-tags-inline {
    display: flex;
    gap: 0.15rem;
    flex-wrap: wrap;
}

/* 看板 */

.kanban-board {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 500px;
}

.kanban-column {
    min-width: 200px;
    flex: 1;
    background: var(--bg-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.kanban-column.drag-over {
    background: var(--primary-color)10;
    outline: 2px dashed var(--primary-color);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.kanban-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kanban-count {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-weight: normal;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 50px;
}

.kanban-card {
    background: var(--card-bg);
    border-radius: 0.375rem;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.1s;
}

.kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.kanban-card[draggable="true"]:active {
    opacity: 0.5;
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.kanban-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-assignee {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 问题详情 */

.issue-detail {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* 新版问题详情布局 */
.issue-detail-v2 {
    max-height: 70vh;
    overflow-y: auto;
}

.issue-attr-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.attr-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    min-width: 80px;
    flex: 0 1 auto;
}

.attr-card .attr-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.attr-card .attr-value {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.attr-card .attr-select {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
    height: auto;
    min-width: 60px;
}

.issue-tags-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.issue-tags-bar .tags-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.issue-tags-bar .actions-section {
    display: flex;
    gap: 0.5rem;
}

.issue-main-content .content-section {
    margin-bottom: 1rem;
}

.issue-main-content .section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.status-log-list.collapsed {
    display: none;
}

.issue-detail-main {
    min-width: 0;
}

.issue-detail-sidebar {
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
}

.detail-field {
    margin-bottom: 0.75rem;
}

.detail-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-field > div {
    font-size: 0.875rem;
}

.markdown-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.markdown-body p { margin: 0.5rem 0; }
.markdown-body pre { background: var(--bg-color); padding: 0.75rem; border-radius: 0.375rem; overflow-x: auto; }
.markdown-body code { background: var(--bg-color); padding: 0.15rem 0.35rem; border-radius: 0.25rem; font-size: 0.85em; }
.markdown-body pre code { background: none; padding: 0; }

/* 评论 */

.comment-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-actions {
    margin-left: auto;
    display: none;
}

.comment-item:hover .comment-actions {
    display: flex;
    gap: 0.25rem;
}

.comment-content {
    font-size: 0.875rem;
}

/* 附件 */

.attachment-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.attachment-item {
    width: 120px;
}

.attachment-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.attachment-item img:hover {
    opacity: 0.8;
}

.attachment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

/* 状态变更历史 */

.status-log-list {
    max-height: 200px;
    overflow-y: auto;
}

.status-log-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-log-item:last-child {
    border-bottom: none;
}

/* ============ 结构比对模块 ============ */

.compare-config {
    padding: 1rem 0 0;
}

.compare-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.compare-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compare-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding-top: 1.75rem;
    flex-shrink: 0;
}

.compare-summary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 差异表分组 */
.diff-table-group {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.diff-table-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    cursor: pointer;
    user-select: none;
}

.diff-table-header:hover {
    background: rgba(37, 99, 235, 0.06);
}

.collapse-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.diff-table-group.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.diff-table-group.collapsed .diff-table-body {
    display: none;
}

.diff-table-body {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* 差异行高亮 */
tr.row-add {
    background: rgba(16, 185, 129, 0.08);
}

tr.row-drop {
    background: rgba(239, 68, 68, 0.08);
}

tr.row-modify {
    background: rgba(245, 158, 11, 0.08);
}

/* DDL 条目 */
.diff-ddl-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ddl-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.15s;
}

.ddl-item:hover {
    background: var(--bg-color);
}

.ddl-item input[type="checkbox"] {
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.ddl-item pre {
    margin: 0;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
    flex: 1;
    background: none;
    padding: 0;
}

/* 紧凑表格 */
.table.compact th,
.table.compact td {
    padding: 0.25rem 0.5rem;
    font-size: 0.825rem;
}

/* ============ 紧凑型页面 ============ */

.page-compact .card {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-compact .card-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.compact-toolbar {
    margin-bottom: 0.5rem;
}

.compact-toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compact-select {
    width: 160px;
    padding: 0.25rem 0.4rem !important;
    font-size: 0.8rem !important;
}

.compact-input {
    flex: 1;
    min-width: 120px;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}

.page-compact .table th,
.page-compact .table td {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
}

.page-compact .table th {
    font-size: 0.7rem;
}

.page-compact .pagination {
    margin-top: 0.5rem;
    gap: 0.25rem;
}

.page-compact .data-tab {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.page-compact .empty-state {
    padding: 1.5rem;
}

.page-compact .empty-state h3 {
    font-size: 1rem;
}

/* ============ 视图定义 ============ */

.view-definition {
    background: #f8f9fb;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    margin-top: 0.25rem;
}

.view-definition pre {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.825rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: var(--text-color);
}

.badge-info {
    background: #3b82f6;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* ============ 表空间页面 ============ */

.ts-summary {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ts-summary-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ts-summary-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ts-summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 紧凑表空间表格 */
.ts-table th,
.ts-table td {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.825rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ts-table th {
    font-size: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-table td strong {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-progress {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.ts-progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.ts-bar-normal {
    background: var(--success-color);
}

.ts-bar-warning {
    background: var(--warning-color);
}

.ts-bar-danger {
    background: var(--danger-color);
}

/* 监听日志区域（表空间上方） */
.ts-listener-section {
    margin-bottom: 0.75rem;
}

.ts-listener-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.ts-listener-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ts-listener-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.ts-listener-result {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    overflow: hidden;
}

.ts-footer-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ts-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.725rem;
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-info-tag b {
    color: var(--text-color);
    font-weight: 600;
}
