/* Yupiteru+目標管理システム - ベーススタイル */

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

:root {
    /* === カラー - テーマごとに上書き === */
    --primary: #1960aa;
    --primary-dark: #164270;
    --secondary: #1979d3;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --accent-purple: #7c3aed;
    --accent-purple-light: #8b5cf6;
    --accent-amber: #d97706;
    --gradient-avatar: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.08);

    /* === フォントファミリー === */
    --font-body: 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* === フォントサイズ === */
    --text-xs: 0.6875rem;   /* 11px - セクションラベル */
    --text-sm: 0.75rem;     /* 12px - 補足テキスト */
    --text-base: 0.875rem;  /* 14px - 本文標準 */
    --text-md: 1rem;        /* 16px - 本文やや大 */
    --text-lg: 1.125rem;    /* 18px - 小見出し */
    --text-xl: 1.25rem;     /* 20px - カードタイトル */
    --text-2xl: 1.5rem;     /* 24px - ロゴ */
    --text-3xl: 1.75rem;    /* 28px - 統計値 */
    --text-4xl: 2rem;       /* 32px - ページタイトル */

    /* === フォントウェイト === */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* === スペーシング === */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */

    /* === 角丸 === */
    --radius-sm: 8px;       /* ボタン・ナビ */
    --radius-md: 10px;      /* フラッシュ・サイドバー */
    --radius-lg: 12px;      /* ドロップダウン */
    --radius-xl: 14px;      /* 統計カード */
    --radius-2xl: 16px;     /* メインカード */
    --radius-full: 9999px;  /* バッジ・アバター */

    /* === シャドウ === */
    --shadow-sm: 0 1px 3px var(--shadow);
    --shadow-md: 0 4px 12px var(--shadow);
    --shadow-lg: 0 6px 16px var(--shadow);
    --shadow-xl: 0 12px 24px var(--shadow);

    /* === トランジション === */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* === レイアウト === */
    --header-height: 70px;
    --sidebar-width: 260px;
    --content-max-width: 1400px;

    /* === Z-index === */
    --z-header: 100;
    --z-dropdown: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 30px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.logo-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* テーマ切り替えドロップダウン */
.theme-selector {
    position: relative;
}

.theme-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.theme-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

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

.theme-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.theme-option:last-child {
    border-bottom: none;
}

.theme-option:hover {
    background: var(--bg-main);
}

.theme-option.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    font-weight: 600;
}

.theme-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-avatar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* サイドバー */
.container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    padding: 0;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-secondary);
    list-style: none;
}

.sidebar-item .sidebar-link {
    padding: 0.75rem 1rem;
}

.sidebar-item:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
}

.sidebar-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.5rem 1rem 0.5rem;
    list-style: none;
}

.sidebar-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.stat-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* カード */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* カードリンク */
.card-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.card-link:hover {
    text-decoration: underline;
}

/* ボタン */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-main);
    border-color: var(--text-secondary);
}

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

.btn-outline:hover {
    background: var(--bg-main);
    border-color: var(--text-secondary);
}

/* フラッシュメッセージ */
.flash {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: flashIn 0.3s ease;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flash-success::before { content: "✓"; font-size: 1rem; }

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-error::before { content: "!"; font-size: 1rem; font-weight: 900; }

.flash-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.flash-info::before { content: "ℹ"; font-size: 1rem; }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
}

/* ハンバーガーボタン（デスクトップでは非表示） */
.hamburger-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    line-height: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* サイドバーオーバーレイ（モバイル用） */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        z-index: 50;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }

    .sidebar.sidebar-open {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    /* テーマボタン: アイコンのみ */
    .theme-button-label,
    .theme-button-arrow {
        display: none !important;
    }

    .theme-button {
        padding: var(--space-2);
    }

    /* ユーザー名・部門を非表示 */
    .user-info > div:last-child {
        display: none;
    }

    .header {
        padding: 0 1rem;
    }

    .header-right {
        gap: var(--space-3);
    }
}

/* ===== 期間セレクタ（共通） ===== */
.period-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.period-selector-label {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.period-selector-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    min-width: 200px;
}

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

/* ===== 評価ステージ共通カラー ===== */
/* 自己: Blue(--primary)  上長: Green(--success)  相対: Purple(--accent-purple) */

/* テーブルカラムヘッダー背景 */
.th-group-self { background: rgba(37, 99, 235, 0.06); }
.th-group-first { background: rgba(16, 185, 129, 0.06); }
.th-group-gm { background: rgba(124, 58, 237, 0.06); }

/* テーブルセル背景 */
.td-self { background: rgba(37, 99, 235, 0.02); }
.td-first { background: rgba(16, 185, 129, 0.02); }
.td-gm { background: rgba(124, 58, 237, 0.02); }

/* スコア文字色 */
.score-self { color: var(--primary); }
.score-first { color: var(--success); }
.score-gm { color: var(--accent-purple); }
.score-na { color: var(--text-secondary); opacity: 0.7; }

/* 明細パネル スコアボックス背景 */
.detail-score-box.stage-self { background: rgba(37, 99, 235, 0.04); }
.detail-score-box.stage-first { background: rgba(16, 185, 129, 0.04); }
.detail-score-box.stage-gm { background: rgba(124, 58, 237, 0.04); }

/* 上長入力セレクト（filled状態） */
.sup-select.filled,
.sup-grid-select.filled {
    border-color: var(--success);
    color: var(--success);
}

.sup-select:focus,
.sup-grid-select:focus {
    outline: none;
    border-color: var(--success);
}

/* 役員入力セレクト（filled状態） */
.gm-select.filled {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.gm-select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

/* 閲覧モードバッジ */
.viewonly-badge {
    font-size: var(--text-xs);
    background: var(--text-secondary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

/* ===== フィルターバー（共通） ===== */
.filter-bar {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

/* ===== プログレスバー（共通） ===== */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ===== ステップバッジ（共通） ===== */
.step-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
}

.step-not_started { background: rgba(100, 116, 139, 0.1); color: var(--text-secondary); }
.step-goals_draft { background: rgba(100, 116, 139, 0.15); color: var(--text-secondary); }
.step-goals_submitted { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.step-goals_approved { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.step-self_evaluated { background: rgba(14, 165, 233, 0.1); color: var(--secondary); }
.step-first_evaluated { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.step-gm_evaluated { background: rgba(124, 58, 237, 0.1); color: var(--accent-purple); }
.step-feedback_done { background: rgba(16, 185, 129, 0.2); color: var(--success); }

/* ===== ステータスバッジ（共通） ===== */
.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
}

.status-active { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.status-completed { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-draft { background: rgba(100, 116, 139, 0.1); color: var(--text-secondary); }
.status-closed { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-not-started { background: rgba(100, 116, 139, 0.1); color: var(--text-secondary); }

/* ===== ツールバー・ビュー切替（共通） ===== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.toolbar-left {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: var(--space-2);
}

.view-toggle {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.view-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: none;
    font-size: var(--text-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

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

/* ===== ビュー切替（共通） ===== */
.card-view { display: none; }
.card-view.active { display: grid; }
.table-view { display: none; }
.table-view.active { display: block; }
.beh-grid-view { display: none; }
.beh-grid-view.active { display: block; }

/* ===== 評価テーブル（共通） ===== */
.eval-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.eval-table th {
    padding: 0.6rem var(--space-2);
    text-align: center;
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.eval-table td {
    padding: 0.6rem var(--space-2);
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-weight: 600;
}

.eval-table td.name-cell,
.eval-table td.dept-cell {
    font-family: var(--font-body);
    text-align: left;
}

.eval-table tbody tr:hover {
    background: var(--bg-main);
}

/* ===== 行動一覧テーブル（共通） ===== */
.beh-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs);
}

.beh-grid-table th {
    padding: 0.3rem 0.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
}

.beh-grid-table td {
    padding: 0.35rem 0.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.beh-grid-table tbody tr:hover {
    background: var(--bg-main);
}

.beh-grid-table .sticky-name {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 2;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    min-width: 80px;
    padding-left: var(--space-2);
    white-space: nowrap;
}

.beh-grid-table tbody tr:hover .sticky-name {
    background: var(--bg-main);
}

.beh-grid-table .sticky-name-th {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 3;
    text-align: left;
    padding-left: var(--space-2);
}

.beh-grid-table .cat-header {
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.4rem 0.3rem;
}

.beh-grid-table .item-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    min-height: 70px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ===== リンク・セル（共通） ===== */
.name-cell-link {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.name-cell-link:hover {
    text-decoration-style: solid;
}

/* ===== アクションバー（共通） ===== */
.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

/* ===== カードアクション（共通） ===== */
.card-actions {
    display: flex;
    gap: var(--space-2);
}

.card-actions .btn {
    padding: 0.84rem 0;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
}

/* ===== 明細パネル（共通） ===== */
.detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-dropdown);
}

.detail-overlay.show {
    display: flex;
    justify-content: flex-end;
}

.detail-panel {
    width: min(680px, 90vw);
    height: 100vh;
    background: var(--bg-main);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.detail-panel-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.detail-panel-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-panel-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.detail-panel-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--space-1);
    line-height: 1;
}

.detail-panel-body {
    padding: var(--space-4) var(--space-5);
}

.detail-section {
    margin-bottom: var(--space-5);
}

.detail-section-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.detail-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-2);
    border: 1px solid var(--border);
}

.detail-item-title {
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.detail-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.detail-scores {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.detail-score-box {
    flex: 1;
    text-align: center;
    padding: 0.4rem var(--space-2);
    border-radius: var(--radius-md);
}

.detail-score-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.detail-score-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.detail-comment {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: var(--space-2) 0.6rem;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
}

.detail-comment-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}
