:root {
    --bg: #f8fafc; --card: #fff; --border: #e2e8f0; --text: #1e293b;
    --muted: #64748b; --accent: #2563eb; --accent-light: #eff6ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1280px; margin: 0 auto; padding: 20px 24px; }

/* Nav */
nav { background: #1e293b; color: #fff; padding: 12px 24px; position: sticky; top: 0; z-index: 100;
      display: flex; align-items: center; gap: 24px; }
nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
nav a:hover, nav a.active { color: #fff; text-decoration: none; }
nav .brand { font-weight: 700; font-size: 16px; color: #fff; }
nav .right { margin-left: auto; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px;
        padding: 20px 24px; margin-bottom: 16px; }
.card h2 { font-size: 18px; margin-bottom: 12px; }
.card h3 { font-size: 15px; color: var(--muted); margin-bottom: 8px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px;
             padding: 16px; text-align: center; }
.stat-card .value { font-size: 28px; font-weight: 700; }
.stat-card .label { font-size: 13px; color: var(--muted); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f1f5f9; text-align: left; padding: 10px 12px; font-weight: 600;
                 border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: #f8fafc; }
.data-table .score-cell { font-weight: 700; text-align: center; min-width: 40px; }
.data-table .nowrap { white-space: nowrap; }

/* Filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters select, .filters input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
                                    font-size: 14px; background: #fff; }
.filters input[type="text"] { width: 240px; }
.filters input[type="date"] { width: 160px; }
.btn { display: inline-block; padding: 8px 16px; background: var(--accent); color: #fff; border: none;
       border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 500; }
.btn:hover { background: #1d4ed8; text-decoration: none; color: #fff; }
.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }

/* Detail page */
.score-big { font-size: 48px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.skill-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.skill-bar .bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.skill-bar .fill { height: 100%; border-radius: 4px; }
.skill-bar .lbl { font-size: 13px; width: 160px; }
.skill-bar .val { font-size: 13px; font-weight: 600; width: 40px; text-align: right; }

.transcript-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
                   padding: 16px; font-size: 13px; line-height: 1.8; max-height: 500px; overflow-y: auto; white-space: pre-wrap; }
.transcript-box .sdr { color: #2563eb; font-weight: 600; }
.transcript-box .lead { color: #dc2626; font-weight: 600; }
.transcript-box .ts { color: #94a3b8; font-size: 12px; }

.section-title { font-size: 15px; font-weight: 600; margin: 16px 0 8px; color: var(--text); }
.notes-text { font-size: 14px; color: #475569; margin-bottom: 12px; }
.tag { display: inline-block; background: #f1f5f9; border-radius: 6px; padding: 2px 8px;
       font-size: 12px; margin: 2px; color: #475569; }
.tag.good { background: #dcfce7; color: #166534; }
.tag.bad { background: #fee2e2; color: #991b1b; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

h1 { font-size: 22px; margin: 20px 0 10px; }
h2 { font-size: 18px; margin: 16px 0 8px; }
h3 { font-size: 15px; margin: 12px 0 6px; }
p { margin: 6px 0; font-size: 14px; }
li { margin-left: 24px; font-size: 14px; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Login */
.login-container { max-width: 400px; margin: 100px auto; }
.login-container input { width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--border);
                          border-radius: 8px; font-size: 14px; }
.login-container .btn { width: 100%; }
.error-msg { color: #dc2626; font-size: 14px; margin-bottom: 12px; }

/* Tech banner */
.tech-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px 16px;
               margin-bottom: 12px; color: #991b1b; font-size: 14px; }

/* Summary content */
.summary-content { font-size: 14px; line-height: 1.8; }
.summary-content h1 { font-size: 20px; margin-top: 24px; }
.summary-content h2 { font-size: 17px; margin-top: 20px; }
.summary-content h3 { font-size: 15px; margin-top: 16px; }
.summary-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.summary-content th, .summary-content td { padding: 8px 12px; border: 1px solid var(--border); font-size: 13px; }
.summary-content th { background: #f1f5f9; font-weight: 600; }
.summary-content ul, .summary-content ol { margin-left: 24px; margin-bottom: 12px; }
