/* ==================== AiMeet Data Analysis Dashboard - styles.css v1.1.0 ==================== */

/* ---------- CSS Variables (Dark Theme - default) ---------- */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --bg-sidebar: #0f172a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --chart-1: #818cf8;
    --chart-2: #34d399;
    --chart-3: #fbbf24;
    --chart-4: #f87171;
    --chart-5: #38bdf8;
    --chart-6: #a78bfa;
    --chart-7: #fb923c;
    --chart-8: #4ade80;
    --sidebar-width: 200px;
}

/* ---------- Light Theme ---------- */
body.theme-light {
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-sidebar: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
}

body.theme-light header {
    box-shadow: 0 2px 8px var(--shadow);
}

body.theme-light .sidebar {
    box-shadow: 2px 0 8px var(--shadow);
}

body.theme-light .kpi-card,
body.theme-light .section,
body.theme-light .settings-bar {
    box-shadow: 0 1px 3px var(--shadow);
}

body.theme-light .section-desc {
    background: rgba(79, 70, 229, 0.04);
}

body.theme-light .data-table th {
    background: #f1f5f9;
    color: var(--primary);
}

body.theme-light .metric-card,
body.theme-light .eval-axis-card,
body.theme-light .segment-card,
body.theme-light .rate-item {
    background: #f8fafc;
}

/* ---------- Reset & Base ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* ---------- Login Overlay ---------- */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.authenticated .login-overlay {
    display: none;
}

.main-content {
    display: none;
}

body.authenticated .main-content {
    display: flex;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Microsoft Sign-in Button */
.ms-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: #2f2f2f;
    border: 1px solid #8c8c8c;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ms-signin-btn:hover {
    background: #1f1f1f;
}

body.theme-light .ms-signin-btn {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #d1d5db;
}

body.theme-light .ms-signin-btn:hover {
    background: #f3f4f6;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

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

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-error {
    color: var(--danger);
    margin-top: 1rem;
    font-size: 0.85rem;
    display: none;
}

.login-error.show {
    display: block;
}

.login-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.login-links a {
    color: var(--primary-light);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-success {
    color: var(--success);
    margin-top: 1rem;
    font-size: 0.85rem;
    display: none;
}

.login-success.show {
    display: block;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s;
    overflow-y: auto;
}

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

.sidebar-logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo-img {
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    flex: 1;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(79, 70, 229, 0.06);
}

.sidebar-link.active {
    color: var(--primary-light);
    border-left-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ---------- Content Area ---------- */
.content-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    transition: margin-left 0.3s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.header-logo {
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}

header h1 {
    font-size: 1.3rem;
    color: #fff;
}

.header-version {
    font-size: 0.75rem;
    opacity: 0.7;
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s;
}

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

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: inline; }
body.theme-light .theme-icon-light { display: inline; }
body.theme-light .theme-icon-dark { display: none; }

.header-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #fff;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: background 0.2s;
}

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

/* ---------- Settings Bar (redesigned 2-row) ---------- */
.settings-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s, border-color 0.3s;
}

.settings-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.settings-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.settings-advanced {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.settings-advanced.show {
    display: flex;
}

/* Auth section in advanced settings */
.auth-section, .dify-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.auth-input-row {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.auth-input-row input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.82rem;
    width: 140px;
    transition: border-color 0.2s, background 0.3s;
}

.auth-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.token-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.token-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    flex-shrink: 0;
    transition: background 0.3s;
}

.token-indicator.active {
    background: var(--success-light);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-group label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-inline {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.setting-group input,
.setting-group select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.82rem;
    min-width: 140px;
    transition: border-color 0.2s, background 0.3s;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.token-display {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
}

.btn {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #475569; }
body.theme-light .btn-secondary:hover { background: #cbd5e1; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.72rem; }

/* Environment selector active state */
.env-option {
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1.5px solid transparent;
}

.env-option.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.env-option.active:hover {
    background: var(--primary-dark);
}

/* ---------- Progress Bar ---------- */
.progress-wrap { display: none; width: 100%; margin-top: 0.5rem; }
.progress-wrap.show { display: block; }
.progress-bar-outer { width: 100%; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar-inner { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s ease; width: 0%; }
.progress-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; text-align: center; }

/* ---------- Exhibition Info Banner ---------- */
.exhibition-banner { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; display: none; transition: background 0.3s; }
.exhibition-banner.show { display: block; }
.exhibition-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.15rem; }
.exhibition-period { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- KPI Cards ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, background 0.3s;
    position: relative;
}
.kpi-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.kpi-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }
.kpi-value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.kpi-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; min-height: 1em; }

/* KPI Delta Indicator */
.kpi-delta {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.25rem;
    min-height: 1.2em;
}
.kpi-delta.up { color: var(--success-light); }
.kpi-delta.down { color: var(--danger); }
.kpi-delta.neutral { color: var(--text-muted); }

/* ---------- Section ---------- */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s, border-color 0.3s;
}

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

.section.collapsible .section-header {
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0;
    border-radius: 6px;
    transition: background 0.15s;
}

.section.collapsible .section-header:hover {
    background: rgba(79, 70, 229, 0.04);
}

.section h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }

.collapse-icon {
    font-size: 0.7rem;
    display: inline-block;
    transition: transform 0.3s;
    color: var(--text-muted);
    width: 1em;
    text-align: center;
}

.section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.section.collapsed .section-desc,
.section.collapsed .section-body {
    display: none;
}

.section-actions { display: flex; gap: 0.5rem; align-items: center; }

.section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.85rem;
    background: rgba(79, 70, 229, 0.06);
    border-left: 3px solid var(--primary-light);
    border-radius: 0 6px 6px 0;
    transition: background 0.3s;
}

.sub-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* ---------- Chart Grid ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.chart-box { position: relative; }
.chart-box h3 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; }
.chart-container { position: relative; width: 100%; max-height: 320px; }
.chart-container canvas { width: 100% !important; max-height: 320px; }

/* ---------- Metric Cards ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.metric-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem; text-align: center; transition: background 0.3s; }
.metric-value { font-size: 1.2rem; font-weight: 700; }
.metric-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* ---------- Rate Bar ---------- */
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.rate-item { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem; transition: background 0.3s; }
.rate-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.rate-label { font-size: 0.82rem; font-weight: 500; }
.rate-value { font-size: 1rem; font-weight: 700; }
.rate-bar-outer { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rate-bar-inner { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.rate-bar-inner.green { background: var(--success); }
.rate-bar-inner.blue { background: var(--info); }
.rate-bar-inner.yellow { background: var(--warning); }
.rate-bar-inner.purple { background: var(--chart-6); }

/* ---------- Data Table ---------- */
.table-wrap { overflow-x: auto; max-height: 500px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.data-table th { position: sticky; top: 0; background: var(--bg-card); color: #93c5fd; text-align: left; padding: 0.55rem 0.65rem; border-bottom: 2px solid var(--primary); font-weight: 600; font-size: 0.72rem; white-space: nowrap; z-index: 1; cursor: pointer; user-select: none; }
body.theme-light .data-table th { color: var(--primary); background: #f1f5f9; }
.data-table th:hover { color: var(--primary-light); }
.data-table th.sort-asc::after { content: ' \25B2'; font-size: 0.55rem; }
.data-table th.sort-desc::after { content: ' \25BC'; font-size: 0.55rem; }
.data-table td { padding: 0.45rem 0.65rem; border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.78rem; white-space: nowrap; }
.data-table tbody tr:hover { background: rgba(79, 70, 229, 0.08); }
.data-table .row-num { color: var(--text-muted); font-size: 0.68rem; width: 36px; text-align: center; }

/* ---------- Filter ---------- */
.filter-wrap { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
.filter-wrap input { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.78rem; flex: 1; max-width: 280px; }
.filter-wrap input:focus { outline: none; border-color: var(--primary); }
.filter-count { font-size: 0.72rem; color: var(--text-muted); }

/* ---------- Tag Cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag-item { background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; padding: 0.25rem 0.7rem; font-size: 0.75rem; display: flex; align-items: center; gap: 0.35rem; }
.tag-count { background: var(--primary); color: white; border-radius: 10px; padding: 0.1rem 0.35rem; font-size: 0.62rem; font-weight: 600; }

/* ---------- No Data ---------- */
.no-data { text-align: center; padding: 2.5rem; color: var(--text-muted); }
.no-data-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.no-data p { font-size: 0.85rem; }

/* ---------- Loading Spinner ---------- */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; margin-right: 0.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skeleton Loading ---------- */
.skeleton {
    background: var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

body.theme-light .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

@keyframes skeleton-pulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-kpi { height: 80px; }
.skeleton-chart { height: 200px; margin-top: 0.5rem; }
.skeleton-text { height: 14px; margin-bottom: 0.5rem; }
.skeleton-text.short { width: 60%; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 1.5rem; color: var(--text-muted); font-size: 0.78rem; }
footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 1.1rem; font-size: 0.82rem; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---------- Overall Evaluation (総合評価) ---------- */
.eval-top {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.eval-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.eval-score-ring {
    position: relative;
    width: 130px;
    height: 130px;
}

.eval-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.eval-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.eval-ring-fg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.eval-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.eval-score-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.eval-grade-excellent { color: #34d399; }
.eval-grade-good { color: #818cf8; }
.eval-grade-fair { color: #38bdf8; }
.eval-grade-needs-work { color: #fbbf24; }
.eval-grade-poor { color: #f87171; }

.eval-radar-wrap {
    position: relative;
    width: 100%;
    max-height: 260px;
}

.eval-axes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.eval-axis-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    transition: background 0.3s;
}

.eval-axis-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.eval-axis-icon { font-size: 1rem; }
.eval-axis-name { font-weight: 600; font-size: 0.82rem; flex: 1; }
.eval-axis-score { font-weight: 800; font-size: 1.1rem; }
.eval-axis-score small { font-size: 0.6rem; font-weight: 400; opacity: 0.6; }

.eval-axis-bar-outer {
    width: 100%;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.eval-axis-bar-inner {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.eval-axis-details {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.eval-sub-title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.eval-comment {
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.6;
    border-left: 4px solid;
}

.eval-comment-success { background: rgba(52, 211, 153, 0.08); border-color: #34d399; }
.eval-comment-info { background: rgba(56, 189, 248, 0.08); border-color: #38bdf8; }
.eval-comment-warning { background: rgba(251, 191, 36, 0.08); border-color: #fbbf24; }
.eval-comment-danger { background: rgba(248, 113, 113, 0.08); border-color: #f87171; }

.eval-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.eval-suggestion-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    transition: background 0.3s;
}

.eval-suggestion-header { font-weight: 600; font-size: 0.82rem; margin-bottom: 0.4rem; }

.eval-suggestion-list { list-style: none; padding: 0; margin: 0; }
.eval-suggestion-list li { font-size: 0.75rem; color: var(--text-muted); padding: 0.15rem 0; padding-left: 0.9rem; position: relative; line-height: 1.5; }
.eval-suggestion-list li::before { content: '\2192'; position: absolute; left: 0; color: var(--primary-light); font-size: 0.68rem; }

/* ---------- AI Analysis Section ---------- */
.ai-analysis-content {
    min-height: 120px;
    position: relative;
}

.ai-placeholder {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}
.ai-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}
.ai-placeholder p {
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.ai-streaming-container {
    padding: 0.5rem 0;
}

.ai-streaming-text {
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-streaming-text h1,
.ai-streaming-text h2,
.ai-streaming-text h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}
.ai-streaming-text h1 { font-size: 1.1rem; }
.ai-streaming-text h2 { font-size: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.ai-streaming-text h3 { font-size: 0.92rem; }

.ai-streaming-text p {
    margin: 0.5rem 0;
}

.ai-streaming-text ul, .ai-streaming-text ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ai-streaming-text li {
    margin: 0.25rem 0;
}

.ai-streaming-text strong {
    color: var(--primary-light);
    font-weight: 700;
}

.ai-streaming-text code {
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: 'Consolas', 'Fira Code', monospace;
}

.ai-streaming-text blockquote {
    border-left: 3px solid var(--primary);
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0 6px 6px 0;
    color: var(--text-muted);
}

.ai-streaming-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.82rem;
}
.ai-streaming-text table th,
.ai-streaming-text table td {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    text-align: left;
}
.ai-streaming-text table th {
    background: var(--bg-input);
    font-weight: 600;
}

.ai-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary);
    animation: ai-blink 0.8s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}
@keyframes ai-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ai-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ai-status-bar .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.ai-status-bar.done {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success-light);
}
.ai-status-bar.error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* ---------- Per-Section AI Result ---------- */
.ai-section-result {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
}

.ai-section-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-light);
}

.ai-section-result-text {
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: normal;
}

.btn-ai {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.55rem !important;
}

.btn-xs {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
}
.btn-xs:hover {
    background: var(--bg-input);
}

@media print {
    .ai-section-result { border-left: 3px solid #818cf8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .btn-ai { display: none !important; }
}

.ai-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------- Action Plan ---------- */
.eval-action-plan { margin-top: 1.5rem; }

.action-plan-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-plan-summary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.action-plan-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.action-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.action-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.action-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.action-priority {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.action-priority-high { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.action-priority-mid  { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; }
.action-priority-low  { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
body.theme-light .action-priority-high { background: #fef2f2; color: #dc2626; }
body.theme-light .action-priority-mid  { background: #fffbeb; color: #d97706; }
body.theme-light .action-priority-low  { background: #f0fdf4; color: #16a34a; }

.action-target-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.action-target-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
}

.action-target-bar-wrap {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-target-bar-outer {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.action-target-bar-current {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.action-target-bar-goal {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: var(--text);
    opacity: 0.5;
    border-radius: 1px;
}

.action-target-values {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.action-target-values .current-val { font-weight: 700; color: var(--text); }
.action-target-values .goal-val { font-weight: 700; color: var(--primary); }

.action-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.6;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: var(--bg-input);
}

.action-item-text { flex: 1; }

.action-difficulty {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.difficulty-easy   { background: #dcfce7; color: #166534; }
.difficulty-short  { background: #dbeafe; color: #1e40af; }
.difficulty-mid    { background: #fef3c7; color: #92400e; }

.action-effect {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: rgba(79, 70, 229, 0.06);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

.action-all-good {
    text-align: center;
    padding: 1.5rem;
    color: var(--success-light);
    font-size: 0.85rem;
}
.action-all-good-icon { font-size: 2rem; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
    .eval-top { grid-template-columns: 1fr; justify-items: center; }
    .action-target-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Mode Tabs ---------- */
.mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.3s;
}

.mode-tab {
    flex: 1;
    padding: 0.7rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--text);
}

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

.mode-tab:first-child { border-radius: 10px 0 0 10px; }
.mode-tab:last-child { border-radius: 0 10px 10px 0; }

/* ---------- Compare Settings ---------- */
.compare-settings {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s;
}

.compare-settings-header h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }

.compare-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.compare-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.compare-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 32px;
    align-items: center;
}

.compare-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-input);
    border: 2px solid;
    border-radius: 20px;
    padding: 0.25rem 0.45rem 0.25rem 0.55rem;
    font-size: 0.78rem;
}

.compare-tag-color { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.compare-tag-label { font-weight: 600; }
.compare-tag-id { color: var(--text-muted); font-size: 0.68rem; font-family: monospace; }
.compare-tag-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0 0.15rem; transition: color 0.2s; }
.compare-tag-remove:hover { color: var(--danger); }

/* ---------- Funnel V2 ---------- */
.funnel-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0;
}

.funnel-v2-stage { width: 100%; display: flex; flex-direction: column; align-items: center; }

.funnel-v2-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    min-height: 50px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.funnel-v2-bar:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.funnel-v2-icon { font-size: 1.2rem; }
.funnel-v2-label { font-weight: 600; font-size: 0.9rem; color: #fff; }
.funnel-v2-count { font-weight: 700; font-size: 1.05rem; color: #fff; background: rgba(0, 0, 0, 0.2); padding: 0.12rem 0.5rem; border-radius: 20px; }
.funnel-v2-info { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; }
.funnel-v2-pct { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.funnel-v2-pct-label { font-size: 0.68rem; color: var(--text-muted); }

.funnel-v2-connector { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; }
.funnel-v2-arrow { font-size: 0.95rem; color: var(--text-muted); animation: funnel-pulse 2s ease-in-out infinite; }
@keyframes funnel-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.funnel-v2-conv { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.funnel-v2-conv-rate { font-size: 0.78rem; font-weight: 600; color: var(--success-light); }
.funnel-v2-conv-rate.increase { color: var(--warning); }
.funnel-v2-conv-drop { font-size: 0.68rem; color: var(--danger); opacity: 0.8; }
.funnel-v2-conv-drop.increase { color: var(--warning); }

/* ---------- Heatmap ---------- */
.heatmap-table td, .heatmap-table th { padding: 0.3rem 0.35rem !important; text-align: center; min-width: 42px; }
.heatmap-header { font-size: 0.62rem !important; padding: 0.25rem !important; }
.heatmap-cell { font-size: 0.68rem; transition: opacity 0.2s; }
.heatmap-cell:hover { opacity: 0.8; }
.heatmap-diag { background: var(--border) !important; color: var(--text-muted) !important; font-weight: 600; }
.heatmap-legend { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-muted); }
.heatmap-legend-item { display: flex; align-items: center; gap: 0.25rem; }
.heatmap-swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

/* ---------- Segment Cards ---------- */
.segment-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.segment-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem; transition: background 0.3s; }
.segment-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.segment-name { font-weight: 600; font-size: 0.82rem; }
.segment-count { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; }
.segment-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.7rem; color: var(--text-muted); }
.segment-stats span { background: var(--border); padding: 0.12rem 0.45rem; border-radius: 4px; }

/* ---------- Lead Scoring ---------- */
.lead-badge { display: inline-block; padding: 0.12rem 0.45rem; border-radius: 12px; font-size: 0.68rem; font-weight: 700; text-align: center; min-width: 26px; }
.lead-rank-s, .lead-badge.lead-rank-s { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.lead-rank-a, .lead-badge.lead-rank-a { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.lead-rank-b, .lead-badge.lead-rank-b { background: rgba(129, 140, 248, 0.2); color: #818cf8; }
.lead-rank-c, .lead-badge.lead-rank-c { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* ---------- Flow Analysis ---------- */
.flow-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; max-width: 500px; }
.flow-stop { display: inline-block; background: var(--primary); color: #fff; padding: 0.12rem 0.45rem; border-radius: 12px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; cursor: default; transition: background 0.2s; }
.flow-stop:hover { background: #6366f1; }
.flow-arrow { color: var(--text-muted); font-size: 0.72rem; margin: 0 0.08rem; user-select: none; }
#flowSection .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

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

    .sidebar-close {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .content-area {
        margin-left: 0;
    }

    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-link {
        display: none;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 900px) {
    .chart-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; text-align: center; }
    .header-left { justify-content: center; }
    .settings-primary { flex-direction: column; align-items: stretch; }
    .settings-actions { margin-left: 0; justify-content: center; flex-wrap: wrap; }
    .setting-group input, .setting-group select { min-width: auto; width: 100%; }
}

@media (max-width: 600px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0.75rem; }
    .rate-grid { grid-template-columns: 1fr; }
    .eval-top { grid-template-columns: 1fr; justify-items: center; }
    .header-right { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Print ---------- */
@media print {
    :root { --bg: #fff; --bg-card: #fff; --bg-input: #f8f9fa; --text: #1a1a1a; --text-muted: #666; --border: #ddd; }
    body { background: #fff; color: #1a1a1a; }
    .login-overlay, .settings-bar, .section-actions, .logout-btn, .header-link, .filter-wrap, .toast, footer, .mode-tabs, .compare-settings, .sidebar, .hamburger, .back-to-top, .theme-toggle, .collapse-icon { display: none !important; }
    .content-area { margin-left: 0 !important; }
    header { background: #4f46e5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .section { break-inside: avoid; border: 1px solid #ddd; }
    .section.collapsed .section-desc, .section.collapsed .section-body { display: block !important; }
    .chart-container { max-height: none; }
    .kpi-card { border: 1px solid #ddd; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .data-table th { background: #f0f0f0; color: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
