:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #15803d;
    --success-bg: #dcfce7;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}

input,
select,
textarea,
button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.narrow {
    width: min(760px, calc(100% - 32px));
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -48px;
    background: var(--text);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    z-index: 10;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-wrap,
.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
}

.nav-links {
    display: none;
    gap: 18px;
    color: var(--muted);
    font-weight: 600;
}

.locale-form {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: white;
}

.locale-btn {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
}

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

.site-main {
    min-height: calc(100vh - 140px);
}

.hero {
    padding: 56px 0 36px;
    background: radial-gradient(circle at top left, #dbeafe, transparent 36%), linear-gradient(135deg, #f8fafc, #eef2ff);
}

.hero-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-text {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 680px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}

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

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

.summary-card,
.panel,
.track-card,
.chart-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.summary-card {
    padding: 24px;
}

.summary-number {
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 900;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.summary-list span {
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.section {
    padding: 42px 0;
}

.section.soft {
    background: #eef2ff;
}

.section-head {
    margin-bottom: 22px;
}

.section-head p {
    color: var(--muted);
}

.track-grid,
.chart-grid,
.track-choice-grid {
    display: grid;
    gap: 16px;
}

.track-card {
    padding: 20px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.track-card:hover {
    transform: translateY(-3px);
}

.track-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--primary);
}

.track-card.cyan .track-icon { background: #0891b2; }
.track-card.green .track-icon { background: #16a34a; }
.track-card.purple .track-icon { background: #7c3aed; }
.track-card.orange .track-icon { background: #ea580c; }
.track-card.red .track-icon { background: #dc2626; }
.track-card.slate .track-icon { background: #475569; }

.track-card p,
.chart-card p {
    color: var(--muted);
}

.chart-card,
.panel {
    padding: 22px;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 180px;
    padding-top: 24px;
}

.bar-chart span {
    flex: 1;
    min-width: 18px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.form-grid {
    display: grid;
    gap: 16px;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    border: 0;
    padding: 0;
    margin: 0;
}

label span,
legend {
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    background: white;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.track-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.track-choice input {
    width: auto;
    min-height: auto;
}

.full {
    grid-column: 1 / -1;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success);
}

.login-card {
    margin-top: 48px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: white;
    color: var(--muted);
}

@media (min-width: 720px) {
    .nav-links {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1.4fr 0.8fr;
    }

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

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

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

@media (min-width: 1024px) {
    .track-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.notice.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.spacing-top {
    margin-top: 18px;
}

.admin-nav,
.assessment-actions,
.assessment-top,
.recommendation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-nav {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.admin-nav a,
.admin-nav button {
    border: 0;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.stat-card span {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
}

.table-wrap {
    overflow-x: auto;
}

.export-row,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.inline-form {
    margin: 8px 0 0;
}

.inline-form select,
.inline-form button {
    min-height: 38px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    text-align: start;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timer {
    border-radius: 999px;
    background: #0f172a;
    color: white;
    padding: 8px 14px;
    font-weight: 900;
}

.timer.warning {
    background: #b91c1c;
}

.question-card h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.25;
}

.option-list {
    display: grid;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.option-item input {
    width: auto;
    min-height: auto;
}

.check-list {
    display: grid;
    gap: 10px;
    padding-inline-start: 20px;
}

.report-head h2 {
    margin-bottom: 4px;
}

.recommendation-grid {
    justify-content: stretch;
}

.recommendation-grid div {
    flex: 1 1 180px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

.recommendation-grid strong,
.recommendation-grid span {
    display: block;
}

@media (min-width: 720px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (min-width: 720px) {
    .summary-grid {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.big-score {
    text-align: center;
    background: linear-gradient(180deg, #dbeafe, white);
    border-radius: 18px;
    padding: 18px;
}

.big-score span {
    display: block;
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.big-score p {
    margin: 4px 0 0;
    color: var(--muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pill {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.chart-canvas {
    min-height: 280px;
}

.stat-grid-3 {
    margin: 0;
}

.stat-grid-3 .stat-card span {
    font-size: 1.8rem;
}

.bridge-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.bridge-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
}

.bridge-card h3 {
    margin: 0 0 4px;
}

.bridge-card .muted {
    margin: 0 0 8px;
}

.answer-text {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-grid label {
    gap: 4px;
}

.filter-grid .filter-actions {
    display: flex;
    gap: 8px;
}

.bulk-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.analytics-cell {
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

.analytics-cell span {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px 8px;
}


