:root {
    --primary-color: #635BFF;
    --primary-dark: #4F49C0;
    --bg-dark: #1A1A2E;
    --bg-sidebar: #16162A;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --purple-light: #F3F0FF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 首页聊天窗口样式 */
.chat-container {
    width: calc(100vw - 10px);
    height: calc(100vh - 60px);
    display: flex;
    background-color: #f5f5f5;
    margin-left: 10px;
}
/* 历史记录侧边栏 */
.chat-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-sidebar.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: #e8e8e8;
    color: #333;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

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

.history-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.history-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.history-item.active .history-item-icon {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.history-item-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    opacity: 0;
    transition: all 0.2s ease;
}

.history-item:hover .history-item-delete {
    opacity: 1;
}

.history-item-delete:hover {
    background: #fee;
    color: #e53e3e;
}

/* 聊天主区域 */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-left {
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    margin-right: 12px;
}

.chat-sidebar.collapsed ~ .chat-main .sidebar-toggle-left {
    display: flex;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    font-size: 16px;
    color: white;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.chat-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: padding-right 0.18s ease, padding-bottom 0.18s ease;
}

.chat-history.hidden {
    display: none;
}

.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.user-message {
    align-items: flex-end;
}

.ai-message {
    align-items: flex-start;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
}

.user-message .message-avatar {
    background: #e8e8e8;
    color: #666;
    font-size: 14px;
}

.message-content {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.user-message .message-content {
    align-items: flex-end;
}

.user-message .message-avatar {
    order: 2;
}

.ai-message .message-content {
    align-items: flex-start;
}

.ai-message.has-full-width-content .message-content {
    max-width: none;
    width: 100%;
}

.message-bubble {
    width: 100%;
    text-align: center;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.ai-message .message-bubble {
    background: white;
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-message .message-bubble {
    background: transparent;
    color: #333;
    border-radius: 18px 18px 6px 18px;
    text-align: right;
    box-shadow: none;
}

.message-suggestions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.suggestion-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0ff;
    color: #667eea;
    border-radius: 12px;
    text-decoration: none;
    margin-right: 6px;
    font-size: 12px;
}

.suggestion-tag:hover {
    background: #e0e0ff;
}

.message-time {
    font-size: 11px;
    color: #999;
    padding-left: 4px;
}

.user-message .message-time {
    text-align: right;
    padding-right: 4px;
}

.chat-input-area {
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 12px 0;
    height: auto;
    min-height: 100px;
    width: 800px;
    margin: 0 auto;
}

.selected-files-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    font-size: 12px;
}

.selected-file-item .file-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-item .file-remove {
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: color 0.2s;
}

.selected-file-item .file-remove:hover {
    color: #e74c3c;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 6px;
    width: 800px;
    height: 100px;
    margin: 0 auto;
}

.chat-input {
    width: 800px;
    height: 150px;
    padding: 12px 16px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.chat-input::placeholder {
    color: #999;
}

.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-attach-btn {
    background: transparent;
    color: #999;
}

.chat-attach-btn:hover {
    background: #e8e8e8;
}

.chat-send-btn {
    background: transparent;
    color: #64748b;
}

.chat-send-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.chat-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    width: 800px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
}

.tools-label {
    font-size: 12px;
    color: #999;
}

.tool-chip {
    padding: 6px 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-chip:hover {
    background: #f0f0ff;
    color: #667eea;
}

.referral-platform-chat {
    width: 100%;
    max-width: none;
}

.referral-platform-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.referral-platform-title {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.3;
}

.referral-platform-desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.referral-platform-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.referral-platform-metric {
    position: relative;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.referral-platform-metric:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: #ffffff;
    transform: translateY(-1px);
}

.referral-platform-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.referral-platform-card {
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #111827;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.referral-platform-card strong,
.referral-platform-card small {
    display: block;
}

.referral-platform-card strong {
    font-size: 14px;
    line-height: 1.35;
}

.referral-platform-card small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.my-todo-chat {
    width: 100%;
    max-width: none;
    text-align: left;
}

.my-todo-chat * {
    text-align: left;
}

.my-todo-chat button {
    font-family: inherit;
}

.todo-chat-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.todo-chat-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.todo-chat-hero h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}

.todo-chat-hero p {
    max-width: 560px;
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.todo-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 38px;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.todo-primary-action:hover {
    background: #1f2937;
}

.todo-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.todo-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 96px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.todo-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.todo-summary-card.is-primary {
    border-color: #bfdbfe;
}

.todo-summary-card.is-danger {
    border-color: #fecaca;
}

.todo-summary-card.is-success {
    border-color: #bbf7d0;
}

.todo-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.todo-summary-card.is-danger .todo-summary-icon {
    background: #fef2f2;
    color: #dc2626;
}

.todo-summary-card.is-success .todo-summary-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.todo-summary-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.todo-summary-copy strong {
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
}

.todo-summary-copy em {
    color: #334155;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.todo-summary-copy small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.todo-section-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
}

.todo-filter-chip {
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.todo-filter-chip:hover,
.todo-filter-chip.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.todo-filter-chip.is-urgent.active {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.todo-filter-chip.is-important.active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

.todo-filter-chip.is-normal.active {
    border-color: #14b8a6;
    background: #f0fdfa;
    color: #0f766e;
}

.todo-priority-groups {
    display: grid;
    gap: 12px;
}

.todo-priority-group {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-radius: 8px;
    transition: opacity 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.todo-priority-group.is-urgent {
    border-left-color: #ef4444;
}

.todo-priority-group.is-important {
    border-left-color: #f59e0b;
}

.todo-priority-group.is-normal {
    border-left-color: #14b8a6;
}

.todo-priority-group.is-dimmed {
    opacity: 0.35;
}

.todo-priority-group.is-focused {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.todo-group-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.todo-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
}

.todo-priority-group.is-urgent .todo-group-icon {
    background: #fef2f2;
    color: #dc2626;
}

.todo-priority-group.is-important .todo-group-icon {
    background: #fffbeb;
    color: #d97706;
}

.todo-priority-group.is-normal .todo-group-icon {
    background: #f0fdfa;
    color: #0f766e;
}

.todo-group-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
}

.todo-group-header h4 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
}

.todo-group-header p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.todo-task-list {
    display: grid;
    gap: 8px;
}

.todo-task-row {
    display: grid;
    grid-template-columns: 34px minmax(180px, 1fr) 44px 78px 120px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.todo-task-row:hover {
    transform: translateX(2px);
    border-color: #cbd5e1;
    background: #ffffff;
}

.todo-task-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
}

.todo-task-main {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.todo-task-main strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.todo-task-main small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.todo-task-count {
    display: block;
    width: 44px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.todo-task-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.todo-priority-group.is-urgent .todo-task-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.todo-priority-group.is-important .todo-task-badge {
    background: #fef3c7;
    color: #92400e;
}

.todo-priority-group.is-normal .todo-task-badge {
    background: #ccfbf1;
    color: #0f766e;
}

.todo-task-row > button {
    width: 120px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}

.todo-task-row > button:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.todo-chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #64748b;
    font-size: 12px;
}

.todo-chat-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.todo-chat-footer button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.todo-chat-footer button:hover {
    background: #eff6ff;
}

.todo-action-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10020;
    display: grid;
    gap: 2px;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.todo-action-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.todo-action-toast strong {
    font-size: 14px;
    line-height: 1.35;
}

.todo-action-toast span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.todo-detail-open #page-home .chat-composer-area {
    width: min(760px, calc(100% - 48px));
}

.todo-detail-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 0 0 clamp(300px, 26vw, 340px);
    width: clamp(300px, 26vw, 340px);
    max-width: clamp(300px, 26vw, 340px);
    min-width: 0;
    height: 100%;
    max-height: none;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}

body.is-column-resizing {
    user-select: none;
    cursor: col-resize;
}

#page-home .chat-sidebar.resizable-column,
#page-home .chat-main.resizable-column,
.todo-detail-panel.resizable-column {
    position: relative;
}

#page-home .chat-sidebar.resizable-column::after,
#page-home .chat-main.resizable-column::after {
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 5;
}

.todo-detail-panel.resizable-column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    width: 8px;
    cursor: col-resize;
    z-index: 5;
}

.todo-detail-panel.job-board-detail-panel {
    flex-basis: clamp(360px, 30vw, 420px);
    width: clamp(360px, 30vw, 420px);
    max-width: clamp(360px, 30vw, 420px);
}

.todo-detail-panel.job-board-resume-detail-panel {
    flex-basis: clamp(380px, 32vw, 460px);
    width: clamp(380px, 32vw, 460px);
    max-width: clamp(380px, 32vw, 460px);
}

.todo-detail-panel.job-board-detail-panel .job-board-detail-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-right: 2px;
}

.todo-detail-panel.job-board-resume-detail-panel .job-board-resume-layout {
    flex: 1 1 auto;
    min-height: 0;
}

.todo-detail-panel.show {
    opacity: 1;
    transform: translateX(0);
}

.todo-detail-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    align-items: start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.todo-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.todo-detail-panel.is-danger .todo-detail-icon {
    background: #fef2f2;
    color: #dc2626;
}

.todo-detail-panel.is-success .todo-detail-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.todo-detail-header strong {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.todo-detail-title-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.todo-detail-header small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.todo-detail-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.todo-detail-header button:hover {
    background: #f8fafc;
    color: #0f172a;
}

.job-board-detail-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 10px;
}

.job-board-detail-shell .job-board-detail-form {
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.job-board-detail-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-board-detail-shell-head strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.job-board-detail-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.job-board-detail-edit-btn:hover {
    background: #f8fafc;
    color: #111827;
}

.job-board-detail-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.job-board-detail-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.job-board-detail-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.job-board-detail-form label.full {
    grid-column: 1 / -1;
}

.job-board-detail-field {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.job-board-detail-field.full {
    grid-column: 1 / -1;
}

.job-board-detail-form input,
.job-board-detail-form textarea,
.job-board-detail-form select {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.job-board-detail-form textarea {
    min-height: 72px;
    overflow: hidden;
    resize: none;
}

.job-board-detail-form select[multiple] {
    min-height: 92px;
    padding: 6px;
}

.job-board-detail-form select[multiple] option {
    padding: 5px 6px;
    border-radius: 6px;
}

.job-board-multi-dropdown {
    position: relative;
    width: 100%;
}

.job-board-multi-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.job-board-multi-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-board-multi-trigger i {
    color: #64748b;
    font-size: 11px;
}

.job-board-multi-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    max-height: 176px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.job-board-multi-dropdown.open .job-board-multi-menu {
    display: grid;
    gap: 4px;
}

.job-board-multi-option {
    display: flex !important;
    grid-auto-flow: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 30px;
    padding: 5px 6px;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
}

.job-board-multi-option:hover {
    background: #f8fafc;
}

.job-board-multi-option input {
    width: 14px;
    height: 14px;
    min-height: 0;
    padding: 0;
    accent-color: #00a985;
}

.job-board-detail-form input:focus,
.job-board-detail-form textarea:focus,
.job-board-detail-form select:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18);
}

.job-board-model-edit-list,
.job-board-channel-edit-item {
    display: grid;
    gap: 10px;
}

.job-board-channel-horizontal-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    width: 100%;
}

.job-board-model-edit-list {
    grid-column: 1 / -1;
    width: 100%;
}

.job-board-model-edit-item,
.job-board-channel-edit-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.job-board-model-edit-item {
    grid-template-columns: minmax(0, 1fr) 96px;
    width: 100%;
}

.job-board-channel-edit-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    width: 100%;
}

.job-board-channel-name-readonly {
    display: grid;
    min-width: 0;
}

.job-board-channel-name-readonly span {
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.job-board-channel-name-readonly strong {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
}

.job-board-channel-toggle {
    display: inline-flex !important;
    grid-auto-flow: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-height: 34px;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
}

.job-board-channel-toggle input {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    accent-color: #00a985;
    cursor: pointer;
}

.job-board-channel-toggle span {
    font-size: 12px;
}

.job-board-channel-add-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.job-board-channel-add-btn:hover {
    border-color: #00a985;
    color: #00a985;
    background: #f0fdf9;
}

.job-board-model-edit-item .full,
.job-board-channel-edit-item label.full {
    grid-column: 1 / -1;
}

.job-board-detail-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 2px;
    align-self: end;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.job-board-detail-save-btn:hover {
    background: #1f2937;
}

.job-board-search-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.todo-detail-panel.job-board-search-panel {
    flex-basis: clamp(340px, 28vw, 420px);
    width: clamp(340px, 28vw, 420px);
    max-width: clamp(340px, 28vw, 420px);
}

.todo-detail-panel.job-board-search-panel .job-board-search-shell {
    overflow: hidden;
}

.job-board-search-fields {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.job-board-search-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.job-board-search-shell label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
}

.job-board-search-shell input,
.job-board-search-shell textarea {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 13px;
}

.job-board-search-shell textarea {
    min-height: 70px;
    resize: vertical;
}

.job-board-search-tag-editor {
    display: grid;
    gap: 8px;
}

.job-board-search-tag-editor > span {
    color: #475569;
    font-size: 12px;
}

.job-board-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.job-board-search-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff7f7;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
}

.job-board-search-tag i {
    font-size: 10px;
}

.job-board-search-tag-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.job-board-search-tag-add button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
}

.job-board-search-start,
.job-board-search-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
}

.job-board-search-footer {
    position: sticky;
    bottom: 0;
    display: grid;
    padding-top: 8px;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

.job-board-search-footer .job-board-search-start {
    width: 100%;
}

.job-board-search-results {
    display: grid;
    gap: 10px;
}

.job-board-search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.job-board-search-result-head strong {
    color: #111827;
    font-size: 13px;
}

.job-board-search-result-head span {
    color: #64748b;
    font-size: 12px;
}

.job-board-search-result-list {
    display: grid;
    gap: 8px;
}

.job-board-search-result-list article {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.job-board-search-result-list article strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #111827;
    font-size: 13px;
}

.job-board-search-result-list article strong span {
    color: #b91c1c;
    font-size: 12px;
}

.job-board-search-result-list article p,
.job-board-search-result-list article small {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.job-board-resume-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.job-board-resume-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.job-board-resume-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.job-board-resume-action-section {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
}

.job-board-resume-action-section.hidden {
    display: none;
}

.job-board-resume-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-board-resume-title strong {
    color: #0f172a;
    font-size: 14px;
}

.job-board-resume-title span,
.job-board-resume-profile span {
    color: #64748b;
    font-size: 12px;
}

.job-board-resume-profile,
.job-board-resume-tags {
    display: grid;
    gap: 6px;
}

.job-board-resume-profile {
    grid-template-columns: 1fr;
}

.job-board-resume-contact {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.job-board-resume-contact-view {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-board-resume-contact-view[hidden],
.job-board-resume-contact-form[hidden] {
    display: none !important;
}

.job-board-resume-contact-view > div,
.job-board-resume-contact-form {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.job-board-resume-contact-view strong {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.job-board-resume-contact-view span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.job-board-resume-contact-view button,
.job-board-resume-contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.job-board-resume-contact-form label {
    display: grid;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
}

.job-board-resume-contact-form input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #111827;
    font-size: 13px;
    outline: none;
}

.job-board-resume-contact-form input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.14);
}

.job-board-resume-contact-form > div {
    display: flex;
    gap: 8px;
}

.job-board-resume-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
}

.job-board-resume-summary {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.job-board-resume-summary strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.job-board-resume-summary p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-headhunter-reason {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.job-board-headhunter-reason strong {
    color: #1d4ed8;
}

.job-board-resume-section pre,
.job-board-resume-raw {
    max-height: 220px;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    color: #334155;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-resume-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 34px;
    min-height: 34px;
    max-height: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
    scrollbar-width: thin;
}

.job-board-resume-tabs button {
    flex: 0 0 auto;
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.job-board-resume-tabs button.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.job-board-resume-tab-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #ffffff;
    overflow: visible;
}

.job-board-resume-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.job-board-resume-info-item {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
}

.job-board-resume-info-item span,
.job-board-resume-record span {
    color: #64748b;
    font-size: 12px;
}

.job-board-resume-info-item strong,
.job-board-resume-record strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

.job-board-resume-records {
    display: grid;
    gap: 8px;
}

.job-board-resume-record {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
}

.job-board-resume-record p,
.job-board-resume-empty {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-resume-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    padding-left: 16px;
}

.job-board-resume-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 5px;
    width: 1px;
    background: #dbe3ee;
}

.job-board-resume-timeline-item {
    position: relative;
}

.job-board-resume-timeline-dot {
    position: absolute;
    top: 13px;
    left: -15px;
    width: 9px;
    height: 9px;
    border: 2px solid #111827;
    border-radius: 50%;
    background: #ffffff;
}

.job-board-resume-timeline-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
}

.job-board-resume-timeline-card div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.job-board-resume-timeline-card span {
    color: #64748b;
    font-size: 12px;
}

.job-board-resume-timeline-card strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 500;
    word-break: break-word;
}

.job-board-resume-timeline-card p {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-attachment-panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.job-board-attachment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.job-board-attachment-head strong {
    color: #0f172a;
    font-size: 13px;
}

.job-board-attachment-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.job-board-attachment-list {
    display: grid;
    gap: 8px;
}

.job-board-attachment-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
}

.job-board-attachment-item i {
    color: #64748b;
}

.job-board-attachment-item span {
    color: #0f172a;
    font-size: 12px;
    word-break: break-word;
}

.job-board-attachment-item small {
    grid-column: 2;
    color: #94a3b8;
    font-size: 11px;
}

.job-board-resume-empty {
    padding: 16px;
    text-align: center;
}

.job-board-resume-empty.compact {
    padding: 10px;
    border: 1px dashed #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
}

.job-board-profile-match-list {
    display: grid;
    gap: 8px;
}

.job-board-profile-match-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
}

.job-board-profile-match-card div {
    display: grid;
    gap: 4px;
}

.job-board-profile-match-card strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.job-board-profile-match-card span,
.job-board-profile-match-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.job-board-profile-match-card p {
    color: #334155;
}

.job-board-resume-process-cards {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.job-board-resume-process-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.job-board-resume-process-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.job-board-resume-process-head strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.job-board-resume-process-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.job-board-resume-process-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.job-board-resume-process-head button:hover {
    border-color: #111827;
    color: #111827;
}

.job-board-interview-report-card {
    position: relative;
    place-items: center;
    min-height: 72px;
    padding-top: 26px;
    text-align: center;
}

.job-board-interview-report-notify-btn {
    top: 10px;
    right: 10px;
}

.job-board-interview-report-card button:not(.interview-report-notify-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.job-board-interview-report-card button:not(.interview-report-notify-btn):hover {
    background: #0f172a;
}

.job-board-interview-report-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-ai-interview-media,
.job-board-ai-qa-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #ffffff;
}

.job-board-ai-interview-media strong,
.job-board-ai-qa-list strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.job-board-ai-interview-media a,
.job-board-ai-interview-media span,
.job-board-ai-qa-list p,
.job-board-ai-qa-list span {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.job-board-ai-interview-media a {
    color: #2563eb;
    text-decoration: none;
}

.job-board-ai-qa-list div {
    display: grid;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}

.job-board-inline-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.job-board-inline-action label {
    display: grid;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
}

.job-board-result-choice {
    display: grid;
    gap: 6px;
}

.job-board-result-choice > span {
    color: #64748b;
    font-size: 12px;
}

.job-board-result-choice > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.job-board-round-choice > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-board-result-choice label {
    display: block;
}

.job-board-result-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.job-board-result-choice label span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.job-board-result-choice input:checked + span {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.job-board-inline-action .job-board-inline-action-note {
    grid-column: 1 / -1;
}

.job-board-inline-action select,
.job-board-inline-action textarea {
    width: 100%;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 12px;
}

.job-board-inline-action textarea {
    min-height: 82px;
    line-height: 1.5;
    resize: vertical;
}

.job-board-inline-action button,
.job-board-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.job-board-feedback-btn {
    width: fit-content;
}

.job-board-interview-round-list {
    display: grid;
    gap: 10px;
}

.job-board-interview-round-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.job-board-interview-round-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.job-board-interview-round-head strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.job-board-interview-round-head span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7f7;
    color: #b91c1c;
    font-size: 11px;
}

.job-board-interview-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-board-interview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.job-board-interview-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
}

.job-board-interview-actions button:hover {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.job-board-resume-readonly-textarea {
    display: grid;
    gap: 6px;
}

.job-board-resume-readonly-textarea span {
    color: #64748b;
    font-size: 12px;
}

.job-board-resume-readonly-textarea textarea {
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.job-board-notes-panel {
    display: grid;
    gap: 12px;
}

.job-board-note-editor,
.job-board-note-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.job-board-note-editor label,
.job-board-note-reply {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
}

.job-board-note-editor textarea,
.job-board-note-reply textarea {
    width: 100%;
    min-height: 78px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.job-board-note-mention-picker,
.job-board-note-mentions,
.job-board-note-reply > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-board-note-mention-picker[hidden] {
    display: none;
}

.job-board-note-mention-picker {
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.job-board-note-mention-picker button,
.job-board-note-mentions button,
.job-board-note-reply > div button {
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.job-board-note-mention-picker button:hover {
    border-color: #111827;
    color: #111827;
}

.job-board-note-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-board-note-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-board-note-toolbar button,
.job-board-note-reply-trigger,
.job-board-note-reply > button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
}

.job-board-note-reply-trigger {
    justify-self: start;
}

.job-board-note-list {
    display: grid;
    gap: 10px;
}

.job-board-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-board-note-head strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.job-board-note-head span {
    color: #94a3b8;
    font-size: 11px;
}

.job-board-note-head em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #b91c1c;
    font-size: 11px;
    font-style: normal;
}

.job-board-note-item p {
    margin: 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.job-board-note-item mark {
    padding: 0 3px;
    border-radius: 4px;
    background: #fee2e2;
    color: #991b1b;
}

.job-board-note-replies {
    display: grid;
    gap: 8px;
    padding-left: 10px;
    border-left: 2px solid #fee2e2;
}

.job-board-note-replies > div {
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.job-board-note-replies strong {
    color: #111827;
    font-size: 12px;
}

.job-board-note-replies span {
    color: #94a3b8;
    font-size: 11px;
}

.job-board-stage-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.job-board-resume-action-section .job-board-stage-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-board-stage-actions button,
.job-board-stage-action-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.todo-detail-panel.job-board-resume-detail-panel .job-board-stage-actions button {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.todo-detail-panel.job-board-resume-detail-panel .job-board-stage-actions button:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.todo-detail-panel.job-board-resume-detail-panel .job-board-stage-actions button:disabled,
.todo-detail-panel.job-board-resume-detail-panel .job-board-stage-actions button:disabled:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.job-board-stage-action-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.job-board-stage-action-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
}

.job-board-stage-action-form input,
.job-board-stage-action-form select,
.job-board-stage-action-form textarea {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 12px;
}

.job-board-stage-action-form textarea {
    min-height: 72px;
    resize: vertical;
}

.job-board-time-range-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    color: #475569;
    font-size: 12px;
}

.job-board-time-range-field > span {
    grid-column: 1 / -1;
}

.job-board-time-range-field i {
    align-self: center;
    color: #64748b;
    font-style: normal;
    line-height: 34px;
}

.job-board-chat-action-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.job-board-chat-action-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    font-size: 13px;
}

.job-board-chat-action-grid span {
    color: #64748b;
}

.job-board-chat-action-grid b {
    color: #111827;
    font-weight: 500;
    word-break: break-word;
}

.job-board-chat-action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.job-board-chat-action-head strong {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.job-board-chat-action-head span {
    color: #64748b;
    font-size: 12px;
}

.job-board-chat-action-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.job-board-chat-action-form label {
    min-width: 0;
}

.job-board-chat-action-form button {
    justify-self: start;
    min-width: 96px;
    padding: 0 14px;
}

.job-board-chat-confirm {
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.job-board-chat-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.job-board-chat-action-form button.secondary {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
}

@media (max-width: 720px) {
    .job-board-chat-action-form {
        grid-template-columns: 1fr;
    }
}

.todo-detail-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 0 10px;
}

.todo-detail-count strong {
    color: #0f172a;
    font-size: 38px;
    line-height: 1;
}

.todo-detail-count span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.todo-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.todo-detail-metrics button {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.todo-detail-metrics button:hover,
.todo-detail-metrics button.active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.todo-detail-metrics strong {
    color: #111827;
    font-size: 18px;
    line-height: 1;
}

.todo-detail-metrics span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.todo-detail-list {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.todo-detail-panel.is-reward-policy .todo-detail-list {
    min-height: 252px;
}

.recruit-report-detail-list {
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
}

.recruit-report-detail-list-body {
    display: grid;
    gap: 8px;
}

.recruit-report-detail-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-detail-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}

.recruit-report-detail-card-head strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.recruit-report-detail-card-head span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruit-report-detail-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.recruit-report-detail-card-grid span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.recruit-report-detail-card-grid em {
    color: #94a3b8;
    font-size: 11px;
    font-style: normal;
}

.recruit-report-detail-card-grid strong {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.recruit-report-detail-empty {
    padding: 18px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.todo-detail-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-left-width: 3px;
    border-radius: 8px;
    background: #ffffff;
}

.todo-detail-item.has-action {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
}

.todo-detail-item.recommended-candidate-card {
    cursor: pointer;
}

.todo-detail-item.recommended-candidate-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.todo-detail-item-copy {
    min-width: 0;
}

.todo-detail-item.is-filter-hidden {
    display: none !important;
}

.todo-detail-item.is-urgent {
    border-left-color: #ef4444;
}

.todo-detail-item.is-important {
    border-left-color: #f59e0b;
}

.todo-detail-item.is-normal {
    border-left-color: #14b8a6;
}

.todo-detail-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.todo-detail-item strong {
    display: block;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
}

.todo-detail-item p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.todo-detail-item em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2 / 3;
    justify-self: start;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.todo-detail-item.has-action em {
    grid-column: 2 / 4;
}

.todo-detail-item.recommended-candidate-card em {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.todo-detail-item.recommended-candidate-card em span {
    color: #7c3aed;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.referral-job-upload-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.referral-job-upload-trigger:hover,
.referral-job-upload-trigger.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.referral-job-upload-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.referral-job-upload-heading {
    display: grid;
    gap: 3px;
}

.referral-job-upload-heading strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
}

.referral-job-upload-heading span,
.referral-job-selected-files {
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.referral-job-select-field {
    display: grid;
    gap: 5px;
}

.referral-job-select-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.referral-job-select-field select {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.referral-job-select-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.referral-job-file-control,
.referral-job-upload-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.referral-job-file-control {
    border: 1px dashed #93c5fd;
    background: #ffffff;
    color: #1d4ed8;
}

.referral-job-file-control input {
    display: none;
}

.referral-job-upload-submit {
    border: none;
    background: #111827;
    color: #ffffff;
}

.referral-job-upload-submit:hover {
    background: #1f2937;
}

.referral-job-duplicate-rule {
    display: grid;
    gap: 3px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbeafe;
}

.referral-job-duplicate-rule strong {
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.35;
}

.referral-job-duplicate-rule span {
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.referral-job-upload-status {
    min-height: 18px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.referral-job-upload-status.is-success {
    color: #166534;
}

.referral-job-upload-status.is-error {
    color: #b91c1c;
}

.todo-detail-info-sections {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.todo-detail-info-sections section {
    padding: 10px;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    background: #f0fdf4;
}

.todo-detail-info-sections strong {
    display: block;
    color: #166534;
    font-size: 13px;
    line-height: 1.35;
}

.todo-detail-info-sections p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.todo-detail-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 38px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.todo-detail-action:hover {
    background: #1f2937;
}

@media (max-width: 960px) {
    .todo-detail-open #page-home .chat-main {
        flex: 1;
        margin-right: 0;
    }

    .todo-detail-open #page-home .chat-composer-area {
        width: min(900px, calc(100% - 48px));
    }

    .todo-detail-open #page-home .chat-history {
        padding-bottom: 520px;
    }

    .todo-detail-panel {
        position: fixed;
        z-index: 10015;
        flex: none;
        top: auto;
        right: 18px;
        bottom: 18px;
        left: 83px;
        width: auto;
        max-width: none;
        max-height: min(500px, calc(100vh - 120px));
        height: auto;
        margin: 0;
        transform: translateY(18px);
    }

    .todo-detail-panel.job-board-detail-panel {
        width: auto;
        max-width: none;
        flex-basis: auto;
    }

    .todo-detail-panel.job-board-resume-detail-panel {
        width: auto;
        max-width: none;
        flex-basis: auto;
    }

    .job-board-detail-form,
    .job-board-model-edit-item,
    .job-board-channel-edit-item {
        grid-template-columns: 1fr;
    }

    .todo-detail-panel.show {
        transform: translateY(0);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F9FAFB;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 65px;
    background-color: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar:hover,
.sidebar.active {
    width: 135px;
}

.sidebar:not(:hover):not(.active) .logo-text,
.sidebar:not(:hover):not(.active) .nav-item span {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-icon i {
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background-color: rgba(99, 91, 255, 0.15);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-item i {
    width: 20px;
    font-size: 16px;
    margin-right: 12px;
}

.nav-footer {
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-content {
    flex: 0 0 calc(100vw - 67px);
    width: calc(100vw - 67px);
    margin-left: 67px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}

.header {
    background-color: var(--bg-card);
    padding: 12px 18px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left .page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    margin-right: 8px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    width: 200px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 4px;
}

.btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-dropdown {
    position: absolute;
    top: 100%;
    right: 140px;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 8px;
}

.ai-dropdown.show {
    display: block;
}

.ai-dropdown-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.ai-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ai-chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.ai-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ai-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-action-btn:hover {
    background: #f0f0ff;
    border-color: #667eea;
    color: #667eea;
}

.ai-action-btn i {
    font-size: 14px;
    color: #667eea;
}

.ai-chat-history {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
}

.ai-message {
    margin-bottom: 12px;
}

.ai-message-content {
    padding: 10px 14px;
    background: #f1f3f5;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.ai-message.user {
    text-align: right;
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* AI上传面板样式 */
.ai-upload-panel {
    padding: 12px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.upload-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.upload-area:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-area i {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 8px;
    display: block;
}

.upload-area span {
    font-size: 13px;
    color: #666;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-info {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    min-height: 24px;
}

.close-upload-btn {
    padding: 2px 8px;
    font-size: 11px;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid #64748b;
    color: #334155;
}

.btn-primary:hover {
    background-color: #f1f5f9;
    border-color: #475569;
    color: #1e293b;
}

.btn-icon {
    padding: 8px;
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background-color: var(--border-light);
    color: var(--text-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-profile:hover {
    background-color: var(--border-light);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.username {
    font-size: 14px;
    font-weight: 500;
}

.stats-section {
    display: flex;
    gap: 14px;
    padding: 16px 16px 12px;
    overflow-x: auto;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card.active {
    background-color: #f1f5f9;
}

.stat-card.active .stat-label,
.stat-card.active .stat-arrow {
    color: rgba(51, 65, 85, 0.7);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-light);
    font-size: 18px;
}

.stat-card.active .stat-icon {
    background-color: #e2e8f0;
    color: #334155;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-left: auto;
}

.stat-card.active .stat-number {
    color: #64748b;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    align-self: flex-start;
}

.stat-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.content-section {
    padding: 0 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.search-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 40%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 12px;
    background-color: var(--bg-card);
    transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

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

.filter-select {
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    min-width: 75px;
}

.filter-select[type="date"] {
    background-image: none;
    padding-right: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 32px;
    text-align: left;
}

.filter-select[type="text"] {
    background-image: none;
    padding: 4px 10px;
    min-width: 96px;
    height: 32px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

#page-candidates [data-filter-key] {
    display: none;
}

.filter-config {
    position: relative;
    flex: 0 0 auto;
}

.filter-config-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.filter-config-btn:hover,
.filter-config.open .filter-config-btn {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: #3730a3;
}

.filter-config-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 8px 10px;
    width: 260px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.filter-config.open .filter-config-panel {
    display: grid;
}

.filter-config-panel label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    color: #334155;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.filter-config-panel input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--primary-color);
}

.multi-filter {
    position: relative;
    flex: 0 0 auto;
}

.multi-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 96px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

.multi-filter-btn i {
    color: #94a3b8;
    font-size: 10px;
}

.multi-filter.open .multi-filter-btn,
.multi-filter-btn:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: #334155;
}

.multi-filter-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 28;
    display: none;
    min-width: 150px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.multi-filter.open .multi-filter-panel {
    display: grid;
    gap: 4px;
}

.multi-filter-panel label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 0 6px;
    border-radius: 6px;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.multi-filter-panel label:hover {
    background: #f8fafc;
}

.multi-filter-panel input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--primary-color);
}

#page-candidates .search-bar {
    align-items: center;
    gap: 6px;
}

#page-candidates .filter-config-btn,
#page-candidates .filter-select,
#page-candidates .multi-filter-btn {
    height: 36px;
    min-width: 112px;
    padding: 0 34px 0 12px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    background-color: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 34px;
    box-shadow: none;
}

#page-candidates .filter-config-btn,
#page-candidates .multi-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

#page-candidates .filter-config-btn {
    min-width: 104px;
    padding: 0 12px;
    gap: 8px;
    color: #4338ca;
    border-color: #c7d2fe;
    background: #fff;
}

#page-candidates .multi-filter-btn {
    justify-content: space-between;
    gap: 12px;
}

#page-candidates .multi-filter-btn i {
    margin-left: auto;
}

#page-candidates .filter-select[type="date"],
#page-candidates .filter-select[type="text"] {
    height: 36px;
    padding: 0 12px;
    line-height: 34px;
}

#page-candidates .filter-select:hover,
#page-candidates .multi-filter-btn:hover,
#page-candidates .filter-config-btn:hover,
#page-candidates .filter-config.open .filter-config-btn,
#page-candidates .multi-filter.open .multi-filter-btn {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: #334155;
}

#page-candidates .filter-select:focus,
#page-candidates .multi-filter-btn:focus,
#page-candidates .filter-config-btn:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

#page-candidates .stats-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

#page-candidates .stat-card {
    flex: 0 0 auto;
    width: 144px;
    min-height: 70px;
    padding: 13px 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: #64748b;
}

#page-candidates .stat-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: none;
}

#page-candidates .stat-card.active {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

#page-candidates .stat-label {
    align-self: auto;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}

#page-candidates .stat-number {
    min-width: 0;
    height: auto;
    margin-left: 0;
    padding: 0;
    display: block;
    border-radius: 0;
    background: transparent;
    color: #475569;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

#page-candidates .stat-card.active .stat-number {
    background: transparent;
    color: #4f46e5;
}

#transfer-stage-modal .modal-content {
    max-width: 720px;
}

#transfer-stage-modal .field-block > label {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

#transfer-stage-modal .transfer-stage-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

#transfer-stage-modal .transfer-stage-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.18s ease;
}

#transfer-stage-modal .transfer-stage-options label:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

#transfer-stage-modal .transfer-stage-options label:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

#transfer-stage-modal .transfer-stage-options input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    accent-color: #2563eb;
}

#transfer-stage-modal textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

#transfer-stage-modal textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    #transfer-stage-modal .transfer-stage-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.candidates-wrapper {
    display: flex;
    gap: 2px;
    flex: 1;
    min-height: 0;
}

.candidates-list {
    width: 330px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 10px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.no-candidates {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.no-candidates-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 28px;
    color: var(--text-tertiary);
}

.no-candidates p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.no-candidates-hint {
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-top: 8px !important;
    color: var(--text-tertiary) !important;
}

.candidate-item {
    padding: 10px 10px 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: flex-start;
    column-gap: 8px;
    position: relative;
}

.candidate-avatar-wrap {
    width: 32px;
    height: 32px;
    align-self: flex-start;
}

.candidate-item:hover {
    background-color: var(--border-light);
}

.candidate-item.active {
    background-color: #f1f5f9;
}

.candidate-score-wrap {
    position: absolute;
    top: 10px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.candidate-item > .candidate-score {
    position: absolute;
    top: 10px;
    right: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 2px 8px;
    background-color: rgba(99, 91, 255, 0.1);
    border-radius: 4px;
}

.candidate-item[data-stage="待入职"] > .candidate-score {
    top: auto;
    bottom: 10px;
}

.candidate-item[data-stage="评估"] > .candidate-score.evaluation-pass {
    color: #047857;
    background-color: #ecfdf5;
}

.candidate-item[data-stage="评估"] > .candidate-score.evaluation-reject {
    color: #dc2626;
    background-color: #fef2f2;
}

.candidate-item[data-stage="评估"] > .candidate-score.evaluation-pending {
    color: #d97706;
    background-color: #fffbeb;
}

.candidate-item[data-stage="评估"] > .candidate-score.evaluation-waiting {
    color: #64748b;
    background-color: #f1f5f9;
}

.candidate-score-sub {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    padding: 2px 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.candidate-avatar {
    position: relative;
    margin-right: 0;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 62%);
    box-shadow: inset 0 0 0 1px #e0e7ff;
}

.candidate-avatar img {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    margin: 2px;
    border-radius: 50%;
    object-fit: cover;
}

.candidate-avatar::before {
    content: '';
    position: absolute;
    inset: -3px -1px -3px -3px;
    border-radius: 999px 0 0 999px;
    border: 1px solid #c7d2fe;
    border-right: 0;
    background: rgba(99, 91, 255, 0.06);
}

.status-dot {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 2px solid white;
}

.candidate-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 0;
}

.candidate-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 32px;
    padding-right: 54px;
}

.candidate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-date {
    font-size: 11px;
    color: var(--text-muted);
    flex: 0 0 auto;
    margin-left: auto;
}

.candidate-channel {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 0;
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f8fafc;
}

.candidate-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.candidate-title {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-department {
    font-size: 11px;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.candidate-bottom {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

.candidate-company {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-info .candidate-bottom .candidate-status {
    font-size: 11px !important;
    color: var(--primary-color) !important;
    padding: 2px 8px !important;
    background-color: rgba(99, 91, 255, 0.1) !important;
    border-radius: 4px !important;
    margin-left: auto !important;
    float: right !important;
}

.candidate-meta {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.candidate-meta span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.candidate-meta i {
    font-size: 10px;
}

.candidate-source {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    white-space: nowrap;
}

.candidate-source i {
    font-size: 10px;
}

.candidate-detail {
    flex: 1;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-height: 0;
}

.no-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
}

.no-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--text-tertiary);
}

.no-detail p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.no-detail-hint {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
    color: var(--text-tertiary) !important;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.detail-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: auto;
    align-self: flex-end;
}

.detail-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-name-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
    justify-content: space-between;
}

.detail-name-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.detail-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.detail-title {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background-color: var(--border-light);
    border-radius: 4px;
}

.position-select-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.position-select {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 24px 4px 10px;
    background-color: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.position-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.channel-info {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-stage {
    font-size: 12px;
    color: var(--primary-color);
    padding: 3px 8px;
    background-color: rgba(99, 91, 255, 0.1);
    border-radius: 4px;
    font-weight: 500;
    margin-left: 15px;
}

.detail-match-badge {
    font-size: 12px;
    color: #2563eb;
    padding: 3px 8px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
}

.stage-edit-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.stage-edit-btn:hover {
    background-color: #f5f5f5;
    border-color: var(--primary-color);
}

.detail-action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: transparent;
    color: #666;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.edit-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: transparent;
    color: #666;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.detail-action-btn:hover {
    background-color: #f5f5f5;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-meta i {
    margin-right: 4px;
    color: var(--text-muted);
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 40px;
}

.detail-actions .btn {
    font-size: 10px;
    padding: 4px 12px;
}

.btn-purple {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
}

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

.btn-danger {
    background-color: #f1f5f9;
    border: none;
    color: #334155;
}

.btn-danger:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.detail-tabs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 6px;
}

.tag-btn {
    padding: 2px 10px;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: #334155;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.metrics-grid-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.metrics-grid-row .metric-card {
    flex: 1;
    min-width: 120px;
}

.metric-card {
    background-color: var(--border-light);
    border-radius: 10px;
    padding: 13px 11px;
    height: 72px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    text-align: left;
    font-weight: 400;
}

.metric-values {
    display: flex;
    gap: 16px;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
}

.metric-value-large {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.metric-score {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: auto;
}

.metric-result {
    font-size: 17px;
    font-weight: 600;
    color: var(--success-color);
    margin-left: auto;
    align-self: flex-end;
}

.education-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    background-color: var(--purple-light);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--primary-color);
}

.education-badge i {
    font-size: 16px;
}

.resume-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-purple-outline {
    border: 1px solid var(--primary-color);
    background-color: var(--purple-light);
    color: var(--primary-color);
}

.btn-purple-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.resume-actions {
    display: flex;
    gap: 4px;
}

.btn-icon-sm {
    padding: 6px;
    background-color: var(--border-light);
    color: var(--text-secondary);
    border-radius: 6px;
}

.btn-icon-sm:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.section-tabs {
    display: flex;
    gap: 24px;
}

.tab-item {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.info-section {
    background-color: var(--border-light);
    border-radius: 10px;
    padding: 16px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-outline-sm {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    font-size: 12px;
    border-radius: 6px;
}

.btn-outline-sm:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.info-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
}

.info-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .logo-text {
        display: none;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px 12px;
    }

    .nav-item.active {
        border-left: none;
        background-color: rgba(99, 91, 255, 0.15);
    }

    .main-content {
        margin-left: 60px;
        flex-basis: calc(100vw - 60px);
        width: calc(100vw - 60px);
    }

    .header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .search-box {
        order: 2;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .stats-section {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: calc(50% - 8px);
    }

    #page-candidates .stats-section {
        flex-wrap: nowrap;
    }

    #page-candidates .stat-card {
        width: 128px;
        min-width: 128px;
    }

    .candidates-wrapper {
        flex-direction: column;
        height: auto;
    }

    .candidates-list {
        width: 100%;
        max-height: 200px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#offer-status-card {
    display: none;
    align-items: flex-end;
    text-align: right;
}

#offer-status-card .metric-result {
    text-align: right;
    width: 100%;
}

#pending-onboard-card {
    display: none;
    align-items: flex-end;
    text-align: right;
}

#pending-onboard-card .metric-result {
    text-align: right;
    width: 100%;
}

/* 标签页内容样式 */
.section-content {
    padding: 16px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    min-height: 300px;
}

.tab-content {
    display: none;
}

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

/* 原始简历详情样式 */
.resume-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.resume-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.resume-file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #334155;
    background: #f9fafb;
    flex: 0 0 auto;
}

.resume-file-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.resume-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resume-file-desc {
    font-size: 12px;
    color: #6b7280;
}

.resume-file-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.resume-file-preview {
    width: 100%;
    height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.resume-content-title {
    margin: 12px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.resume-file-text {
    max-height: 520px;
    padding: 16px;
    margin: 0 0 12px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.resume-file-empty {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    background: #f9fafb;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-label {
    color: #666;
    min-width: 80px;
}

.detail-value {
    color: #333;
}

/* 匹配依据样式 */
.match-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.match-section {
    margin-bottom: 16px;
}

.match-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.match-label {
    color: #666;
    min-width: 100px;
}

.match-value {
    color: #333;
}

.score-section {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.score-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.score-label {
    color: #666;
    min-width: 80px;
}

.score-value {
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
}

/* 匹配依据新样式 */
.match-score-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.score-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-score-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #D4AF37;
}

.score-unit {
    font-size: 18px;
    color: rgba(212,175,55,0.8);
}

.score-formula {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-left: 6px;
    transform: translateX(-160px);
}

.match-score-bar {
    height: 8px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background-color: #fff;
    border-radius: 4px;
}

.recommend-level {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.match-summary {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.summary-highlight {
    font-weight: 600;
    color: #8b5cf6;
}

.match-cards-row {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.match-card {
    flex: 1;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.match-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.radar-card {
    padding: 6px;
}

.radar-chart {
    display: flex;
    justify-content: center;
}

.radar-svg {
    width: 150px;
    height: 150px;
}

.radar-text {
    font-size: 8px;
    fill: #666;
}

.requirements-brief,
.skills-brief {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brief-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.brief-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.brief-icon.matched {
    background-color: #dcfce7;
    color: #16a34a;
}

.brief-text {
    color: #666;
}

.brief-skill-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.brief-skill-item .skill-name {
    color: #666;
}

.brief-skill-item .skill-score {
    color: #8b5cf6;
    font-weight: 600;
}

.match-detail-section {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.match-detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: #fff;
    border-radius: 6px;
    font-size: 12px;
}

.req-label {
    color: #666;
    min-width: 70px;
}

.req-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.req-status.matched {
    background-color: #f9fafb;
    color: #334155;
}

.req-note {
    color: #999;
    font-size: 11px;
    flex: 1;
}

.req-score {
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    background-color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.skill-name {
    font-size: 12px;
    color: #666;
}

.skill-score {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.skill-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.skill-bar-fill {
    height: 100%;
    background: #64748b;
    border-radius: 2px;
}

.skill-desc {
    font-size: 11px;
    color: #999;
}

.skills-category {
    margin-bottom: 16px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h5 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 3px solid #8b5cf6;
}

.match-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.match-actions .btn {
    padding: 6px 16px;
    font-size: 13px;
}

/* 匹配依据 - 清爽版 */
.match-detail {
    color: #1f2937;
}

.match-detail h4 {
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.match-score-header {
    gap: 14px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.score-top-row {
    gap: 18px;
}

.match-score-main {
    min-width: 112px;
}

.score-number {
    font-size: 44px;
    line-height: 1;
    color: #0f172a;
}

.score-unit {
    font-size: 14px;
    color: #64748b;
}

.score-formula {
    flex: 1;
    margin-left: 0;
    padding: 8px 10px;
    border-radius: 6px;
    color: #64748b;
    background: #f8fafc;
    transform: none;
}

.recommend-level {
    padding: 6px 10px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.match-score-bar {
    height: 6px;
    background-color: #e5e7eb;
}

.score-bar-fill {
    background: #2563eb;
}

.match-summary {
    padding: 14px 16px;
    margin-bottom: 14px;
    color: #334155;
    font-size: 13px;
}

.match-summary p {
    margin: 0 0 6px;
}

.match-summary p:last-child {
    margin-bottom: 0;
}

.summary-highlight {
    color: #0f172a;
}

.match-cards-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

#tab-match .match-cards-row {
    display: none;
}

.match-card,
.match-detail-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.match-card {
    padding: 14px;
}

.radar-card {
    padding: 14px;
}

.radar-chart {
    min-height: 168px;
    align-items: center;
}

.radar-svg {
    width: 168px;
    height: 168px;
}

.radar-svg polygon:first-child {
    stroke: #2563eb;
}

.radar-svg polygon:nth-child(2),
.radar-svg polygon:nth-child(3) {
    stroke: #cbd5e1;
}

.radar-svg polygon:nth-child(4) {
    fill: rgba(37, 99, 235, 0.16);
}

.radar-text {
    fill: #475569;
    font-size: 8px;
}

.requirements-brief,
.skills-brief {
    gap: 10px;
}

.brief-item,
.brief-skill-item {
    min-height: 30px;
    padding: 0 0 9px;
    border-bottom: 1px solid #f1f5f9;
}

.brief-item:last-child,
.brief-skill-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.brief-text,
.brief-skill-item .skill-name {
    color: #475569;
}

.brief-icon.matched {
    background-color: #ecfdf5;
    color: #047857;
}

.brief-skill-item .skill-score,
.skill-score {
    color: #2563eb;
}

.bonus-item .skill-name,
.bonus-item .skill-score {
    color: #047857;
}

.match-details-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.match-detail-section {
    padding: 14px;
}

.requirement-item,
.skill-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background-color: transparent;
}

.requirement-item:last-child,
.skill-item:last-child {
    border-bottom: 0;
}

.req-label {
    min-width: 72px;
    color: #334155;
    font-weight: 600;
}

.req-status {
    padding: 3px 8px;
    border-radius: 999px;
}

.req-status.matched {
    color: #334155;
    background-color: #f9fafb;
}

.req-note,
.skill-desc {
    color: #64748b;
}

#tab-match .requirement-item {
    display: grid;
    grid-template-columns: minmax(96px, 140px) minmax(60px, 80px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

#tab-match .skill-item {
    display: grid;
    grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

#tab-match .req-note,
#tab-match .skill-desc {
    margin-left: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

#tab-match .req-score,
#tab-match .skill-score {
    justify-self: end;
    min-width: 48px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

#tab-match .skills-category {
    margin-bottom: 16px;
}

#tab-match .skills-category:last-child {
    margin-bottom: 0;
}

#tab-match .skills-category h5 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 3px solid #8b5cf6;
}

#tab-match .skill-item {
    grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) auto;
}

.skill-header {
    margin-bottom: 8px;
}

.skill-name {
    color: #334155;
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    margin-bottom: 6px;
    background-color: #e5e7eb;
}

.skill-bar-fill {
    background: #64748b;
}

.match-actions {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.match-actions .btn {
    min-width: 84px;
    padding: 7px 14px;
    border-radius: 6px;
}

@media (max-width: 1200px) {
    .match-cards-row,
    .match-details-row {
        grid-template-columns: 1fr;
    }

    .score-top-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-name-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-action-buttons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
}

/* 评估详情样式 */
.evaluation-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.eval-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 18px 0 10px;
}

.candidate-detail .evaluation-detail .eval-section-header,
#page-candidates .candidate-detail .evaluation-detail .eval-section-header {
    margin: 18px 0 10px;
}

.eval-section-header h4,
.candidate-detail .evaluation-detail .eval-section-header h4,
#page-candidates .candidate-detail .evaluation-detail .eval-section-header h4 {
    margin: 0;
    min-height: 0;
    border: 0;
    padding: 0;
}

.eval-section-header .btn {
    flex: none;
}

/* 发起 AI 面试悬浮框 */
.modal-content.ai-interview-content {
    width: min(1120px, calc(100vw - 260px));
    max-height: 92vh;
}

.ai-interview-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.ai-interview-topbar-left h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.ai-interview-topbar-left p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.ai-interview-topbar-actions {
    display: flex;
    gap: 12px;
    flex: none;
}

.ai-interview-modal .btn-blue {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
}

.ai-interview-modal .btn-blue:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.modal-body.ai-interview-body {
    background: #f8fafc;
    padding: 20px 24px;
}

.ai-interview-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 920px) {
    .ai-interview-grid {
        grid-template-columns: 1fr;
    }
}

.ai-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.ai-interview-col-left .ai-panel + .ai-panel {
    margin-top: 16px;
}

.ai-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.ai-candidate {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-candidate-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex: none;
}

.ai-candidate-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.ai-candidate-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.ai-candidate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.ai-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
}

.ai-field {
    margin-bottom: 14px;
}

.ai-field:last-child {
    margin-bottom: 0;
}

.ai-field > label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.ai-field input[type="text"],
.ai-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
}

.ai-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ai-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
    margin: 0;
}

.ai-questions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ai-questions-header .ai-panel-title {
    margin-bottom: 0;
}

.ai-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.ai-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-tab.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.ai-questions-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 12px 0;
    line-height: 1.6;
}

.ai-question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-question-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

.ai-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ai-question-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.ai-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
}

.ai-question-ops {
    display: flex;
    gap: 12px;
    flex: none;
}

.ai-op-edit,
.ai-op-del {
    border: none;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.ai-op-edit {
    color: #2563eb;
}

.ai-op-del {
    color: #ef4444;
}

.ai-question-dims {
    font-size: 12px;
    color: #64748b;
    margin: 10px 0;
}

.ai-dim {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 6px;
}

.ai-question-text {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ai-question-hint {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.ai-question-hint i {
    color: #f59e0b;
    margin-right: 4px;
}

.ai-tab-panel {
    display: none;
}

.ai-tab-panel.active {
    display: block;
}

.ai-badge.ai-badge-hr {
    background: #fef3c7;
    color: #b45309;
}

.ai-question-text.ai-question-editing {
    outline: none;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.ai-add-question {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-add-question:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.ai-analysis-note {
    margin-top: 14px;
    padding: 14px 16px;
    background: #eef2ff;
    border-radius: 10px;
    font-size: 13px;
    color: #4338ca;
    line-height: 1.7;
}

.ai-analysis-note strong {
    color: #3730a3;
}

.ai-bank-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.ai-bank-filter {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}

.ai-bank-count {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 12px;
}

.ai-bank-card {
    display: block;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ai-bank-card.selected {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ai-bank-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-bank-check {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    flex: none;
}

.ai-lib-badge {
    flex: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 6px;
}

.ai-dim-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ai-dim-pro {
    background: #eff6ff;
    color: #2563eb;
}

.ai-dim-general {
    background: #ecfdf5;
    color: #059669;
}

.ai-dim-culture {
    background: #fffbeb;
    color: #b45309;
}

.eval-section {
    margin-bottom: 16px;
}

.eval-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.eval-label {
    color: #666;
    min-width: 100px;
}

.eval-value {
    color: #333;
}

.eval-value.pending {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f9fafb;
    color: #334155;
    border-radius: 4px;
    font-size: 12px;
}

.eval-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.eval-actions .btn {
    padding: 6px 20px;
    font-size: 13px;
}

.eval-ai-section {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.eval-ai-section .eval-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-ai-content {
    margin-top: 12px;
}

.eval-ai-content h4 {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background-color: #f0f0f0;
}

.btn-outline.active {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.eval-submit-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.eval-submit-section .btn {
    padding: 8px 40px;
    font-size: 14px;
}

.eval-note-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

.eval-note-display {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.eval-value.evaluated {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f9fafb;
    color: #334155;
    border-radius: 4px;
    font-size: 12px;
}

.eval-value.pass {
    display: inline-block;
    padding: 2px 8px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 4px;
    font-size: 12px;
}

#eval-schedule-ai-btn.ai-btn-disabled,
#eval-schedule-ai-btn:disabled,
#ai-result-schedule-ai-btn.ai-btn-disabled,
#ai-result-schedule-ai-btn:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.btn.active {
    opacity: 0.7;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-warning {
    background-color: rgba(234, 179, 8, 0.05);
    color: #eab308;
}

.btn-warning:hover {
    background-color: #eab308;
    color: white;
}

.result-value.pass {
    background-color: #f9fafb;
    color: #334155;
}

.result-value.fail {
    background-color: #f9fafb;
    color: #334155;
}

.result-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    background-color: #f9fafb;
    color: #334155;
}

.eval-note p {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

/* AI面试详情样式 */
.ai-interview-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.ai-score {
    font-size: 16px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 12px;
}

.ai-score .score-value {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
}

/* ===== AI 面试结果报告 ===== */
.ai-result {
    color: #1e293b;
    font-size: 13px;
}
.ai-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 16px;
}
.ai-result-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}
.ai-result-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.ai-result-avatar:empty {
    background: #f1f5f9;
}
.ai-result-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    min-height: 20px;
}
.ai-result-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    min-height: 16px;
}
.ai-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ai-result-btn {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.ai-result-btn:hover {
    background: #e2e8f0;
}
.ai-result-btn-pass {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.ai-result-btn-pass:hover {
    background: #15803d;
}
.ai-result-btn-reject {
    background: #fff;
    border-color: #fca5a5;
    color: #dc2626;
}
.ai-result-btn-reject:hover {
    background: #fef2f2;
}
.ai-result-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 18px;
}
.ai-result-tab {
    padding: 0 2px 12px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s;
}
.ai-result-tab:hover {
    color: #2563eb;
}
.ai-result-tab.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom-color: #2563eb;
}
.ai-result-panel {
    display: none;
}
.ai-result-panel.active {
    display: block;
}
.ai-result-empty {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 14px;
}
.ai-result-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
}
.ai-result-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-side-block {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.ai-side-label {
    font-size: 12px;
    color: #94a3b8;
}
.ai-side-score {
    font-size: 40px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.1;
    margin: 6px 0 4px;
}
.ai-side-note {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.ai-side-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.ai-side-rank {
    font-size: 22px;
    font-weight: 700;
    color: #16a34a;
    margin-top: 6px;
}
.ai-side-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    border-top: 1px solid #f4f6f9;
}
.ai-side-block .ai-side-rating:first-of-type {
    margin-top: 8px;
}
.ai-side-rating-name {
    color: #475569;
    position: relative;
    padding-left: 14px;
}
.ai-side-rating-name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.ai-side-rating-val {
    font-weight: 600;
    color: #0f172a;
}
.dot-pro::before { background: #3b82f6; }
.dot-general::before { background: #10b981; }
.dot-culture::before { background: #f59e0b; }

.ai-result-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-radar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.ai-radar-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    border: none;
    padding: 0;
}
.ai-radar-sub {
    font-size: 12px;
    color: #94a3b8;
}
.ai-dim-group {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 16px;
}
.ai-dim-pro { background: #f8faff; }
.ai-dim-general { background: #f5fdf9; }
.ai-dim-culture { background: #fffdf5; }
.ai-dim-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ai-dim-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ai-dim-dot.dot-pro { background: #3b82f6; }
.ai-dim-dot.dot-general { background: #10b981; }
.ai-dim-dot.dot-culture { background: #f59e0b; }
.ai-dim-group-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.ai-dim-group-score {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}
.ai-dim-group-score small {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}
.ai-metric {
    padding: 8px 0;
}
.ai-metric + .ai-metric {
    border-top: 1px solid #f1f4f8;
}
.ai-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}
.ai-metric-val {
    font-weight: 600;
    color: #0f172a;
}
.ai-metric-bar {
    height: 6px;
    background: #eef1f5;
    border-radius: 999px;
    overflow: hidden;
}
.ai-metric-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #10b981;
}
.ai-metric-bar.good i { background: #10b981; }
.ai-metric-bar.warn i { background: #f59e0b; }
.ai-metric-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}
.ai-insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ai-insight {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.ai-insight-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.ai-insight-head.pos { color: #16a34a; }
.ai-insight-head.neg { color: #dc2626; }
.ai-insight-item {
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.ai-insight-item:last-child { margin-bottom: 0; }
.ai-insight-item.pos { background: #f0fdf4; }
.ai-insight-item.neg { background: #fef2f2; }
.ai-insight-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.ai-insight-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.ai-insight-tag {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ai-insight-tag.pos { color: #16a34a; }
.ai-insight-tag.neg { color: #dc2626; }
.ai-insight-item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}
.ai-summary {
    background: #f5f3ff;
    border: 1px solid #e9e5ff;
    border-radius: 12px;
    padding: 16px;
}
.ai-summary-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 10px;
}
.ai-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.ai-summary-body {
    font-size: 12px;
    color: #475569;
    line-height: 1.8;
}
.ai-summary-body strong {
    color: #4f46e5;
    font-weight: 600;
}
@media (max-width: 920px) {
    .ai-result-grid { grid-template-columns: 1fr; }
    .ai-insight-grid { grid-template-columns: 1fr; }
}
/* ===== /AI 面试结果报告 ===== */

/* ===== AI 面试 题目与回答 ===== */
.ai-qa {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: start;
}
.ai-qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}
.ai-qa-item {
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
}
.ai-qa-item:hover { border-color: #cbd5e1; }
.ai-qa-item.active {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ai-qa-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ai-qa-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.ai-qa-item-score {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}
.ai-qa-item-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ai-qa-item-sub {
    font-size: 12px;
    color: #64748b;
}
.ai-qa-item-dur {
    font-size: 12px;
    color: #94a3b8;
}
.ai-qa-dim {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.ai-qa-dim-pro { background: #eff6ff; color: #2563eb; }
.ai-qa-dim-general { background: #ecfdf5; color: #059669; }
.ai-qa-dim-culture { background: #fffbeb; color: #b45309; }

.ai-qa-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ai-qa-video {
    position: relative;
    height: 220px;
    background: #0f172a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ai-qa-video-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s;
}
.ai-qa-video-play:hover { background: rgba(255,255,255,.28); }
.ai-qa-video-time {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: rgba(0,0,0,.55);
    color: #e2e8f0;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
}
.ai-qa-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-qa-ctrl {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.ai-qa-ctrl:hover { background: #eef2f7; }
.ai-qa-card {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.ai-qa-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ai-qa-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-qa-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 600;
}
.ai-qa-meta-text {
    font-size: 12px;
    color: #94a3b8;
}
.ai-qa-card-score {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.ai-qa-card-score strong {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
    margin-left: 4px;
}
.ai-qa-dims {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ai-qa-subdim {
    font-size: 12px;
    color: #64748b;
}
.ai-qa-question {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 16px;
}
.ai-qa-answer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}
.ai-qa-transcribe {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 500;
}
.ai-qa-answer {
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 16px;
}
.ai-qa-analysis {
    background: #f5f3ff;
    border: 1px solid #e9e5ff;
    border-radius: 10px;
    padding: 14px;
}
.ai-qa-analysis-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 12px;
}
.ai-qa-analysis-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.ai-qa-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}
.ai-qa-analysis-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ai-qa-analysis-title.pos { color: #16a34a; }
.ai-qa-analysis-title.neg { color: #dc2626; }
.ai-qa-analysis-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}
.ai-qa-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #e9e5ff;
    font-size: 12px;
    color: #64748b;
}
.ai-qa-metrics strong {
    color: #d97706;
    font-weight: 600;
}
.ai-qa-hr {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.ai-qa-hr-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}
.ai-qa-hr-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.ai-qa-hr-text {
    flex: 1;
    min-height: 64px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    font-family: inherit;
}
.ai-qa-hr-text:focus {
    outline: none;
    border-color: #2563eb;
}
.ai-qa-hr-save {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.ai-qa-hr-save:hover { background: #e2e8f0; }
@media (max-width: 920px) {
    .ai-qa { grid-template-columns: 1fr; }
    .ai-qa-list { max-height: none; flex-direction: row; overflow-x: auto; }
    .ai-qa-analysis-grid { grid-template-columns: 1fr; }
}
/* ===== /AI 面试 题目与回答 ===== */

.ai-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-card {
    flex: 1;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ai-card h5 {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ai-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.ai-section p {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-analysis {
    margin-bottom: 16px;
}

.analysis-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.analysis-label {
    color: #666;
    min-width: 60px;
}

.analysis-value {
    color: #333;
}

.next-action {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
}

.next-action p {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin: 4px 0;
}

.next-action strong {
    color: #f59e0b;
}

.question-checklist {
    margin-bottom: 16px;
    padding: 14px;
    background-color: #eff6ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.question-checklist p {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.7;
    margin: 6px 0;
    padding-left: 8px;
    border-left: 3px solid #60a5fa;
}

.question-checklist strong {
    color: #3b82f6;
    font-weight: 600;
}

.ai-questions {
    margin-bottom: 16px;
}

.question-item {
    margin-bottom: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.question {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.answer {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ai-score {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

/* 面试详情样式 */
.interview-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.interview-section {
    margin-bottom: 16px;
}

.interview-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.interview-label {
    color: #666;
    min-width: 100px;
}

.interview-value {
    color: #333;
}

.interview-result {
    margin-bottom: 16px;
}

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

.interview-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: none;
    padding: 0;
}

.interview-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interview-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.interview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.interview-round {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    background: #f9fafb;
    padding: 4px 12px;
    border-radius: 6px;
}

.interview-time {
    font-size: 12px;
    color: #888;
}

.interview-card-body {
    margin-bottom: 12px;
}

.interview-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.interview-info-row .interview-label {
    color: #666;
    min-width: 80px;
}

.interview-info-row .interview-value {
    color: #333;
}

.interview-info-row .result-score {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
}

.interview-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.interview-card-actions .btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.interview-schedule-modal {
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.18);
}

.modal.interview-schedule-modal .interview-schedule-content {
    width: min(1120px, calc(100vw - 260px));
    height: min(94vh, 980px);
    max-height: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.interview-schedule-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0 30px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.interview-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.modal.interview-schedule-modal .interview-schedule-body {
    padding: 0 30px 84px;
    background: #fff;
}

.schedule-form-section,
.interview-location-section,
.schedule-notice-section {
    max-width: 1000px;
    padding-top: 18px;
}

.schedule-eval-section {
    max-width: 1000px;
    padding-top: 18px;
    border-top: 1px solid #eef0f4;
    margin-top: 18px;
}

.schedule-eval-section h4 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.interview-eval-empty {
    padding: 14px 16px;
    background: #f8faff;
    border: 1px dashed #d5ddf0;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.interview-eval-model {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff;
}

.interview-eval-model-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 10px;
}

.interview-eval-dim {
    border: 1px solid #eef0f4;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.interview-eval-dim:last-child {
    margin-bottom: 0;
}

.interview-eval-dim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8faff;
    border-bottom: 1px solid #eef0f4;
}

.interview-eval-dim-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.interview-eval-dim-weight {
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
}

.interview-eval-dim-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-eval-dim-score {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.interview-eval-dim-score b {
    color: #4338ca;
}

.interview-eval-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.interview-eval-total b {
    color: #4338ca;
    font-size: 18px;
}

.interview-eval-sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px 110px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px dashed #eef0f4;
}

.interview-eval-sub-row:last-child {
    border-bottom: none;
}

.interview-eval-sub-name {
    font-size: 13px;
    color: #334155;
}

.interview-eval-sub-weight {
    font-size: 12px;
    color: #64748b;
}

.interview-eval-score {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d5ddf0;
    border-radius: 6px;
    font-size: 13px;
}

.interview-eval-score:focus {
    outline: none;
    border-color: #667eea;
}

.interview-conclusion-field,
.interview-feedback-field {
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
}

.interview-conclusion-field select,
.interview-feedback-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5ddf0;
    border-radius: 8px;
    font-size: 13px;
}

.interview-feedback-field textarea {
    resize: vertical;
    min-height: 64px;
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field-block.wide {
    margin-bottom: 24px;
}

.inline-radio-field {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.inline-input-field {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.inline-input-field label {
    flex: 0 0 auto;
 }

.inline-input-field input,
.inline-input-field select {
    width: 220px;
    flex: 0 0 220px;
}

.field-block label,
.schedule-notice-section h4 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.field-block .required {
    margin-left: 2px;
    color: #ef4444;
}

.radio-row {
    display: flex;
    gap: 28px;
    align-items: center;
    min-height: 34px;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.radio-row input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2f6df6;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.schedule-primary-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: end;
    margin-bottom: 24px;
}

.schedule-secondary-grid {
    grid-template-columns: 320px 420px;
    align-items: end;
}

.interview-location-section {
    padding-top: 20px;
}

.interview-location-field {
    width: 520px;
}

.interview-location-field input {
    width: 420px;
    flex-basis: 420px;
}

.field-block input,
.field-block select {
    height: 36px;
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    padding: 0 12px;
    box-sizing: border-box;
}

.field-block input::placeholder {
    color: #9ca3af;
}

.inline-select-group,
.time-range {
    display: grid;
    grid-template-columns: 58px 1fr;
    height: 36px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.round-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d8dee8;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
}

.inline-select-group select,
.time-range input {
    border: none;
    border-radius: 0;
    height: 34px;
}

.time-range {
    grid-template-columns: 1fr 1fr;
}

.time-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.time-field-row .time-range {
    width: 280px;
    flex: 0 0 280px;
}

.time-range input:first-child {
    border-right: 1px solid #d8dee8;
}

.schedule-board-section {
    margin: 20px -30px 28px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.schedule-board-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 44px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.today-btn,
.date-stepper button {
    height: 34px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}

.today-btn {
    width: 88px;
}

.date-stepper {
    display: inline-flex;
}

.date-stepper button {
    width: 88px;
    border-radius: 0;
}

.date-stepper button:first-child {
    border-radius: 6px 0 0 6px;
}

.date-stepper button:last-child {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.schedule-board-toolbar strong {
    margin-left: 2px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 500;
}

.schedule-status {
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.schedule-status.available {
    color: #047857;
    background: #d1fae5;
    border-color: #86efac;
}

.schedule-status.conflict {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fca5a5;
}

.schedule-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 154px;
    overflow-x: hidden;
}

.schedule-board-main {
    min-width: 0;
    --schedule-col-width: calc((100% - 0px) / 17);
}

.time-axis,
.schedule-grid-lines {
    display: grid;
    grid-template-columns: repeat(17, minmax(0, 1fr));
}

.time-axis {
    height: 62px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.time-axis span {
    color: #4b5563;
    font-size: 11px;
    white-space: nowrap;
}

.schedule-grid-lines {
    position: relative;
    height: 92px;
    background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--schedule-col-width) - 1px), #e5e7eb var(--schedule-col-width));
}

.schedule-event-block {
    position: absolute;
    top: 28px;
    height: 28px;
    border-radius: 4px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-event-block.busy {
    background: #f59e0b;
}

.schedule-event-block.selected {
    background: #2f6df6;
}

.schedule-notice-section h4 {
    margin: 24px 0 16px;
    padding-left: 8px;
    border-left: 3px solid #2f6df6;
    font-size: 16px;
}

.calendar-switch-row {
    margin: 0 0 0 4px;
    white-space: nowrap;
}

.notice-template-field {
    width: 876px;
    margin-bottom: 18px;
}

.notice-template-preview {
    width: 876px;
    margin: -8px 0 18px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #f8fbff;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}

.notice-template-preview.compact {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.notice-template-preview strong {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 14px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    display: none;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s;
}

.switch span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.switch input:checked + span {
    background: #2f6df6;
}

.switch input:checked + span::after {
    transform: translateX(20px);
}

.interview-schedule-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 30px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    z-index: 2;
}

.interview-schedule-footer .btn {
    min-width: 88px;
    height: 36px;
}

.footer-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.btn-warning {
    background-color: rgba(234, 179, 8, 0.05);
    color: #eab308;
}

.btn-warning:hover {
    background-color: #eab308;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background-color: #f0f0f0;
}

.feedback-form {
    margin-top: 12px;
    padding: 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feedback-score,
.feedback-result {
    margin-bottom: 12px;
}

.feedback-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.score-options,
.result-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.score-btn,
.result-btn {
    padding: 6px 14px;
    font-size: 12px;
    background-color: white;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 6px;
}

.score-btn:hover,
.result-btn:hover {
    background-color: #f0f0f0;
}

.score-btn.active,
.result-btn.active {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.feedback-note {
    margin-bottom: 12px;
}

.feedback-note .feedback-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.feedback-note-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    resize: vertical;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.feedback-panel {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.feedback-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-block-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.feedback-panel .interview-eval-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-panel .interview-conclusion-field,
.feedback-panel .interview-feedback-field {
    margin-top: 0;
}

/* Offer详情样式 */
.offer-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.offer-section {
    margin-bottom: 16px;
}

.offer-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.offer-label {
    color: #666;
    min-width: 120px;
}

.offer-value {
    color: #333;
}

.offer-value.status-accepted {
    color: #34d399;
    font-weight: 500;
}

/* Offer页面新样式 */
.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.offer-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.offer-actions {
    display: flex;
    gap: 10px;
}

.offer-edit-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-section {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background-color: white;
}

.form-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    background-color: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.offer-detail-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
    gap: 16px;
}

.card-header-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    margin-left: 100px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.card-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.card-status.status-accepted {
    background-color: #d1fae5;
    color: #065f46;
}

.card-body {
    padding: 16px;
}

.offer-info-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 13px;
}

.offer-info-row:last-child {
    margin-bottom: 0;
}

.card-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.card-footer .btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.status-sent {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-created {
    background-color: #fef3c7;
    color: #b45309;
}

/* 备注详情样式 */
.notes-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.notes-list {
    margin-bottom: 16px;
}

.note-item {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.note-time {
    font-size: 12px;
    color: #999;
}

.note-author {
    font-size: 12px;
    color: #666;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.note-private {
    font-size: 11px;
    color: #999;
    padding: 2px 6px;
    background-color: #fef3c7;
    border-radius: 4px;
}

.note-content {
    display: block;
    font-size: 13px;
    color: #333;
}

.add-note textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    resize: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.note-options {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* 附加信息详情样式 */
.additional-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #635bff;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.upload-btn i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #999;
}

.upload-btn span {
    font-size: 13px;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item i {
    font-size: 20px;
    color: #635bff;
    margin-right: 12px;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.file-size {
    font-size: 12px;
    color: #999;
    margin-right: 12px;
}

.file-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
    color: #666;
}

.file-action:hover {
    color: #635bff;
}

/* 操作记录时间轴样式 */
.history-detail h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -16px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #635bff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.2);
}

.timeline-content {
    padding-left: 16px;
}

.timeline-time {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.timeline-action {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-user {
    display: inline;
    font-size: 12px;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.timeline-detail {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.timeline-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    background: #f9fafb;
}

.timeline-card-header:hover {
    background: #f3f4f6;
}

.timeline-card-header .timeline-time {
    font-size: 12px;
    color: #6b7280;
    display: inline;
    margin-bottom: 0;
}

.timeline-toggle {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.timeline-card-body {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

.timeline-card-body .timeline-action {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-card-body .timeline-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-card-body .timeline-user {
    display: inline-block;
    font-size: 12px;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

.timeline-card-body .timeline-detail {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 6px;
}

.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
/* 新对话按钮容器 */
.new-chat-wrapper {
    padding: 12px;
}

/* 侧边栏操作按钮容器 */
.sidebar-action-btns {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.sidebar-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.sidebar-action-btn i {
    font-size: 14px;
}

.sidebar-page-shortcuts {
    flex-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.sidebar-page-shortcuts .sidebar-action-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
}

/* 新对话按钮 */
.new-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.new-chat-btn:active {
    transform: translateY(0);
}


/* ========== 职位管理页面样式 ========== */
.jobs-content {
    display: flex;
    height: calc(100vh - 120px);
    gap: 16px;
    padding: 16px;
}

/* 职位列表面板 */
.jobs-list-panel {
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jobs-filters {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-recruiter {
    display: flex;
    align-items: center;
}

.filter-recruiter select {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: white;
    cursor: pointer;
}

.filter-recruiter select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-tab {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.jobs-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.job-item {
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.job-item:hover {
    background: #f8f8ff;
}

.job-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: #667eea;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.job-item-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.job-item-status.active {
    background: #e6f7e6;
    color: #52c41a;
}

.job-item-status.paused {
    background: #fff7e6;
    color: #faad14;
}

.job-item-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.job-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
    font-size: 12px;
}

.job-item-recruiter {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.job-item-recruiter i {
    color: #667eea;
}

.job-item-candidates {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
}

.job-item-candidates i {
    color: #999;
}

/* 职位详情面板 */
.job-detail-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.detail-title-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.title-actions {
    display: flex;
    gap: 8px;
}

.detail-actions {
    display: flex;
    gap: 8px;
}

.job-stage-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.job-stage-name {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.job-stage-count {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.job-stage-count:hover {
    background: rgba(102, 126, 234, 0.12);
    text-decoration: underline;
}

/* 职位详情顶部：标题、操作与阶段数据分区 */
.job-detail-panel .detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px 24px;
    padding: 24px;
    margin-bottom: 0;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.job-detail-panel .detail-title-row {
    display: contents;
}

.job-detail-panel .detail-title {
    grid-column: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 36px;
}

.job-detail-panel .detail-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    white-space: nowrap;
}

.job-detail-panel .detail-actions .btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
}

.job-detail-panel .detail-actions .btn:hover {
    border-color: #b8c4d6;
    background: #f8fafc;
    color: #1e293b;
}

.job-detail-panel .detail-actions .btn-success {
    border-color: transparent;
    background: #eef5ff;
    color: #2563eb;
}

.job-detail-panel .detail-actions .btn-success:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.job-detail-panel .job-stage-flow {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(8, minmax(96px, 1fr));
    gap: 10px;
    padding-top: 2px;
}

.job-detail-panel .job-stage-item {
    min-width: 0;
    min-height: 78px;
    padding: 12px 10px 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.job-detail-panel .job-stage-name {
    max-width: 100%;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-detail-panel .job-stage-count {
    min-width: 28px;
    padding: 0;
    color: #4f6fe5;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
}

.job-detail-panel .job-stage-count:hover {
    background: transparent;
    color: #2f55d4;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .job-detail-panel .job-stage-flow {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 860px) {
    .job-detail-panel .detail-header {
        grid-template-columns: 1fr;
    }

    .job-detail-panel .detail-title,
    .job-detail-panel .detail-actions,
    .job-detail-panel .job-stage-flow {
        grid-column: 1;
    }

    .job-detail-panel .detail-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .job-detail-panel .job-stage-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.btn-outline {
    border: 1px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
}

.detail-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.detail-tab {
    padding: 14px 20px;
    font-size: 14px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.detail-tab:hover {
    color: #667eea;
}

.detail-tab.active {
    color: #667eea;
    font-weight: 500;
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.detail-tab-content {
    display: none;
}

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

/* 信息区域 */
.info-section {
    margin-bottom: 24px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 100px;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 职位画像 - 基本要求卡片 */
.profile-basic-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.profile-basic-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: white;
}

.profile-basic-card .card-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.profile-basic-card .card-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

/* 职位画像 */
.profile-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.profile-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}

.profile-card h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-radius: 4px;
    font-size: 12px;
}

.skill-tag.bonus {
    background: linear-gradient(135deg, rgba(255, 181, 110, 0.1) 0%, rgba(255, 159, 128, 0.1) 100%);
    color: #ff9f00;
}

/* 招聘渠道 */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.channel-count {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.channel-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    justify-self: end;
}

.channel-status.active {
    background: #e6f7e6;
    color: #52c41a;
}

.channel-status.inactive {
    background: #fff7e6;
    color: #faad14;
}

/* 胜任力模型 */
.competency-model {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.competency-model-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.competency-model-tab {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.competency-model-tab:hover {
    border-color: #c7d2fe;
    color: #4338ca;
}

.competency-model-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.competency-model-add {
    padding: 6px 12px;
    border: 1px dashed #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.competency-model-add:hover {
    background: #e0e7ff;
}

.competency-model-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef0f4;
    border-radius: 10px;
}

.competency-model-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.competency-model-name-row label,
.competency-model-positions > label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.competency-model-name-input {
    flex: 1;
    max-width: 320px;
    padding: 7px 10px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.competency-model-name-input:focus {
    outline: none;
    border-color: #667eea;
}

.competency-model-del {
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.competency-model-del:hover {
    background: #fee2e2;
}

.competency-model-positions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.competency-position-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competency-position-chip {
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.competency-position-chip:hover {
    border-color: #c7d2fe;
}

.competency-position-chip.selected {
    background: #eef2ff;
    border-color: #667eea;
    color: #4338ca;
    font-weight: 600;
}

.competency-position-chip .chip-owner {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 8px;
}

.competency-position-empty {
    font-size: 12px;
    color: #94a3b8;
}

.competency-position-hint {
    font-size: 12px;
    color: #94a3b8;
}

.competency-sync-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    font-size: 12px;
    color: #4338ca;
}

.competency-empty-hint {
    padding: 16px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.dimension-weight-value {
    font-size: 14px;
    font-weight: 600;
    color: #4338ca;
}

.dimension-rounds {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}

.dimension-rounds-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.dimension-rounds-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.competency-round-chip {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.competency-round-chip:hover {
    border-color: #c7d2fe;
}

.competency-round-chip.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.competency-generated-item {
    background: #f8faff;
    border: 1px solid #e0e7ff;
}

.generated-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.generated-round {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.generated-badge {
    font-size: 11px;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 2px 8px;
    border-radius: 10px;
}

.generated-template {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.generated-eval {
    margin-top: 6px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #334155;
}

.generated-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.competency-eval-edit-btn,
.competency-eval-toggle-btn,
.competency-eval-delete-btn,
.manual-eval-edit-btn,
.manual-eval-toggle-btn,
.manual-eval-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.competency-eval-edit-btn:hover,
.competency-eval-toggle-btn:hover,
.manual-eval-edit-btn:hover,
.manual-eval-toggle-btn:hover {
    background: #e2e8f0;
}

.competency-eval-edit-btn.active,
.manual-eval-edit-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.competency-eval-delete-btn,
.manual-eval-delete-btn {
    color: #dc2626;
}

.competency-eval-delete-btn:hover,
.manual-eval-delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.generated-disabled-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.competency-generated-item.is-disabled,
.manual-round-item.is-disabled {
    opacity: 0.6;
}

.competency-generated-item.is-disabled .eval-structured,
.competency-generated-item.is-disabled .generated-template-row,
.manual-round-item.is-disabled .generated-template-row {
    filter: grayscale(0.5);
}

.manual-round-name {
    max-width: 220px;
}

.manual-eval-row {
    align-items: flex-start;
}

.manual-eval-row .settings-control {
    flex: 1;
    min-height: 56px;
}

.generated-template-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}

.generated-template-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.generated-template-text {
    font-size: 13px;
    color: #334155;
}

.eval-structured {
    display: grid;
    gap: 10px;
}

.eval-dimension {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.eval-dimension-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8faff;
    border-bottom: 1px solid #eef0f4;
}

.eval-dimension-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.eval-dimension-weight {
    font-size: 12px;
    color: #4338ca;
    font-weight: 600;
}

.eval-sub-table {
    padding: 6px 12px 10px;
}

.eval-sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 110px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef0f4;
}

.eval-sub-row:last-child {
    border-bottom: none;
}

.eval-sub-head {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.eval-sub-name {
    font-size: 12px;
    color: #334155;
}

.eval-sub-weight {
    font-size: 12px;
    color: #64748b;
}

.eval-score-value {
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
}

.eval-score-input {
    width: 100%;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

#settings-interview-rounds-list .settings-rule-item {
    grid-template-columns: 36px minmax(0, 1fr);
}

#settings-interview-rounds-list .settings-inline-grid {
    grid-template-columns: minmax(0, 1fr);
}

.dimension-round-tags {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.dimension-round-tag {
    font-size: 11px;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 1px 8px;
    border-radius: 10px;
}

.competency-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.competency-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.competency-total {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.competency-total-num {
    font-weight: 600;
    color: #333;
}

.competency-total-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.competency-total-status.valid {
    background: #e6f7e6;
    color: #52c41a;
}

.competency-total-status.invalid {
    background: #fff1f0;
    color: #f5222d;
}

.competency-dimensions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.competency-dimension {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}

.dimension-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dimension-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dimension-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dimension-desc {
    font-size: 12px;
    color: #888;
}

.dimension-weight {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.weight-input {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
    color: #333;
}

.weight-input:focus {
    outline: none;
    border-color: #667eea;
}

.weight-input.invalid {
    border-color: #f5222d;
}

.weight-unit {
    font-size: 13px;
    color: #666;
}

.dimension-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dimension-item {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.competency-actions {
    display: flex;
    justify-content: flex-end;
}

/* 胜任力模型 - 子维度（设置页） */
.sub-dimension-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.sub-dimension-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sub-dimension-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.sub-weight-total {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
}

.sub-weight-total.valid {
    background: #e6f7e6;
    color: #52c41a;
}

.sub-weight-total.invalid {
    background: #fff1f0;
    color: #f5222d;
}

.sub-dimension-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.sub-dimension-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-name-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.sub-name-input:focus {
    outline: none;
    border-color: #667eea;
}

.sub-del-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
}

.sub-del-btn:hover {
    border-color: #f5222d;
    color: #f5222d;
}

.sub-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
}

.sub-add-btn:hover {
    border-color: #667eea;
    background: #f5f6ff;
}

/* 渠道选择框 */
.channels-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.channel-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* 子标签页 */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.sub-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.sub-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* 空状态 */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.checkbox-group,
.radio-row,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-group label,
.radio-row label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-group input[type="checkbox"],
.radio-row input[type="radio"],
.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 表单样式 */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group .required {
    color: #ff4d4f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 输入框带按钮 */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

/* AI生成按钮 */
.btn-ai,
.btn.btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    white-space: nowrap;
}

.btn.btn-ai:hover {
    opacity: 0.9;
    color: white;
    border: none;
    transform: translateY(-1px);
}

.btn-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.form-label-row label {
    margin-bottom: 0;
}

.btn-ai-sm {
    padding: 4px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
}

/* 岗位画像区域 */
.profile-section {
    margin: 20px 0;
    padding: 16px;
    background: #f9f9ff;
    border-radius: 8px;
    border: 1px dashed #d4d4ff;
}

.profile-section-header {
    margin-bottom: 16px;
}

.profile-section-header h4 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.profile-cards-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.profile-card-form {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.profile-card-form label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.profile-card-form select,
.profile-card-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #333;
}

.btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid #64748b;
    color: #334155;
}

.btn-primary:hover {
    background-color: #f1f5f9;
    border-color: #475569;
    color: #1e293b;
}

.btn-success {
    background-color: #f1f5f9;
    border: none;
    color: #334155;
}

.btn-success:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn i {
    font-size: 13px;
}

/* ========== 首页 AI 工作台优化 ========== */
#page-home {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(99, 91, 255, 0.12), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(16, 185, 129, 0.1), transparent 24%),
        linear-gradient(180deg, #f7f8fc 0%, #eef2f7 100%);
}

#page-home .chat-container {
    width: 100%;
    height: 100vh;
    margin-left: 0;
    padding: 12px;
    gap: 12px;
    background: transparent;
    overflow: hidden;
}

#page-home .chat-sidebar {
    flex: 0 0 320px;
    width: 320px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

#page-home .new-chat-wrapper {
    padding: 4px 4px 6px;
}

#page-home .chat-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

#page-home .chat-sidebar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

#page-home .new-chat-btn {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    font-weight: 400;
}

#page-home .new-chat-btn:hover {
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

#page-home .new-chat-btn i {
    width: 18px;
    color: #374151;
    font-size: 14px;
    font-weight: 400;
}

#page-home .new-chat-shortcut {
    margin-left: auto;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

#page-home .sidebar-action-btns {
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
}

#page-home .sidebar-action-btn {
    justify-content: flex-start;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 400;
}

#page-home .sidebar-action-btn:hover,
#page-home .sidebar-action-btn.active {
    background: #e9e9e9;
    color: #374151;
}

#page-home .sidebar-action-btn i {
    width: 18px;
    color: #374151;
    font-size: 14px;
    font-weight: 400;
}

#page-home .sidebar-page-shortcuts {
    padding: 0 4px 8px;
    border-bottom: 0;
}

#page-home .sidebar-page-shortcuts .sidebar-action-btn {
    flex: none;
    min-height: 32px;
}

#page-home .sidebar-header {
    padding: 8px 14px 9px;
    border-bottom: 0;
}

#page-home .sidebar-title {
    color: #475569;
    font-size: 13px;
}

#page-home .sidebar-toggle,
#page-home .sidebar-toggle-left {
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
}

#page-home .history-list {
    padding: 6px 8px;
}

#page-home .history-item {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px 8px;
    margin-bottom: 2px;
}

#page-home .history-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

#page-home .history-item.active {
    background: #eef2ff;
    border-color: rgba(99, 91, 255, 0.22);
    color: var(--primary-color);
}

#page-home .history-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
    background: #eef2f7;
}

#page-home .chat-sidebar-account {
    position: relative;
    padding: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

#page-home .chat-account-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    gap: 9px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}

#page-home .chat-account-btn:hover,
#page-home .chat-sidebar-account.open .chat-account-btn {
    background: #f8fafc;
}

#page-home .chat-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef2f7;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

#page-home .chat-account-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-home .chat-account-btn i {
    color: #94a3b8;
    font-size: 11px;
}

#page-home .chat-account-menu {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 52px;
    display: none;
    padding: 6px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    z-index: 10;
}

#page-home .chat-sidebar-account.open .chat-account-menu {
    display: grid;
    gap: 2px;
}

#page-home .chat-account-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
}

#page-home .chat-account-menu button:hover {
    background: #f8fafc;
}

#page-home .chat-account-menu i {
    width: 16px;
    color: #64748b;
    font-size: 13px;
}

#page-home .chat-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: margin-right 0.18s ease, flex-basis 0.18s ease;
}

.points-page {
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

.points-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.points-page-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
}

.points-page-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.points-section {
    margin-bottom: 16px;
}

.points-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.points-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.points-summary-grid,
.points-package-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.points-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.points-summary-card,
.points-package-card,
.points-detail-item,
.points-empty {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.points-summary-card,
.points-package-card {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.points-summary-card span,
.points-package-card span {
    color: #64748b;
    font-size: 12px;
}

.points-summary-card strong,
.points-package-card strong {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
}

.points-summary-card small,
.points-package-card small {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.points-package-card button {
    justify-self: start;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.points-detail-list {
    display: grid;
    gap: 8px;
}

.points-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.points-detail-item div {
    display: grid;
    gap: 4px;
}

.points-detail-item span,
.points-detail-item small {
    color: #94a3b8;
    font-size: 12px;
}

.points-detail-item strong {
    color: #111827;
    font-size: 13px;
    font-weight: 500;
}

.points-detail-item em {
    color: #ef4444;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    text-align: right;
}

.points-empty {
    padding: 30px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.interview-schedule-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.interview-today-section {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.interview-feedback-section {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.interview-today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.interview-today-head strong {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.interview-today-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.interview-feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.interview-today-card,
.interview-feedback-card {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.interview-today-card:hover,
.interview-feedback-card:hover {
    background: #f8fafc;
}

.interview-today-card span,
.interview-feedback-card span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.interview-today-card strong,
.interview-feedback-card strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.interview-today-card strong em,
.interview-feedback-card strong em {
    overflow: hidden;
    color: #111827;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interview-today-card strong small,
.interview-feedback-card strong small {
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interview-today-card small,
.interview-feedback-card small {
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.interview-schedule-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.interview-schedule-table th,
.interview-schedule-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #e6edf5;
    color: #334155;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.interview-schedule-table th {
    background: #f2f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.interview-schedule-table td strong {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.interview-schedule-table tbody tr {
    cursor: pointer;
}

.interview-schedule-table tbody tr:hover {
    background: #f8fafc;
}

.interview-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.interview-today-card.is-filter-hidden,
.interview-feedback-card.is-filter-hidden,
.interview-schedule-table tbody tr.is-filter-hidden {
    display: none;
}

.interview-schedule-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16803b;
    font-size: 13px;
    font-weight: 600;
}

.recruit-report-chat {
    gap: 14px;
}

.recruit-report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recruit-report-filters select {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
}

.recruit-report-section {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.recruit-report-section h3 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.recruit-report-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.recruit-report-detail-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.recruit-report-detail-filters select {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
}

.recruit-report-section-head button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
}

.recruit-report-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.recruit-report-metrics.dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recruit-report-metric {
    display: grid;
    gap: 6px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.recruit-report-metric:hover {
    border-color: #fecaca;
    background: #fff7f7;
}

.recruit-report-metric span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.recruit-report-metric strong {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
}

.recruit-report-chart {
    display: grid;
    gap: 9px;
}

.recruit-report-chart-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 12px;
}

.recruit-report-chart-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruit-report-chart-row strong,
.recruit-report-chart-row button {
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
}

.recruit-report-chart-row button:hover {
    color: #b91c1c;
}

.recruit-report-chart-track,
.recruit-report-channel-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.recruit-report-chart-track i,
.recruit-report-channel-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f4a7a2;
}

.recruit-report-channel-chart {
    display: grid;
    gap: 10px;
    max-height: 238px;
    overflow-y: auto;
    padding-right: 2px;
}

.recruit-report-channel-row {
    display: grid;
    gap: 7px;
}

.recruit-report-channel-name {
    color: #111827;
    font-size: 12px;
    font-weight: 600;
}

.recruit-report-channel-bars {
    display: grid;
    gap: 6px;
}

.recruit-report-channel-metric {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
}

.recruit-report-channel-metric span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruit-report-channel-metric strong {
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.recruit-report-channel-list {
    display: grid;
    max-height: 238px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-channel-list-row {
    display: grid;
    grid-template-columns: minmax(86px, 1.2fr) repeat(5, minmax(56px, 0.8fr));
    align-items: center;
    min-width: 560px;
    border-bottom: 1px solid #eef2f7;
}

.recruit-report-channel-list-row:last-child {
    border-bottom: 0;
}

.recruit-report-channel-list-row.header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.recruit-report-channel-list-row span,
.recruit-report-channel-list-row strong,
.recruit-report-channel-list-row button {
    padding: 9px 8px;
    border: 0;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.recruit-report-channel-list-row span:first-child,
.recruit-report-channel-list-row strong:first-child {
    overflow: hidden;
    color: #111827;
    text-align: left;
    text-overflow: ellipsis;
}

.recruit-report-channel-list-row strong {
    font-weight: 600;
}

.recruit-report-channel-list-row button {
    cursor: pointer;
}

.recruit-report-channel-list-row button:hover {
    color: #b91c1c;
    background: #fff7f7;
}

.recruit-report-channel-empty {
    padding: 16px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.recruit-report-dialogue {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.recruit-report-dialogue:empty {
    display: none;
}

.recruit-report-dialogue-message {
    display: flex;
    width: 100%;
}

.recruit-report-dialogue-message > div {
    max-width: min(760px, 92%);
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.recruit-report-dialogue-message.is-user {
    justify-content: flex-end;
}

.recruit-report-dialogue-message.is-user > div {
    border-color: #fee2e2;
    background: #fff7f7;
    color: #991b1b;
}

.recruit-report-dialogue-message.is-ai {
    justify-content: flex-start;
}

.recruit-report-dialogue-message.is-ai > div {
    background: #ffffff;
    color: #111827;
}

.recruit-report-inline-detail {
    display: grid;
    gap: 10px;
}

.recruit-report-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.recruit-report-inline-head strong {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.recruit-report-inline-head span {
    color: #64748b;
    font-size: 12px;
}

.recruit-report-inline-list {
    display: grid;
    gap: 8px;
}

.recruit-report-inline-list article {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-inline-list article strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.recruit-report-inline-list article strong span {
    flex: 0 0 auto;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 500;
}

.recruit-report-inline-list article p,
.recruit-report-inline-list article small {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.recruit-report-inline-table article {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.recruit-report-inline-table article span {
    display: grid;
    gap: 2px;
}

.recruit-report-inline-table article span em {
    color: #94a3b8;
    font-size: 11px;
    font-style: normal;
}

.recruit-report-inline-table article span strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.recruit-report-inline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.recruit-report-inline-grid button {
    display: grid;
    gap: 5px;
    min-height: 58px;
    padding: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.recruit-report-inline-grid button:hover {
    border-color: #fecaca;
    background: #fff7f7;
}

.recruit-report-inline-grid span {
    color: #64748b;
    font-size: 12px;
}

.recruit-report-inline-grid strong {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.recruit-report-inline-list.compact article {
    padding: 8px 10px;
}

.recruit-report-insight-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.recruit-report-insight-block > div {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fff7f7;
}

.recruit-report-insight-block strong {
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
}

.recruit-report-insight-block p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.recruit-report-inline-channel-list {
    display: grid;
    gap: 8px;
}

.recruit-report-inline-channel-list article {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) repeat(5, minmax(44px, 0.7fr));
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-inline-channel-list article strong {
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruit-report-inline-channel-list article span {
    color: #64748b;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.recruit-report-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.recruit-report-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.recruit-report-table th,
.recruit-report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
}

.recruit-report-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

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

@media (max-width: 1180px) {
    .recruit-report-dashboard {
        grid-template-columns: 1fr;
    }

    .recruit-report-insight-block {
        grid-template-columns: 1fr;
    }
}

.talent-pool-chat {
    gap: 12px;
}

.talent-pool-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.talent-pool-chat-head h3 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.talent-pool-chat-head button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
}

.talent-pool-chat-filters {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
}

.talent-pool-chat-filters input,
.talent-pool-chat-filters select {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
}

.talent-pool-chat-notice {
    padding: 8px 10px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fff7f7;
    color: #9f1239;
    font-size: 12px;
}

.talent-pool-chat-table {
    display: grid;
    gap: 8px;
}

.talent-pool-chat-row {
    display: grid;
    grid-template-columns: 34px 1fr 1.1fr 0.8fr 0.9fr 1fr;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.talent-pool-chat-row:not(.header) {
    cursor: pointer;
}

.talent-pool-chat-row:not(.header):hover {
    border-color: #fecaca;
    background: #fff7f7;
}

.talent-pool-chat-row.header {
    min-height: 34px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.talent-pool-chat-row strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.talent-pool-chat-row small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 400;
}

.talent-pool-chat-row span {
    overflow: hidden;
    color: #334155;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.talent-pool-chat-empty {
    padding: 18px;
    border: 1px dashed #dbe3ee;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.todo-detail-panel.talent-pool-resume-detail-panel .job-board-resume-layout {
    padding-bottom: 92px;
    overflow-y: auto;
    padding-right: 2px;
}

.todo-detail-panel.talent-pool-resume-detail-panel .job-board-resume-main {
    padding-bottom: 18px;
}

.talent-pool-action-form {
    scroll-margin-bottom: 104px;
}

.talent-pool-stage-actions {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #fee2e2;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.talent-pool-stage-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.talent-pool-stage-actions button:hover {
    background: #fee2e2;
}

.talent-pool-inline-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fff7f7;
}

.talent-pool-inline-form strong {
    color: #111827;
    font-size: 13px;
}

.talent-pool-inline-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
}

.talent-pool-inline-form select,
.talent-pool-inline-form textarea {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 13px;
}

.talent-pool-inline-form textarea {
    min-height: 84px;
    resize: vertical;
}

.talent-pool-inline-form button {
    justify-self: start;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
}

.talent-pool-resume-tabs-shell {
    gap: 10px;
}

.talent-pool-resume-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.talent-pool-resume-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.todo-detail-panel.talent-pool-resume-detail-panel .resume-file-preview {
    width: 100%;
    height: 340px;
    border: 0;
}

.todo-detail-panel.talent-pool-resume-detail-panel .resume-file-text,
.todo-detail-panel.talent-pool-resume-detail-panel .resume-file-empty {
    margin: 0;
    padding: 12px;
}

.talent-pool-action-result,
.talent-pool-activation-watermark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
}

.talent-pool-activation-watermark {
    margin-bottom: 10px;
}

@media (max-width: 1180px) {
    .talent-pool-chat-filters,
    .talent-pool-chat-row {
        grid-template-columns: 1fr;
    }
}

#page-home .chat-header {
    display: none;
}

#page-home .chat-title {
    gap: 10px;
}

#page-home .chat-icon {
    display: none;
}

#page-home .chat-name {
    color: #111827;
    font-size: 17px;
}

#page-home .chat-status {
    min-width: 84px;
    justify-content: flex-end;
}

#page-home .chat-status.online::after {
    content: '在线';
    color: #059669;
    font-size: 12px;
    font-weight: 600;
}

.home-welcome {
    flex: 1;
    width: min(940px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page-home .chat-history:not(.hidden) + .home-welcome {
    display: none;
}

#page-home .chat-main.is-empty-chat .chat-history,
#page-home .chat-main.is-empty-chat .home-welcome {
    display: none;
}

#page-home .chat-suggestion-panel {
    display: none;
}

#page-home .chat-main.is-empty-chat .chat-suggestion-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0 40px;
}

#page-home .chat-suggestion-panel h2 {
    margin: 0 0 52px;
    color: #030712;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

#page-home .chat-main.is-empty-chat .chat-composer-area {
    margin: 0 auto 22px;
    transform: none;
}

.welcome-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(99, 91, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #4f49c0;
    font-size: 13px;
    font-weight: 600;
}

.welcome-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.home-welcome h1 {
    max-width: 680px;
    margin-top: 18px;
    color: #0f172a;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.home-welcome p {
    max-width: 560px;
    margin-top: 14px;
    color: #64748b;
    font-size: 16px;
}

.welcome-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(680px, 100%);
    margin-top: 28px;
}

.welcome-metric {
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    position: relative;
}

.welcome-metric.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-metric.clickable:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.metric-label {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

.metric-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.welcome-metric.clickable:hover .metric-arrow {
    opacity: 1;
}

.welcome-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.welcome-card {
    min-height: 108px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: #111827;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.welcome-card:hover {
    border-color: rgba(99, 91, 255, 0.38);
    background: #ffffff;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(99, 91, 255, 0.12);
}

.welcome-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 15px;
}

.welcome-card strong,
.welcome-card small {
    display: block;
}

.welcome-card strong {
    font-size: 14px;
    line-height: 1.35;
}

.welcome-card small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

#page-home .chat-history {
    padding: 28px 15px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.42), rgba(255, 255, 255, 0.2));
}

#page-home .message {
    flex-direction: row;
    align-items: flex-start;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#page-home .message-avatar {
    display: none;
}

#page-home .user-message {
    justify-content: flex-end;
}

#page-home .message-content {
    max-width: 100%;
    width: 100%;
}

.todo-detail-open #page-home .message {
    max-width: 760px;
}

#page-home .message-bubble {
    text-align: left;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

#page-home .user-message .message-bubble {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

#page-home .job-board-message {
    max-width: none;
    width: calc(100% + 30px);
    height: 100%;
    margin: -28px -15px 0;
}

#page-home .job-board-message .message-content,
#page-home .job-board-message .message-bubble {
    height: 100%;
}

#page-home .job-board-message .message-bubble {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.job-board-chat {
    width: 100%;
    min-height: calc(100vh - 104px);
    padding: 12px 30px 24px;
    border-radius: 0;
    background: #f3f3f3;
    color: #242424;
}

.job-board-hero {
    margin-bottom: 8px;
}

.job-board-title-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-board-title-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: min(100%, 680px);
}

.job-board-job-select {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0 22px 0 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #202124;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
    appearance: none;
    cursor: pointer;
}

.job-board-title-select i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-44%);
    color: #202124;
    font-size: 12px;
    pointer-events: none;
}

.job-board-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.job-board-search-btn:hover {
    background: #fee2e2;
}

.job-board-hero span {
    display: block;
    margin-top: 2px;
    color: #7f7f7f;
    font-size: 12px;
}

.job-board-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.todo-detail-open #page-home .job-board-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
}

.job-board-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.job-board-stat:hover {
    border-color: rgba(0, 169, 133, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.job-board-stat.active {
    border-color: #fecaca;
    background: #fff1f0;
    box-shadow: 0 10px 24px rgba(248, 113, 113, 0.12);
}

.job-board-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 3px solid #d8f7ee;
    border-radius: 50%;
    color: #00a985;
    font-size: 9px;
}

.job-board-stat small {
    display: block;
    color: #858585;
    font-size: 12px;
    line-height: 1.25;
}

.job-board-stat strong {
    display: block;
    margin-top: 8px;
    color: #17181c;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.job-board-taskbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin: 0 0 10px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
}

.job-board-taskbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #303030;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.job-board-taskbar button.active,
.job-board-taskbar button:hover {
    background: #e0f7f1;
    color: #00a985;
}

.job-board-info-panel {
    width: 100%;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
}

.job-board-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.job-board-info-item {
    min-width: 0;
}

.job-board-info-item span,
.job-board-info-text label,
.job-board-info-tags label,
.job-board-info-head span {
    display: block;
    color: #85858d;
    font-size: 12px;
    line-height: 1.35;
}

.job-board-info-item strong,
.job-board-info-head strong {
    display: block;
    margin-top: 4px;
    color: #242424;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.job-board-info-text,
.job-board-info-tags {
    margin-top: 12px;
}

.job-board-info-text p {
    margin: 5px 0 0;
    color: #303030;
    font-size: 12px;
    line-height: 1.55;
}

.job-board-info-tags > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.job-board-info-tags span,
.job-board-info-tags em,
.job-board-model-list em {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #303030;
    font-size: 12px;
    font-style: normal;
}

.job-board-profile-soft-bonus {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
}

.job-board-profile-tag-editor {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.job-board-profile-tag-editor > span {
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.job-board-profile-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
}

.job-board-profile-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
}

.job-board-profile-tag-pill button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.job-board-profile-tag-add {
    display: flex;
    gap: 8px;
}

.job-board-profile-tag-add input {
    flex: 1;
    min-width: 0;
}

.job-board-profile-tag-add button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.job-board-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.job-board-model-list,
.job-board-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.job-board-model-item,
.job-board-channel-item {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f3f3f3;
}

.job-board-model-item span,
.job-board-channel-item strong {
    display: block;
    color: #303030;
    font-size: 12px;
    font-weight: 600;
}

.job-board-model-item strong,
.job-board-channel-item span {
    display: block;
    margin-top: 6px;
    color: #17181c;
    font-size: 12px;
}

.job-board-channel-item em {
    display: inline-flex;
    margin-top: 8px;
    color: #85858d;
    font-size: 12px;
    font-style: normal;
}

.job-board-channel-item em.active {
    color: #00a985;
}

.job-board-section-title {
    margin: 0 0 10px;
    color: #242424;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.job-board-candidates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.job-board-empty {
    grid-column: 1 / -1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    color: #85858d;
    font-size: 12px;
}

.job-board-candidate {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.job-board-candidate:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.job-board-candidate.is-filter-hidden {
    display: none;
}

.job-board-candidate-main {
    min-width: 0;
    width: 100%;
}

.job-board-candidate-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.job-board-candidate-head > strong {
    margin-right: 6px;
    color: #242424;
    font-size: 14px;
    line-height: 1;
}

.job-board-match,
.job-board-resume,
.job-board-status-badge,
.job-board-round-badge,
.job-board-result-badge,
.job-board-expected-badge,
.job-board-onboard-badge,
.job-board-ai-badge,
.job-board-channel-badge,
.job-board-city-badge,
.job-board-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.job-board-match {
    background: #fff0ea;
    color: #ff6b2c;
}

.job-board-resume {
    background: #e0f7f1;
    color: #00a985;
}

.job-board-status-badge {
    background: #ecfeff;
    color: #0891b2;
}

.job-board-result-badge {
    background: #f5f3ff;
    color: #6d28d9;
}

.job-board-round-badge {
    background: #fff7ed;
    color: #c2410c;
}

.job-board-expected-badge {
    background: #f0fdf4;
    color: #15803d;
}

.job-board-onboard-badge {
    background: #ecfdf5;
    color: #047857;
}

.job-board-ai-badge {
    background: #111827;
    color: #ffffff;
}

.job-board-channel-badge {
    background: #eef2ff;
    color: #4f46e5;
}

.job-board-city-badge {
    background: #f1f5f9;
    color: #475569;
}

.job-board-date-badge {
    background: #fef3c7;
    color: #92400e;
}

.job-board-candidate p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 8px;
    color: #85858d;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.job-board-candidate-lines span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-board-candidate p i {
    width: 18px;
    color: #adadad;
    font-size: 12px;
}

.job-board-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.job-board-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #f3f3f3;
    color: #2e2e2e;
    font-size: 12px;
    font-weight: 500;
}

.job-board-editable-tag button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.job-board-editable-tag button:hover {
    background: #fee2e2;
    color: #dc2626;
}

.job-board-tag-add,
.job-board-tag-inline-form button {
    min-height: 28px;
    padding: 5px 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.job-board-tag-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-board-tag-inline-form input {
    width: 96px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    color: #1f2937;
    font-size: 12px;
    outline: none;
}

.job-board-tag-inline-form input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.14);
}

@media (max-width: 1200px) {
    .job-board-chat {
        padding: 18px 20px 24px;
    }
    .job-board-job-select {
        min-width: 0;
        font-size: 14px;
    }
    .job-board-stats {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        overflow-x: auto;
    }
    .todo-detail-open #page-home .job-board-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }
    .job-board-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .job-board-model-list,
    .job-board-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .job-board-candidates {
        grid-template-columns: 1fr;
    }
}

.referral-job-list {
    display: grid;
    gap: 12px;
}

.referral-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.referral-job-main {
    min-width: 0;
}

.referral-job-main strong,
.referral-job-main span,
.referral-job-main a {
    display: block;
}

.referral-job-main strong {
    color: #111827;
    font-size: 14px;
}

.referral-job-main span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.referral-job-main a {
    width: fit-content;
    margin-top: 8px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.referral-job-main a:hover {
    text-decoration: underline;
}

.referral-qr {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.referral-qr img {
    display: block;
    width: 92px;
    height: 92px;
}

.referral-qr span {
    color: #64748b;
    font-size: 11px;
    line-height: 1;
}

.referral-qr-large {
    margin-top: 12px;
}

.referral-qr-large img {
    width: 164px;
    height: 164px;
}

.referral-share-page {
    background: #f8fafc;
}

.referral-share-page .app-container {
    display: block;
    min-height: 100vh;
}

.referral-share-landing {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.referral-share-hero,
.referral-share-section {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.referral-share-hero {
    padding: 28px;
}

.referral-share-eyebrow {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.referral-share-hero h1 {
    margin-top: 16px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.2;
}

.referral-share-hero p {
    margin-top: 10px;
    color: #64748b;
    font-size: 15px;
}

.referral-share-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.referral-share-meta span {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    background: #f8fafc;
}

.referral-share-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.referral-share-section {
    margin-top: 14px;
    padding: 22px;
}

.referral-share-section h2 {
    color: #0f172a;
    font-size: 18px;
}

.referral-share-section p {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.candidate-interview-page {
    background: #f6f8fb;
}

.candidate-interview-page .app-container {
    display: block;
    min-height: 100vh;
}

.candidate-interview-portal {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 52px;
}

.candidate-interview-card {
    --candidate-theme: #2563eb;
    --candidate-theme-rgb: 37, 99, 235;
    --candidate-theme-soft: #eff6ff;
    --candidate-theme-border: #bfdbfe;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.candidate-interview-card.theme-interview {
    --candidate-theme: #2563eb;
    --candidate-theme-rgb: 37, 99, 235;
    --candidate-theme-soft: #eff6ff;
    --candidate-theme-border: #bfdbfe;
}

.candidate-interview-card.theme-attachments {
    --candidate-theme: #0f766e;
    --candidate-theme-rgb: 15, 118, 110;
    --candidate-theme-soft: #f0fdfa;
    --candidate-theme-border: #99f6e4;
}

.candidate-interview-card.theme-satisfaction {
    --candidate-theme: #b45309;
    --candidate-theme-rgb: 180, 83, 9;
    --candidate-theme-soft: #fffbeb;
    --candidate-theme-border: #fde68a;
}

.candidate-interview-card.theme-offer {
    --candidate-theme: #7c3aed;
    --candidate-theme-rgb: 124, 58, 237;
    --candidate-theme-soft: #f5f3ff;
    --candidate-theme-border: #ddd6fe;
}

.candidate-interview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.candidate-interview-account {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
}

.candidate-interview-account img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.candidate-interview-account strong,
.candidate-interview-account span {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-interview-account strong {
    color: #0f172a;
    font-size: 13px;
}

.candidate-interview-account span {
    color: #64748b;
    font-size: 11px;
}

.candidate-interview-eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--candidate-theme-soft);
    color: var(--candidate-theme);
    font-size: 12px;
    font-weight: 800;
}

.candidate-interview-head h1 {
    margin-top: 14px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.25;
}

.candidate-interview-head p {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

.candidate-interview-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.candidate-interview-status.done {
    background: #dcfce7;
    color: #166534;
}

.candidate-interview-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.candidate-interview-info-grid div {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.candidate-interview-info-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.candidate-interview-info-grid strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-interview-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
}

.candidate-interview-tabs button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 10px;
    align-items: center;
    min-width: 152px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.candidate-interview-tabs button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
}

.candidate-interview-tabs button strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.candidate-interview-tabs button span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.candidate-interview-tabs button.active {
    border-color: var(--candidate-theme-border);
    background: var(--candidate-theme-soft);
    color: var(--candidate-theme);
    box-shadow: 0 10px 24px rgba(var(--candidate-theme-rgb), 0.14);
    transform: translateY(-1px);
}

.candidate-interview-tabs button.active i {
    background: var(--candidate-theme);
    color: #ffffff;
}

.candidate-interview-tabs button.active strong {
    color: var(--candidate-theme);
}

.candidate-interview-tab-panel {
    display: none;
}

.candidate-interview-tab-panel.active {
    display: block;
}

.candidate-interview-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.candidate-interview-form h2 {
    color: #0f172a;
    font-size: 18px;
}

.candidate-interview-slot-list {
    display: grid;
    gap: 10px;
}

.candidate-interview-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.candidate-interview-slot input {
    accent-color: var(--candidate-theme, #111827);
}

.candidate-interview-slot:has(input:checked) {
    border-color: var(--candidate-theme, #111827);
    background: var(--candidate-theme-soft, #f8fafc);
    color: var(--candidate-theme, #111827);
}

.candidate-interview-submit {
    width: fit-content;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--candidate-theme, #111827);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.candidate-interview-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.candidate-interview-submit.secondary {
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #334155;
}

.candidate-interview-empty {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.candidate-interview-arranged {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
}

.candidate-interview-arranged i {
    margin-top: 2px;
    color: #16a34a;
}

.candidate-interview-arranged strong {
    color: #14532d;
    font-size: 16px;
}

.candidate-interview-arranged p {
    margin: 6px 0 0;
    color: #166534;
    font-size: 14px;
    font-weight: 800;
}

.candidate-interview-arranged span {
    display: block;
    margin-top: 6px;
    color: #15803d;
    font-size: 12px;
}

.candidate-portal-panel-card {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--candidate-theme-border, #e2e8f0);
}

.candidate-portal-panel-card h2 {
    color: #0f172a;
    font-size: 18px;
}

.candidate-portal-panel-card > p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.candidate-portal-panel-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.candidate-portal-panel-title h2 {
    margin: 0;
}

.candidate-portal-panel-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.candidate-round-list {
    display: grid;
    gap: 10px;
}

.candidate-round-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.candidate-round-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--candidate-theme-soft, #f8fafc);
    color: var(--candidate-theme, #111827);
    font-size: 14px;
    font-weight: 900;
}

.candidate-round-card strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.candidate-round-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.candidate-round-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.candidate-round-meta span:first-child {
    background: var(--candidate-theme-soft, #f1f5f9);
    color: var(--candidate-theme, #475569);
}

.candidate-round-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.candidate-attachment-list {
    display: grid;
    gap: 10px;
}

.candidate-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.candidate-attachment-item strong,
.candidate-attachment-item span,
.candidate-attachment-item em {
    display: block;
}

.candidate-attachment-item strong {
    color: #0f172a;
    font-size: 14px;
}

.candidate-attachment-item span,
.candidate-attachment-item em {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.candidate-attachment-item input {
    display: none;
}

.candidate-attachment-action {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff !important;
    font-weight: 800;
}

.candidate-rating-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.candidate-rating-group label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-weight: 900;
    cursor: pointer;
}

.candidate-rating-group label.active,
.candidate-rating-group label:has(input:checked) {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.candidate-rating-group input {
    display: none;
}

.candidate-satisfaction-note {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

.candidate-offer-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.candidate-offer-summary div {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.candidate-offer-summary span,
.candidate-offer-summary strong {
    display: block;
}

.candidate-offer-summary span {
    color: #64748b;
    font-size: 12px;
}

.candidate-offer-summary strong {
    margin-top: 6px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-offer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#page-home .chat-composer-area {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto 22px;
    min-height: auto;
}

#page-home .chat-input-area {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

#page-home .selected-files-container {
    padding: 8px 10px 12px;
    background: transparent;
    border-bottom: none;
}

#page-home .chat-prompt-tags {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 auto;
    padding: 0 2px;
}

#page-home .chat-prompt-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

#page-home .chat-prompt-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 18px;
    background: #f3f4f6;
    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

#page-home .chat-prompt-tag:hover,
#page-home .chat-prompt-tag.active {
    background: #e5e7eb;
    color: #030712;
    box-shadow: none;
}

#page-home .chat-input-wrapper {
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 8px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#page-home .chat-input {
    width: auto;
    height: 100%;
    flex: 1;
    padding: 0 8px 0 12px;
    font-size: 15px;
}

#page-home .chat-attach-btn,
#page-home .chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

#page-home .chat-send-btn {
    background: transparent;
    color: #64748b;
}

#page-home .chat-send-btn:hover {
    background: #f1f5f9;
    color: #111827;
    transform: translateY(-1px);
}

#page-home .chat-tools {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0 2px 2px;
    border-top: none;
}

#page-home .tools-label {
    padding: 0 6px;
    color: #94a3b8;
}

#page-home .chat-tools .tool-chip {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
}

#page-home .chat-tools .tool-chip:hover {
    border-color: rgba(99, 91, 255, 0.32);
    background: #eef2ff;
    color: var(--primary-color);
}

/* ========== 系统设置 ========== */
.page-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    height: calc(100vh - 86px);
    background: #f8fafc;
    overflow: hidden;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow-y: auto;
}

.settings-nav-item {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.settings-nav-item:hover,
.settings-nav-item.active {
    background: #eef2ff;
    color: var(--primary-color);
}

.settings-nav-group-label {
    margin: 8px 8px 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.settings-main {
    min-width: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.settings-ai-panel,
.settings-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.settings-ai-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.settings-ai-panel h3 {
    color: #0f172a;
    font-size: 16px;
}

.settings-ai-panel p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.settings-ai-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.settings-ai-examples span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
}

.settings-section {
    display: none;
    padding: 18px;
}

.settings-section.active {
    display: block;
}

.settings-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-section-header h2 {
    color: #0f172a;
    font-size: 18px;
}

.settings-section-header span {
    color: #64748b;
    font-size: 12px;
}

.settings-table {
    display: grid;
    gap: 8px;
}

.settings-table-row {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1fr;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.settings-role-row {
    grid-template-columns: 1fr 1.6fr 1.6fr 1fr 76px;
}

.settings-account-row {
    grid-template-columns: 1fr 1.3fr 1fr 1fr 110px;
}

.migration-detail-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1fr;
}

.settings-table-row.header {
    min-height: 36px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.settings-table-row strong {
    color: #0f172a;
    font-size: 14px;
}

.settings-muted {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.settings-card,
.settings-rule-card {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.settings-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-card h3,
.settings-rule-card h3,
.settings-two-column h3 {
    color: #0f172a;
    font-size: 15px;
}

.settings-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid #dbe4ff;
    border-radius: 6px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.settings-add-btn.compact {
    margin-top: 10px;
    margin-bottom: 0;
}

.settings-control {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
}

.settings-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.settings-textarea {
    min-height: 58px;
    resize: vertical;
}

.settings-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.settings-switch input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
}

.settings-switch:has(input:checked) {
    background: #dcfce7;
    color: #15803d;
}

.settings-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-option-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.settings-option-chip input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
}

.settings-option-chip:has(input:checked) {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #3730a3;
}

.settings-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.settings-mini-grid label,
.settings-label {
    display: grid;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.settings-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.off {
    background: #f1f5f9;
    color: #64748b;
}

.settings-rule-list,
.workflow-stage-list {
    display: grid;
    gap: 10px;
}

.settings-rule-item,
.workflow-stage-item {
    display: grid;
    grid-template-columns: 36px minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.workflow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary-color);
    font-weight: 800;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-form-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.settings-form-item label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.settings-form-value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.settings-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-chip-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.field-editor-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 110px 76px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbe4ff;
    border-radius: 8px;
    background: #f8fafc;
}

.settings-rule-card dl {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.settings-rule-card div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
}

.settings-rule-card dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.settings-rule-card dd {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.settings-import-highlight {
    animation: settingsPulse 1.2s ease;
}

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.settings-summary-grid div {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.settings-summary-grid strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
}

.settings-summary-grid span {
    color: #64748b;
    font-size: 12px;
}

.migration-plan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.migration-plan > div,
.settings-migration-block {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.migration-plan strong,
.settings-migration-block h3 {
    color: #0f172a;
    font-size: 15px;
}

.migration-plan p {
    margin-top: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.settings-migration-block {
    margin-top: 14px;
    background: #ffffff;
}

.settings-migration-block h3 {
    margin-bottom: 12px;
}

/* ========== 人才库 / 面试 / 报表 ========== */
.module-page {
    padding: 18px;
    background: #f8fafc;
    min-height: calc(100vh - 86px);
}

.module-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.module-filters input,
.module-filters select {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
}

.module-table {
    display: grid;
    gap: 8px;
}

.module-table-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.module-table-row.header {
    min-height: 36px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.talent-row {
    grid-template-columns: 34px 1.1fr 1.2fr 0.8fr 1.2fr 0.7fr 110px;
}

.interview-row {
    grid-template-columns: 1fr 1.2fr 0.7fr 0.8fr 1.1fr 0.8fr;
}

.channel-quality-row,
.interviewer-row {
    grid-template-columns: 1.2fr repeat(5, minmax(0, 0.8fr));
}

.compact-table {
    margin-top: 10px;
}

.compact-table .module-table-row {
    min-height: 44px;
}

.module-table-row strong {
    color: #0f172a;
    font-size: 14px;
}

.module-table-row small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.module-table-row em {
    display: inline-flex;
    margin: 2px 4px 2px 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.segmented-control {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.segmented-control button {
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.segmented-control button.active {
    background: #111827;
    color: #ffffff;
}

.calendar-board {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.calendar-event {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.calendar-event strong {
    color: #0f172a;
}

.calendar-event span {
    color: #334155;
    font-weight: 700;
}

.calendar-event small {
    color: #64748b;
}

.report-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
}

.report-card {
    min-height: 280px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.report-card.wide {
    grid-row: span 2;
}

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

.chat-settings-message .message-content,
.chat-settings-message .message-bubble {
    width: 100%;
}

.chat-points-message .message-content,
.chat-points-message .message-bubble {
    width: 100%;
}

#page-home .chat-settings-message .message-bubble,
#page-home .chat-points-message .message-bubble,
.chat-settings-message .message-bubble,
.chat-points-message .message-bubble {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.chat-settings-panel {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.chat-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.chat-settings-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.chat-settings-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.chat-settings-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chat-settings-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.chat-settings-actions button:hover {
    border-color: #111827;
    color: #111827;
}

.chat-settings-split {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    min-height: 520px;
    max-height: min(70vh, 780px);
}

.chat-settings-title-list,
.chat-settings-detail {
    min-height: 0;
    overflow-y: auto;
}

.chat-settings-title-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.chat-settings-title-group {
    display: grid;
    gap: 5px;
}

.chat-settings-title-group-label {
    padding: 0 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.chat-settings-title-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid transparent;
    background: transparent;
}

.chat-settings-title-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-settings-title-item i {
    color: #94a3b8;
    font-size: 11px;
}

.chat-settings-title-item.active {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.chat-settings-title-item.active i {
    color: #3730a3;
}

.chat-settings-detail {
    padding-right: 4px;
}

.chat-settings-detail .settings-section {
    min-width: 0;
}

.report-card-header h3 {
    color: #0f172a;
    font-size: 16px;
}

.report-card-header span {
    color: #64748b;
    font-size: 12px;
}

.funnel-chart {
    display: grid;
    gap: 12px;
}

.funnel-chart div {
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
}

.funnel-chart strong,
.funnel-chart span {
    display: block;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 18px;
    min-height: 200px;
}

.bar-chart div {
    display: grid;
    align-items: end;
    justify-items: center;
    gap: 8px;
    flex: 1;
}

.bar-chart strong {
    display: flex;
    align-items: start;
    justify-content: center;
    width: 100%;
    min-height: 24px;
    padding-top: 6px;
    border-radius: 6px 6px 0 0;
    background: #635BFF;
    color: #ffffff;
    font-size: 12px;
}

.bar-chart span,
.efficiency-chart span {
    color: #64748b;
    font-size: 12px;
}

.efficiency-chart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.efficiency-chart div {
    padding: 18px;
    border-radius: 8px;
    background: #f8fafc;
}

.efficiency-chart strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 28px;
}

@keyframes settingsPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0.28); }
    100% { box-shadow: 0 0 0 16px rgba(99, 91, 255, 0); }
}

@media (max-width: 960px) {
    #page-home .chat-container {
        padding: 10px;
    }

    #page-home .chat-sidebar {
        position: absolute;
        inset: 10px auto 10px 10px;
        z-index: 20;
        width: min(280px, calc(100vw - 40px));
    }

    #page-home .chat-sidebar.collapsed {
        width: 0;
        border: none;
    }

    .home-welcome,
    #page-home .chat-composer-area {
        width: calc(100% - 28px);
    }

    .home-welcome h1 {
        font-size: 32px;
    }

    .welcome-actions,
    .welcome-metrics {
        grid-template-columns: 1fr;
    }

    .referral-job-card {
        grid-template-columns: 1fr;
    }

    .settings-layout,
    .settings-two-column,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .chat-settings-split {
        grid-template-columns: 1fr;
        min-height: 0;
        max-height: none;
    }

    .chat-settings-title-list {
        max-height: 260px;
    }

    .settings-layout {
        height: auto;
        overflow: visible;
    }

    .evaluation-availability-picker-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .evaluation-availability-axis {
        overflow-x: auto;
    }

    .evaluation-availability-axis-labels,
    .evaluation-availability-timeline {
        min-width: 760px;
    }

    .candidate-interview-head {
        flex-direction: column;
    }

    .candidate-interview-info-grid {
        grid-template-columns: 1fr;
    }

    .candidate-interview-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .candidate-portal-panel-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .candidate-offer-summary {
        grid-template-columns: 1fr;
    }

    .settings-ai-panel {
        flex-direction: column;
    }

    .settings-ai-examples {
        justify-content: flex-start;
    }

    .settings-table-row,
    .settings-role-row,
    .settings-account-row,
    .migration-detail-row,
    .workflow-stage-item,
    .settings-inline-grid,
    .settings-mini-grid,
    .field-editor-row,
    .settings-summary-grid,
    .migration-plan,
    .module-filters,
    .module-table-row,
    .talent-row,
    .interview-row,
    .channel-quality-row,
    .interviewer-row,
    .report-grid,
    .efficiency-chart {
        grid-template-columns: 1fr;
    }

    .interview-schedule-body {
        padding: 0 18px 84px;
    }

    .modal.interview-schedule-modal .interview-schedule-content {
        width: calc(100vw - 24px);
    }

    .schedule-primary-grid,
    .schedule-secondary-grid,
    .schedule-contact-grid {
        grid-template-columns: 1fr;
    }

    .schedule-board-section {
        margin-left: -18px;
        margin-right: -18px;
    }

    .schedule-board-toolbar {
        padding: 0 18px;
        overflow-x: auto;
    }

    .notice-template-field {
        width: 100%;
    }
}

/* ========== 候选人详情统一优化 ========== */
.candidate-detail {
    --detail-bg: #f8fafc;
    --detail-surface: #ffffff;
    --detail-border: #e5e7eb;
    --detail-muted: #64748b;
    --detail-soft: #f1f5f9;
    padding: 0;
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    background: var(--detail-bg);
    box-shadow: none;
}

.candidate-detail .detail-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--detail-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.candidate-detail .detail-name-row {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.candidate-detail .detail-name-section {
    min-width: 0;
    gap: 8px;
}

.candidate-detail .detail-name {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0;
}

.candidate-detail .position-select {
    height: 30px;
    max-width: 220px;
    border-color: var(--detail-border);
    border-radius: 6px;
    background-color: #fff;
    color: #334155;
}

.candidate-detail .detail-stage,
.candidate-detail .tag-btn {
    margin-left: 0;
    border-radius: 999px;
    background: transparent;
    color: #334155;
}

.candidate-detail .detail-meta {
    gap: 8px;
}

.candidate-detail .detail-meta span,
.candidate-detail .tag-btn {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--detail-border);
    border-radius: 999px;
    background: transparent;
    color: var(--detail-muted);
    font-size: 12px;
    line-height: 1;
}

.candidate-detail .detail-meta i {
    color: #94a3b8;
}

.candidate-detail .detail-tabs {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.candidate-detail .tag-btn {
    border-color: #e5e7eb;
    background: transparent;
    color: #334155;
    cursor: default;
}

.candidate-detail .tag-btn:hover {
    background: transparent;
    color: #334155;
}

.candidate-detail .detail-actions-wrapper {
    align-self: stretch;
    justify-content: center;
}

.candidate-detail .detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 420px;
    margin-top: 0;
}

.candidate-detail .detail-actions .btn,
.candidate-detail .match-actions .btn,
.candidate-detail .interview-card-actions .btn,
.candidate-detail .offer-actions .btn,
.candidate-detail .card-header-actions .btn,
.candidate-detail .eval-actions .btn,
.candidate-detail .form-actions .btn,
.candidate-detail .feedback-actions .btn,
.candidate-detail .add-note .btn {
    min-height: 30px;
    padding: 7px 12px;
    border: 1px solid var(--detail-border);
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
}

.candidate-detail .detail-actions .btn:hover,
.candidate-detail .match-actions .btn:hover,
.candidate-detail .interview-card-actions .btn:hover,
.candidate-detail .offer-actions .btn:hover,
.candidate-detail .card-header-actions .btn:hover,
.candidate-detail .eval-actions .btn:hover,
.candidate-detail .form-actions .btn:hover,
.candidate-detail .feedback-actions .btn:hover,
.candidate-detail .add-note .btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.candidate-detail .detail-actions .btn-success,
.candidate-detail .offer-actions .btn-primary,
.candidate-detail .offer-actions .btn-success,
.candidate-detail .interview-header .btn-primary,
.candidate-detail .eval-submit-section .btn-primary,
.candidate-detail .form-actions .btn-primary,
.candidate-detail .feedback-actions .btn-primary,
.candidate-detail .add-note .btn-purple {
    background-color: #f1f5f9;
    border: none;
    color: #334155;
}

.candidate-detail .detail-actions .btn-success:hover,
.candidate-detail .offer-actions .btn-primary:hover,
.candidate-detail .offer-actions .btn-success:hover,
.candidate-detail .interview-header .btn-primary:hover,
.candidate-detail .eval-submit-section .btn-primary:hover,
.candidate-detail .form-actions .btn-primary:hover,
.candidate-detail .feedback-actions .btn-primary:hover,
.candidate-detail .add-note .btn-purple:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.candidate-detail .detail-actions .btn-danger,
.candidate-detail .match-actions .btn-danger,
.candidate-detail .card-header-actions .btn-danger,
.candidate-detail .eval-actions .btn-danger {
    background-color: #f1f5f9;
    border: none;
    color: #334155;
}

.candidate-detail .detail-actions .btn-danger:hover,
.candidate-detail .match-actions .btn-danger:hover,
.candidate-detail .card-header-actions .btn-danger:hover,
.candidate-detail .eval-actions .btn-danger:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.candidate-detail .stage-edit-btn,
.candidate-detail .detail-action-btn,
.candidate-detail .edit-btn,
.candidate-detail .file-action {
    width: 30px;
    height: 30px;
    border: 1px solid var(--detail-border);
    border-radius: 6px;
    background: #fff;
    color: #64748b;
}

.candidate-detail .stage-edit-btn:hover,
.candidate-detail .detail-action-btn:hover,
.candidate-detail .edit-btn:hover,
.candidate-detail .file-action:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.candidate-detail .metrics-grid-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(128px, 1fr));
    gap: 10px;
    margin: 14px 18px;
}

.candidate-detail .metric-card {
    height: auto;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    background: var(--detail-surface);
    align-items: stretch;
    gap: 10px;
}

.candidate-detail .metric-label {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    align-self: flex-start;
}

.candidate-detail .metric-score,
.candidate-detail .metric-result,
.candidate-detail .metric-value {
    margin-left: auto;
    align-self: flex-end;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    text-align: right;
    width: 100%;
    overflow-wrap: anywhere;
}

.candidate-detail .metric-score {
    color: #fff;
}

.candidate-detail .metric-result {
    color: #fff;
}

.candidate-detail .metric-result {
    font-size: 16px;
}

.candidate-detail .metric-result:only-child,
.candidate-detail .metric-score:only-child {
    font-size: 18px;
}

.candidate-detail .resume-section {
    margin: 0 18px 18px;
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.candidate-detail .section-header {
    padding: 10px 12px 0;
    border-bottom: 1px solid var(--detail-border);
    background: #fff;
}

.candidate-detail .section-tabs {
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.candidate-detail .tab-item {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.candidate-detail .tab-item:hover {
    background: var(--detail-soft);
    color: #0f172a;
}

.candidate-detail .tab-item.active {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #0f172a;
    font-weight: 600;
}

.candidate-detail .section-content {
    min-height: 420px;
    padding: 16px;
    border-radius: 0;
    background: #fff;
}

.candidate-detail .tab-content > div {
    max-width: 1120px;
}

.candidate-detail .resume-detail h4,
.candidate-detail .match-detail h4,
.candidate-detail .evaluation-detail h4,
.candidate-detail .ai-interview-detail h4,
.candidate-detail .interview-detail h4,
.candidate-detail .offer-detail h4,
.candidate-detail .notes-detail h4,
.candidate-detail .additional-detail h4,
.candidate-detail .history-detail h4,
.candidate-detail .offer-header h4,
.candidate-detail .interview-header h4 {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin: 18px 0 10px;
    padding: 0;
    border: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.candidate-detail .resume-detail h4:first-child,
.candidate-detail .ai-interview-detail h4:first-child,
.candidate-detail .notes-detail h4:first-child,
.candidate-detail .additional-detail h4:first-child,
.candidate-detail .history-detail h4:first-child {
    margin-top: 0;
}

.candidate-detail .detail-row,
.candidate-detail .eval-section,
.candidate-detail .ai-section,
.candidate-detail .ai-card,
.candidate-detail .next-action,
.candidate-detail .question-checklist,
.candidate-detail .question-item,
.candidate-detail .interview-card,
.candidate-detail .offer-edit-form,
.candidate-detail .offer-detail-card,
.candidate-detail .note-item,
.candidate-detail .upload-area,
.candidate-detail .file-item,
.candidate-detail .timeline-content {
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    background: #fff;
}

.candidate-detail .resume-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.candidate-detail .resume-detail h4 {
    grid-column: 1 / -1;
}

.candidate-detail .detail-row {
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
}

.candidate-detail #tab-original .resume-detail {
    display: block;
    width: 100%;
    max-width: none;
}

.candidate-detail #tab-original .detail-row {
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.candidate-detail .detail-label,
.candidate-detail .match-label,
.candidate-detail .eval-label,
.candidate-detail .interview-label,
.candidate-detail .offer-label {
    color: var(--detail-muted);
    font-weight: 500;
}

.candidate-detail .detail-value,
.candidate-detail .match-value,
.candidate-detail .eval-value,
.candidate-detail .interview-value,
.candidate-detail .offer-value {
    color: #0f172a;
}

.candidate-detail .match-score-header,
.candidate-detail .match-summary,
.candidate-detail .match-card,
.candidate-detail .match-detail-section,
.candidate-detail .ai-card,
.candidate-detail .interview-card,
.candidate-detail .offer-edit-form,
.candidate-detail .offer-detail-card,
.candidate-detail .note-item,
.candidate-detail .file-item {
    box-shadow: none;
}

.candidate-detail .match-score-header {
    border-radius: 8px;
}

.candidate-detail .match-summary,
.candidate-detail .next-action,
.candidate-detail .question-checklist {
    border-left-width: 3px;
}

.candidate-detail .ai-score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #334155;
}

.candidate-detail .ai-score .score-value {
    color: #0f172a;
}

.candidate-detail .ai-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-detail .ai-card {
    background: #fff;
}

.candidate-detail .next-action {
    border-color: #fde68a;
    background: #fffbeb;
}

.candidate-detail .question-checklist {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.candidate-detail .interview-header,
.candidate-detail .offer-header {
    margin-bottom: 12px;
}

.candidate-detail .interview-card-header,
.candidate-detail .card-header {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--detail-border);
    background: #fff;
}

.candidate-detail .interview-round,
.candidate-detail .card-status,
.candidate-detail .eval-value.pending,
.candidate-detail .eval-value.evaluated,
.candidate-detail .result-value,
.candidate-detail .result-score,
.candidate-detail .note-author,
.candidate-detail .note-private,
.candidate-detail .req-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.candidate-detail .interview-round {
    background: #f9fafb;
    color: #334155;
}

.candidate-detail .metric-result.pass {
    color: #fff;
}

.candidate-detail .metric-result.fail {
    color: #fff;
}

.candidate-detail .metric-result.pending {
    color: #fff;
}

.candidate-detail .metric-result.muted {
    color: #fff;
}

.candidate-detail .brief-icon.unmatched,
.candidate-detail .req-status.unmatched {
    background: #f9fafb;
    color: #334155;
}

.candidate-detail .interview-card-actions,
.candidate-detail .match-actions,
.candidate-detail .form-actions,
.candidate-detail .feedback-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.candidate-detail .card-header {
    flex-wrap: wrap;
    gap: 10px;
}

.candidate-detail .card-header-actions {
    flex: 0 1 auto;
    margin-left: auto;
}

.candidate-detail .card-body,
.candidate-detail .offer-edit-form {
    padding: 14px;
}

.candidate-detail .offer-info-row,
.candidate-detail .interview-info-row,
.candidate-detail .eval-item {
    min-height: 30px;
    margin-bottom: 6px;
}

.candidate-detail .form-input,
.candidate-detail .form-textarea,
.candidate-detail .eval-note-input,
.candidate-detail .feedback-note-input,
.candidate-detail .add-note textarea {
    border-color: var(--detail-border);
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
}

.candidate-detail .form-input:focus,
.candidate-detail .form-textarea:focus,
.candidate-detail .eval-note-input:focus,
.candidate-detail .feedback-note-input:focus,
.candidate-detail .add-note textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.candidate-detail .notes-list,
.candidate-detail .file-list,
.candidate-detail .interview-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-detail .note-item,
.candidate-detail .file-item {
    margin-bottom: 0;
}

.candidate-detail .upload-area {
    border-style: dashed;
    background: #f8fafc;
}

.candidate-detail .upload-area:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.candidate-detail .timeline {
    padding-left: 26px;
}

.candidate-detail .timeline::before {
    left: 8px;
    background: var(--detail-border);
}

.candidate-detail .timeline-item {
    padding-bottom: 12px;
}

.candidate-detail .timeline-dot {
    left: -23px;
    top: 13px;
    background: #2563eb;
    box-shadow: 0 0 0 3px #dbeafe;
}

.candidate-detail .timeline-content {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* 候选人头部对齐优化 */
.candidate-detail .detail-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 18px 20px;
}

.candidate-detail .detail-info {
    min-width: 0;
}

.candidate-detail .detail-name-row {
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 88px;
}

.candidate-detail .detail-name-section {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.candidate-detail .detail-name {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: 21px;
    line-height: 32px;
}

.candidate-detail .position-select-wrapper {
    flex: 0 1 auto;
    min-width: 0;
}

.candidate-detail .position-select {
    width: 100%;
    min-width: 180px;
    max-width: 260px;
    height: 32px;
}

.candidate-detail .detail-stage {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.candidate-detail .detail-action-buttons {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 0;
}

.candidate-detail .stage-edit-btn,
.candidate-detail .detail-action-btn {
    width: 32px;
    height: 32px;
}

.candidate-detail .detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.candidate-detail .detail-meta span,
.candidate-detail .tag-btn {
    height: 28px;
    padding: 0 11px;
    font-size: 13px;
}

.candidate-detail .detail-tabs {
    display: flex;
    flex-wrap: wrap;
    min-height: 28px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0;
    padding: 0 min(48vw, 660px) 0 0;
    background: transparent;
    border-top: 0;
}

.candidate-detail .detail-tabs .tag-btn {
    margin-top: 0;
    transform: none;
    background: #fff;
}

.candidate-detail .detail-actions-wrapper {
    position: absolute;
    right: 20px;
    bottom: 18px;
    align-items: flex-end;
    padding-top: 0;
    margin-top: 0;
}

.candidate-detail .detail-actions {
    justify-content: flex-end;
    align-items: center;
    max-width: 660px;
}

.candidate-detail .detail-actions .btn {
    min-height: 36px;
    padding: 0 16px;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .candidate-detail .detail-header {
        grid-template-columns: 1fr;
    }

    .candidate-detail .detail-actions-wrapper,
    .candidate-detail .detail-actions {
        align-items: flex-start;
        justify-content: flex-start;
        max-width: none;
    }

    .candidate-detail .detail-actions-wrapper {
        position: static;
        padding-top: 0;
        margin-top: 0;
    }

    .candidate-detail .detail-action-buttons {
        position: static;
        margin-left: 8px;
    }

    .candidate-detail .detail-tabs {
        padding-right: 0;
    }

    .candidate-detail .metrics-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .candidate-detail .detail-header,
    .candidate-detail .metrics-grid-row,
    .candidate-detail .resume-section {
        margin-left: 12px;
        margin-right: 12px;
    }

    .candidate-detail .detail-header {
        padding: 14px;
    }

    .candidate-detail .metrics-grid-row,
    .candidate-detail .resume-detail,
    .candidate-detail .ai-cards {
        grid-template-columns: 1fr;
    }

    .candidate-detail .section-content {
        padding: 12px;
    }

    .candidate-detail .metric-card {
        min-height: 68px;
        padding: 10px 12px;
    }

    .candidate-detail .metric-score,
    .candidate-detail .metric-value {
        font-size: 18px;
    }

    .candidate-detail .metric-result {
        font-size: 16px;
    }
}

/* 候选人列表卡片紧凑化 */
#page-candidates .candidates-list {
    width: 320px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
}

#page-candidates .candidate-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 6px;
    row-gap: 1px;
    min-height: 70px;
    margin-bottom: 6px;
    padding: 9px 42px 9px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    align-items: start;
}

#page-candidates .candidate-item:hover {
    border-color: #e5e7eb;
    background: #f8fafc;
}

#page-candidates .candidate-item.active {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

#page-candidates .candidate-avatar-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
}

#page-candidates .candidate-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef2ff;
    box-shadow: inset 0 0 0 1px #c7d2fe;
}

#page-candidates .candidate-avatar::before {
    display: none;
}

#page-candidates .candidate-avatar img {
    width: 34px;
    height: 34px;
    margin: 2px;
}

#page-candidates .status-dot {
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
}

#page-candidates .candidate-info {
    display: contents;
}

#page-candidates .candidate-name-row {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr);
    height: 19px;
    gap: 6px;
    padding-right: 0;
    align-items: center;
    overflow: hidden;
}

#page-candidates .candidate-name {
    max-width: 88px;
    font-size: 14px;
    line-height: 19px;
    font-weight: 700;
}

#page-candidates .candidate-date {
    margin-left: 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 16px;
    white-space: nowrap;
    transform: translateY(1px);
}

#page-candidates .candidate-title-row,
#page-candidates .candidate-bottom {
    min-height: 18px;
    gap: 5px;
    align-items: center;
    overflow: hidden;
}

#page-candidates .candidate-title-row {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    justify-content: start;
}

#page-candidates .candidate-bottom {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    justify-content: start;
    margin-top: 2px;
}

#page-candidates .candidate-title,
#page-candidates .candidate-department,
#page-candidates .candidate-company {
    color: #64748b;
    font-size: 11px;
    line-height: 18px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-candidates .candidate-department {
    color: #94a3b8;
}

#page-candidates .candidate-company {
    max-width: 190px;
}

#page-candidates .candidate-channel {
    max-width: 76px;
    height: 18px;
    padding: 0 6px;
    color: #64748b;
    background: #f8fafc;
    font-size: 10px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-candidates .candidate-item > .candidate-score,
#page-candidates .candidate-score-wrap {
    position: absolute;
    top: 9px;
    right: 9px;
}

#page-candidates .candidate-item > .candidate-score,
#page-candidates .candidate-score-wrap .candidate-score {
    grid-column: auto;
    grid-row: auto;
    min-width: 32px;
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
}

#page-candidates .candidate-score-sub {
    height: 18px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* ========== 候选人管理页面层级优化 ========== */
#page-candidates {
    --candidate-page-bg: #f6f8fb;
    --candidate-panel: #ffffff;
    --candidate-border: #dfe5ee;
    --candidate-border-soft: #edf1f6;
    --candidate-text: #111827;
    --candidate-muted: #64748b;
    --candidate-primary: #2563eb;
    --candidate-primary-soft: #eff6ff;
    --candidate-success: #059669;
    --candidate-warning: #d97706;
    --candidate-danger: #dc2626;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    background: var(--candidate-page-bg);
}

#page-candidates .header {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--candidate-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

#page-candidates .page-title {
    color: var(--candidate-text);
    font-size: 22px;
    font-weight: 750;
    line-height: 30px;
}

#page-candidates .header-right {
    gap: 10px;
}

#page-candidates .header .search-box {
    height: 36px;
    min-width: 220px;
    border: 1px solid var(--candidate-border);
    border-radius: 9px;
    background: #f8fafc;
}

#page-candidates .header .search-box input {
    font-size: 13px;
}

#page-candidates .btn-ai {
    height: 36px;
    border-radius: 9px;
    box-shadow: none;
}

#page-candidates .stats-section {
    flex: 0 0 auto;
    gap: 8px;
    padding: 14px 20px 10px;
    background: var(--candidate-page-bg);
}

#page-candidates .stat-card {
    width: auto;
    min-width: 118px;
    min-height: 54px;
    padding: 10px 12px 10px 14px;
    gap: 4px;
    border: 1px solid var(--candidate-border);
    border-radius: 9px;
    background: var(--candidate-panel);
    box-shadow: none;
    position: relative;
}

#page-candidates .stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
}

#page-candidates .stat-card:hover {
    border-color: #cbd5e1;
    background: #fff;
}

#page-candidates .stat-card.active {
    border-color: #bfdbfe;
    background: var(--candidate-primary-soft);
    color: #1d4ed8;
}

#page-candidates .stat-card.active::before {
    background: var(--candidate-primary);
}

#page-candidates .stat-label {
    color: var(--candidate-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 16px;
}

#page-candidates .stat-number {
    color: var(--candidate-text);
    font-size: 18px;
    font-weight: 760;
    line-height: 22px;
}

#page-candidates .stat-card.active .stat-label,
#page-candidates .stat-card.active .stat-number {
    color: #1d4ed8;
}

#page-candidates .content-section {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 20px 20px;
    background: var(--candidate-page-bg);
}

#page-candidates .search-bar {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--candidate-border);
    border-radius: 12px;
    background: var(--candidate-panel);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: visible;
}

#page-candidates .filter-config,
#page-candidates .multi-filter {
    z-index: 40;
}

#page-candidates .filter-config.open,
#page-candidates .multi-filter.open {
    z-index: 80;
}

#page-candidates .filter-config-panel,
#page-candidates .multi-filter-panel {
    z-index: 90;
}

#page-candidates .search-input-wrapper {
    flex: 1 0 300px;
    min-width: 260px;
}

#page-candidates .search-input-wrapper input {
    width: 100%;
    height: 36px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--candidate-border);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--candidate-text);
    font-size: 13px;
}

#page-candidates .search-input-wrapper input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#page-candidates .filter-config-btn,
#page-candidates .filter-select,
#page-candidates .multi-filter-btn {
    height: 36px;
    min-width: 108px;
    border-color: var(--candidate-border);
    border-radius: 9px;
    background-color: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 560;
}

#page-candidates .filter-config-btn {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: var(--candidate-primary-soft);
}

#page-candidates .filter-select:hover,
#page-candidates .multi-filter-btn:hover,
#page-candidates .filter-config-btn:hover,
#page-candidates .filter-config.open .filter-config-btn,
#page-candidates .multi-filter.open .multi-filter-btn {
    border-color: #93c5fd;
    background: #fff;
    color: #1e293b;
}

#page-candidates .candidates-wrapper {
    gap: 14px;
    min-height: 0;
}

#page-candidates .candidates-list {
    flex: 0 0 344px;
    width: 344px;
    padding: 10px;
    border: 1px solid var(--candidate-border);
    border-radius: 12px;
    background: var(--candidate-panel);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-item {
    min-height: 82px;
    margin-bottom: 8px;
    padding: 11px 48px 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

#page-candidates .candidate-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
}

#page-candidates .candidate-item:hover {
    border-color: var(--candidate-border-soft);
    background: #fbfdff;
}

#page-candidates .candidate-item.active {
    border-color: #bfdbfe;
    background: var(--candidate-primary-soft);
}

#page-candidates .candidate-item.active::before {
    background: var(--candidate-primary);
}

#page-candidates .candidate-avatar-wrap {
    width: 40px;
    height: 40px;
}

#page-candidates .candidate-avatar {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #dbe3ef;
}

#page-candidates .candidate-avatar img {
    width: 36px;
    height: 36px;
}

#page-candidates .candidate-name-row {
    height: 21px;
    gap: 7px;
}

#page-candidates .candidate-name {
    max-width: 116px;
    color: var(--candidate-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 21px;
}

#page-candidates .candidate-date {
    color: #94a3b8;
    font-size: 11px;
}

#page-candidates .candidate-title,
#page-candidates .candidate-department,
#page-candidates .candidate-company {
    font-size: 12px;
    line-height: 19px;
}

#page-candidates .candidate-title {
    color: #334155;
    font-weight: 560;
}

#page-candidates .candidate-department,
#page-candidates .candidate-company {
    color: var(--candidate-muted);
}

#page-candidates .candidate-company {
    max-width: 220px;
}

#page-candidates .candidate-channel {
    height: 20px;
    max-width: 86px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    line-height: 18px;
}

#page-candidates .candidate-item > .candidate-score,
#page-candidates .candidate-score-wrap {
    top: 11px;
    right: 11px;
}

#page-candidates .candidate-item > .candidate-score,
#page-candidates .candidate-score-wrap .candidate-score {
    min-width: 34px;
    height: 24px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 750;
    line-height: 22px;
}

#page-candidates .candidate-item[data-stage="评估"] > .candidate-score.evaluation-pass {
    border-color: #bbf7d0;
    background: #dcfce7;
    color: var(--candidate-success);
}

#page-candidates .candidate-item[data-stage="评估"] > .candidate-score.evaluation-reject {
    border-color: #fecaca;
    background: #fee2e2;
    color: var(--candidate-danger);
}

#page-candidates .candidate-item[data-stage="评估"] > .candidate-score.evaluation-pending,
#page-candidates .candidate-item[data-stage="评估"] > .candidate-score.evaluation-waiting {
    border-color: #fed7aa;
    background: #ffedd5;
    color: var(--candidate-warning);
}

#page-candidates .candidate-detail {
    flex: 1 1 auto;
    border: 1px solid var(--candidate-border);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-detail .detail-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--candidate-border);
    background: #fff;
}

#page-candidates .candidate-detail .detail-name {
    color: var(--candidate-text);
    font-size: 22px;
    font-weight: 780;
}

#page-candidates .candidate-detail .position-select {
    border-color: var(--candidate-border);
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
}

#page-candidates .candidate-detail .detail-stage {
    border: 1px solid #bfdbfe;
    background: var(--candidate-primary-soft);
    color: #1d4ed8;
}

#page-candidates .candidate-detail .detail-meta span,
#page-candidates .candidate-detail .tag-btn {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

#page-candidates .candidate-detail .detail-tabs .tag-btn {
    background: #f8fafc;
}

#page-candidates .candidate-detail .detail-tabs .editable-tag {
    gap: 6px;
    cursor: default;
}

/* 标签与「添加标签」按钮保持在同一行、不换行、不压缩 */
#candidate-detail-tags {
    flex-wrap: nowrap;
    padding-right: 0;
    overflow-x: auto;
}

#candidate-detail-tags .tag-btn {
    flex-shrink: 0;
}

#page-candidates .candidate-detail .tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    color: #94a3b8;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

#page-candidates .candidate-detail .editable-tag:hover .tag-remove {
    opacity: 1;
}

#page-candidates .candidate-detail .tag-remove:hover {
    background: #e2e8f0;
    color: #334155;
}

#page-candidates .candidate-detail .tag-add-btn {
    min-width: 30px;
    padding: 0 9px;
    color: #1d4ed8;
    cursor: pointer;
}

#page-candidates .candidate-detail .tag-add-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

#page-candidates .candidate-detail .detail-actions {
    gap: 7px;
}

#page-candidates .candidate-detail .detail-actions .btn {
    height: 34px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--candidate-border);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
}

#page-candidates .candidate-detail .detail-actions #schedule-evaluation-btn,
#page-candidates .candidate-detail .detail-actions #schedule-interview-btn {
    border-color: #93c5fd;
    background: var(--candidate-primary);
    color: #fff;
}

#page-candidates .candidate-detail .detail-actions #create-offer-btn,
#page-candidates .candidate-detail .detail-actions #checkin-btn {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: var(--candidate-success);
}

#page-candidates .candidate-detail .detail-actions #eliminate-btn {
    border-color: #fecaca;
    background: #fff;
    color: var(--candidate-danger);
}

#page-candidates .candidate-detail .detail-actions .btn:hover {
    transform: none;
    box-shadow: none;
}

#page-candidates .candidate-detail .metrics-grid-row {
    gap: 12px;
    margin: 16px 18px;
}

#page-candidates .candidate-detail .metric-card {
    min-height: 78px;
    border-color: var(--candidate-border);
    border-radius: 10px;
    background: #fff;
}

#page-candidates .candidate-detail .metric-label {
    color: #fff;
    font-size: 12px;
    font-weight: 650;
}

#page-candidates .candidate-detail .metric-score,
#page-candidates .candidate-detail .metric-result,
#page-candidates .candidate-detail .metric-value {
    color: #fff;
    font-size: 18px;
}

#page-candidates .candidate-detail .resume-section {
    margin: 0 18px 18px;
    border-color: var(--candidate-border);
    border-radius: 12px;
}

#page-candidates .candidate-detail .section-header {
    padding: 12px 14px 0;
}

#page-candidates .candidate-detail .tab-item {
    border-radius: 8px;
    color: #475569;
    font-weight: 580;
}

#page-candidates .candidate-detail .tab-item.active {
    border-color: #bfdbfe;
    background: var(--candidate-primary-soft);
    color: #1d4ed8;
}

#page-candidates .candidate-detail .section-content {
    padding: 18px;
}

#page-candidates .candidate-detail .resume-detail h4,
#page-candidates .candidate-detail .match-detail h4,
#page-candidates .candidate-detail .evaluation-detail h4,
#page-candidates .candidate-detail .ai-interview-detail h4,
#page-candidates .candidate-detail .interview-detail h4,
#page-candidates .candidate-detail .offer-detail h4,
#page-candidates .candidate-detail .notes-detail h4,
#page-candidates .candidate-detail .additional-detail h4,
#page-candidates .candidate-detail .history-detail h4 {
    color: var(--candidate-text);
    font-size: 15px;
    font-weight: 760;
}

#page-candidates .candidate-detail .detail-row,
#page-candidates .candidate-detail .eval-section,
#page-candidates .candidate-detail .ai-section,
#page-candidates .candidate-detail .ai-card,
#page-candidates .candidate-detail .next-action,
#page-candidates .candidate-detail .question-checklist,
#page-candidates .candidate-detail .question-item,
#page-candidates .candidate-detail .interview-card,
#page-candidates .candidate-detail .offer-edit-form,
#page-candidates .candidate-detail .offer-detail-card,
#page-candidates .candidate-detail .note-item,
#page-candidates .candidate-detail .upload-area,
#page-candidates .candidate-detail .file-item,
#page-candidates .candidate-detail .timeline-content {
    border-color: var(--candidate-border-soft);
}

@media (max-width: 1180px) {
    #page-candidates .candidates-wrapper {
        flex-direction: column;
    }

    #page-candidates .candidates-list {
        width: 100%;
        flex-basis: auto;
        max-height: 360px;
    }
}

@media (max-width: 768px) {
    #page-candidates .header {
        padding: 12px 14px;
    }

    #page-candidates .stats-section,
    #page-candidates .content-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    #page-candidates .search-input-wrapper {
        flex-basis: 240px;
        min-width: 220px;
    }
}

/* ========== 候选人阶段卡片：流程条样式 ========== */
#page-candidates .stats-section {
    gap: 0;
    padding: 12px 20px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

#page-candidates .stats-section::-webkit-scrollbar {
    display: none;
}

#page-candidates .stat-card {
    flex: 1 0 136px;
    min-width: 136px;
    min-height: 76px;
    justify-content: space-between;
    gap: 6px;
    padding: 16px 24px 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

#page-candidates .stat-card:first-child {
    border-radius: 10px 0 0 10px;
}

#page-candidates .stat-card:last-child {
    border-radius: 0 10px 10px 0;
}

#page-candidates .stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: 36px;
    border: 0;
    background: #e5e7eb;
    transform: none;
    z-index: 2;
    pointer-events: none;
}

#page-candidates .stat-card::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 4px;
    border-radius: 0;
    background: transparent;
}

#page-candidates .stat-card:hover {
    border-color: transparent;
    background: #fff;
}

#page-candidates .stat-card.active {
    border-color: transparent;
    background: #fff;
    color: #2f74ff;
}

#page-candidates .stat-card.active::before {
    background: #2f74ff;
}

#page-candidates .stat-number {
    order: 1;
    color: #5f6875;
    font-size: 28px;
    font-weight: 500;
    line-height: 32px;
}

#page-candidates .stat-label {
    order: 2;
    color: #5f6875;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

#page-candidates .stat-card.active .stat-label,
#page-candidates .stat-card.active .stat-number {
    color: #2f74ff;
}

@media (max-width: 1180px) {
    #page-candidates .stat-card {
        flex: 0 0 128px;
        min-width: 128px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ========== 候选人详情：高级感与层级优化 ========== */
#page-candidates .candidate-detail {
    background: #f7f9fc;
    border-color: #d8e0eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-detail .detail-header {
    padding: 24px 26px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
        radial-gradient(circle at 0 0, rgba(47, 116, 255, 0.08), transparent 34%);
    border-bottom-color: #d8e0eb;
}

#page-candidates .candidate-detail .detail-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

#page-candidates .candidate-detail .detail-stage {
    height: 32px;
    padding: 0 14px;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 750;
}

#page-candidates .candidate-detail .detail-meta span,
#page-candidates .candidate-detail .tag-btn {
    height: 30px;
    border-color: #dce4ef;
    background: #f8fafc;
    color: #475569;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#page-candidates .candidate-detail .detail-action-buttons button {
    border-color: #d8e0eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-detail .detail-actions .btn {
    border-color: #d8e0eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-detail .detail-actions #schedule-evaluation-btn,
#page-candidates .candidate-detail .detail-actions #schedule-interview-btn {
    border-color: #2f74ff;
    background: #2f74ff;
    color: #fff;
}

#page-candidates .candidate-detail .detail-actions #create-offer-btn,
#page-candidates .candidate-detail .detail-actions #checkin-btn {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

#page-candidates .candidate-detail .detail-actions #eliminate-btn {
    border-color: #fecaca;
    background: #fff;
    color: #dc2626;
}

#page-candidates .candidate-detail .metrics-grid-row {
    gap: 14px;
    margin: 18px 20px 16px;
}

/* 初筛阶段：只保留「画像匹配」和「基本信息」两张卡片；画像匹配保持原尺寸(1/4)，基本信息占据剩余宽度 */
#page-candidates .candidate-detail.stage-pre-screen .metrics-grid-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

#page-candidates .candidate-detail.stage-pre-screen #basic-info-card {
    grid-column: span 3;
}

/* 「基本信息」卡片：标题在上，学历院校信息在下 */
#page-candidates .candidate-detail #basic-info-card {
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

#page-candidates .candidate-detail #basic-info-card .basic-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* 每条院校信息：学校、专业、时间保持一行显示 */
#page-candidates .candidate-detail #basic-info-card .basic-info-edu {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

#page-candidates .candidate-detail #basic-info-card .basic-info-edu-degree {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.3;
}

#page-candidates .candidate-detail #basic-info-card .basic-info-edu-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 系统推荐阶段「推荐理由」卡片：岗位画像匹配概括 */
#page-candidates .candidate-detail #basic-info-card .recommend-reason-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#page-candidates .candidate-detail #basic-info-card .recommend-reason-text {
    margin: 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

#page-candidates .candidate-detail #basic-info-card .recommend-reason-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#page-candidates .candidate-detail #basic-info-card .recommend-reason-tag {
    padding: 2px 8px;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
    line-height: 1.4;
}

/* 评估阶段：浮动垂直按钮组（悬浮在页面右侧，对齐详情右边沿，滚动时保持可见） */
#page-candidates .candidate-detail.stage-evaluation {
    position: relative;
}

#page-candidates .candidate-detail.stage-evaluation .detail-header {
    padding-right: 110px;
}

#page-candidates .candidate-detail.stage-evaluation .detail-actions-wrapper {
    position: sticky;
    right: 20px;
    top: 20px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

#page-candidates .candidate-detail.stage-evaluation .detail-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#page-candidates .candidate-detail.stage-evaluation .detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

#page-candidates .candidate-detail.stage-evaluation .detail-actions .btn {
    padding: 8px 12px;
    min-height: auto;
    white-space: nowrap;
}

#page-candidates .candidate-detail.stage-evaluation .stage-edit-btn,
#page-candidates .candidate-detail.stage-evaluation .detail-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

#page-candidates .candidate-detail .metric-card {
    position: relative;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

#page-candidates .candidate-detail .metric-card::before {
    content: none;
}

#page-candidates .candidate-detail .metric-label {
    color: #5f6875;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

#page-candidates .candidate-detail .metric-score,
#page-candidates .candidate-detail .metric-result,
#page-candidates .candidate-detail .metric-value {
    color: #5f6875;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
}

#page-candidates .candidate-detail .metric-result {
    font-size: 18px;
    line-height: 24px;
}

#page-candidates .candidate-detail .metric-result.muted,
#page-candidates .candidate-detail .metric-result.pending {
    color: #94a3b8;
}

#page-candidates .candidate-detail .metric-result.pass {
    color: #047857;
}

#page-candidates .candidate-detail .metric-result.fail {
    color: #dc2626;
}

#page-candidates .candidate-detail .resume-section {
    margin: 0 20px 20px;
    border-color: #dce4ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#page-candidates .candidate-detail .section-header {
    padding: 14px 18px 0;
    border-bottom-color: #e6ebf2;
}

#page-candidates .candidate-detail .section-tabs {
    gap: 8px;
}

#page-candidates .candidate-detail .tab-item {
    min-height: 38px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-weight: 700;
}

#page-candidates .candidate-detail .tab-item.active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

#page-candidates .candidate-detail .section-content {
    padding: 22px;
    background: #fff;
}

#page-candidates .candidate-detail .interview-card,
#page-candidates .candidate-detail .offer-detail-card,
#page-candidates .candidate-detail .offer-edit-form,
#page-candidates .candidate-detail .detail-row,
#page-candidates .candidate-detail .eval-section,
#page-candidates .candidate-detail .ai-card,
#page-candidates .candidate-detail .note-item,
#page-candidates .candidate-detail .file-item {
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* 录用决策综合评估报告 */
.hire-report-content {
    width: 720px;
    max-width: 92vw;
}

.hire-report-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8fafc;
}

.hire-report-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}

.hire-report-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 3px solid #6366f1;
}

.hire-report-section-title .hr-total {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

.hire-report-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.hire-info-cell {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hire-info-cell .hr-label,
.hire-round-note .hr-label {
    color: #64748b;
    font-size: 13px;
    min-width: 72px;
}

.hire-info-cell .hr-value,
.hire-round-note .hr-value {
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
}

.hire-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hire-report-table th {
    text-align: left;
    color: #64748b;
    font-weight: 600;
    padding: 8px 10px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.hire-report-table td {
    padding: 9px 10px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.hire-report-table .hr-note-cell {
    color: #64748b;
}

.hr-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.hr-status.matched {
    background: #dcfce7;
    color: #16a34a;
}

.hr-status.unmatched {
    background: #fee2e2;
    color: #dc2626;
}

.hire-report-round {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.hire-report-round:last-child {
    margin-bottom: 0;
}

.hire-round-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hire-round-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.hire-round-concl {
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
}

.hire-round-concl.pass {
    background: #dcfce7;
    color: #16a34a;
}

.hire-round-concl.fail {
    background: #fee2e2;
    color: #dc2626;
}

.hire-round-concl.pending {
    background: #fef3c7;
    color: #d97706;
}

.hire-round-score {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
}

.hire-sub-dim {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
}

.hire-sub-dim-name {
    color: #64748b;
    min-width: 72px;
}

.hire-sub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hire-sub-chip {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    color: #334155;
}

.hire-sub-chip b {
    color: #6366f1;
}

.hire-round-note {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.hire-comp-model {
    font-size: 12px;
    color: #6366f1;
    margin-bottom: 10px;
}

.hire-comp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 8px;
}

.hire-comp-row:last-child {
    margin-bottom: 0;
}

.hire-comp-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.hire-comp-weight {
    font-size: 12px;
    color: #64748b;
    margin-right: 16px;
}

.hire-comp-score {
    font-size: 13px;
    color: #334155;
}

.hire-comp-score b {
    color: #6366f1;
    font-size: 15px;
}

/* 胜任力评分 - 子维度得分小卡片 + 综合评估汇总卡片 */
.hire-comp-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 4px 0 10px;
}

.hire-comp-subtitle:not(:first-of-type) {
    margin-top: 18px;
}

.hire-comp-subtitle-hint {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.hire-comp-dim-block {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fbfcfe;
}

.hire-comp-dim-block:last-of-type {
    margin-bottom: 0;
}

.hire-comp-dim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hire-comp-dim-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.hire-comp-dim-meta {
    font-size: 12px;
    color: #64748b;
}

.hire-comp-dim-meta b {
    color: #6366f1;
}

.hire-score-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hire-score-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.hire-score-card-label {
    font-size: 12px;
    color: #64748b;
}

.hire-score-card-value {
    font-size: 13px;
    color: #1e293b;
}

.hire-score-card-value b {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
}

.hire-score-card-value i {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    margin-left: 2px;
}

.hire-score-card-value .na {
    font-size: 12px;
    color: #cbd5e1;
}

.hire-score-card-meta {
    font-size: 11px;
    color: #94a3b8;
}

.hire-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hire-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.hire-summary-card.match {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hire-summary-card.comp {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.hire-summary-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.hire-summary-label {
    font-size: 12px;
    color: #64748b;
}

.hire-summary-card.total .hire-summary-label {
    color: rgba(255, 255, 255, 0.85);
}

.hire-summary-value b {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
}

.hire-summary-card.match .hire-summary-value b {
    color: #2563eb;
}

.hire-summary-card.comp .hire-summary-value b {
    color: #6d28d9;
}

.hire-summary-card.total .hire-summary-value b {
    color: #fff;
}

.hire-summary-value i {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    margin-left: 2px;
}

.hire-summary-card.total .hire-summary-value i {
    color: rgba(255, 255, 255, 0.85);
}

.hire-summary-value .na {
    font-size: 16px;
    color: #cbd5e1;
}

.hire-summary-hint {
    font-size: 11px;
    color: #94a3b8;
}

.hire-summary-card.total .hire-summary-hint {
    color: rgba(255, 255, 255, 0.8);
}

.hire-decision-options {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.hire-decision-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.hire-decision-note {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.hire-report-empty {
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
}

.hire-report-empty.small {
    padding: 4px 0;
    font-size: 12px;
}

.interview-header-actions {
    display: flex;
    gap: 10px;
}

.candidate-interview-report-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 18px 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.candidate-interview-report-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.interview-report-notify-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.interview-report-notify-btn:hover:not(:disabled) {
    border-color: #6366f1;
    color: #4338ca;
}

.interview-report-notify-btn.is-disabled,
.interview-report-notify-btn:disabled,
.job-board-interview-report-card.is-disabled .job-board-interview-report-notify-btn {
    background: #e5e7eb;
    color: #94a3b8;
    cursor: not-allowed;
}

.interview-report-btn,
.job-board-interview-report-card button:not(.interview-report-notify-btn) {
    position: relative;
}

.interview-report-btn.is-disabled,
.interview-report-btn:disabled,
.job-board-interview-report-card.is-disabled button:not(.interview-report-notify-btn),
.job-board-interview-report-card button:not(.interview-report-notify-btn):disabled {
    border-color: #cbd5e1;
    background: #e5e7eb;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.interview-report-notice {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.interview-report-notice.in-card {
    top: 5px;
    right: 5px;
}

.evaluation-availability-content {
    width: 944px;
    max-width: 96vw;
}

.evaluation-availability-hint {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.evaluation-availability-slots {
    display: grid;
    gap: 12px;
}

.evaluation-availability-picker {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.evaluation-availability-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.evaluation-availability-active-date {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.evaluation-availability-guide {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.evaluation-availability-date-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 14px;
    border-bottom: 1px solid #edf2f7;
}

.evaluation-availability-date-list button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.evaluation-availability-date-list button.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.evaluation-availability-axis {
    user-select: none;
}

.evaluation-availability-axis-labels {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.evaluation-availability-axis-labels span {
    transform: translateX(-50%);
}

.evaluation-availability-axis-labels span:first-child {
    transform: none;
}

.evaluation-availability-axis-labels span:last-child {
    transform: translateX(0);
}

.evaluation-availability-timeline {
    position: relative;
    height: 82px;
    border-top: 1px solid #e2e8f0;
    background: #e9eef5;
    cursor: crosshair;
    touch-action: none;
}

.evaluation-availability-grid-lines span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(203, 213, 225, 0.72);
}

.evaluation-availability-range {
    position: absolute;
    top: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.evaluation-availability-range.is-draft {
    border-color: rgba(17, 24, 39, 0.38);
    background: rgba(17, 24, 39, 0.16);
    color: #111827;
}

.evaluation-availability-selected {
    display: grid;
    gap: 6px;
    padding: 10px 14px 12px;
    border-top: 1px solid #e5e7eb;
}

.evaluation-availability-selected strong {
    color: #0f172a;
    font-size: 12px;
}

.evaluation-availability-selected p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.evaluation-availability-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.evaluation-availability-selected-list button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.evaluation-availability-selected-list i {
    color: #94a3b8;
}

.evaluation-availability-day {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.evaluation-availability-day strong {
    color: #0f172a;
    font-size: 13px;
}

.evaluation-availability-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.evaluation-availability-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.evaluation-availability-chip input {
    accent-color: var(--primary-color);
}

/* ===== 新建职位下拉菜单 ===== */
.job-create-dropdown {
    position: relative;
    display: inline-block;
}
.job-create-dropdown .job-create-caret {
    margin-left: 6px;
    font-size: 11px;
    transition: transform 0.2s;
}
.job-create-dropdown.open .job-create-caret {
    transform: rotate(180deg);
}
.job-create-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    padding: 6px;
    display: none;
    z-index: 1100;
}
.job-create-dropdown.open .job-create-menu {
    display: block;
}
.job-create-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.job-create-item:hover {
    background: #f1f5f9;
}
.job-create-item > i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
}
.job-create-item[data-create="ai"] > i {
    background: #f5f3ff;
    color: #7c3aed;
}
.job-create-item[data-create="import"] > i {
    background: #ecfdf5;
    color: #16a34a;
}
.job-create-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.job-create-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.job-create-item-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== AI 创建职位弹框 ===== */
.modal-content.ai-job-content {
    width: 720px;
    max-width: 92vw;
}
.modal-body.ai-job-body {
    padding: 20px 24px;
    max-height: 68vh;
    overflow-y: auto;
}
.ai-job-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.ai-job-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}
.ai-job-step-dot span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.ai-job-step-dot.active {
    color: #7c3aed;
}
.ai-job-step-dot.active span {
    background: #7c3aed;
    color: #fff;
}
.ai-job-step-dot.done span {
    background: #ede9fe;
    color: #7c3aed;
}
.ai-job-step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
}
.ai-job-bubble {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}
.ai-job-bubble-ai > i {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 14px;
}
.ai-job-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.ai-job-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.ai-job-field input,
.ai-job-field select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.ai-job-field input:focus,
.ai-job-field select:focus {
    border-color: #7c3aed;
}
.ai-job-tag-group {
    margin-bottom: 16px;
}
.ai-job-tag-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}
.ai-job-tag-title > i {
    color: #7c3aed;
    font-size: 13px;
}
.ai-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-job-tag {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.ai-job-tag:hover {
    border-color: #a78bfa;
}
.ai-job-tag.selected {
    background: #f5f3ff;
    border-color: #7c3aed;
    color: #7c3aed;
    font-weight: 600;
}
.ai-job-tag.selected::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 11px;
}
.ai-job-tag.custom {
    border-style: dashed;
}
.ai-job-custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.ai-job-custom-input {
    flex: 1;
    min-width: 120px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
}
.ai-job-custom-input:focus {
    border-color: #7c3aed;
}
.ai-job-custom-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    background: #fff;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.ai-job-custom-add:hover:not(:disabled) {
    background: #f5f3ff;
}
.ai-job-custom-add:disabled,
.ai-job-custom-input:disabled {
    opacity: 0.6;
    cursor: default;
}
.ai-job-basic {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
.ai-job-basic-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}
.ai-job-basic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.ai-job-basic-grid .ai-job-field {
    margin-bottom: 0;
}
.ai-job-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-job-preview-section {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}
.ai-job-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.ai-job-preview-head > i {
    color: #7c3aed;
}
.ai-job-preview-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.ai-job-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.ai-job-preview-text {
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    white-space: pre-wrap;
}
.ai-job-portrait {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.ai-job-portrait-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-job-portrait-item .label {
    font-size: 12px;
    color: #94a3b8;
}
.ai-job-portrait-item .value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.ai-job-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-job-preview-tags .pill {
    padding: 4px 12px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
}
.ai-job-preview-tags .pill.pro {
    background: #eff6ff;
    color: #2563eb;
}
.ai-job-preview-tags .pill.exp {
    background: #ecfdf5;
    color: #059669;
}
.ai-job-preview-tags .pill.general {
    background: #fffbeb;
    color: #b45309;
}
.ai-job-preview-tags .pill.bonus {
    background: #fef2f2;
    color: #dc2626;
}
.modal-footer.ai-job-footer {
    gap: 10px;
}

/* ===== AI 创建职位弹框（对话形式）===== */
.modal-content.ai-job-chat-content {
    width: 640px;
    max-width: 92vw;
    height: 680px;
    max-height: 88vh;
}
.modal-body.ai-job-chat-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ai-job-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fbfcfe;
}
.ai-job-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ai-job-msg.user {
    flex-direction: row-reverse;
}
.ai-job-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 14px;
}
.ai-job-avatar.user {
    background: #e0f2fe;
    color: #0284c7;
}
.ai-job-msg-body {
    max-width: calc(100% - 44px);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #eef2f7;
    color: #334155;
}
.ai-job-msg.user .ai-job-msg-body {
    max-width: 80%;
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.ai-job-msg-body p {
    margin: 0 0 10px;
}
.ai-job-msg-body p:last-child {
    margin-bottom: 0;
}
.ai-job-msg-body strong {
    font-weight: 700;
}
.ai-job-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #7c3aed;
    background: #fff;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.ai-job-inline-btn:hover:not(:disabled) {
    background: #f5f3ff;
}
.ai-job-inline-btn.primary {
    background: #7c3aed;
    color: #fff;
}
.ai-job-inline-btn.primary:hover:not(:disabled) {
    background: #6d28d9;
}
.ai-job-inline-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.ai-job-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}
.ai-job-typing > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    display: inline-block;
    animation: aiJobTyping 1.2s infinite ease-in-out;
}
.ai-job-typing > i:nth-child(2) { animation-delay: 0.2s; }
.ai-job-typing > i:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiJobTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
.ai-job-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-top: 12px;
}
.ai-job-form .ai-job-field {
    margin-bottom: 0;
}
.ai-job-tag.locked {
    cursor: default;
}
.ai-job-tag.locked:not(.selected) {
    opacity: 0.45;
}
.ai-job-tag.locked:hover {
    border-color: #d7dee8;
}
.ai-job-tag.locked.selected:hover {
    border-color: #7c3aed;
}
.ai-job-msg-body .ai-job-preview {
    margin-top: 12px;
}
.ai-job-jd-editor {
    width: 100%;
    min-height: 260px;
    padding: 12px 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
    resize: vertical;
    outline: none;
}
.ai-job-jd-editor:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}
.ai-job-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.home-ai-job-create-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 560px;
    max-height: min(720px, calc(100vh - 190px));
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.home-ai-job-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.home-ai-job-header i {
    color: #7c3aed;
}

.home-ai-job-header strong {
    font-size: 15px;
    line-height: 1.35;
}

.home-ai-job-create-chat .ai-job-chat {
    flex: 1;
    min-height: 0;
}

.home-ai-job-create-chat .ai-job-composer {
    flex-shrink: 0;
}

.home-ai-job-create-chat .js-ai-job-input {
    min-width: 0;
}

#ai-job-input,
.js-ai-job-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}
#ai-job-input:focus,
.js-ai-job-input:focus {
    border-color: #7c3aed;
}
#ai-job-composer .btn,
.js-ai-job-composer .btn {
    border-radius: 20px;
}

/* ===== 批量导入职位弹框 ===== */
.modal-content.import-job-content {
    width: 560px;
    max-width: 92vw;
}
.import-job-tip {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #0369a1;
    margin-bottom: 16px;
}
.import-job-tip > i {
    color: #0ea5e9;
    margin-top: 2px;
}
.import-job-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.15s;
}
.import-job-template:hover {
    background: #e2e8f0;
}
.import-job-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.import-job-drop:hover,
.import-job-drop.dragover {
    border-color: #16a34a;
    background: #f0fdf4;
}
.import-job-drop > i {
    font-size: 34px;
    color: #94a3b8;
}
.import-job-drop.dragover > i {
    color: #16a34a;
}
.import-job-drop-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.import-job-drop-sub {
    font-size: 12px;
    color: #94a3b8;
}
.import-job-file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
}
.import-job-file-name > i {
    color: #16a34a;
}
.import-job-file-name span {
    flex: 1;
}
.import-job-file-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}
.import-job-file-remove:hover {
    color: #ef4444;
}

@media (max-width: 640px) {
    .todo-chat-hero,
    .todo-chat-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .todo-primary-action,
    .todo-chat-footer button {
        width: 100%;
        justify-content: center;
    }

    .todo-summary-grid {
        grid-template-columns: 1fr;
    }

    .referral-platform-metrics,
    .referral-platform-actions {
        grid-template-columns: 1fr;
    }

    .todo-task-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .todo-task-badge {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .todo-task-row > button {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .todo-detail-panel {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: min(78vh, 640px);
        transform: translateY(18px);
    }

    .todo-detail-panel.show {
        transform: translateY(0);
    }

    .todo-detail-metrics {
        grid-template-columns: 1fr;
    }

    .todo-detail-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .todo-detail-item.has-action {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .referral-job-upload-trigger {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .todo-detail-item em {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .todo-detail-item.has-action em {
        grid-column: 2 / 3;
    }

    .ai-job-basic-grid,
    .ai-job-portrait {
        grid-template-columns: 1fr;
    }
}
