.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 2rem auto;
    align-items: start
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md)
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.auth-header p {
    color: var(--text-secondary);
    font-size: .95rem
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem
}

.form-group label {
    font-weight: 500;
    font-size: .875rem;
    color: var(--text-primary)
}

.form-input {
    padding: .75rem 1rem;
    font-size: .95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    transition: all .15s;
    font-family: inherit
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light)
}

.form-input::placeholder {
    color: var(--text-muted)
}

.form-select {
    padding: .75rem 1rem;
    font-size: .95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    cursor: pointer;
    font-family: inherit
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light)
}

.form-hint {
    font-size: .8rem;
    color: var(--text-muted)
}

.form-error {
    font-size: .8rem;
    color: #dc2626
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: .75rem 1rem;
    color: #dc2626;
    font-size: .875rem
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #A855F7 0, #4338CA 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    text-decoration: none;
    color: white
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none
}

.btn-secondary:hover {
    background: var(--bg-section);
    text-decoration: none
}

.btn-sm {
    padding: .5rem 1rem;
    font-size: .85rem
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: .9rem
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: text-decoration .15s
}

.auth-footer a:hover {
    text-decoration: underline
}

.auth-benefits {
    padding: 1rem 0
}

.auth-benefits h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary)
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.benefits-list li {
    display: flex;
    gap: 1rem
}

.benefits-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: .125rem
}

.benefits-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem
}

.benefits-list span {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.4
}

.profile-container {
    max-width: 640px;
    margin: 0 auto
}

.profile-card {
    background: transparent;
    padding: 0
}

.profile-header {
    margin-bottom: 1.5rem;
    text-align: center
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .375rem
}

.profile-header p {
    color: var(--text-secondary);
    font-size: .9rem
}

.profile-form fieldset {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 0 0 1rem 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg)
}

.profile-form fieldset:last-of-type {
    margin-bottom: 0
}

.profile-form fieldset .form-group {
    margin-bottom: 1.25rem
}

.profile-form fieldset .form-group:last-child {
    margin-bottom: 0
}

.profile-form legend {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding: 0;
    width: 100%
}

.fieldset-hint {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1rem
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.profession-search-wrapper {
    position: relative
}

.profession-search-wrapper .form-input {
    width: 100%;
    box-sizing: border-box
}

.profession-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 100
}

.profession-suggestions.active {
    display: block
}

.profession-suggestions .suggestion-item {
    padding: .75rem 1rem;
    cursor: pointer;
    transition: background .1s
}

.profession-suggestions .suggestion-item:hover {
    background: var(--bg-section)
}

.profession-selected {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    flex-wrap: wrap
}

.selected-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .375rem .75rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: .85rem;
    font-weight: 500;
    border-radius: 20px
}

.clear-profession {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 .25rem;
    line-height: 1
}

.clear-profession:hover {
    color: var(--text-primary)
}

/* Profession request */
.suggestions-empty {
    padding: .75rem 1rem;
    color: var(--text-muted);
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.request-profession-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: .85rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-weight: 500
}

.request-profession-link:hover {
    text-decoration: underline
}

.request-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem
}

.request-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg)
}

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

.request-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0
}

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

.request-modal-close:hover {
    color: var(--text-primary)
}

.request-modal-body {
    padding: 1.5rem
}

.request-modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: .9rem
}

.request-modal-body .form-group {
    margin-bottom: 1rem
}

.request-modal-body textarea {
    resize: vertical
}

.request-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border)
}

.request-success {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-primary)
}

.request-success svg {
    color: #22c55e;
    margin-bottom: .75rem
}

.request-success p {
    color: var(--text-primary);
    font-weight: 500
}

.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem
}

.dashboard {
    max-width: 1000px;
    margin: 0 auto
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem
}

.welcome-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.welcome-section p {
    color: var(--text-secondary)
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem
}

.alert-info {
    background: var(--accent-light);
    border: 1px solid #bae6fd
}

.alert svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0
}

.alert strong {
    display: block;
    margin-bottom: .125rem
}

.alert p {
    font-size: .875rem;
    color: var(--text-secondary);
    margin: 0
}

.alert .btn-primary {
    margin-left: auto;
    flex-shrink: 0
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

.dashboard-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border)
}

.skill-gap-card {
    grid-column: span 2
}

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

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600
}

.count-badge {
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 600;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 .5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap
}

.count-badge.unread {
    background: var(--accent);
    color: white
}

.saved-professions-card .count-badge,
.achievements-card .count-badge,
.skills-card .count-badge {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: white
}

.inbox-preview {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary)
}

.inbox-preview svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: .75rem
}

.inbox-preview p {
    font-size: .9rem;
    margin: 0
}

.skill-gap-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem
}

.gap-stat {
    display: flex;
    flex-direction: column
}

.gap-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent)
}

.gap-label {
    font-size: .875rem;
    color: var(--text-secondary)
}

.coming-soon-note {
    font-size: .8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary)
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: .9rem
}

.skills-list,
.professions-list {
    list-style: none
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .625rem 0;
    border-bottom: 1px solid var(--border)
}

.skill-item:last-child {
    border-bottom: none
}

.skill-name {
    font-weight: 500
}

.skill-proficiency {
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 4px;
    text-transform: uppercase
}

.proficiency-beginner {
    background: #fef3c7;
    color: #92400e
}

.proficiency-intermediate {
    background: #dbeafe;
    color: #1e40af
}

.proficiency-advanced {
    background: #d1fae5;
    color: #065f46
}

.proficiency-expert {
    background: #ede9fe;
    color: #5b21b6
}

.profession-item {
    padding: .625rem 0;
    border-bottom: 1px solid var(--border)
}

.profession-item:last-child {
    border-bottom: none
}

.profession-item a {
    font-weight: 500;
    display: block;
    color: var(--text) !important;
    text-decoration: none
}

.profession-item a:hover {
    color: var(--accent) !important;
    text-decoration: none
}

.saved-date {
    font-size: .8rem;
    color: var(--text-muted)
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none
}

.card-link:hover {
    color: var(--accent);
    text-decoration: underline
}

html.dark-mode .card-link {
    color: #d8b4fe
}

.back-link {
    margin-top: 1.5rem
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s
}

.back-link a:hover {
    background: var(--bg-section);
    color: var(--text-primary);
    box-shadow: 0 0 0 1.5px var(--accent);
    text-decoration: none
}

.profile-details {
    display: flex;
    flex-direction: column
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: .625rem 0;
    border-bottom: 1px solid var(--border)
}

.detail-row:last-child {
    border-bottom: none
}

.detail-row dt {
    color: var(--text-secondary);
    font-size: .875rem
}

.detail-row dd {
    font-weight: 500;
    text-align: right
}

.saved-professions-container {
    max-width: 700px;
    margin: 0 auto
}

.page-header-simple {
    margin-bottom: 1.5rem
}

.page-header-simple h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.page-header-simple p {
    color: var(--text-secondary);
    font-size: .9rem
}

.inline-search {
    margin-bottom: 1.5rem
}

.inline-search-form {
    position: relative
}

.inline-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s
}

.inline-search-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light)
}

.inline-search-wrapper .search-icon {
    width: 20px;
    height: 20px;
    margin-left: 1rem;
    color: var(--text-muted);
    flex-shrink: 0
}

.inline-search-wrapper input {
    flex: 1;
    padding: .875rem 1rem;
    border: none;
    font-size: .95rem;
    background: transparent;
    outline: none
}

.inline-search-wrapper input::placeholder {
    color: var(--text-muted)
}

.inline-search-wrapper button {
    padding: .75rem 1.25rem;
    margin: .375rem;
    font-size: .875rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s
}

.inline-search-wrapper button:hover {
    background: var(--accent-dark)
}

.inline-search .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto
}

.inline-search .search-suggestions.active {
    display: block
}

.inline-search .suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background .1s
}

.inline-search .suggestion-item:hover {
    background: var(--bg-section)
}

.inline-search .suggestion-title {
    font-weight: 500
}

.inline-search .suggestion-meta {
    font-size: .75rem;
    font-weight: 500
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem
}

.saved-item .unsave-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0
}

.saved-info {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.saved-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none
}

.saved-title:hover {
    text-decoration: underline
}

html.dark-mode .saved-title {
    color: #fff
}

.saved-date {
    font-size: .8rem;
    color: var(--text-muted)
}

.unsave-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: .5rem;
    cursor: pointer;
    color: #eab308;
    transition: all .15s;
    border-radius: var(--radius);
    line-height: 0
}

.unsave-btn:hover {
    background: #fef9c3;
    color: #ca8a04
}

.unsave-btn svg {
    width: 20px;
    height: 20px;
    display: block
}

.empty-state-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center
}

.empty-state-card svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem
}

.empty-state-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.empty-state-card p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto
}

@media(max-width:768px) {
    .auth-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: .5rem
    }

    .auth-card {
        padding: 1.5rem;
        min-width: 0
    }

    .auth-benefits {
        order: -1;
        min-width: 0
    }

    .benefits-list li {
        min-width: 0
    }

    .benefits-list li div {
        min-width: 0
    }

    .benefits-list span {
        word-wrap: break-word;
        overflow-wrap: break-word
    }

    .cf-turnstile {
        transform: scale(.85);
        transform-origin: center
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .skill-gap-card {
        grid-column: span 1
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem
    }

    .dashboard-grid .inbox-card,
    .dashboard-grid .profile-summary,
    .dashboard-grid .skill-gap-card {
        display: none
    }

    /* === Mobile Dashboard Compact === */
    .dashboard {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box
    }

    .dashboard-grid {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box
    }

    .dashboard-grid>* {
        min-width: 0
    }

    .dashboard-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word
    }

    .dashboard-right-col {
        min-width: 0;
        max-width: 100%;
        overflow: hidden
    }

    .admin-stats {
        overflow: hidden;
        box-sizing: border-box;
        display: none
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important
    }

    .dashboard-header {
        padding: 0;
        margin-bottom: 1.25rem
    }

    .dashboard-header .btn-secondary {
        font-size: .75rem;
        padding: .3rem .6rem;
        white-space: nowrap;
        align-self: center
    }

    .welcome-section h1 {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word
    }

    .welcome-section p {
        font-size: .85rem
    }

    .dashboard-grid {
        gap: 1rem
    }

    .dashboard-card {
        padding: 1rem;
        border-radius: var(--radius)
    }

    .card-header {
        margin-bottom: .75rem
    }

    .card-header h2 {
        font-size: 1rem
    }

    .count-badge {
        font-size: .7rem;
        min-width: 1.5rem;
        height: 1.5rem;
        padding: 0 .4rem
    }

    .card-link {
        font-size: .8rem;
        margin-top: .75rem
    }

    /* Active skill card — minimalist mobile */
    .active-skill-name {
        font-size: 1.05rem;
        margin-bottom: .15rem
    }

    .active-skill-context {
        font-size: .8rem;
        margin-bottom: .75rem
    }

    .tier-progress-row {
        margin-bottom: .375rem
    }

    .tier-badge {
        font-size: .6rem;
        padding: .15rem .5rem
    }

    .wave-label {
        font-size: .6rem
    }

    .next-tier-hint {
        font-size: .6rem
    }

    .skill-progress-bar {
        height: 5px;
        margin-bottom: .75rem
    }

    .active-skill-book {
        padding: .625rem;
        gap: .625rem
    }

    .active-book-cover {
        width: 42px;
        height: 58px
    }

    .active-book-placeholder {
        width: 42px;
        height: 58px
    }

    .active-book-placeholder svg {
        width: 18px;
        height: 18px
    }

    .active-book-label {
        font-size: .6rem
    }

    .active-book-title {
        font-size: .8rem
    }

    .active-book-author {
        font-size: .7rem
    }

    .active-book-links .book-preview-link {
        font-size: .6rem;
        padding: .3rem .5rem
    }

    .mark-learned-btn {
        padding: .4rem .75rem;
        font-size: .75rem;
        margin-top: .625rem
    }

    .up-next-section {
        margin-top: .75rem;
        padding-top: .5rem;
        max-height: 7rem
    }

    .up-next-section .completed-item {
        display: none
    }

    .up-next-name {
        font-size: .8rem
    }

    .no-resource-hint {
        font-size: .75rem;
        padding: .5rem .625rem
    }

    .no-resource-hint svg {
        width: 14px;
        height: 14px
    }

    /* Badge celebration mobile */
    .badge-celebration-state {
        padding: .75rem 0
    }

    .badge-celebration-title {
        font-size: 1rem
    }

    .badge-celebration-message {
        font-size: .8rem
    }

    /* All complete mobile */
    .all-complete-state {
        padding: .5rem 0
    }

    .complete-message {
        font-size: .8rem
    }

    /* Saved professions + achievements mobile */
    .professions-list-scroll {
        max-height: none;
        overflow-y: visible
    }

    .achievements-grid {
        max-height: none;
        overflow: visible
    }

    .profession-item a {
        font-size: .9rem
    }

    .saved-date {
        font-size: .7rem
    }

    .alert {
        padding: .75rem 1rem;
        gap: .75rem;
        margin-bottom: 1.25rem;
        flex-wrap: wrap
    }

    .alert .btn-primary {
        margin-left: 0;
        width: 100%
    }

    .alert svg {
        width: 20px;
        height: 20px
    }

    .alert p {
        font-size: .8rem
    }

    .empty-state {
        padding: 1.25rem .75rem
    }

    .empty-state svg {
        width: 36px;
        height: 36px;
        margin-bottom: .75rem
    }

    .empty-state p {
        font-size: .8rem
    }
}

/* === Active Skill Card === */
.active-skill-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
    border-color: #e9d5ff
}

.focus-badge {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: white
}

/* === Skill Tabs === */
.skill-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    padding-bottom: 0
}

.skill-tab {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem .75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap
}

.skill-tab:hover {
    color: var(--text-primary, #1f2937)
}

.skill-tab.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed
}

.skill-tab-count {
    font-size: .75rem;
    font-weight: 700;
    background: #f3f4f6;
    color: var(--text-secondary, #6b7280);
    padding: .125rem .375rem;
    border-radius: 9999px
}

.skill-tab.active .skill-tab-count {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed
}

.skill-tab-panel {
    display: none
}

.skill-tab-panel.active {
    display: block
}

.active-skill-hero {
    margin-bottom: 1rem
}

.active-skill-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .25rem 0;
    line-height: 1.3
}

.active-skill-context {
    font-size: .85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0
}

.active-skill-context strong {
    color: var(--text-primary)
}

.active-skill-book {
    display: flex;
    gap: .875rem;
    padding: .875rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border)
}

.active-book-cover {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12)
}

.active-book-placeholder {
    width: 52px;
    height: 72px;
    background: var(--bg-section);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.active-book-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted)
}

.active-book-info {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    min-width: 0
}

.active-book-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-weight: 600
}

.active-book-title {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

a.active-book-link {
    text-decoration: none;
    color: var(--text-primary)
}

a.active-book-link:hover {
    text-decoration: underline;
    color: var(--accent, #2563eb)
}

.active-book-author {
    font-size: .8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.active-book-links {
    display: flex;
    gap: .5rem;
    margin-top: .375rem;
    flex-wrap: wrap
}

.active-book-links .book-preview-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .4rem .65rem;
    background: var(--accent-light, #e7f3ff);
    color: var(--accent, #2563eb);
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all .15s ease
}

.active-book-links .book-preview-link:hover {
    background: var(--accent, #2563eb);
    color: white
}

/* === Up Next === */
.up-next-section {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    max-height: 10rem;
    overflow-y: auto
}

.up-next-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: .5rem
}

.up-next-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 0
}

.up-next-name {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-primary)
}

/* === Dashboard Focus Prompt === */
.dashboard-focus-prompt {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .75rem;
    padding: .75rem;
    background: var(--accent-light);
    border-radius: var(--radius);
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.4
}

.dashboard-focus-prompt svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: .1rem
}

/* === Progress Bar === */
.skill-progress-bar {
    height: 6px;
    background: var(--bg-section);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    border-radius: 3px;
    transition: width .4s ease;
    position: relative
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #6366f1;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent
}

.skill-progress-fill.progress-complete::after {
    display: none
}

/* === Mark as Learned Button === */
.mark-learned-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-top: .875rem;
    padding: .5rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s
}

.mark-learned-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e
}

.mark-learned-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.mark-learned-btn svg {
    flex-shrink: 0
}

/* === Completed Skill Items === */
.completed-item .completed-check {
    color: #22c55e;
    flex-shrink: 0
}

.completed-name {
    text-decoration: line-through;
    color: var(--text-muted) !important
}

/* === All Complete State === */
.active-skill-card.all-complete {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #86efac
}

.all-complete-state {
    text-align: center;
    padding: 1rem 0
}

.complete-icon {
    margin-bottom: .75rem
}

.complete-icon svg {
    color: #22c55e
}

.complete-message {
    font-size: .9rem;
    color: var(--text-secondary);
    margin: 0 0 .25rem 0;
    line-height: 1.5
}

.complete-message strong {
    color: var(--text-primary)
}

/* === Active Skill Dark Mode === */
html.dark-mode .active-skill-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(168, 85, 247, 0.2)
}

html.dark-mode .skill-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1)
}

html.dark-mode .skill-tab-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary)
}

html.dark-mode .skill-tab.active .skill-tab-count {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc
}

html.dark-mode .skill-tab.active {
    color: #c084fc;
    border-bottom-color: #c084fc
}

html.dark-mode .active-skill-book {
    background: var(--bg-section)
}

html.dark-mode .dashboard-focus-prompt {
    background: rgba(168, 85, 247, 0.1)
}

html.dark-mode .mark-learned-btn {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80
}

html.dark-mode .mark-learned-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #4ade80
}

html.dark-mode .active-skill-card.all-complete {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.3)
}

html.dark-mode .skill-progress-bar {
    background: rgba(255, 255, 255, 0.08)
}

/* === Wave Label === */
.wave-label {
    display: inline-block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-weight: 600
}

/* === Tier Badge === */
.tier-progress-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .2rem .625rem;
    border-radius: 10px
}

.tier-badge.tier-foundations {
    background: #dbeafe;
    color: #1e40af
}

.tier-badge.tier-practitioner {
    background: #e0e7ff;
    color: #4338ca
}

.tier-badge.tier-specialist {
    background: #fef3c7;
    color: #92400e
}

.tier-badge.tier-expert {
    background: #ede9fe;
    color: #5b21b6
}

.next-tier-hint {
    font-size: .675rem;
    color: var(--text-muted);
    margin-left: auto
}

/* === Tier-specific progress bar colours === */
.skill-progress-fill.tier-foundations {
    background: linear-gradient(90deg, #60a5fa, #3b82f6)
}

.skill-progress-fill.tier-foundations::after {
    border-left-color: #3b82f6
}

.skill-progress-fill.tier-practitioner {
    background: linear-gradient(90deg, #818cf8, #6366f1)
}

.skill-progress-fill.tier-practitioner::after {
    border-left-color: #6366f1
}

.skill-progress-fill.tier-specialist {
    background: linear-gradient(90deg, #fbbf24, #f59e0b)
}

.skill-progress-fill.tier-specialist::after {
    border-left-color: #f59e0b
}

.skill-progress-fill.tier-expert {
    background: linear-gradient(90deg, #a78bfa, #7c3aed)
}

.skill-progress-fill.tier-expert::after {
    border-left-color: #7c3aed
}

/* === Dark mode tiers === */
html.dark-mode .tier-badge.tier-foundations {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd
}

html.dark-mode .tier-badge.tier-practitioner {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc
}

html.dark-mode .tier-badge.tier-specialist {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d
}

html.dark-mode .tier-badge.tier-expert {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd
}

/* === No Resource Hint === */
.no-resource-hint {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem;
    background: var(--bg-section);
    border-radius: var(--radius);
    font-size: .825rem;
    color: var(--text-secondary);
    line-height: 1.4
}

.no-resource-hint svg {
    flex-shrink: 0;
    color: var(--text-muted)
}

/* === Badge Indicator (dashboard header) === */
.badge-indicator {
    color: #eab308;
    display: flex;
    align-items: center
}

/* === Badge Celebration State (dashboard) === */
.active-skill-card.badge-complete {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d
}

.badge-celebration-state {
    text-align: center;
    padding: 1.5rem 0
}

.badge-celebration-icon {
    margin-bottom: .75rem;
    color: #eab308
}

.badge-celebration-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .375rem 0
}

.badge-celebration-message {
    font-size: .875rem;
    color: var(--text-secondary);
    margin: 0 0 .5rem 0
}

/* === Profile Badges === */
.profile-badges {
    margin-bottom: 2rem
}

.profile-badges h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem
}

.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm)
}

.badge-icon {
    color: #eab308;
    margin-bottom: .5rem
}

.badge-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: .125rem
}

.badge-subtitle {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent);
    font-weight: 600
}

.badge-detail {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .375rem
}

/* === Milestone Cards === */
.milestone-card {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease
}

.milestone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1)
}

.milestone-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px
}

/* Foundations — warm green */
.milestone-foundations {
    border-color: #86efac
}

.milestone-foundations::before {
    background: linear-gradient(90deg, #22c55e, #86efac)
}

.milestone-icon-foundations {
    color: #16a34a
}

.milestone-label-foundations {
    color: #16a34a
}

/* Practitioner — blue */
.milestone-practitioner {
    border-color: #93c5fd
}

.milestone-practitioner::before {
    background: linear-gradient(90deg, #3b82f6, #93c5fd)
}

.milestone-icon-practitioner {
    color: #2563eb
}

.milestone-label-practitioner {
    color: #2563eb
}

/* Specialist — amber / gold */
.milestone-specialist {
    border-color: #fcd34d
}

.milestone-specialist::before {
    background: linear-gradient(90deg, #eab308, #fcd34d)
}

.milestone-icon-specialist {
    color: #ca8a04
}

.milestone-label-specialist {
    color: #ca8a04
}

/* Expert — purple */
.milestone-expert {
    border-color: #c4b5fd
}

.milestone-expert::before {
    background: linear-gradient(90deg, #7c3aed, #c4b5fd)
}

.milestone-icon-expert {
    color: #7c3aed
}

.milestone-label-expert {
    color: #7c3aed
}

.milestone-icon {
    margin-bottom: .5rem
}

/* === Badge & Wave Dark Mode === */
html.dark-mode .no-resource-hint {
    background: rgba(255, 255, 255, 0.05)
}

html.dark-mode .active-skill-card.badge-complete {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(234, 179, 8, 0.04) 100%);
    border-color: rgba(234, 179, 8, 0.3)
}

html.dark-mode .badge-card {
    background: var(--bg-white);
    border-color: var(--border)
}

html.dark-mode .milestone-foundations {
    border-color: rgba(34, 197, 94, .35)
}

html.dark-mode .milestone-practitioner {
    border-color: rgba(59, 130, 246, .35)
}

html.dark-mode .milestone-specialist {
    border-color: rgba(234, 179, 8, .35)
}

html.dark-mode .milestone-expert {
    border-color: rgba(124, 58, 237, .35)
}

html.dark-mode .badge-indicator {
    color: #facc15
}

/* === Dashboard Right Column (Saved Professions + Achievements) === */
.dashboard-right-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0
}

.dashboard-right-col .saved-professions-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0
}

.dashboard-right-col .saved-professions-card .card-link {
    margin-top: auto;
    padding-top: .75rem
}

.professions-list-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    max-height: 14rem
}

/* === Dashboard Achievements Card === */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.achievement-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: transform .15s ease
}

.achievement-chip:hover {
    transform: translateX(2px)
}

.achievement-chip-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%
}

.achievement-chip-text {
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    line-height: 1.3
}

.achievement-chip-text strong {
    font-weight: 600
}

.achievement-chip-text span {
    color: var(--text-muted);
    font-size: .75rem
}

/* Achievement chip tier colours */
.achievement-foundations .achievement-chip-icon {
    background: rgba(34, 197, 94, .12);
    color: #16a34a
}

.achievement-foundations {
    border-color: rgba(34, 197, 94, .25)
}

.achievement-practitioner .achievement-chip-icon {
    background: rgba(59, 130, 246, .12);
    color: #2563eb
}

.achievement-practitioner {
    border-color: rgba(59, 130, 246, .25)
}

.achievement-specialist .achievement-chip-icon {
    background: rgba(234, 179, 8, .12);
    color: #ca8a04
}

.achievement-specialist {
    border-color: rgba(234, 179, 8, .25)
}

.achievement-expert .achievement-chip-icon {
    background: rgba(124, 58, 237, .12);
    color: #7c3aed
}

.achievement-expert {
    border-color: rgba(124, 58, 237, .25)
}

html.dark-mode .achievement-chip {
    background: var(--bg-white);
    border-color: var(--border)
}

html.dark-mode .achievement-foundations {
    border-color: rgba(34, 197, 94, .3)
}

html.dark-mode .achievement-practitioner {
    border-color: rgba(59, 130, 246, .3)
}

html.dark-mode .achievement-specialist {
    border-color: rgba(234, 179, 8, .3)
}

html.dark-mode .achievement-expert {
    border-color: rgba(124, 58, 237, .3)
}

html.dark-mode .saved-professions-card .count-badge,
html.dark-mode .achievements-card .count-badge,
html.dark-mode .skills-card .count-badge {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: white
}

/* === Achievements Page === */
.achievements-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem
}

.achievements-header {
    margin-bottom: 2rem
}

.achievements-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.achievements-header p {
    color: var(--text-secondary);
    font-size: .95rem
}

.achievements-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary)
}

.achievements-empty svg {
    color: var(--text-muted);
    margin-bottom: 1rem
}

.achievements-empty h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.achievements-empty p {
    margin-bottom: 1.5rem;
    font-size: .9rem
}

/* === Active Skills Page === */
.active-skills-page {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem
}

.active-skills-header {
    margin-bottom: 2rem
}

.active-skills-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.active-skills-header p {
    color: var(--text-secondary);
    font-size: .95rem
}

.active-skills-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem
}

.active-skills-main.badge-complete {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
    border-color: #e9d5ff
}

html.dark-mode .active-skills-main.badge-complete {
    background: linear-gradient(135deg, rgba(168, 85, 247, .08) 0%, rgba(99, 102, 241, .08) 100%);
    border-color: rgba(168, 85, 247, .25)
}

html.dark-mode .unlearn-btn {
    border-color: rgba(255, 255, 255, .12)
}

html.dark-mode .unlearn-btn:hover {
    color: #f87171;
    border-color: #f87171
}

html.dark-mode .drop-profession-btn:hover {
    color: #f87171
}

.active-skills-full-list {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem
}

.active-skills-full-list h3 {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .75rem
}

.active-skills-list-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0;
    font-size: .9rem
}

.active-skills-list-item+.active-skills-list-item {
    border-top: 1px solid var(--border)
}

.active-skills-list-name {
    flex: 1;
    font-weight: 500
}

.active-skills-list-name.completed-name {
    text-decoration: line-through;
    color: var(--text-muted)
}

.active-skills-list-name.current-name {
    font-weight: 600;
    color: var(--accent)
}

.active-skills-list-date {
    font-size: .75rem;
    color: var(--text-muted)
}

.active-skills-list-badge {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .15rem .5rem;
    border-radius: 10px;
    background: var(--accent);
    color: white
}

.active-skills-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0
}

.current-indicator {
    color: var(--accent);
    flex-shrink: 0
}

.active-skills-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary)
}

.active-skills-empty svg {
    color: var(--text-muted);
    margin-bottom: 1rem
}

.active-skills-empty h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.active-skills-empty p {
    margin-bottom: 1.5rem;
    font-size: .9rem
}

/* === Unlearn button (hover reveal) === */
.unlearn-btn {
    display: none;
    align-items: center;
    gap: .25rem;
    padding: .2rem .5rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s
}

.completed-item:hover .unlearn-btn {
    display: inline-flex
}

.completed-item:hover .active-skills-list-date {
    display: none
}

.unlearn-btn:hover {
    color: #ef4444;
    border-color: #ef4444
}

/* === Drop profession button === */
.card-header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1
}

.card-header-left .focus-badge {
    margin-left: auto
}

.drop-profession-btn {
    padding: .25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .15s, color .15s
}

.active-skills-main:hover .drop-profession-btn,
.drop-profession-btn:focus {
    opacity: 1
}

.drop-profession-btn:hover {
    color: #ef4444
}

@media (max-width: 768px) {
    .drop-profession-btn {
        opacity: 1
    }
}

/* === Collapsible skill list === */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none
}

.collapse-chevron {
    transition: transform .2s;
    flex-shrink: 0;
    color: var(--text-muted)
}

.collapsible-header.collapsed .collapse-chevron {
    transform: rotate(-90deg)
}

.collapsible-content.collapsed {
    display: none
}

/* Tracked skills section on active skills page */
.tracked-skills-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border)
}

.tracked-skills-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: .25rem
}

.tracked-skills-subtitle {
    color: var(--text-secondary);
    font-size: .85rem;
    margin-bottom: 1rem
}

.tracked-skills-list {
    display: flex;
    flex-direction: column
}

.tracked-skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border)
}

.tracked-skill-item:last-child {
    border-bottom: none
}

.tracked-skill-name {
    font-weight: 500;
    font-size: .9rem
}

.tracked-skill-date {
    font-size: .75rem;
    color: var(--text-muted)
}

/* Clickable up-next items (dashboard + active skills) */
.up-next-clickable {
    cursor: pointer;
    transition: color .15s, transform .15s
}

.up-next-clickable:hover {
    color: var(--accent);
    transform: translateX(3px)
}