:root, [data-theme="dark"] {
    --bg: #111b2e;
    --bg-secondary: #182236;
    --bg-primary: #243560;
    --surface: #182236;
    --text: #c9d1d9;
    --text-primary: #c9d1d9;
    --text-secondary: #b1bac4;
    --text-muted: #8b949e;
    --accent: #5b8fd9;
    --accent-dark: #4a7cc9;
    --accent-secondary: #E8792B;
    --accent-secondary-dark: #d46a1f;
    --success: #3fb950;
    --warning: #E8792B;
    --danger: #f85149;
    --border: #324068;
    --card-bg: #243560;
    --skill-1: #3fb950;
    --skill-2: #5b8fd9;
    --skill-3: #E8792B;
    --skill-4: #f85149;
    --skill-5: #d29922;
    --track-accounting: #5b8fd9;
    --track-reporting: #d29922;
    --track-fpa: #3fb950;
    --track-cfo: #bc8cff;
    --stretch: #d926d9;
    --accent-rgb: 91, 143, 217;
    --success-rgb: 63, 185, 80;
    --danger-rgb: 248, 81, 73;
    --warning-rgb: 232, 121, 43;
    --niche-purple: #886ce4;
    --niche-purple-rgb: 136, 108, 228;
    /* Art direction: new palette tokens */
    --gold: #e5a91a;
    --gold-dark: #c48f10;
    --gold-rgb: 229, 169, 26;
    --gradient-primary: linear-gradient(135deg, #5b8fd9, #4a7cc9);
    --gradient-gold: linear-gradient(135deg, #e5a91a, #c48f10);
    --gradient-accent-success: linear-gradient(135deg, var(--accent), var(--success));
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --card-glow: 0 0 12px rgba(91, 143, 217, 0.2);
    /* Type scale */
    --fs-hero: 32px;
    --fs-title: 24px;
    --fs-card-header: 18px;
    --fs-body: 14px;
    --fs-label: 12px;
    --fs-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

[data-theme="light"] {
    --bg: #f9fafb;
    --bg-secondary: #f3f4f6;
    --bg-primary: #ffffff;
    --surface: #f3f4f6;
    --text: #1B2A4A;
    --text-primary: #1B2A4A;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --accent: #1B2A4A;
    --accent-dark: #142040;
    --accent-secondary: #E8792B;
    --accent-secondary-dark: #d46a1f;
    --success: #1a7f37;
    --warning: #E8792B;
    --danger: #cf222e;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --skill-1: #1a7f37;
    --skill-2: #1B2A4A;
    --skill-3: #E8792B;
    --skill-4: #cf222e;
    --skill-5: #7d5800;
    --track-accounting: #1B2A4A;
    --track-reporting: #7d5800;
    --track-fpa: #1a7f37;
    --track-cfo: #6639ba;
    --stretch: #a31ea3;
    --accent-rgb: 27, 42, 74;
    --success-rgb: 26, 127, 55;
    --danger-rgb: 207, 34, 46;
    --warning-rgb: 232, 121, 43;
    --niche-purple: #6639ba;
    --niche-purple-rgb: 102, 57, 186;
    --gold: #b8860b;
    --gold-dark: #996f09;
    --gold-rgb: 184, 134, 11;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-glow: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #f9fafb;
        --bg-secondary: #f3f4f6;
        --bg-primary: #ffffff;
        --surface: #f3f4f6;
        --text: #1B2A4A;
        --text-primary: #1B2A4A;
        --text-secondary: #374151;
        --text-muted: #6b7280;
        --accent: #1B2A4A;
        --accent-dark: #142040;
        --accent-secondary: #E8792B;
        --accent-secondary-dark: #d46a1f;
        --success: #1a7f37;
        --warning: #E8792B;
        --danger: #cf222e;
        --border: #e5e7eb;
        --card-bg: #ffffff;
        --skill-1: #1a7f37;
        --skill-2: #1B2A4A;
        --skill-3: #E8792B;
        --skill-4: #cf222e;
        --skill-5: #7d5800;
        --track-accounting: #1B2A4A;
        --track-reporting: #7d5800;
        --track-fpa: #1a7f37;
        --track-cfo: #6639ba;
        --stretch: #a31ea3;
        --accent-rgb: 27, 42, 74;
        --success-rgb: 26, 127, 55;
        --danger-rgb: 207, 34, 46;
        --warning-rgb: 232, 121, 43;
        --niche-purple: #6639ba;
        --niche-purple-rgb: 102, 57, 186;
        --gold: #b8860b;
        --gold-dark: #996f09;
        --gold-rgb: 184, 134, 11;
        --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
        --card-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
        --card-glow: none;
    }
}

/* TODO: ~20 hardcoded rgba() values throughout this file should be
   converted to theme-aware CSS custom properties for consistent theming. */

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

button, input, textarea {
    color: inherit;
    font-family: inherit;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: var(--fs-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Inline SVG Icon System ── */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 40px; height: 40px; }
.icon-filled { fill: currentColor; stroke: none; }

.nav-icon .icon { width: 22px; height: 22px; }
.mode-icon .icon { width: 36px; height: 36px; }
.theme-toggle-btn .icon { width: 18px; height: 18px; }

/* ── Monospace for financial data ── */
.mono, .salary-value, .stat-value, #simSalary {
    font-family: var(--fs-mono);
    font-variant-numeric: tabular-nums;
}

/* ── Type scale ── */
.home-header h2 {
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.screen-header h2 {
    font-size: var(--fs-title);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
}

/* TOP NAVIGATION */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.3px;
}

/* Smooth theme transition — scoped to specific elements */
html,
body,
.app-container,
.top-nav,
.bottom-nav,
.screen-header {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.debug-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    min-height: 36px;
    transition: color 0.2s, background 0.2s;
}

.debug-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.debug-btn.debug-active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* Debug Panel (fixed overlay) */
.debug-panel {
    position: fixed;
    bottom: 40px;
    left: 8px;
    right: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0,0,0,0.9);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 10px;
    z-index: 1400;
    font-size: 10px;
    font-family: monospace;
    color: var(--warning);
}
.debug-panel .debug-actions {
    margin-top: 4px;
    border-top: 1px solid var(--border);
    padding-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.debug-panel .btn-debug-green {
    background: var(--success);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 9px;
    cursor: pointer;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.theme-toggle-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.bg-option-meta {
    font-size: 10px;
    color: var(--accent);
    margin-top: 4px;
}

/* CONTENT AREA */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.screen.active {
    display: flex;
    position: relative;
    animation: fadeSlideIn 0.25s ease-out;
}

.screen.slide-left {
    animation: slideInLeft 0.25s ease-out;
}

.screen.slide-right {
    animation: slideInRight 0.25s ease-out;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.screen-header {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.screen-header h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.sim-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: var(--accent);
    font-weight: 600;
}

.screen-content {
    flex: 1;
    overflow-y: auto;
}

/* Override padding for sim screen */
#screen-sim .screen-content {
    padding: 0;
}

/* HOME SCREEN */
/* BFR Search Logo */
.bfr-logo {
    text-align: center;
    margin-bottom: 4px;
}

.bfr-logo-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent);
    line-height: 1.15;
}

.bfr-logo-tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--accent);
    opacity: 0.7;
    margin-top: 1px;
}

.home-header {
    text-align: center;
    margin-bottom: 24px;
}

.home-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    gap: 8px;
    box-shadow: var(--card-shadow);
}

.mode-btn:hover,
.mode-btn.active {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

.mode-icon {
    font-size: 28px;
    color: var(--text);
}

.mode-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.mode-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* 2-SLOT CHARACTER CARDS */
.slot-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.slot-card {
    position: relative;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.slot-card.slot-active {
    border-color: var(--accent);
    box-shadow: var(--card-shadow-lg);
}
.slot-card.slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: rgba(var(--accent-rgb), 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.slot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.slot-active-dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 4px rgba(63,185,80,0.6);
}
.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    padding-right: 28px;
}
.slot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    text-align: center;
    padding: 6px 0;
    margin-bottom: 8px;
    font-size: 11px;
}
.slot-actions {
    display: flex;
    gap: 6px;
}
.slot-continue-btn {
    flex: 1;
    padding: 6px 0;
    font-size: 11px;
}
.slot-reset-btn {
    padding: 6px 10px;
    font-size: 10px;
}
.slot-empty-content {
    text-align: center;
}
.slot-plus-icon {
    font-size: 32px;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 4px;
    opacity: 0.5;
}
.slot-new-btn {
    padding: 6px 16px;
    font-size: 11px;
}
@media (max-width: 400px) {
    .slot-cards-grid { grid-template-columns: 1fr; }
}
.sim-slot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 9px;
    font-weight: 700;
    margin-right: 5px;
    vertical-align: middle;
    line-height: 1;
}

.home-info {
    text-align: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    line-height: 1.5;
    box-shadow: var(--card-shadow);
}

.background-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.bg-option {
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.bg-option:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.bg-option.selected {
    border-color: var(--accent);
    background: var(--bg);
}

.bg-option-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.bg-option-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================ */
/* PROFILE WIZARD                                                */
/* ============================================================ */

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 12px;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.wizard-step-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.wizard-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.wizard-step-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.wizard-step-dot.completed {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 48px;
    transition: background 0.3s ease;
}

.wizard-step-connector.completed {
    background: var(--success);
}

.wizard-step-label {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

.wizard-step-label.active {
    color: var(--accent);
    font-weight: 600;
}

.wizard-step-label.completed {
    color: var(--success);
}

.wizard-content {
    padding: 20px 16px;
    animation: wizardFadeIn 0.25s ease-out;
}

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

.wizard-step-header {
    text-align: center;
    margin-bottom: 20px;
}

.wizard-step-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wizard-step-header p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.wizard-nav {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.wizard-nav .btn-secondary {
    flex: 0 0 auto;
    padding: 10px 16px;
}

.wizard-nav .btn-primary {
    flex: 1;
    padding: 12px 16px;
}

.wizard-nav .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--border);
    color: var(--text-muted);
}

/* Step 1 - Name */
.wizard-name-section {
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

.wizard-name-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    text-align: center;
    transition: border-color 0.2s;
    margin-top: 16px;
}

.wizard-name-input:focus {
    outline: 2px solid transparent;
    border-color: var(--accent);
}

.wizard-recruiter-note {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

/* Step 3 - Industry Cards */
.industry-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.industry-card {
    padding: 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.industry-card:hover {
    border-color: var(--accent);
}

.industry-card.selected {
    border-color: var(--accent);
    background: var(--bg);
}

.industry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.industry-card-name {
    font-weight: 700;
    font-size: 14px;
}

.industry-card-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.industry-card-context {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 8px 0;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 2px solid var(--accent);
}

.industry-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.industry-detail-block {
    padding: 6px 8px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.industry-detail-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.sub-industry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sub-industry-card .industry-card-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}

.sub-industry-skills-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.niche-skill-tag {
    display: inline-block;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(var(--niche-purple-rgb), 0.12);
    border: 1px solid rgba(var(--niche-purple-rgb), 0.3);
    color: var(--accent);
    white-space: nowrap;
    margin: 1px 0;
}

.cfo-bias-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.cfo-bias-segment {
    transition: flex-basis 0.3s ease;
}

.size-dist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    margin-bottom: 2px;
    color: var(--text-secondary);
}

.size-dist-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.size-dist-indicator.low { background: var(--text-muted); opacity: 0.4; }
.size-dist-indicator.med { background: var(--warning); }
.size-dist-indicator.high { background: var(--success); }

/* Step 4 - Organization Size Cards */
.org-size-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.org-size-card {
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.org-size-card:hover {
    border-color: var(--accent);
}

.org-size-card.selected {
    border-color: var(--accent);
    background: var(--bg);
}

.org-size-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.org-size-card-title {
    font-weight: 700;
    font-size: 15px;
}

.org-size-card-range {
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
}

.org-size-card-body {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.org-size-card-section {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.org-size-card-section-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.org-sample-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.org-sample-company {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}

.btn-primary {
    padding: 12px 16px;
    background: var(--accent);
    border: none;
    border-radius: 4px;
    color: var(--bg);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.btn-primary:disabled,
.btn-secondary:disabled,
.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* BROWSE MODE */
.filter-section {
    margin-bottom: 16px;
}

.filter-row {
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
}

.search-input:focus {
    outline: 2px solid transparent;
    border-color: var(--accent);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    color: var(--text);
    min-height: 32px;
}

.chip:hover {
    border-color: var(--accent);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.tier-toggle {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.browse-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--card-shadow);
}

.role-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-lg);
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.role-title {
    font-weight: 600;
    font-size: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.role-level {
    background: var(--accent);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.salary-amount {
    color: var(--success);
    font-weight: 600;
}

.scope-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

/* SIMULATION */
.sim-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.sim-left-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sim-right-column {
    overflow-y: auto;
    border-left: 1px solid var(--border);
    padding-left: 10px;
}

/* SKILLS SCREEN */
.skills-screen-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
}

.journal-screen-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sim-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.current-role-card {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 10px 12px;
}

.current-role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.current-role-title {
    font-size: 14px;
    font-weight: 600;
}

.role-badge {
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.role-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 11px;
}

.detail-value {
    font-weight: 600;
}

.yearly-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.action-btn {
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

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

.action-btn.eligible {
    border-color: var(--success);
    color: var(--success);
    background: rgba(63, 185, 80, 0.08);
}

.action-btn.eligible:hover {
    background: rgba(63, 185, 80, 0.15);
}

.action-btn.lateral {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(255, 166, 87, 0.08);
}

.action-btn.lateral:hover {
    background: rgba(255, 166, 87, 0.15);
}


.availability-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.availability-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.availability-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(91, 143, 217, 0.1);
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.availability-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}

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

.status-lateral {
    background: var(--warning);
    color: var(--bg);
}

.status-stepback {
    background: var(--danger);
    color: var(--bg);
}

.status-stretch {
    background: var(--stretch);
    color: var(--bg);
}

.status-internal {
    background: linear-gradient(135deg, var(--warning), var(--accent-dark));
    color: var(--bg);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.missing-skills {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* INLINE SKILLS ON SIM PAGE - Career Map */
.career-skills-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
}

.skills-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skills-section-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.skills-icon {
    font-size: 16px;
}

.skills-summary-chips {
    display: flex;
    gap: 6px;
}

.summary-chip {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.summary-chip.maxed {
    border-color: var(--skill-5);
    color: var(--skill-5);
}

/* Developing context */
.skills-dev-context {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.dev-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dev-skill {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dev-skill.growing {
    border-color: var(--success);
    color: var(--success);
}

.dev-skill.maxed {
    border-color: var(--skill-5);
    color: var(--skill-5);
}

.dev-lvl {
    font-size: 9px;
    opacity: 0.7;
}

/* Skill clusters grid */
.skills-clusters-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-cluster-inline {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg);
}

.cluster-header-inline {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    transition: background 0.15s;
}

.cluster-header-inline:hover {
    background: var(--bg-secondary);
}

.cluster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cluster-name-inline {
    font-weight: 600;
    font-size: 12px;
}

.cluster-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    max-width: 140px;
}

.cluster-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--skill-1), var(--accent));
    border-radius: 2px;
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.cluster-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    min-width: 30px;
    text-align: right;
}

.cluster-toggle-inline {
    font-size: 9px;
    color: var(--text-muted);
    min-width: 12px;
}

.cluster-content-inline {
    display: none;
    padding: 0 12px 10px;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
}

.cluster-content-inline.open {
    display: flex;
}

/* Tier dividers within merged Industry & Niche cluster */
.skill-tier-divider {
    padding: 5px 4px 3px;
    margin-top: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.skill-tier-divider:first-child {
    margin-top: 0;
}
.skill-tier-active {
    color: var(--success);
    border-bottom-color: rgba(63, 185, 80, 0.3);
}
.skill-tier-prior {
    color: var(--accent);
    border-bottom-color: rgba(var(--accent-rgb), 0.3);
}

/* Industry/sub-industry context sub-headers within tiers */
.skill-context-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 1px;
    margin-top: 4px;
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.7;
}

/* Individual skill rows */
.skill-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.skill-row-inline.skill-gaining {
    background: rgba(63, 185, 80, 0.06);
}

.skill-row-inline.skill-decaying {
    background: rgba(248, 81, 73, 0.05);
}

.skill-row-inline.skill-decaying .skill-name-inline {
    color: var(--text-muted);
}

.skill-name-inline {
    font-size: 11px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.skill-badge {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 700;
    line-height: 14px;
}

.skill-badge.growing {
    background: var(--success);
    color: var(--bg);
}

.skill-badge.done {
    background: var(--skill-5);
    color: var(--bg);
}

/* Dot-based skill levels */
.skill-dots {
    display: flex;
    gap: 3px;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.skill-dot.filled {
    background: var(--accent);
}

.skill-dot.filled.level-dot-1 { background: var(--skill-1); }
.skill-dot.filled.level-dot-2 { background: var(--skill-2); }
.skill-dot.filled.level-dot-3 { background: var(--skill-3); }
.skill-dot.filled.level-dot-4 { background: var(--skill-4); }
.skill-dot.filled.level-dot-5 { background: var(--skill-5); }
.skill-dot.mastered { background: var(--skill-5); box-shadow: 0 0 4px var(--skill-5); }

/* TIMELINE SCREEN */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border);
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
}

.timeline-year {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-role {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-role-title {
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

.timeline-salary {
    color: var(--success);
}

.timeline-note {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    gap: 4px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 10px;
    flex: 1;
}

.nav-btn:hover {
    color: var(--text);
}

.nav-btn.active {
    color: var(--accent);
    position: relative;
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2.5px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.resume-inner {
    flex: 1;
    overflow-y: auto;
}

/* RESUME SCREEN */
.resume-document {
    background: var(--bg-primary, var(--bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    margin: 12px 8px;
}

.resume-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text);
    margin-bottom: 14px;
}

.resume-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.resume-info-line {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.resume-section {
    margin-bottom: 16px;
}

.resume-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--text);
    margin-bottom: 10px;
}

.resume-summary-text {
    font-size: 12px;
    color: var(--text-secondary, var(--text-muted));
    line-height: 1.6;
}

.resume-job {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.resume-job:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-prior-experience {
    opacity: 0.85;
    border-left: 2px solid var(--text-muted);
    padding-left: 10px;
}

/* Reference-doc layout: Title, Company, Dates each on their own line */
.resume-exp-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.resume-exp-company {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.resume-exp-dates {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.resume-exp-desc {
    font-size: 11px;
    color: var(--text-secondary, var(--text-muted));
    line-height: 1.5;
    margin-bottom: 6px;
    font-style: italic;
}

.resume-exp-subhead {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
    margin-bottom: 3px;
}

.resume-exp-skills {
    font-size: 10px;
    color: var(--text-secondary, var(--text-muted));
    line-height: 1.6;
}

.resume-bullets {
    list-style: none;
    padding: 0;
    margin: 2px 0 0 0;
}

.resume-bullets li {
    font-size: 11px;
    color: var(--text-secondary, var(--text-muted));
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
    margin-bottom: 2px;
}

.resume-bullets li::before {
    content: "\2022";
    position: absolute;
    left: 2px;
    color: var(--text-muted);
}

.resume-promo-note {
    font-size: 10px;
    color: var(--success);
    margin-top: 4px;
    font-style: italic;
}

.resume-terminated-note {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.resume-skill-group {
    margin-bottom: 8px;
}

.resume-skill-level {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary, var(--text-muted));
    margin-bottom: 4px;
}

.resume-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.resume-skill-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-secondary, var(--text-muted));
    background: var(--bg-secondary);
}

.resume-skill-tag.expert {
    border-color: var(--success);
    color: var(--success);
    background: rgba(63, 185, 80, 0.1);
}

.resume-skill-tag.proficient {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(91, 143, 217, 0.1);
}

.resume-skill-tag.developing {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.resume-skill-tag.niche-highlight {
    border-color: rgba(var(--niche-purple-rgb), 0.5);
    background: rgba(var(--niche-purple-rgb), 0.12);
    position: relative;
}

.resume-skill-tag.niche-highlight::after {
    content: '\2726';
    font-size: 7px;
    margin-left: 3px;
    opacity: 0.7;
}

.resume-cert {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--success);
}

.resume-cert-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.resume-education-entry {
    margin-top: 8px;
}

.resume-education-degree {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.resume-education-detail {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.resume-no-data {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.resume-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.resume-highlight-item {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.resume-highlight-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.resume-highlight-label {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* SCROLLBAR — Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

/* SCROLLBAR — WebKit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* SALARY GRID */
.salary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    font-size: 11px;
}

.salary-label {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.salary-bonus {
    color: var(--text-muted);
    font-size: 10px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .app-container {
        max-width: 720px;
        box-shadow: -1px 0 0 var(--border), 1px 0 0 var(--border);
    }

    .browse-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Ensure header/sort row spans full width in grid mode */
    .browse-results > div:first-child {
        grid-column: 1 / -1;
    }

    .mode-selector {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 960px;
    }

    .sim-two-column {
        grid-template-columns: 1.4fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .sim-two-column {
        grid-template-columns: 1fr;
    }

    .sim-right-column {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }

    .sim-two-column {
        gap: 6px;
        padding: 8px;
    }

    .filter-chips {
        gap: 4px;
    }

    .changelog-modal-content {
        max-height: 85vh;
    }

    .screen-header {
        padding: 8px 12px;
    }

    .screen-header h2 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .top-nav {
        padding: 8px 12px;
    }

    .app-title {
        font-size: 17px;
    }
}

/* ── Onboarding: Spotlight Tour ── */
.spotlight-overlay {
    animation: spotlightFadeIn 0.3s ease;
}
.spotlight-overlay.spotlight-fade-out {
    animation: spotlightFadeOut 0.3s ease forwards;
}
@keyframes spotlightFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spotlightFadeOut { from { opacity: 1; } to { opacity: 0; } }

.spotlight-dim {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: auto;
}

.spotlight-cutout {
    position: fixed;
    border-radius: 10px;
    box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(88, 166, 255, 0.3);
    background: transparent;
    pointer-events: none;
    z-index: 1;
    transition: all 0.35s ease;
}

.spotlight-tooltip {
    position: absolute;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 166, 255, 0.1);
    animation: tooltipSlideIn 0.35s ease;
}
@keyframes tooltipSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.spotlight-tooltip-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.spotlight-tooltip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.spotlight-tooltip-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}
.spotlight-tooltip-desc strong {
    color: var(--accent);
    font-weight: 600;
}

.spotlight-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.spotlight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
}
.spotlight-dot.active {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.4);
}

.spotlight-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.spotlight-skip {
    padding: 8px 16px;
    font-size: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.spotlight-skip:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.spotlight-next {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.spotlight-next:hover {
    filter: brightness(1.1);
}

/* ── Stay Button Pulse (first year) ── */
@keyframes stayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(88, 166, 255, 0); }
}
.stay-btn-pulse {
    animation: stayPulse 2s ease-in-out 3;
}

/* ── Nav Dot Badges (unvisited tabs) ── */
.nav-btn.has-dot {
    position: relative;
}
.nav-btn.has-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    right: calc(50% - 14px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 4px rgba(88, 166, 255, 0.5);
}

/* Build Info Bar */
.build-info-bar {
    display: none;
}

.build-info-bar:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

/* Dynamic Modal Components (JS-created overlays, cards, section cards) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    box-shadow: var(--card-shadow-lg);
}
.sec-card {
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Primary card variant — gradient border accent */
.card-primary {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: var(--card-glow), var(--card-shadow);
}

/* Card hover lift */
.sec-card:hover, .card-primary:hover {
    box-shadow: var(--card-shadow-lg);
}
.job-card-hover {
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.job-card-hover:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Changelog Modal */
.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1200; /* matches Z_INDEX.overlay in app.js */
    display: flex;
    align-items: center;
    justify-content: center;
}

.changelog-modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

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

.changelog-header h3 {
    margin: 0;
    font-size: 14px;
}

.changelog-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, background 0.2s;
}

.changelog-close:hover {
    color: var(--text);
}

.changelog-entries {
    overflow-y: auto;
    padding: 12px 16px;
    flex: 1;
}

.changelog-entry {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.changelog-entry-loop {
    font-weight: 600;
    color: var(--accent);
}

.changelog-entry-time {
    color: var(--text-muted);
    font-size: 9px;
}

.changelog-entry-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.changelog-entry-details {
    color: var(--text-muted);
    line-height: 1.4;
}

/* GLOBAL POLISH */
/* Smooth transitions for all interactive elements */
:where(button), :where(.nav-btn) {
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* Better tap targets for mobile */
.skill-row-inline:active {
    background: rgba(var(--accent-rgb), 0.1);
}

/* Tooltip animation */
#skillTooltip {
    animation: fadeSlideIn 0.2s ease-out;
}

/* Year review toast animation */
#yearReviewToast {
    animation: fadeSlideIn 0.3s ease-out;
}

/* Ensure select elements match theme */
select {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    width: 100%;
    appearance: auto;
}

select:focus {
    outline: 2px solid transparent;
    border-color: var(--accent);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Focus indicators — visible keyboard focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
.action-btn:focus-visible,
.nav-btn:focus-visible,
.mode-btn:focus-visible,
.chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(91, 143, 217, 0.2);
}

input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: transform 0.2s;
    font-size: 13px;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .screen {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .action-btn,
    .nav-btn,
    .chip {
        border: 1px solid ButtonText;
    }

    .timeline-marker {
        border: 2px solid ButtonText;
    }
}

/* TODO: Run CSS coverage audit — many utility classes below may be unused */
/* DRY utility classes for repeated inline styles */
.muted-xs { font-size: 8px; color: var(--text-muted); }
.muted-sm { font-size: 9px; color: var(--text-muted); }
.muted-md { font-size: 10px; color: var(--text-muted); }
.heading-lg { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.emoji-lg { font-size: 28px; margin-bottom: 8px; }
.desc-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.flex-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.btn-full { width: 100%; padding: 10px; font-weight: 600; }
.center-pad { text-align: center; padding: 20px; }
.sec-card-sm { padding: 8px; background: var(--bg-secondary); border-radius: 6px; text-align: center; }
.sec-card-md { padding: 10px 6px; background: var(--bg-secondary); border-radius: 8px; }
.flex-1-center { flex: 1; text-align: center; }
.muted-md-mb { font-size: 10px; color: var(--text-muted); margin-bottom: 6px; }
.muted-md-mt { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.muted-mini-flex { font-size: 7px; color: var(--text-muted); display: flex; align-items: center; gap: 2px; }
.cell-primary-6 { text-align: center; padding: 6px; background: var(--bg-primary); border-radius: 6px; }
.cell-primary-8 { text-align: center; padding: 8px; background: var(--bg-primary); border-radius: 6px; }
.pill-sec { font-size: 10px; padding: 3px 8px; background: var(--bg-secondary); border-radius: 10px; color: var(--text-secondary); }
.btn-warn-sm { background: var(--warning); color: #fff; border: none; border-radius: 4px; padding: 3px 8px; font-size: 9px; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
.btn-warn-sm:hover { opacity: 0.85; }
.muted-xs-mt { font-size: 8px; color: var(--text-muted); margin-top: 2px; }
.flex-between-4 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.muted-md-mb4 { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.sec-card-mb { padding: 8px; background: var(--bg-secondary); border-radius: 6px; margin-bottom: 12px; }
.muted-xs-rev { color: var(--text-muted); font-size: 8px; }
.muted-sm-mt4 { font-size: 9px; color: var(--text-muted); margin-top: 4px; }
.sec-label { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.sec-label-4 { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.flex-between-6 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.stat-cell { flex: 1; min-width: 60px; text-align: center; padding: 6px; background: var(--bg-primary); border-radius: 8px; }
.label-upper { font-size: 8px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.btn-accent-sm { background: var(--accent); color: white; border: none; border-radius: 4px; padding: 3px 8px; font-size: 9px; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
.btn-accent-sm:hover { opacity: 0.85; }
.flex-between-8 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pad-primary-6 { padding: 6px; background: var(--bg-primary); border-radius: 6px; }
.flex-between-12 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.flex-col-8 { display: flex; flex-direction: column; gap: 8px; }
.btn-full-12 { width: 100%; padding: 12px; font-weight: 600; }
.heading-warn { font-size: 14px; font-weight: 700; color: var(--warning); margin-bottom: 12px; }
.heading-success-mb { font-size: 14px; font-weight: 700; color: var(--success); margin-bottom: 12px; }
.muted-md-mb12 { font-size: 10px; color: var(--text-muted); margin-bottom: 12px; }
.btn-ghost { width: 100%; padding: 8px; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: 11px; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
.btn-ghost:hover { background: var(--bg-secondary); filter: brightness(1.1); }
.muted-sm-mb4 { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.heading-xl { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.muted-sm-mt3 { font-size: 9px; color: var(--text-muted); margin-top: 3px; }
.cell-left-12 { padding: 12px; text-align: left; }
.bold-12 { font-weight: 600; font-size: 12px; }
.cell-left-sm { text-align: left; padding: 4px 8px; }
.flex-wrap-4 { display: flex; flex-wrap: wrap; gap: 4px; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.stat-cell-sm { flex: 1; min-width: 70px; text-align: center; padding: 4px; background: var(--bg-primary); border-radius: 6px; }
.label-upper-sp { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.heading-success { font-size: 16px; font-weight: 700; color: var(--success); }
.muted-12-mb12 { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.flex-col-8-mt { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.divider-top { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.cell-muted-sm { padding: 3px 4px; color: var(--text-muted); }
.cell-accent-sm { text-align: center; padding: 3px 4px; font-weight: 600; color: var(--accent); }
.label-upper-sp2 { font-size: 9px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.5px; }
.btn-danger-sm { background: var(--danger); color: white; border: none; border-radius: 4px; padding: 3px 8px; font-size: 9px; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
.btn-danger-sm:hover { opacity: 0.85; }
.label-upper-sm { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.label-accent-upper { font-size: 10px; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.btn-close-muted { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; transition: opacity 0.2s, background 0.2s; }
.btn-close-muted:hover { filter: brightness(1.1); }
.flex-between-10 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.flex-between-3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.sec-card-center { text-align: center; padding: 10px; background: var(--bg-secondary); border-radius: 8px; }
.sec-card-mb10 { margin-bottom: 10px; padding: 8px; background: var(--bg-secondary); border-radius: 8px; }
.desc-text-14 { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.progress-bar-lg { flex: 1; height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; }
.desc-italic { font-size: 11px; color: var(--text-secondary); line-height: 1.5; font-style: italic; }
.progress-bar-flex { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.flex-between-9-mb2 { display: flex; justify-content: space-between; font-size: 9px; margin-bottom: 2px; }
.heading-muted-lg { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.sec-card-bg { background: var(--bg); border-radius: 6px; padding: 8px 10px; margin-bottom: 14px; }
.muted-11-mb8 { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.chart-bar-row { height: 50px; display: flex; align-items: flex-end; justify-content: center; }
.cell-accent-left { padding: 4px 6px; font-size: 10px; color: var(--accent); text-align: left; }
.desc-sec-14 { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.muted-md-mb8 { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; }
.muted-11-mb8a { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.muted-12-mb8 { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.muted-sm-mt2 { font-size: 9px; color: var(--text-secondary); margin-top: 2px; }
.muted-xs-mb3 { font-size: 8px; color: var(--text-muted); margin-bottom: 3px; }
.muted-xs-mb2 { font-size: 8px; color: var(--text-muted); margin-bottom: 2px; }
.center-muted-lg { padding: 16px; text-align: center; color: var(--text-muted); }
.btn-full-bold { width: 100%; padding: 10px; font-weight: 700; font-size: 14px; }
.muted-11-mt2 { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.muted-md-mt6 { margin-top: 6px; font-size: 10px; color: var(--text-muted); }
.heading-success-sm { font-size: 13px; font-weight: 700; color: var(--success); }
.heading-warn-sm { font-size: 12px; font-weight: 700; color: var(--warning); }
.heading-stretch { font-size: 16px; font-weight: 700; color: var(--stretch); }
.heading-success-lg { font-size: 18px; font-weight: 700; color: var(--success); }
.heading-warn-lg { font-size: 18px; font-weight: 700; color: var(--warning); }
.heading-stretch-lg { font-size: 18px; font-weight: 700; color: var(--stretch); }
.heading-accent-lg { font-size: 18px; font-weight: 700; color: var(--accent); }
.heading-danger-lg { font-size: 18px; font-weight: 700; color: var(--danger); }
.heading-accent { font-size: 16px; font-weight: 700; color: var(--accent); }
.heading-14-mb { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.heading-16-mb4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.heading-14-600-mb4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.flex-center-6 { display: flex; align-items: center; gap: 6px; }
.flex-center-8 { display: flex; align-items: center; gap: 8px; }
.muted-11 { font-size: 11px; color: var(--text-muted); }
.center-mb12 { text-align: center; margin-bottom: 12px; }
.flex-wrap-2 { display: flex; flex-wrap: wrap; gap: 2px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.btn-full-10 { width: 100%; padding: 10px; }
.text-success { color: var(--success); }
.mb-4 { margin-bottom: 4px; }
.flex-1 { flex: 1; }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.mt-6 { margin-top: 6px; }
.text-accent { color: var(--accent); }
.fs-10 { font-size: 10px; }
.mb-6 { margin-bottom: 6px; }
.text-secondary { color: var(--text-secondary); }
.fw-600 { font-weight: 600; }
.bold-12a { font-size: 12px; font-weight: 600; }
.bold-16 { font-size: 16px; font-weight: 700; }
.bold-13 { font-size: 13px; font-weight: 600; }
.bold-11 { font-size: 11px; font-weight: 600; }
.emoji-xl { font-size: 36px; margin-bottom: 6px; }
.muted-7 { font-size: 9px; color: var(--text-muted); } /* legacy name: actual size is 9px */
.bold-accent { font-weight: 600; color: var(--accent); }
.opacity-20 { opacity: 0.2; }
.pad-8-24 { padding: 8px 24px; }
.fs-12 { font-size: 12px; }
.flex-1-pad { flex: 1; padding: 12px; }
.fs-10-mb4 { font-size: 10px; margin-bottom: 4px; }
.mt-10 { margin-top: 10px; }
.mt-8 { margin-top: 8px; }
.mt-4 { margin-top: 4px; }
.mb-2 { margin-bottom: 2px; }
.mb-14 { margin-bottom: 14px; }
.fs-8 { font-size: 10px; } /* legacy name: actual size is 10px */
.fs-9 { font-size: 9px; }
.fs-11 { font-size: 11px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-24 { font-size: 24px; }
.fw-700 { font-weight: 700; }
.text-danger { color: var(--danger); }
.text-primary { color: var(--text-primary); }
.border-b { border-bottom: 1px solid var(--border); }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.fs-16 { font-size: 16px; }
.fs-20 { font-size: 20px; }
.mt-2 { margin-top: 2px; }
.mt-3 { margin-top: 3px; }
.mb-3 { margin-bottom: 3px; }
.mb-12 { margin-bottom: 12px; }
.lh-13 { line-height: 1.3; }
.lh-14 { line-height: 1.4; }
.lh-15 { line-height: 1.5; }
.ls-05 { letter-spacing: 0.5px; }
.ls-1 { letter-spacing: 1px; }
.text-stretch { color: var(--stretch); }
.fs-15 { font-size: 15px; }
.ml-4 { margin-left: 4px; }
.pad-10 { padding: 10px; }
.cursor { cursor: pointer; }

/* Animations — moved from dynamic JS injection to static CSS */
@keyframes levelUpPop {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.fw-400 { font-weight: 400; }
.lh-16 { line-height: 1.6; }
.text-color { color: var(--text); }
.fs-40 { font-size: 40px; }
.fs-42 { font-size: 42px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-3 { gap: 3px; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.pt-6 { padding-top: 6px; }
.border-t { border-top: 1px solid var(--border); }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.align-end { align-items: flex-end; }
.gap-10 { gap: 10px; }
.pad-4-0 { padding: 4px 0; }
.pad-6-0 { padding: 6px 0; }
.pad-2-4 { padding: 2px 4px; }
.pad-8-16 { padding: 8px 16px; }
.pad-8-20 { padding: 8px 20px; }
.pad-6-8 { padding: 6px 8px; }
.mr-4 { margin-right: 4px; }
.bg-secondary { background: var(--bg-secondary); }
.bg-border { background: var(--border); }
.text-white { color: white; }
.rounded-3 { border-radius: 3px; }
.rounded-4 { border-radius: 4px; }
.rounded-6 { border-radius: 6px; }
.rounded-8 { border-radius: 8px; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.border { border: 1px solid var(--border); }
.pad-8 { padding: 8px; }
.pad-2-6 { padding: 2px 6px; }
.h-6 { height: 6px; }
.grid-1-auto-1 { display: grid; grid-template-columns: 1fr auto 1fr; }
.skill-tag-browse { font-size: 8px; padding: 2px 5px; border-radius: 8px; white-space: nowrap; }
.skill-tag-gained { font-size: 8px; padding: 2px 5px; border-radius: 8px; background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3); color: var(--success); white-space: nowrap; }
.skill-tag-inline { display: inline-block; font-size: 9px; padding: 2px 6px; margin: 1px; border-radius: 3px; }
.alert-card { padding: 6px 8px; border-radius: 6px; border-left: 3px solid; }
.alert-card-sm { padding: 4px 6px; border-radius: 4px; border-left: 2px solid; }
.alert-stretch { background: rgba(217,38,217,0.1); border-color: var(--stretch); }
.alert-danger { background: rgba(var(--danger-rgb), 0.08); border-color: var(--danger); }
.alert-warning { background: rgba(var(--warning-rgb), 0.1); border-color: var(--warning); }
.alert-accent { background: rgba(var(--accent-rgb),0.08); border-color: var(--accent); }
.alert-accent-10 { background: rgba(var(--accent-rgb),0.1); border-color: var(--accent); }
.skill-tag-gain { display: inline-block; background: rgba(var(--success-rgb), 0.15); color: var(--success); padding: 1px 6px; border-radius: 3px; font-size: 9px; margin: 1px; }
.skill-tag-decay { display: inline-block; background: rgba(var(--danger-rgb), 0.15); color: var(--danger); padding: 1px 6px; border-radius: 3px; font-size: 9px; margin: 1px; }
.skill-fit-tag { font-size: 8px; padding: 1px 4px; border-radius: 3px; background: var(--bg-secondary); }
.factor-tag { font-size: 8px; padding: 1px 5px; border-radius: 3px; }
/* Loop 455 — Additional utility classes */
.border-collapse { border-collapse: collapse; }
.gap-2 { gap: 2px; }
.pad-4-6 { padding: 4px 6px; }
.pad-3-4 { padding: 3px 4px; }
.ml-auto { margin-left: auto; }
.pad-10-0 { padding: 10px 0; }
.pad-8-10 { padding: 8px 10px; }

@keyframes confettiFall {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) translateX(var(--drift)) rotate(var(--rotation)); opacity: 0; }
}

/* ============================================================
   REFACTORED COMPONENT CLASSES (from inline JS styles)
   ============================================================ */

/* Outlook stat strip cells */
.outlook-cell { text-align: center; flex: 1; }
.outlook-cell-border { border-left: 1px solid var(--border); }
.outlook-val { font-size: 10px; font-weight: 700; }
.outlook-lbl { font-size: 8px; color: var(--text-muted); }

/* Compact button variant */
.btn-compact { padding: 6px 14px; font-size: 11px; }

/* Browse card badges */
.role-badge-cpa {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(188, 140, 255, 0.15);
    color: var(--accent);
    font-weight: 600;
    margin-left: 4px;
}
.role-badge-held {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}
.role-badge-current {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

/* ============================================================
   UI READABILITY — global
   Enforces 12px font-size floor, 44px+ tap targets,
   and increased spacing for comfortable use across all devices.
   ============================================================ */

/* ── Step 1: Nuclear font-size floor for inline JS styles ── */
/* Overrides ALL inline style="font-size:Xpx" below 12px     */
.app-container *[style*="font-size:6px"],
.app-container *[style*="font-size: 6px"],
.app-container *[style*="font-size:7px"],
.app-container *[style*="font-size: 7px"],
.app-container *[style*="font-size:8px"],
.app-container *[style*="font-size: 8px"],
.app-container *[style*="font-size:9px"],
.app-container *[style*="font-size: 9px"],
.app-container *[style*="font-size:10px"],
.app-container *[style*="font-size: 10px"],
.app-container *[style*="font-size:11px"],
.app-container *[style*="font-size: 11px"] {
    font-size: 12px !important;
}

/* Also catch modal/overlay inline styles (outside .app-container) */
.modal-overlay *[style*="font-size:6px"],
.modal-overlay *[style*="font-size: 6px"],
.modal-overlay *[style*="font-size:7px"],
.modal-overlay *[style*="font-size: 7px"],
.modal-overlay *[style*="font-size:8px"],
.modal-overlay *[style*="font-size: 8px"],
.modal-overlay *[style*="font-size:9px"],
.modal-overlay *[style*="font-size: 9px"],
.modal-overlay *[style*="font-size:10px"],
.modal-overlay *[style*="font-size: 10px"],
.modal-overlay *[style*="font-size:11px"],
.modal-overlay *[style*="font-size: 11px"] {
    font-size: 12px !important;
}

/* ── Step 2: Override all small-font CSS classes ── */

/* 7-8px classes */
.muted-mini-flex,
.muted-xs, .muted-xs-mt, .muted-xs-rev,
.muted-xs-mb2, .muted-xs-mb3,
.label-upper,
.skill-tag-browse, .skill-tag-gained,
.skill-fit-tag, .factor-tag,
.fs-8,
.wizard-step-label,
.resume-skill-tag.niche-highlight::after {
    font-size: 12px !important;
}

/* 9px classes */
.muted-sm, .muted-sm-mt2, .muted-sm-mt3, .muted-sm-mt4,
.muted-sm-mb4,
.nav-label,
.niche-skill-tag,
.btn-warn-sm, .btn-accent-sm, .btn-danger-sm,
.btn-debug-green,
.build-info-bar,
.org-size-card-section-label,
.org-sample-company,
.sub-industry-skills-label,
.size-dist-row,
.skill-badge,
.cluster-toggle-inline,
.dev-lvl,
.skill-tier-divider,
.skill-context-subheader,
.resume-highlight-label,
.changelog-entry-time,
.label-upper-sp2, .label-upper-sm,
.fs-9,
.flex-between-9-mb2,
.sim-slot-badge,
.muted-7 {
    font-size: 12px !important;
}

/* 10px classes */
.muted-md, .muted-md-mb, .muted-md-mt, .muted-md-mb4,
.muted-md-mb8, .muted-md-mb12, .muted-md-mt6,
.role-level,
.resume-skill-tag,
.bg-option-meta,
.org-size-card-range,
.industry-card-desc,
.industry-detail-label,
.summary-chip,
.salary-bonus,
.slot-reset-btn,
.sec-label, .sec-label-4,
.label-upper-sp, .label-accent-upper,
.pill-sec,
.resume-exp-subhead, .resume-exp-skills,
.resume-skill-level, .resume-education-detail,
.resume-promo-note, .resume-terminated-note,
.resume-job-context, .resume-job-track,
.fs-10, .fs-10-mb4,
.cell-accent-left,
.debug-panel,
.slot-badge,
.muted-md-mb4 {
    font-size: 12px !important;
}

/* 11px classes */
.muted-11, .muted-11-mb8, .muted-11-mb8a, .muted-11-mt2,
.sim-stats,
.mode-desc,
.detail-label,
.home-info,
.bg-option-desc,
.org-size-card-body,
.industry-card-context,
.skill-name-inline,
.dev-skill,
.timeline-note,
.missing-skills,
.availability-status,
.wizard-recruiter-note,
.resume-info-line, .resume-exp-dates,
.resume-no-data, .resume-exp-desc,
.resume-bullets li,
.resume-summary-text,
.slot-stats, .slot-continue-btn, .slot-new-btn,
.role-badge,
.desc-italic, .desc-sec-14,
.btn-ghost,
.changelog-entry,
.fs-11,
.bold-11 {
    font-size: 12px !important;
}

/* ── Refactored component class overrides ── */
.outlook-val { font-size: 13px; }
.outlook-lbl { font-size: 12px !important; }
.btn-compact { font-size: 12px; padding: 8px 14px; min-height: 40px; }
.role-badge-cpa, .role-badge-held { font-size: 12px !important; padding: 3px 8px; }
.role-badge-current { font-size: 12px; padding: 5px 10px; }

/* ── Step 3: Tap target minimums (44px+) ── */

/* Small action buttons */
.btn-warn-sm, .btn-accent-sm, .btn-danger-sm, .btn-debug-green {
    padding: 8px 12px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Filter chips */
.chip {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}

/* Primary action buttons */
.action-btn {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
}

.btn-primary {
    min-height: 48px;
    padding: 14px 16px;
}

.btn-secondary {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px;
}

/* Bottom navigation */
.nav-btn {
    padding: 10px 8px;
    min-height: 52px;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px !important;
}

/* Skill tags — comfortable tap */
.skill-tag-browse, .skill-tag-gained,
.niche-skill-tag, .skill-tag-inline,
.skill-tag-gain, .skill-tag-decay {
    padding: 4px 8px !important;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}

/* Skill rows */
.skill-row-inline {
    min-height: 40px;
    padding: 4px 6px;
}

/* Cluster expand headers */
.cluster-header-inline {
    padding: 12px;
    min-height: 44px;
}

/* Role level badge */
.role-level {
    padding: 4px 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}

/* Wizard nav buttons */
.wizard-nav .btn-primary,
.wizard-nav .btn-secondary {
    min-height: 48px;
}

/* Build info bar */
.build-info-bar {
    padding: 6px 12px;
    min-height: 32px;
}

/* ── Step 4: Spacing & padding increases ── */

/* Screen content */
.screen-content {
    padding: 12px;
}

#screen-sim .screen-content {
    padding: 0;
}

/* Wizard */
.wizard-content {
    padding: 16px 12px;
}

.wizard-step-header h2 {
    font-size: 18px;
}

.wizard-step-header p {
    font-size: 13px;
}

/* Home screen */
.home-header h2 {
    font-size: 22px;
}

.subtitle {
    font-size: 13px;
}

.home-info {
    font-size: 12px;
}

/* Sim header stats */
.sim-stats {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 12px;
}

.stat-label {
    font-size: 11px;
}

/* Cards */
.role-card {
    padding: 14px;
}

.current-role-card {
    padding: 12px 14px;
}

.role-details {
    font-size: 13px;
    gap: 10px;
}

/* Timeline */
.timeline-content {
    padding: 14px;
    font-size: 13px;
}

/* Salary grid */
.salary-grid {
    font-size: 12px;
    gap: 6px;
}

/* Resume */
.resume-document {
    padding: 16px 12px;
    margin: 8px 4px;
}

.resume-name {
    font-size: 20px;
}

.resume-section-title {
    font-size: 13px;
}

.resume-exp-title {
    font-size: 14px;
}

.resume-exp-company {
    font-size: 13px;
}

.resume-job-salary {
    font-size: 12px;
}

/* Modals — mobile only */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px;
        align-items: center;
        overflow-y: auto;
    }

    .modal-card {
        padding: 16px;
        max-width: 95% !important;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 10px;
    }
}

/* Changelog */
.changelog-modal-content {
    width: 95%;
    max-height: 85vh;
}

/* Browse mode */
.scope-text {
    font-size: 12px;
}

.role-title {
    font-size: 15px;
}

/* ── Step 5: Overflow protection ── */

/* Salary grid cells */
.salary-grid > div {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stat cells in grids */
.stat-cell, .stat-cell-sm {
    min-width: 50px;
    padding: 6px 4px;
}

/* Flex tag containers allow wrapping */
.flex-tags, .flex-wrap-gap, .flex-wrap-2, .flex-wrap-4 {
    gap: 4px;
}

/* Table cells inside modals */
td, th {
    padding: 4px 6px;
}

/* Slot cards grid — keep single-column on small phones */
.slot-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Slot stats grid */
.slot-stats {
    font-size: 12px;
}

/* Resume highlights grid — 2 cols instead of 3 on phones */
.resume-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Prevent long role titles from causing overflow */
.role-title, .current-role-title, .timeline-role-title {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Debug panel - readable on mobile */
.debug-panel {
    font-size: 11px;
    max-height: 250px;
}

/* ============================================================
   MOBILE READABILITY — phone-first improvements
   Bumps body text to 14px, adds card spacing, wraps dense
   strips, and enables collapsible sections on narrow screens.
   ============================================================ */
@media (max-width: 480px) {

    /* ── Fix 1: 14px body text floor on mobile ── */
    .app-container,
    .modal-overlay {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Body text blocks — scope descriptions, coaching, tips */
    .sec-card,
    .role-card,
    .current-role-card,
    .role-details,
    .browse-card,
    .modal-card,
    .wizard-content,
    .timeline-content,
    .resume-inner {
        font-size: 14px;
        line-height: 1.6;
    }

    /* ── Fix 3: Header stat strip — two rows on mobile ── */
    .sim-stats {
        font-size: 13px !important;
        gap: 4px 12px;
        flex-wrap: wrap;
        line-height: 1.4;
    }

    .stat-value {
        font-size: 13px !important;
    }

    .stat-label {
        font-size: 12px !important;
    }

    /* ── Fix 4: Dashboard strip — wrap to 2 rows on mobile ── */
    .outlook-strip-mobile {
        flex-wrap: wrap !important;
        gap: 4px !important;
        padding: 6px !important;
    }

    .outlook-strip-mobile .outlook-cell {
        flex: 1 1 28% !important;
        min-width: 60px;
        padding: 4px 2px;
    }

    .outlook-strip-mobile .outlook-cell-border {
        border-left: none !important;
        border-top: none;
    }

    .outlook-val {
        font-size: 14px !important;
    }

    .outlook-lbl {
        font-size: 12px !important;
    }

    /* ── Fix 5: More vertical spacing between sim cards ── */
    .sim-left-column > .sec-card,
    .sim-left-column > div[style*="margin-bottom"],
    .sim-left-column > div {
        margin-bottom: 12px !important;
    }

    .sim-right-column > .sec-card,
    .sim-right-column > div {
        margin-bottom: 12px !important;
    }

    /* ── Fix 6: Collapsible sections on mobile ── */
    .mobile-collapsible .collapsible-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    .mobile-collapsible.expanded .collapsible-body {
        max-height: 2000px;
        opacity: 1;
    }

    .collapsible-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 10px 12px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .collapsible-header:active {
        background: rgba(91, 143, 217, 0.06);
    }

    .collapsible-toggle {
        font-size: 14px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .mobile-collapsible.expanded .collapsible-toggle {
        transform: rotate(180deg);
    }

    /* ── Fix 2: Career ladder — scrollable with abbreviations handled in JS ── */
    .career-ladder-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .career-ladder-mobile::-webkit-scrollbar {
        display: none;
    }
}

/* ── Fix 7: Line-height for body text on all small screens ── */
@media (max-width: 767.98px) {
    .sec-card p,
    .role-details p,
    .modal-card p,
    .browse-card p,
    .wizard-content p,
    .current-role-card p {
        line-height: 1.6;
    }
}

/* ============================================================
   ART DIRECTION — Animations, Career Ladder, Data Viz, Hero
   ============================================================ */

/* ── Micro-animations: Card stagger fade-in ── */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes progressFill {
    from { width: 0; }
}

@keyframes ringFill {
    from { stroke-dashoffset: var(--ring-circumference); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3); }
    50%      { box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.6); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Apply stagger to sim cards */
.sim-left-column > .sec-card,
.sim-left-column > .card-primary,
.sim-left-column > .mobile-collapsible,
.sim-left-column > div {
    animation: cardFadeIn 0.4s ease calc(var(--card-i, 0) * 60ms) both;
}

/* Screen transitions */
.screen.active {
    animation: slideUp 0.3s ease both;
}

/* Progress bar fill animation */
.progress-bar > div,
.slot-progress-fill {
    animation: progressFill 0.8s ease both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sim-left-column > *,
    .screen.active,
    .progress-bar > div,
    .slot-progress-fill,
    .ladder-node,
    .ring-chart circle {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Career Ladder — Connected node design ── */
.career-ladder {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.career-ladder::-webkit-scrollbar { display: none; }

.ladder-connector {
    height: 3px;
    flex: 1;
    min-width: 8px;
    background: var(--border);
    transition: background 0.4s ease;
}
.ladder-connector.active {
    background: linear-gradient(90deg, var(--success), var(--accent));
}

.ladder-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 6px 4px;
    border-radius: 8px;
    min-width: 40px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.ladder-node-icon {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 2px;
}

.ladder-node-label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.ladder-node.past {
    background: rgba(var(--success-rgb), 0.1);
    border-color: var(--success);
}
.ladder-node.past .ladder-node-label { color: var(--success); }

.ladder-node.current {
    background: var(--gradient-primary);
    border-color: var(--accent);
    animation: pulseGlow 2.5s ease-in-out infinite;
}
.ladder-node.current .ladder-node-label {
    color: #fff;
    font-weight: 700;
}
.ladder-node.current .ladder-node-icon { filter: brightness(1.2); }

.ladder-node.future {
    border-color: var(--border);
    opacity: 0.5;
}
.ladder-node.future .ladder-node-label { color: var(--text-muted); }

/* ── Data Visualization: Ring Charts ── */
.ring-chart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-chart svg {
    transform: rotate(-90deg);
}

.ring-chart-label {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--fs-mono);
}

/* ── Data Visualization: Horizontal Bar Charts ── */
.hbar-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.hbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hbar-label {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
}

.hbar-track {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
    animation: progressFill 0.8s ease both;
}

.hbar-fill.gold { background: var(--gradient-gold); }
.hbar-fill.success { background: var(--success); }

.hbar-value {
    font-size: 11px;
    font-family: var(--fs-mono);
    font-weight: 600;
    min-width: 52px;
}

/* ── Home Screen Hero ── */
.home-hero {
    text-align: center;
    padding: 24px 16px 8px;
    position: relative;
}

.home-hero-graphic {
    width: 100%;
    max-width: 280px;
    height: 80px;
    margin: 0 auto 12px;
    opacity: 0.75;
}

.home-header h2 {
    margin-bottom: 4px;
}

/* ── Slot Cards — Game card style ── */
.slot-card-game {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.slot-card-header {
    padding: 12px 14px 8px;
    background: var(--gradient-primary);
    color: #fff;
}

.slot-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.slot-card-body {
    padding: 12px 14px;
}

.slot-progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.slot-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-accent-success);
    transition: width 0.6s ease;
}

.slot-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.slot-stat {
    text-align: center;
}

.slot-stat-value {
    font-family: var(--fs-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.slot-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Gold color for salary values */
.salary-gold { color: var(--gold) !important; }

/* ── Light mode specific polish ── */
[data-theme="light"] .sec-card,
[data-theme="light"] .card-primary {
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .career-ladder {
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .slot-card-game {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .mode-btn {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

[data-theme="light"] .modal-card {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ── Final polish: empty slot refinement ── */
.slot-card.slot-empty:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-lg);
}

/* ── Final polish: sim profile name ── */
#simProfileName {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Final polish: browse card hover ── */
.browse-card {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.browse-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-lg);
}

/* ── Final polish: filter chips refinement ── */
.filter-chip {
    transition: all 0.15s ease;
}
.filter-chip:hover {
    transform: translateY(-1px);
}

/* ── Final polish: resume document refinement ── */
.resume-document {
    box-shadow: var(--card-shadow);
}

/* ── Final polish: timeline entry cards ── */
.timeline-entry {
    transition: border-color 0.2s;
}
.timeline-entry:hover {
    border-color: var(--accent);
}

/* ── Final polish: smooth content scrolling ── */
.content-area,
.screen-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ── Final polish: focus-visible enhancement ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   PRINT STYLESHEET — Resume screen
   ============================================================ */
@media print {
    /* Hide all non-resume UI */
    .top-nav, header.top-nav, .bottom-nav, .build-info-bar,
    .changelog-modal, #debugPanel, #liveAnnouncer,
    .skip-link, #skillTooltip {
        display: none !important;
    }

    /* Print shows resume screen only; other screens (sim, browse, timeline) are hidden */
    .app-container {
        max-width: 100%;
        height: auto;
    }

    .content-area, main.content-area {
        overflow: visible;
        height: auto;
    }

    .screen {
        display: none !important;
        position: static;
    }

    #screen-resume {
        display: flex !important;
        position: static;
    }

    /* Print-friendly colors */
    body, .app-container {
        background: white;
        color: black;
    }

    .resume-document {
        border: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .resume-name { color: black; }
    .resume-section-title { color: black; border-color: black; }
    .resume-exp-title { color: black; }
    .resume-exp-company { color: #333; }
    .resume-exp-dates, .resume-info-line { color: #666; }

    .resume-summary-text,
    .resume-bullets li,
    .resume-exp-desc,
    .resume-exp-skills { color: #333; }
    .resume-skill-tag { background: #f5f5f5; border-color: #ccc; color: #333; }
    .resume-skill-tag.expert { border-color: #1a7f37; color: #1a7f37; }
    .resume-skill-tag.proficient { border-color: #1B2A4A; color: #1B2A4A; }
    .resume-highlight-value { color: black !important; }
    .resume-highlight-label { color: #666; }
    .resume-cert { background: #f5f5f5; border-color: #1a7f37; }
    .resume-promo-note { color: #1a7f37; }

    a { text-decoration: underline; }

    /* No animations */
    * {
        animation: none !important;
        transition: none !important;
    }

    @page {
        margin: 1cm;
    }
}

/* ── Professional polish: consistent elevation & radius ── */
.sec-card,
.sec-card-sm,
.sec-card-md,
.sec-card-mb,
.current-role-card,
.availability-card,
.resume-document,
.browse-card,
.modal-card {
    box-shadow: var(--card-shadow);
    border-radius: 12px;
}

.browse-card:hover,
.availability-card:hover,
.current-role-card:hover {
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-1px);
}

/* Nav bar polish */
.top-nav {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.bottom-nav {
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
}
