/**
 * ═══════════════════════════════════════════════════════════════════
 * V7 評分小劇場樣式 (theatre.css)
 * 從 index.html 提取，供 index.html 和 replay.html 共用
 * 
 * 提取版本: v10.0
 * 提取日期: 2026-02-03
 * ═══════════════════════════════════════════════════════════════════
 */

        /* ========== 評分小劇場 Grading Theatre ========== */
        
        /* 全屏覆蓋層 */
        .grading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        
        .grading-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .grading-overlay lottie-player {
            width: 180px;
            height: 180px;
        }
        
        .grading-overlay-text {
            font-size: 1.3rem;
            font-weight: 600;
            margin-top: 16px;
            text-align: center;
        }
        
        /* ★ 淺色漸變背景（匹配 v7）*/
        .grading-overlay.loading { 
            background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.98)); 
        }
        .grading-overlay.loading .grading-overlay-text { color: #1e40af; }
        
        .grading-overlay.warning { 
            background: linear-gradient(135deg, rgba(254, 226, 226, 0.98), rgba(254, 202, 202, 0.98)); 
        }
        .grading-overlay.warning .grading-overlay-text { color: #991b1b; }
        
        .grading-overlay.offtopic-check { 
            background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.98)); 
        }
        .grading-overlay.offtopic-check .grading-overlay-text { color: #1e40af; }
        
        .grading-overlay.arbiter { 
            background: linear-gradient(135deg, rgba(237, 233, 254, 0.98), rgba(221, 214, 254, 0.98)); 
        }
        .grading-overlay.arbiter .grading-overlay-text { color: #5b21b6; }
        
        .grading-overlay.voting { 
            background: linear-gradient(135deg, rgba(207, 250, 254, 0.98), rgba(165, 243, 252, 0.98)); 
        }
        .grading-overlay.voting .grading-overlay-text { color: #0e7490; }
        
        .grading-overlay.success { 
            background: linear-gradient(135deg, rgba(209, 250, 229, 0.98), rgba(167, 243, 208, 0.98)); 
        }
        .grading-overlay.success .grading-overlay-text { color: #065f46; }
        
        .grading-overlay.gatekeeper { 
            background: linear-gradient(135deg, rgba(254, 243, 199, 0.98), rgba(253, 230, 138, 0.98)); 
        }
        .grading-overlay.gatekeeper .grading-overlay-text { color: #92400e; }
        
        .grading-overlay.borderline { 
            background: linear-gradient(135deg, rgba(255, 237, 213, 0.98), rgba(254, 215, 170, 0.98)); 
        }
        .grading-overlay.borderline .grading-overlay-text { color: #c2410c; }
        
        .grading-overlay.offtopic-result { 
            background: linear-gradient(135deg, rgba(254, 226, 226, 0.98), rgba(254, 202, 202, 0.98)); 
        }
        .grading-overlay.offtopic-result .grading-overlay-text { color: #b91c1c; }
        
        /* 劇場容器 */
        .grading-theatre {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                to bottom,
                rgba(255,255,255,0.98) 0%,
                rgba(255,255,255,0.95) 20%,
                rgba(255,255,255,0.90) 50%,
                rgba(255,255,255,0.80) 70%,
                rgba(255,255,255,0.60) 85%,
                rgba(255,255,255,0.30) 95%,
                transparent 100%
            );
            z-index: 9999;
            overflow-y: auto;
            overflow-x: hidden;
            display: none;
            padding: 0;
            pointer-events: auto;
        }
        
        .grading-theatre.show {
            display: block;
            animation: theatreFadeIn 0.3s ease;
        }
        
        @keyframes theatreFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* 內容容器 - 居中且有最大寬度 */
        .theatre-inner {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
        }
        
        /* 背景遮罩 - 改為更輕的效果 */
        .theatre-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 9998;
            display: none;
            backdrop-filter: blur(3px);
        }
        
        .theatre-backdrop.show { display: block; }
        
        /* 頂部固定標題欄 */
        .theatre-header {
            position: sticky;
            top: 0;
            background: linear-gradient(135deg, #1e40af, #3b82f6);
            color: white;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 16px;
            margin-bottom: 16px;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
            z-index: 10;
        }
        
        .theatre-title {
            font-size: 1rem;
            font-weight: 700;
        }
        
        .theatre-live {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 12px;
        }
        
        .theatre-live-dot {
            width: 8px;
            height: 8px;
            background: #ef4444;
            border-radius: 50%;
            animation: livePulse 1.5s ease-in-out infinite;
        }
        
        @keyframes livePulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }
        
        .theatre-content {
            padding: 0;
            /* 移除高度限制，讓內容自然流動 */
        }
        
        .theatre-dynamic-sections {
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
        }
        
        /* 動態區塊的基礎過渡效果 */
        .theatre-section {
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                        opacity 0.3s ease,
                        order 0s;
            position: relative;
        }
        
        /* 新區塊滑入動畫 */
        @keyframes slideInFromBottom {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* 舊區塊向下讓位動畫 */
        @keyframes slideDown {
            0% {
                transform: translateY(0);
            }
            100% {
                transform: translateY(0);
            }
        }
        
        /* 當區塊獲得焦點時的強調效果 */
        .theatre-section.section-focus {
            animation: slideInFromBottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 10;
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
        }
        
        /* 失去焦點的區塊變淡 */
        .theatre-section.section-unfocus {
            opacity: 0.7;
            transform: scale(0.98);
        }
        
        /* 完全隱藏的區塊 */
        .theatre-section.section-collapsed {
            max-height: 60px;
            overflow: hidden;
            opacity: 0.5;
        }
        
        .theatre-section.section-collapsed::after {
            content: '...';
            display: block;
            text-align: center;
            color: #94a3b8;
            padding: 8px;
        }
        
        /* 進度條 - v3.93f 更新：添加背景卡片 */
        .theatre-progress {
            margin-bottom: 16px;
            background: white;
            padding: 14px 16px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        .theatre-progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            font-size: 0.8rem;
        }
        
        .theatre-progress-text { color: #64748b; }
        .theatre-progress-percent { color: #3b82f6; font-weight: 600; }
        
        .theatre-progress-bar {
            height: 10px;
            background: #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .theatre-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            background-size: 200% 100%;
            animation: progressShimmer 2s infinite;
            border-radius: 10px;
            transition: width 0.5s ease;
            width: 0%;
        }
        
        @keyframes progressShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .theatre-dimension-tracker {
            display: none;
            background: white;
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        .theatre-dimension-tracker.active { display: block; }
        
        .dimension-header {
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 8px;
            text-align: center;
        }
        
        .dimension-tabs {
            display: flex;
            gap: 8px;
            justify-content: center;
        }
        
        .dimension-tab {
            flex: 1;
            max-width: 120px;
            padding: 10px 12px;
            border-radius: 10px;
            background: #f1f5f9;
            border: 2px solid #e2e8f0;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .dimension-tab.active {
            border-color: #3b82f6;
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            animation: dimPulse 1.5s infinite;
        }
        
        .dimension-tab.done {
            border-color: #10b981;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
        }
        
        .dimension-tab-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: #374151;
        }
        
        .dimension-tab-score {
            font-size: 1.1rem;
            font-weight: 700;
            margin-top: 4px;
        }
        
        .dimension-tab.active .dimension-tab-score { color: #3b82f6; }
        .dimension-tab.done .dimension-tab-score { color: #059669; }
        .dimension-tab .dimension-tab-score { color: #94a3b8; }
        
        @keyframes dimPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
            50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
        }
        
        .speech-bubble {
            position: absolute;
            background: white;
            border-radius: 16px;
            padding: 12px 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            max-width: 280px;
            min-width: 120px;
            font-size: 0.85rem;
            line-height: 1.5;
            z-index: 100;
            opacity: 0;
            transform: scale(0.8) translateY(10px);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
        }
        
        .speech-bubble.show {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
        
        /* 對話框尾巴（指向考官） */
        .speech-bubble::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 30px;
            border-width: 12px 10px 0 10px;
            border-style: solid;
            border-color: white transparent transparent transparent;
            filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
        }
        
        /* 不同情緒的對話框顏色 */
        .speech-bubble.thinking {
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border: 2px solid #7dd3fc;
        }
        .speech-bubble.thinking::after {
            border-color: #e0f2fe transparent transparent transparent;
        }
        
        .speech-bubble.positive {
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            border: 2px solid #6ee7b7;
        }
        .speech-bubble.positive::after {
            border-color: #d1fae5 transparent transparent transparent;
        }
        
        .speech-bubble.negative {
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            border: 2px solid #fca5a5;
        }
        .speech-bubble.negative::after {
            border-color: #fee2e2 transparent transparent transparent;
        }
        
        .speech-bubble.surprised {
            background: linear-gradient(135deg, #fefce8, #fef9c3);
            border: 2px solid #fde047;
        }
        .speech-bubble.surprised::after {
            border-color: #fef9c3 transparent transparent transparent;
        }
        
        .speech-bubble.serious {
            background: linear-gradient(135deg, #f5f3ff, #ede9fe);
            border: 2px solid #c4b5fd;
        }
        .speech-bubble.serious::after {
            border-color: #ede9fe transparent transparent transparent;
        }
        
        /* 對話框內的表情符號 */
        .speech-bubble .bubble-emoji {
            font-size: 1.2rem;
            margin-right: 6px;
            vertical-align: middle;
        }
        
        /* 對話框內的文字 */
        .speech-bubble .bubble-text {
            color: #374151;
        }
        
        /* 打字機效果的光標 */
        .speech-bubble .typing-cursor {
            display: inline-block;
            width: 2px;
            height: 1em;
            background: #3b82f6;
            margin-left: 2px;
            animation: blink 0.8s infinite;
            vertical-align: text-bottom;
        }
        
        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }
        
        /* 考官卡片容器需要 relative 定位 */
        .examiner-card, .dimension-examiner-card, .arbiter-card {
            position: relative;
        }
        
        /* ★ v9.29: 失敗閃爍動畫（引擎切換時短暫顯示） */
        .examiner-card.failed-flash,
        .arbiter-card.failed-flash {
            animation: failedFlash 0.3s ease-out;
        }
        
        @keyframes failedFlash {
            0% { 
                background: var(--danger, #dc2626);
                border-color: var(--danger, #dc2626);
            }
            100% { 
                background: inherit;
                border-color: inherit;
            }
        }
        
        .emoji-reaction {
            position: absolute;
            bottom: -8px;
            right: -8px;
            background: white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            z-index: 50;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .emoji-reaction.show {
            opacity: 1;
            transform: scale(1);
        }
        
        /* 反應泡泡彈跳動畫 */
        .emoji-reaction.bounce {
            animation: emojiPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        @keyframes emojiPop {
            0% { transform: scale(0); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }
        
        .floating-effects {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            pointer-events: none;
            z-index: 60;
        }
        
        .floating-symbol {
            position: absolute;
            font-size: 1.2rem;
            opacity: 0;
            animation: floatUp 1.5s ease-out forwards;
        }
        
        @keyframes floatUp {
            0% {
                opacity: 1;
                transform: translateY(0) scale(0.5);
            }
            50% {
                opacity: 1;
                transform: translateY(-30px) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-60px) scale(0.8);
            }
        }
        
        /* 不同符號的偏移和延遲 */
        .floating-symbol:nth-child(1) { left: -15px; animation-delay: 0s; }
        .floating-symbol:nth-child(2) { left: 0px; animation-delay: 0.2s; }
        .floating-symbol:nth-child(3) { left: 15px; animation-delay: 0.4s; }
        .floating-symbol:nth-child(4) { left: -8px; animation-delay: 0.3s; }
        .floating-symbol:nth-child(5) { left: 8px; animation-delay: 0.1s; }
        
        .examiner-card .avatar-wrapper,
        .dimension-examiner-card .dimension-avatar-area,
        .arbiter-card .avatar-wrapper {
            transition: filter 0.3s ease, transform 0.3s ease;
        }
        
        /* 開心：金色光暈 */
        .examiner-card.mood-happy .avatar-wrapper,
        .arbiter-card.mood-happy .avatar-wrapper {
            filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
        }
        
        /* 困惑：輕微搖晃 */
        .examiner-card.mood-confused .avatar-wrapper,
        .arbiter-card.mood-confused .avatar-wrapper {
            animation: confusedShake 0.5s ease-in-out;
        }
        
        @keyframes confusedShake {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-5deg); }
            75% { transform: rotate(5deg); }
        }
        
        /* 驚訝：放大彈跳 */
        .examiner-card.mood-surprised .avatar-wrapper,
        .arbiter-card.mood-surprised .avatar-wrapper {
            animation: surprisedBounce 0.4s ease-out;
        }
        
        @keyframes surprisedBounce {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }
        
        /* 嚴肅：冷色調 */
        .examiner-card.mood-serious .avatar-wrapper,
        .arbiter-card.mood-serious .avatar-wrapper {
            filter: saturate(0.7) brightness(0.95);
        }
        
        /* 生氣/失望：紅色邊框 */
        .examiner-card.mood-disappointed .avatar-wrapper,
        .arbiter-card.mood-disappointed .avatar-wrapper {
            filter: sepia(0.3) saturate(1.5) hue-rotate(-10deg);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5);
        }

        /* Dimension Tracker 單考官卡片 - 居中大卡片 */
        .theatre-dimension-examiner {
            display: none;
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border: 1px solid #bfdbfe;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }
        .theatre-dimension-examiner.active { display: block; }
        
        .dimension-examiner-card {
            background: white;
            border-radius: 14px;
            padding: 20px;
            text-align: center;
            max-width: 280px;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }
        
        .dimension-examiner-card.thinking {
            border: 2px solid #f59e0b;
            animation: cardPulse 1.5s infinite;
        }
        
        .dimension-examiner-card.done {
            border: 2px solid #10b981;
        }
        
        @keyframes cardPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
        }
        
        .dimension-avatar-area {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 12px;
        }
        
        .dimension-avatar-area img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid #e2e8f0;
        }
        
        .dimension-avatar-status {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #f59e0b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: white;
            border: 2px solid white;
        }
        
        .dimension-avatar-status.done { background: #10b981; }
        
        .dimension-examiner-name {
            font-size: 1rem;
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 4px;
        }
        
        .dimension-examiner-badge {
            display: inline-block;
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
            font-size: 0.65rem;
            padding: 3px 10px;
            border-radius: 10px;
            margin: 6px 0 8px;
        }
        
        .dimension-current {
            font-size: 0.85rem;
            color: #64748b;
            margin-bottom: 8px;
            padding: 4px 12px;
            background: #f1f5f9;
            border-radius: 12px;
            display: inline-block;
        }
        
        .dimension-state {
            font-size: 0.8rem;
            color: #64748b;
        }
        
        
        /* === 1. 主階段導航 === */
        .stage-navigation {
            display: none;
            background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 10px;
        }
        .stage-navigation.active { display: block; }
        
        .stage-nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
        }
        
        .stage-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 4px;
            border-radius: 8px;
            background: rgba(255,255,255,0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .stage-nav-item:hover { background: rgba(255,255,255,0.2); }
        
        .stage-nav-item.active {
            background: white;
        }
        .stage-nav-item.active .stage-nav-label { color: #1e3a5f; }
        .stage-nav-item.active .stage-nav-icon { color: #1e3a5f; }
        
        .stage-nav-item.complete {
            background: linear-gradient(135deg, #10b981, #059669);
        }
        .stage-nav-item.complete .stage-nav-label { color: white; }
        .stage-nav-item.complete .stage-nav-icon { color: white; }
        
        .stage-nav-item.current {
            animation: stagePulse 2s infinite;
        }
        
        @keyframes stagePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
            50% { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
        }
        
        .stage-nav-icon { font-size: 1.2rem; color: rgba(255,255,255,0.9); }
        .stage-nav-label { font-size: 0.65rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
        .stage-nav-arrow { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
        
        /* === 2. 子階段Tab === */
        .substage-tabs {
            display: none;
            background: white;
            border-radius: 10px;
            padding: 6px;
            margin-bottom: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .substage-tabs.active { display: block; }
        
        .substage-tabs-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 6px 6px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 6px;
        }
        
        .substage-tabs-title {
            font-size: 0.7rem;
            color: #64748b;
            font-weight: 600;
        }
        
        .substage-tabs-progress {
            font-size: 0.7rem;
            color: #3b82f6;
            font-weight: 600;
        }
        
        .substage-container {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .substage-container::-webkit-scrollbar { display: none; }
        
        .substage-btn {
            flex: 1;
            min-width: 52px;
            padding: 6px 8px;
            border: none;
            background: #f1f5f9;
            border-radius: 6px;
            font-size: 0.7rem;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1px;
        }
        
        .substage-btn:hover { background: #e2e8f0; }
        .substage-btn.active { background: #3b82f6; color: white; }
        .substage-btn.complete { background: #10b981; color: white; }
        .substage-btn.complete.active { box-shadow: 0 0 0 2px white, 0 0 0 3px #10b981; }
        
        .substage-icon { font-size: 0.9rem; }
        .substage-label { font-size: 0.6rem; }
        
        /* === 3. 通用項目追蹤器 === */
        .item-tracker {
            display: none;
            background: white;
            padding: 10px 12px;
            border-radius: 10px;
            margin-bottom: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .item-tracker.active { display: block; }
        
        .tracker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .tracker-title {
            font-size: 0.7rem;
            color: #64748b;
            font-weight: 600;
        }
        
        .tracker-summary {
            font-size: 0.75rem;
            color: #3b82f6;
            font-weight: 700;
            background: #eff6ff;
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        .tracker-slots {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .tracker-slot {
            width: 52px;
            height: 58px;
            border-radius: 8px;
            background: #f8fafc;
            border: 2px dashed #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            color: #94a3b8;
            transition: all 0.3s ease;
            cursor: default;
        }
        
        .tracker-slot.active {
            border: 2px solid #3b82f6;
            background: #eff6ff;
            color: #3b82f6;
            animation: slotPulse 1.5s infinite;
        }
        
        .tracker-slot.done {
            border: 2px solid #10b981;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            color: #059669;
        }
        
        .tracker-slot.fail {
            border: 2px solid #ef4444;
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            color: #dc2626;
        }
        
        .tracker-slot-label {
            font-weight: 600;
            font-size: 0.55rem;
            margin-bottom: 2px;
            text-align: center;
            line-height: 1.1;
        }
        
        .tracker-slot-icon { font-size: 0.85rem; }
        .tracker-slot-score { font-size: 0.9rem; font-weight: 700; }
        
        @keyframes slotPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
            50% { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
        }
        
        /* 飛行動畫 */
        .flying-card {
            position: fixed;
            z-index: 10001;
            pointer-events: none;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .flying-card.shrink { transform: scale(0.15); opacity: 0.8; }
        
        /* === 4. 歷史快照系統 === */
        .snapshot-panel {
            display: none;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
            max-height: 180px;
            overflow-y: auto;
        }
        .snapshot-panel.active { display: block; }
        
        .snapshot-title {
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .snapshot-content {
            font-size: 0.8rem;
            color: #334155;
            line-height: 1.5;
        }
        
        /* === 手機版優化 === */
        @media (max-width: 480px) {
            .stage-nav-item { padding: 6px 2px; }
            .stage-nav-icon { font-size: 1rem; }
            .stage-nav-label { font-size: 0.55rem; }
            
            .substage-btn { min-width: 44px; padding: 5px 6px; }
            .substage-icon { font-size: 0.8rem; }
            .substage-label { font-size: 0.55rem; }
            
            .tracker-slot { width: 44px; height: 50px; }
            .tracker-slot-label { font-size: 0.5rem; }
            .tracker-slot-score { font-size: 0.8rem; }
        }
        
        /* 階段提示 */
        .theatre-stage {
            text-align: center;
            padding: 8px;
            margin-bottom: 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            display: none;
        }
        
        .theatre-stage.show { display: block; }
        .theatre-stage.loading { background: #dbeafe; color: #1d4ed8; }
        .theatre-stage.warning { background: #fee2e2; color: #991b1b; }
        .theatre-stage.arbiter { background: #ede9fe; color: #5b21b6; }
        .theatre-stage.voting { background: #cffafe; color: #0e7490; }
        .theatre-stage.gatekeeper { background: #fef3c7; color: #92400e; }
        .theatre-stage.success { background: #dcfce7; color: #166534; }
        
        /* 區塊通用 - v3.93f 更新：添加背景和陰影 */
        .theatre-section {
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
            display: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }
        
        .theatre-section.active { display: block; }
        
        .theatre-section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .theatre-section-icon {
            font-size: 1.1rem;
        }
        
        .theatre-section-title {
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        /* 考官區 */
        .theatre-examiners {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border: 1px solid #bfdbfe;
        }
        
        .theatre-examiners .theatre-section-title { color: #1d4ed8; }
        
        .examiners-grid {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        
        .examiner-card {
            background: white;
            border-radius: 14px;
            padding: 14px;
            text-align: center;
            border: 2px solid #e2e8f0;
            min-width: 100px;
            transition: all 0.3s ease;
            position: relative;
            animation: idleFloat 3s ease-in-out infinite;
        }
        
        @keyframes idleFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-3px); }
        }
        
        /* 每張卡片錯開動畫時間，更自然 */
        .examiner-card:nth-child(1) { animation-delay: 0s; }
        .examiner-card:nth-child(2) { animation-delay: 0.5s; }
        .examiner-card:nth-child(3) { animation-delay: 1s; }
        
        .examiner-card.waiting {
            border-color: #94a3b8;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            animation: waitingPulse 1.5s ease-in-out infinite;
        }
        
        @keyframes waitingPulse {
            0%, 100% { 
                opacity: 0.7;
                transform: scale(0.98);
            }
            50% { 
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .examiner-card.thinking {
            border-color: #fbbf24;
            animation: thinkingSway 0.8s ease-in-out infinite, thinkingGlow 1.5s ease-in-out infinite;
        }
        
        @keyframes thinkingSway {
            0%, 100% { transform: rotate(-1deg); }
            50% { transform: rotate(1deg); }
        }
        
        @keyframes thinkingGlow {
            0%, 100% { 
                box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
            }
            50% { 
                box-shadow: 0 0 15px 5px rgba(251, 191, 36, 0.3);
            }
        }
        
        /* 舊的 thinkingPulse 保留為備用 */
        
        @keyframes thinkingPulse {
            0%, 100% { 
                box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
                transform: scale(1.02);
            }
        }
        
        .examiner-card.done {
            border-color: #10b981;
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            animation: doneFloat 2s ease-in-out infinite;
        }
        
        @keyframes doneFloat {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-2px) scale(1.01); }
        }
        
        .examiner-card.conflict {
            border-color: #ef4444;
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            animation: conflictShake 0.5s ease, conflictPulse 1s ease-in-out infinite 0.5s;
        }
        
        @keyframes conflictShake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(5px); }
            60% { transform: translateX(-3px); }
            80% { transform: translateX(3px); }
        }
        
        @keyframes conflictPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
            50% { box-shadow: 0 0 10px 3px rgba(239, 68, 68, 0.2); }
        }
        
        .examiner-card.vacant,
        .arbiter-card.vacant {
            border-color: #d1d5db;
            border-style: dashed;
            background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
            opacity: 0.85;
            animation: vacantBreathe 2s ease-in-out infinite;
        }
        
        @keyframes vacantBreathe {
            0%, 100% { 
                transform: scale(1);
                border-color: #d1d5db;
            }
            50% { 
                transform: scale(1.02);
                border-color: #9ca3af;
            }
        }
        
        /* 空位卡片錯開動畫 */
        .examiner-card.vacant:nth-child(1) { animation-delay: 0s; }
        .examiner-card.vacant:nth-child(2) { animation-delay: 0.3s; }
        .examiner-card.vacant:nth-child(3) { animation-delay: 0.6s; }
        
        .vacant-avatar {
            background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .vacant-placeholder {
            font-size: 28px;
            font-weight: bold;
            color: #9ca3af;
            animation: vacantPulse 2s infinite;
        }
        
        @keyframes vacantPulse {
            0%, 100% { opacity: 0.5; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }
        
        /* 空位轉為實際考官時的過渡動畫 */
        .examiner-card.vacant-to-active,
        .arbiter-card.vacant-to-active {
            animation: seatFilled 0.5s ease forwards;
        }
        
        @keyframes seatFilled {
            0% { 
                transform: scale(1);
                border-style: dashed;
                opacity: 0.8;
            }
            50% {
                transform: scale(1.05);
                border-style: solid;
            }
            100% {
                transform: scale(1);
                border-style: solid;
                opacity: 1;
            }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }
        
        .avatar-area {
            position: relative;
            width: 70px;
            height: 70px;
            margin: 0 auto 10px;
        }
        
        .avatar-wrapper {
            width: 60px;
            height: 60px;
            margin: 5px auto 0;
            border-radius: 50%;
            overflow: hidden;
            background: #f1f5f9;
            border: 2px solid #e2e8f0;
        }
        
        .avatar-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 頭像上的思考動畫指示器（v7 樣式）*/
        .avatar-lottie {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 28px;
            height: 28px;
            background: #fbbf24;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .avatar-lottie.show { 
            opacity: 1; 
            transform: scale(1);
        }
        
        .avatar-lottie::after {
            content: '';
            width: 14px;
            height: 14px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        /* 狀態指示器（v7 樣式）*/
        .avatar-status {
            position: absolute;
            bottom: 0;
            right: 5px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #94a3b8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: white;
            border: 2px solid white;
            opacity: 0;
            transition: all 0.3s;
            z-index: 5;
        }
        
        .avatar-status.done {
            opacity: 1;
            background: #10b981;
        }
        
        .avatar-status.done::after { content: '✓'; }
        
        .avatar-status.conflict {
            opacity: 1;
            background: #ef4444;
        }
        
        .avatar-status.conflict::after { content: '!'; }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* 考官徽章（v7 樣式）*/
        .examiner-badge {
            display: inline-block;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            font-size: 0.65rem;
            padding: 3px 10px;
            border-radius: 10px;
            margin-bottom: 8px;
        }
        
        .examiner-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 4px;
        }
        
        .examiner-status {
            font-size: 0.7rem;
            color: #94a3b8;
            padding: 3px 10px;
            background: #f1f5f9;
            border-radius: 10px;
            display: inline-block;
            transition: all 0.3s;
        }
        
        .examiner-status.done { 
            background: #dcfce7; 
            color: #166534; 
        }
        
        .examiner-status.conflict { 
            background: #fee2e2; 
            color: #991b1b; 
        }
        
        .examiner-score {
            margin-top: 8px;
            font-size: 1.2rem;
            font-weight: 700;
            color: #667eea;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.3s ease;
        }
        
        .examiner-score.show {
            opacity: 1;
            transform: scale(1);
        }
        
        /* 單引擎考官特殊樣式（v7）*/
        .examiner-card.single-examiner {
            min-width: 160px;
            padding: 20px 30px;
        }
        
        .examiner-card.single-examiner .avatar-area {
            width: 100px;
            height: 100px;
        }
        
        .examiner-card.single-examiner .avatar-wrapper {
            width: 85px;
            height: 85px;
            margin: 10px auto 0;
        }
        
        .examiner-card.single-examiner .avatar-lottie {
            width: 36px;
            height: 36px;
            top: -5px;
            right: -5px;
        }
        
        .examiner-card.single-examiner .examiner-name {
            font-size: 1rem;
            margin-top: 5px;
        }
        
        .examiner-card.single-examiner .examiner-score {
            font-size: 1.5rem;
        }
        
        /* 仲裁區（v7 樣式）*/
        .theatre-arbiters {
            background: linear-gradient(135deg, #faf5ff, #f3e8ff);
            border: 1px solid #e9d5ff;
        }

        .theatre-arbiters .theatre-section-title { color: #7c3aed; }
        
        .arbiters-grid {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        .arbiter-card {
            background: white;
            border-radius: 12px;
            padding: 12px 18px;
            text-align: center;
            border: 2px solid #e9d5ff;
            min-width: 110px;
            transition: all 0.3s ease;
            position: relative;
            animation: arbiterFloat 3.5s ease-in-out infinite;
        }
        
        @keyframes arbiterFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-4px); }
        }
        
        /* 仲裁官錯開動畫 */
        .arbiter-card:nth-child(1) { animation-delay: 0s; }
        .arbiter-card:nth-child(2) { animation-delay: 0.7s; }
        
        .arbiter-card.thinking { 
            border-color: #a78bfa;
            animation: arbiterSway 0.6s ease-in-out infinite, arbiterGlow 1.2s ease-in-out infinite;
        }
        
        @keyframes arbiterSway {
            0%, 100% { transform: rotate(-1.5deg) scale(1.01); }
            50% { transform: rotate(1.5deg) scale(1.01); }
        }
        
        @keyframes arbiterGlow {
            0%, 100% { 
                box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
            }
            50% { 
                box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.3);
            }
        }
        
        /* 舊的 arbiterPulse 保留 */
        @keyframes arbiterPulse {
            0%, 100% { 
                box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 0 0 10px rgba(167, 139, 250, 0);
                transform: scale(1.02);
            }
        }
        
        .arbiter-card.done {
            border-color: #8b5cf6;
            background: linear-gradient(135deg, #faf5ff, #ede9fe);
            animation: doneFloat 2s ease-in-out infinite;
        }
        .arbiter-card.conflict {
            border-color: #ec4899;
            background: linear-gradient(135deg, #fdf2f8, #fce7f3);
            animation: conflictShake 0.5s ease, arbiterConflictPulse 1s ease-in-out infinite 0.5s;
        }
        
        @keyframes arbiterConflictPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.3); }
            50% { box-shadow: 0 0 10px 3px rgba(236, 72, 153, 0.2); }
        }
        
        @keyframes shake {
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }
        
        /* 投票區（v7 樣式）*/
        .theatre-voting {
            background: linear-gradient(135deg, #ecfeff, #cffafe);
            border: 1px solid #a5f3fc;
        }
        
        .theatre-voting .theatre-section-title { color: #0891b2; }
        
        .voting-grid {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        
        /* 投票籌碼（v7 樣式）*/
        .vote-chip {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: white;
            border: 2px solid #a5f3fc;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            position: relative;
        }
        
        .vote-chip.thinking { border-color: #22d3ee; }
        .vote-chip.done {
            border-color: #06b6d4;
            background: linear-gradient(135deg, #ecfeff, #cffafe);
        }
        
        .vote-lottie {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            opacity: 0;
            transition: all 0.3s;
            background: #22d3ee;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .vote-lottie.show { opacity: 1; }
        
        .vote-lottie::after {
            content: '';
            width: 10px;
            height: 10px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        .vote-label { font-size: 0.6rem; color: #0891b2; }
        .vote-score { font-size: 0.9rem; font-weight: 700; color: #0e7490; }
        
        .vote-summary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px;
            background: white;
            border-radius: 10px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .vote-summary.show { opacity: 1; }
        .median-label { font-size: 0.8rem; color: #0891b2; }
        .median-value { font-size: 1.3rem; font-weight: 700; color: #0e7490; }
        
        /* 守門員區（v7 樣式）*/
        .theatre-gatekeeper {
            background: linear-gradient(135deg, #fffbeb, #fef3c7);
            border: 2px solid #fbbf24;
        }
        
        .theatre-gatekeeper .theatre-section-title { color: #d97706; }
        
        .gatekeeper-card {
            background: white;
            border-radius: 14px;
            padding: 16px;
            text-align: center;
            border: 2px solid #fbbf24;
            max-width: 280px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }
        
        .gatekeeper-avatar {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin: 0 auto 12px;
            border: 3px solid white;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
            position: relative;
        }
        
        .gatekeeper-avatar.checking {
            animation: gatekeeperPulse 1.5s ease-in-out infinite;
        }
        
        @keyframes gatekeeperPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4); }
            50% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6); }
        }
        
        /* 守門員掃描線動畫（v7）*/
        .gatekeeper-scan {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent, #fbbf24, transparent);
            animation: scanLine 2s ease-in-out infinite;
            opacity: 0;
        }
        
        .gatekeeper-card.checking .gatekeeper-scan {
            opacity: 1;
        }
        
        @keyframes scanLine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .gatekeeper-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: #92400e;
            margin-bottom: 8px;
        }
        
        .gatekeeper-status {
            font-size: 0.8rem;
            color: #b45309;
            padding: 6px 14px;
            background: #fef3c7;
            border-radius: 20px;
            display: inline-block;
        }
        
        .gatekeeper-result {
            margin-top: 12px;
            padding: 10px 16px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.4s ease;
        }
        
        .gatekeeper-result.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .gatekeeper-result.pass {
            background: linear-gradient(135deg, #dcfce7, #bbf7d0);
            color: #166534;
            border: 1px solid #86efac;
        }
        
        .gatekeeper-result.reject {
            background: linear-gradient(135deg, #fee2e2, #fecaca);
            color: #991b1b;
            border: 1px solid #fca5a5;
        }

        /* 最終結果（v7 樣式）*/
        .theatre-final {
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
            border: 2px solid #86efac;
            border-radius: 14px;
            padding: 24px;
            text-align: center;
            display: none;
            position: relative;
            overflow: hidden;
        }
        
        .theatre-final.show {
            display: block;
            animation: bounceIn 0.5s ease;
        }
        
        @keyframes bounceIn {
            0% { opacity: 0; transform: scale(0.8); }
            50% { transform: scale(1.05); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        /* ★ v9.26: grading-icon bounce 動畫（參考 V1 第 1315-1324 行）*/
        .grading-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            animation: bounce 1s infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .final-content {
            position: relative;
            z-index: 1;
        }
        
        .final-label { font-size: 0.85rem; color: #166534; margin-bottom: 8px; }
        .final-score { font-size: 3.5rem; font-weight: 800; color: #16a34a; line-height: 1; }
        .final-method { font-size: 0.8rem; color: #15803d; margin-top: 10px; }

        /* 批次複審區（v7 樣式）*/
        .theatre-batch {
            margin-bottom: 6px;
        }
        
        .gatekeeper-status {
            font-size: 0.8rem;
            color: #b45309;
            padding: 6px 12px;
            background: #fef3c7;
            border-radius: 16px;
            display: inline-block;
        }
        
        .gatekeeper-result {
            margin-top: 12px;
            padding: 10px 14px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.85rem;
            opacity: 0;
            transition: all 0.4s;
        }
        
        .gatekeeper-result.show { opacity: 1; }
        .gatekeeper-result.pass { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
        .gatekeeper-result.reject { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
        
        /* 複審項目區 */
        .theatre-review-item {
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
            border: 2px solid #86efac;
        }
        
        .theatre-review-item .theatre-section-title { color: #15803d; }
        
        .review-item-card {
            background: white;
            border-radius: 12px;
            padding: 14px;
            text-align: center;
            border: 2px solid #86efac;
        }
        
        .review-item-label {
            font-size: 1rem;
            font-weight: 700;
            color: #166534;
            margin-bottom: 10px;
        }
        
        .review-item-original {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px;
            background: #fef2f2;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .review-original-label { font-size: 0.75rem; color: #991b1b; }
        .review-original-score { font-size: 1.1rem; font-weight: 700; color: #dc2626; }
        
        .review-item-arrow {
            font-size: 1.8rem;
            margin: 8px 0;
            color: #94a3b8;
            transition: all 0.5s;
        }
        
        .review-item-arrow.processing { animation: arrowPulse 1s ease-in-out infinite; color: #3b82f6; }
        .review-item-arrow.approved { color: #16a34a; }
        .review-item-arrow.rejected { color: #dc2626; }
        
        @keyframes arrowPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }
        
        .review-item-new {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px;
            background: #f8fafc;
            border-radius: 8px;
            transition: all 0.4s;
        }
        
        .review-item-new.approved { background: #dcfce7; }
        .review-item-new.rejected { background: #fef2f2; }
        
        .review-new-label { font-size: 0.75rem; color: #64748b; }
        .review-new-score { font-size: 1.3rem; font-weight: 700; color: #334155; transition: all 0.3s; }
        .review-new-score.up { color: #16a34a; }
        .review-new-score.down { color: #dc2626; }
        .review-new-score.same { color: #64748b; }
        
        /* 通用代班樣式（適用於所有考官卡片）*/
        .examiner-card.substitute,
        .dimension-examiner-card.substitute {
            border-color: #f97316;
            background: linear-gradient(135deg, #fff7ed, #ffedd5);
        }
        
        .examiner-card.substitute .examiner-badge {
            background: linear-gradient(135deg, #f97316, #ea580c) !important;
        }
        
        .examiner-substitute-badge {
            display: none;
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #f97316, #ea580c);
            color: white;
            font-size: 0.6rem;
            padding: 2px 8px;
            border-radius: 10px;
            white-space: nowrap;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            animation: substitutePopIn 0.5s ease-out;
        }
        
        .examiner-substitute-badge.show {
            display: block;
        }
        
        @keyframes substitutePopIn {
            0% { transform: translateX(-50%) scale(0) translateY(-10px); opacity: 0; }
            50% { transform: translateX(-50%) scale(1.2) translateY(0); }
            100% { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; }
        }
        
        /* 項目評分列表（通用） */
        .item-progress-badge {
            background: #22c55e;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        
        .item-grading-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .grading-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: white;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
        }
        
        .grading-item.active {
            border-color: #fbbf24;
            background: linear-gradient(135deg, #fffbeb, #fef3c7);
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
        }
        
        .grading-item.approved {
            border-color: #22c55e;
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        }
        
        .grading-item.rejected {
            border-color: #ef4444;
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
        }
        
        .grading-item-status {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            background: #f1f5f9;
            color: #94a3b8;
            flex-shrink: 0;
            transition: all 0.3s;
        }
        
        .grading-item-status.processing {
            background: #fbbf24;
            color: white;
            animation: spin 1s linear infinite;
        }
        
        .grading-item-status.approved {
            background: #22c55e;
            color: white;
        }
        
        .grading-item-status.rejected {
            background: #ef4444;
            color: white;
        }
        
        .grading-item-label {
            flex: 1;
            font-size: 0.85rem;
            color: #334155;
        }
        
        .grading-item-answer {
            font-size: 0.8rem;
            color: #64748b;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .grading-item-result {
            font-size: 0.85rem;
            font-weight: 600;
            color: #64748b;
            min-width: 60px;
            text-align: right;
        }
        
        .grading-item-result.approved { color: #16a34a; }
        .grading-item-result.rejected { color: #dc2626; }

        /* 批次複審區 */
        .theatre-batch {
            background: linear-gradient(135deg, #faf5ff, #ede9fe);
            border: 2px solid #c4b5fd;
        }
        
        .theatre-batch .theatre-section-title { color: #7c3aed; }
        
        .batch-progress-badge {
            font-size: 0.75rem;
            font-weight: 600;
            color: #7c3aed;
            background: white;
            padding: 3px 10px;
            border-radius: 10px;
            margin-left: auto;
        }
        
        .batch-items-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 180px;
            overflow-y: auto;
        }
        
        .batch-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: white;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
        }
        
        .batch-item.active {
            border-color: #3b82f6;
            background: #eff6ff;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }
        
        .batch-item.completed { border-color: #86efac; background: #f0fdf4; }
        .batch-item.failed { border-color: #fca5a5; background: #fef2f2; }
        
        .batch-item-status {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            flex-shrink: 0;
        }
        
        .batch-item-status.pending { background: #f1f5f9; color: #94a3b8; }
        .batch-item-status.processing { background: #dbeafe; color: #3b82f6; animation: statusSpin 1s linear infinite; }
        .batch-item-status.approved { background: #dcfce7; color: #16a34a; }
        .batch-item-status.rejected { background: #fee2e2; color: #dc2626; }
        
        @keyframes statusSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        
        .batch-item-label { flex: 1; font-size: 0.8rem; font-weight: 500; color: #334155; }
        .batch-item-type {
            font-size: 0.65rem;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #64748b;
        }
        .batch-item.active .batch-item-type { background: #dbeafe; color: #1d4ed8; }
        .batch-item-result { font-size: 0.75rem; font-weight: 600; color: #64748b; min-width: 50px; text-align: right; }
        .batch-item-result.up { color: #16a34a; }
        .batch-item-result.same { color: #64748b; }
        
        /* 最終結果 */
        .theatre-final {
            background: linear-gradient(135deg, #dcfce7, #bbf7d0);
            border: 2px solid #86efac;
            padding: 16px;
            border-radius: 12px;
            text-align: center;
            margin-top: 12px;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.4s;
        }
        
        .theatre-final.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .theatre-final-score {
            font-size: 2.5rem;
            font-weight: 800;
            color: #166534;
        }
        
        .theatre-final-label {
            font-size: 0.85rem;
            color: #15803d;
            margin-top: 4px;
        }
        
        .theatre-final-method {
            font-size: 0.75rem;
            color: #166534;
            margin-top: 8px;
            padding: 6px 12px;
            background: rgba(255,255,255,0.5);
            border-radius: 8px;
            display: inline-block;
        }

