/* === Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: #eef2ff;
    --color-secondary: #6b7280;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-accent: #3182ce;
    --color-hero-from: #0f172a;
    --color-hero-to: #312e81;
    --color-sidebar-bg-from: #0f172a;
    --color-sidebar-bg-to: #1e1b4b;
    --color-sidebar-text: rgba(255, 255, 255, 0.7);
    --color-sidebar-text-hover: #ffffff;
    --color-sidebar-border: rgba(255, 255, 255, 0.08);
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    --sidebar-width: 260px;
    --transition-default: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* === Landing page === */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Landing nav --- */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.25rem 2rem;
}

.landing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav .logo {
    color: #ffffff;
}

.landing-login-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s;
}

.landing-login-link:hover {
    color: #ffffff;
}

/* --- Hero --- */
.landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(160deg, var(--color-hero-from) 0%, var(--color-hero-to) 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    max-width: 560px;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.landing-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* --- Auth buttons --- */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 320px;
    max-width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}

.auth-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn svg {
    flex-shrink: 0;
}

.auth-btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.auth-btn-email {
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-trust-text {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

/* --- Features section --- */
.landing-features {
    background: var(--color-bg);
    padding: 5rem 2rem;
}

.landing-features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.landing-feature-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.landing-feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.landing-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.landing-feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --- How it works --- */
.landing-steps {
    background: var(--color-surface);
    padding: 5rem 2rem;
}

.landing-steps-inner {
    max-width: 900px;
    margin: 0 auto;
}

.landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.landing-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.landing-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.landing-step p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --- Landing footer --- */
.landing-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    background: var(--color-bg);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-default), transform 0.1s, box-shadow var(--transition-default);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3); }

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg); border-color: var(--color-primary); color: var(--color-primary); }

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* === App shell === */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--color-sidebar-bg-from) 0%, var(--color-sidebar-bg-to) 100%);
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-sidebar-border);
}

.sidebar-header .logo {
    color: var(--color-sidebar-text-hover);
}

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

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-default), background var(--transition-default);
}

.nav-link:hover {
    color: var(--color-sidebar-text-hover);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--color-sidebar-text-hover);
    background: rgba(99, 102, 241, 0.15);
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--color-sidebar-border);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.profile-info {
    overflow: hidden;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-sidebar-text-hover);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 0.75rem;
    color: var(--color-sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .nav-link {
    color: var(--color-sidebar-text);
}

.sidebar-footer .nav-link:hover {
    color: var(--color-sidebar-text-hover);
}

/* === Main content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem 3rem;
}

.view { display: none; }
.view.active { display: block; }

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.view-actions {
    display: flex;
    gap: 0.5rem;
}

/* === Welcome banner === */
.welcome-banner {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.welcome-banner h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.welcome-steps {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 180px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.welcome-step p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* === Stats cards === */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.125rem;
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-default), transform var(--transition-default);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
}

/* === Action bar === */
.action-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-status-inline {
    font-size: 0.875rem;
    color: var(--color-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    background: var(--color-primary-light);
}

.search-status-inline.success {
    background: #d1fae5;
    color: var(--color-success);
}

.search-status-inline.error {
    background: #fee2e2;
    color: var(--color-danger);
}

/* === Positions grid === */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.position-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--transition-default);
}

.position-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.position-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.position-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.position-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* === Tags === */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: var(--color-text-muted);
}

.tag-deadline {
    background: #fef3c7;
    color: var(--color-warning);
}

/* === Match badges === */
.match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.match-high {
    background: var(--color-success);
}

.match-medium {
    background: var(--color-warning);
}

.match-low {
    background: var(--color-danger);
}

/* === Status pills === */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-ny { background: #f1f5f9; color: #475569; }
.status-sokt { background: #dbeafe; color: #1d4ed8; }
.status-intervju { background: #fef9c3; color: #a16207; }
.status-erbjudande { background: #dcfce7; color: #15803d; }
.status-avslag { background: #fce4ec; color: #c62828; }
.status-arkiverad { background: #e5e7eb; color: #6b7280; }

/* === Legacy badge (keep for compatibility) === */
.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-match {
    background: #d1fae5;
    color: var(--color-success);
}

.badge-deadline {
    background: #fef3c7;
    color: var(--color-warning);
}

/* === Files list === */
.files-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}
.files-header .btn-sm {
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s;
}

.file-item:hover {
    box-shadow: var(--shadow);
}

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

.file-icon {
    font-size: 1.25rem;
}

.file-name {
    font-weight: 500;
    display: block;
}

.file-size {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* === File upload area === */
.file-upload-area {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* === CV sections === */
.cv-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.cv-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cv-field {
    margin-bottom: 1rem;
}

.cv-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

/* === Forms === */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition-default), box-shadow var(--transition-default);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.input-field {
    min-height: 80px;
    resize: vertical;
}

/* === Search === */
.search-controls {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-countdown {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.search-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.help-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.status-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
}

.status-message.success { background: #d1fae5; color: var(--color-success); }
.status-message.error { background: #fee2e2; color: var(--color-danger); }
.status-message.loading { background: var(--color-primary-light); color: var(--color-primary); }

/* === Empty state === */
.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 1rem;
}

/* === Waiting list (invitation-only) === */
.not-approved-container {
    max-width: 560px;
    margin: 4rem auto;
    text-align: center;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.not-approved-container h1 {
    margin-bottom: 1rem;
}

.not-approved-container p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    text-align: left;
}

.not-approved-container a[href^="mailto"] {
    color: var(--color-primary);
    font-weight: 500;
}

.waitlist-form {
    text-align: left;
    margin-top: 1.5rem;
}

.waitlist-form .cv-field {
    margin-bottom: 1.25rem;
}

.waitlist-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.waitlist-form select.input-field {
    appearance: auto;
}

.disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    text-align: left;
}

/* === Parse progress === */
.parse-progress {
    max-width: 480px;
    margin: 2rem auto;
    text-align: center;
}

.parse-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.parse-progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.parse-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    min-height: 1.5rem;
}

.parse-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: parse-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes parse-spin {
    to { transform: rotate(360deg); }
}

/* === Search progress === */
.search-progress {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.search-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.search-progress-step:last-child {
    margin-bottom: 0;
}

.search-progress-step .parse-spinner {
    width: 14px;
    height: 14px;
}

.search-progress-step.done {
    color: var(--color-success);
}

.search-progress-step.done::before {
    content: '\2713';
    font-weight: 700;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* === Keyword chips === */
.keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
}

.keyword-chip .chip-remove {
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--color-text-muted);
    border: none;
    background: none;
    padding: 0;
}

.keyword-chip .chip-remove:hover {
    color: var(--color-danger);
}

.keyword-add-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-add-row input {
    flex: 1;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* === Dev tools === */
.dev-tools {
    margin-bottom: 1.5rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.dev-tools summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0;
}

.dev-tool-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.dev-tool-row input {
    flex: 1;
}

.dev-tool-status {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

/* === Toast notifications === */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text);
    animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.removing {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success { border-left-color: var(--color-success); }
.toast-error { border-left-color: var(--color-danger); }
.toast-info { border-left-color: var(--color-primary); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Position detail metadata === */
.position-detail-meta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.position-detail-meta h1 {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.position-detail-meta .position-role {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.position-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.match-analysis {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.match-analysis h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.match-analysis-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.strength-tag {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #d1fae5;
    color: #065f46;
}

.gap-tag {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
}

.position-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
}

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

.position-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.position-status-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.position-status-row select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
}

/* === Dashboard controls === */
.dashboard-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-controls .search-box {
    flex: 1;
    min-width: 200px;
}

.dashboard-controls .search-box .input-field {
    width: 100%;
}

.dashboard-controls select.input-field {
    width: auto;
    min-width: 150px;
}

/* === Modal overlay === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem;
    animation: modal-fade-in 0.2s ease-out;
    overflow-y: auto;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modal-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.375rem;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background var(--transition-default), color var(--transition-default);
}

.modal-close:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.modal-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0 1.75rem;
    overflow-x: auto;
}

.modal-tab {
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition-default), border-color var(--transition-default);
}

.modal-tab:hover {
    color: var(--color-text);
}

.modal-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === Modal: Overview tab === */
.overview-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.match-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.match-circle.match-high { background: var(--color-success); }
.match-circle.match-medium { background: var(--color-warning); }
.match-circle.match-low { background: var(--color-danger); }

.match-explanation {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.overview-section {
    margin-bottom: 1.25rem;
}

.overview-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.overview-list {
    list-style: none;
    padding: 0;
}

.overview-list li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.overview-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.overview-list.strengths li::before {
    background: var(--color-success);
}

.overview-list.weaknesses li::before {
    background: var(--color-danger);
}

/* === Modal: Organisation tab === */
.org-description {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* === Modal: Edit tab === */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.edit-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.edit-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.edit-link-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-link-row input {
    flex: 1;
}

.edit-link-row .btn-remove-link {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 0.375rem;
}

/* === Modal: Contacts tab === */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.contact-role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.375rem;
}

.contact-links {
    display: flex;
    gap: 0.75rem;
}

.contact-links a {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: none;
}

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

/* === Structured keyword sections === */
.keyword-section {
    margin-bottom: 1.25rem;
}

.keyword-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.keyword-section-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.keyword-section-header .keyword-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.keyword-chip-cv {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.keyword-chip-manual {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: #c7d2fe;
}

.keyword-chip-excluded {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* === Stat card quick-filters === */
.stat-card[data-filter] {
    cursor: pointer;
    user-select: none;
}

.stat-card[data-filter="none"] {
    cursor: default;
}

.stat-card[data-filter]:not([data-filter="none"]):hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.stat-card.stat-card-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.stat-card.stat-card-active .stat-value {
    color: var(--color-primary);
}

/* === Hamburger button === */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-default);
}

.hamburger-btn:hover {
    box-shadow: var(--shadow-md);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.2s;
}

/* === Sidebar overlay === */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9;
}

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

body.sidebar-open {
    overflow: hidden;
}

/* === CV editor tabs === */
.cv-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.cv-tab {
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition-default), border-color var(--transition-default);
}

.cv-tab:hover {
    color: var(--color-text);
}

.cv-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.cv-tab-content {
    display: none;
}

.cv-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === Collapsible CV entries === */
.cv-collapsible {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.cv-collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    list-style: none;
    transition: background var(--transition-default);
}

.cv-collapsible-header:hover {
    background: var(--color-bg);
}

.cv-collapsible-header::-webkit-details-marker {
    display: none;
}

.cv-collapsible-icon {
    width: 0;
    height: 0;
    border-left: 5px solid var(--color-text-muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.cv-collapsible[open] .cv-collapsible-icon {
    transform: rotate(90deg);
}

.cv-collapsible-body {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
}

/* === Annons text === */
.annons-text {
    white-space: pre-wrap;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--color-bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    max-height: 70vh;
    overflow-y: auto;
    font-family: inherit;
}

/* === Delete section === */
.delete-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.delete-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-danger);
    margin-bottom: 0.75rem;
}

.delete-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.delete-confirm-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* === Sort wrapper === */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.sort-direction {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--color-text-muted);
    transition: border-color 0.15s, color 0.15s;
}

.sort-direction:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* === Position card match tiers === */
.position-card.match-tier-high {
    border-left: 4px solid var(--color-success);
}

.position-card.match-tier-medium {
    border-left: 4px solid var(--color-warning);
}

.position-card.match-tier-low {
    border-left: 4px solid var(--color-danger);
}

/* === Position card summary === */
.position-summary {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Position card strength tags === */
.position-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.position-strengths .strength-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
}

/* === Generate section === */
.generate-section {
    padding: 1rem 0;
}

.generate-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.generate-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.generate-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

.generate-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gen-warning {
    font-size: 0.8125rem;
    color: var(--color-warning);
    margin-left: 1.625rem;
}
.gen-existing {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.125rem 0.5rem;
}

/* === Deadline timeline === */
.timeline-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.timeline-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.timeline-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.timeline-dot-sample {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-dot-sample.timeline-dot-active { background: var(--color-primary); }
.timeline-dot-sample.timeline-dot-waiting { background: var(--color-warning); }
.timeline-dot-sample.timeline-dot-missed { background: var(--color-danger); }
.timeline-dot-sample.timeline-dot-archived { background: var(--color-border); }

.timeline-track-wrapper {
    overflow-x: auto;
    padding: 5rem 1.5rem 1.25rem;
}

.timeline-track {
    position: relative;
    height: 80px;
    min-width: 600px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
}

.timeline-week-marker {
    position: absolute;
    top: 28px;
    width: 1px;
    height: 24px;
    background: var(--color-border);
}

.timeline-week-label {
    position: absolute;
    top: 56px;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    transform: translateX(-50%);
}

.timeline-today-marker {
    position: absolute;
    top: 16px;
    width: 2px;
    height: 48px;
    background: var(--color-primary);
    border-left: 1px dashed var(--color-primary);
    border-right: 1px dashed var(--color-primary);
    background: none;
}

.timeline-today-label {
    position: absolute;
    top: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    transform: translateX(-50%);
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 34px;
    transform: translateX(-50%);
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 1;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.timeline-dot.timeline-dot-active { background: var(--color-primary); }
.timeline-dot.timeline-dot-waiting { background: var(--color-warning); }
.timeline-dot.timeline-dot-missed { background: var(--color-danger); }
.timeline-dot.timeline-dot-archived { background: var(--color-border); }

.timeline-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    line-height: 1.4;
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text);
}

.timeline-dot:hover .timeline-tooltip {
    opacity: 1;
}

/* === Utility === */
.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 1024px) and (min-width: 769px) {
    .landing-features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content {
        margin-left: 0;
        padding: 3.5rem 1.25rem 2rem;
    }

    .view-header h1 {
        font-size: 1.5rem;
    }

    .landing-hero h1 { font-size: 2rem; }
    .landing-hero-subtitle { font-size: 1rem; }
    .auth-btn { width: 100%; }
    .landing-features-grid { grid-template-columns: 1fr; }
    .landing-steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .landing-section-title { font-size: 1.375rem; }
    .positions-grid { grid-template-columns: 1fr; }

    .welcome-steps {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .modal-overlay {
        padding: 0;
    }

    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .dashboard-controls {
        flex-direction: column;
    }

    .dashboard-controls select.input-field {
        width: 100%;
    }

    .timeline-header {
        padding: 0.75rem 1rem;
    }

    .timeline-track-wrapper {
        padding: 0 1rem 1rem;
    }

    .timeline-legend {
        gap: 0.5rem;
    }

    .timeline-legend-item {
        font-size: 0.6875rem;
    }
}
