body.tool-skillmap {
    --background: #f2f2f2;
    --surface: #e9e9e9;
    --surface-muted: #dedede;
    --surface-raised: #f7f7f7;
    --text-primary: #000000;
    --text-secondary: #383838;
    --border: #b8b8b8;
    --border-strong: #707070;
    --accent: #000000;
    --accent-hover: #2c2c2c;
    --success: #176c45;
    --warning: #805600;
    --danger: #a32323;
    background: var(--background) !important;
    color: var(--text-primary) !important;
}

body.tool-skillmap.modal-open {
    overflow: hidden;
}

body.tool-skillmap [hidden] {
    display: none !important;
}

body.tool-skillmap :is(button, input, select, textarea, a) {
    font: inherit;
}

body.tool-skillmap :is(button, a, input, select, textarea):focus-visible {
    outline: 3px solid var(--text-primary) !important;
    outline-offset: 3px;
}

body.tool-skillmap .skillmap-page {
    width: min(1180px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0 0 72px !important;
    color: var(--text-primary);
}

body.tool-skillmap .skillmap-page,
body.tool-skillmap .skillmap-page * {
    box-sizing: border-box;
}

body.tool-skillmap .skillmap-page > *,
body.tool-skillmap #skillmap-app,
body.tool-skillmap #skillmap-app > *,
body.tool-skillmap :is(
    .skillmap-hero,
    .skillmap-load-state,
    .skillmap-error,
    .welcome-panel,
    .onboarding,
    .onboarding-step,
    .roadmap-app,
    .roadmap-layout,
    .roadmap-sidebar,
    .roadmap-content,
    .skillmap-support,
    .tool-support-copy,
    .dashboard-grid,
    .settings-grid,
    .settings-form,
    .summary-grid,
    .recommendation-grid,
    .skill-choice-grid,
    .choice-grid,
    .choice-list
) {
    min-width: 0;
    max-width: 100%;
}

body.tool-skillmap :is(#skillmap-app, .roadmap-app, .roadmap-layout, .roadmap-content) {
    width: 100%;
}

body.tool-skillmap .skillmap-page :is(img, svg, video, canvas, iframe) {
    max-width: 100%;
}

body.tool-skillmap .skillmap-page :is(h1, h2, h3, h4, p, li, dd, dt, a, button, label, span) {
    overflow-wrap: anywhere;
}

body.tool-skillmap .themh-footer.sitewide-footer.homepage-footer-match {
    width: min(1180px, calc(100% - 32px)) !important;
    margin-inline: auto !important;
}

body.tool-skillmap .skillmap-hero {
    width: min(920px, 100%);
    padding-block: clamp(42px, 7vw, 92px) clamp(32px, 5vw, 62px);
    margin-inline: auto;
    text-align: center;
}

body.tool-skillmap .skillmap-hero h1 {
    max-width: 900px;
    margin-inline: auto;
    text-transform: none !important;
    text-wrap: balance;
}

body.tool-skillmap .skillmap-hero .shared-hero-lead {
    max-width: 760px;
    margin-inline: auto;
}

body.tool-skillmap .section-kicker {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Shared tool CSS paints every descendant; plain text must not become a raised strip. */
body.home-page.tool-suite.tool-skillmap .tool-page.skillmap-page :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    label,
    legend,
    summary,
    strong,
    small,
    .section-kicker,
    .skill-category,
    .skill-description,
    .skill-outcome,
    .skill-meta,
    .choice-card > span,
    .summary-card > span,
    .topic-number,
    .transparency-note
),
body.home-page.tool-suite.tool-skillmap .tool-page.skillmap-page :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    label,
    legend,
    summary,
    strong,
    small,
    .section-kicker,
    .skill-category,
    .skill-description,
    .skill-outcome,
    .skill-meta,
    .choice-card > span,
    .summary-card > span,
    .topic-number,
    .transparency-note
)::before,
body.home-page.tool-suite.tool-skillmap .tool-page.skillmap-page :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    label,
    legend,
    summary,
    strong,
    small,
    .section-kicker,
    .skill-category,
    .skill-description,
    .skill-outcome,
    .skill-meta,
    .choice-card > span,
    .summary-card > span,
    .topic-number,
    .transparency-note
)::after {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
}

body.home-page.tool-suite.tool-skillmap .tool-page.skillmap-page :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    label,
    legend,
    summary,
    strong,
    small,
    .section-kicker,
    .skill-category,
    .skill-description,
    .skill-outcome,
    .skill-meta,
    .choice-card > span,
    .summary-card > span,
    .topic-number,
    .transparency-note
)::before,
body.home-page.tool-suite.tool-skillmap .tool-page.skillmap-page :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    dt,
    dd,
    label,
    legend,
    summary,
    strong,
    small,
    .section-kicker,
    .skill-category,
    .skill-description,
    .skill-outcome,
    .skill-meta,
    .choice-card > span,
    .summary-card > span,
    .topic-number,
    .transparency-note
)::after {
    content: none !important;
    display: none !important;
}

body.tool-skillmap .button,
body.tool-skillmap .text-button,
body.tool-skillmap .icon-button {
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 700;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

body.tool-skillmap .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    text-decoration: none;
}

body.tool-skillmap .button-primary {
    background: var(--accent);
    color: var(--background) !important;
    border-color: var(--accent);
}

body.tool-skillmap .button-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

body.tool-skillmap .button-secondary {
    background: var(--surface-muted);
    color: var(--text-primary) !important;
}

body.tool-skillmap .button-danger {
    color: var(--danger) !important;
    background: var(--surface-muted);
    border-color: var(--danger);
}

body.tool-skillmap .button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

body.tool-skillmap .text-button {
    min-height: 38px;
    padding: 6px 0;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
}

body.tool-skillmap .icon-button {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    padding: 0;
    place-items: center;
    color: var(--text-primary);
    background: var(--surface-muted);
    font-size: 1.5rem;
}

body.tool-skillmap .skillmap-load-state,
body.tool-skillmap .skillmap-error,
body.tool-skillmap .welcome-panel,
body.tool-skillmap .onboarding {
    width: min(1160px, 100%);
    margin-inline: auto;
}

body.tool-skillmap .skillmap-support {
    width: min(1320px, 100%);
    margin-top: 28px;
}

body.tool-skillmap .skillmap-support .tool-onboarding ol {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding-left: 22px;
}

body.tool-skillmap .skillmap-support .tool-trust-note {
    margin: 0;
}

body.tool-skillmap .skillmap-support .tool-feedback {
    align-content: center;
}

body.tool-skillmap .skillmap-support .tool-feedback .button {
    width: fit-content;
}

body.tool-skillmap .skillmap-load-state {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body.tool-skillmap .loading-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: skillmap-spin .8s linear infinite;
}

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

body.tool-skillmap .skillmap-error {
    padding: clamp(28px, 5vw, 56px);
    background: var(--surface);
    border: 1px solid var(--danger);
    border-radius: 18px;
    text-align: center;
}

body.tool-skillmap .skillmap-error h2 {
    margin: 0 0 10px;
}

body.tool-skillmap .skillmap-error .button {
    margin-top: 12px;
}

body.tool-skillmap .welcome-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
    padding: clamp(30px, 5vw, 62px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

body.tool-skillmap .welcome-panel h2 {
    max-width: 650px;
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

body.tool-skillmap .welcome-panel > div > p:not(.section-kicker) {
    max-width: 720px;
    color: var(--text-secondary);
    line-height: 1.75;
}

body.tool-skillmap .welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

body.tool-skillmap .privacy-card {
    padding: 26px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
}

body.tool-skillmap .privacy-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: Inter, sans-serif;
    font-size: 1.05rem;
}

body.tool-skillmap .privacy-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

body.tool-skillmap .onboarding {
    padding: clamp(24px, 4vw, 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

body.tool-skillmap .onboarding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

body.tool-skillmap .onboarding-head h2,
body.tool-skillmap .step-copy h3 {
    margin: 0;
}

body.tool-skillmap #onboarding-step-label {
    flex: 0 0 auto;
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-weight: 700;
}

body.tool-skillmap .step-indicator {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 0 0 38px;
    padding: 0;
    list-style: none;
}

body.tool-skillmap .step-indicator li {
    min-width: 0;
    padding: 10px 8px;
    color: var(--text-secondary);
    border-top: 3px solid var(--border);
    font-family: Inter, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

body.tool-skillmap .step-indicator li.is-complete,
body.tool-skillmap .step-indicator li[aria-current="step"] {
    color: var(--text-primary);
    border-top-color: #000000 !important;
}

body.home-page.tool-suite.tool-skillmap:not(#step-progress-a):not(#step-progress-b):not(#step-progress-c)
    .skillmap-page .step-indicator li:is(.is-complete, [aria-current="step"]) {
    border-top-color: #000000 !important;
}

body.tool-skillmap .onboarding-step {
    min-height: 420px;
}

body.tool-skillmap .step-copy {
    margin-bottom: 24px;
}

body.tool-skillmap .step-copy > p:last-child {
    margin: 8px 0 0;
    color: var(--text-secondary);
}

body.tool-skillmap .search-field,
body.tool-skillmap .field-group {
    display: grid;
    gap: 7px;
    color: var(--text-primary);
    font-family: Inter, sans-serif;
    font-weight: 700;
}

body.tool-skillmap .skill-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 14px;
    align-items: end;
}

body.tool-skillmap .search-field input,
body.tool-skillmap .field-group :is(input, select, textarea),
body.tool-skillmap .review-form :is(select, textarea, input),
body.tool-skillmap .settings-form :is(select, textarea, input),
body.tool-skillmap .time-entry input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text-primary);
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
}

body.tool-skillmap .search-field input {
    font-size: 1rem;
}

body.tool-skillmap .field-group small {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
}

body.tool-skillmap .results-count {
    margin: 12px 0 16px;
    color: var(--text-secondary);
    font-size: .88rem;
}

body.tool-skillmap .skill-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 2px 8px 2px 2px;
}

body.tool-skillmap .skill-choice,
body.tool-skillmap .choice-card {
    min-height: 44px;
    padding: 18px;
    color: var(--text-primary);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    text-align: left;
}

body.tool-skillmap .skill-choice:hover,
body.tool-skillmap .choice-card:hover {
    border-color: var(--border-strong);
}

body.tool-skillmap :is(.skill-choice, .choice-card)[aria-checked="true"] {
    border: 2px solid var(--text-primary);
    box-shadow: inset 0 0 0 2px var(--surface-raised), inset 0 0 0 4px var(--text-primary);
}

body.tool-skillmap .skill-choice {
    display: grid;
    align-content: start;
    gap: 9px;
}

body.tool-skillmap .skill-choice strong,
body.tool-skillmap .choice-card strong {
    font-family: Inter, sans-serif;
    font-size: 1rem;
}

body.tool-skillmap .skill-category {
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.tool-skillmap .skill-description,
body.tool-skillmap .choice-card span {
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.5;
}

body.tool-skillmap .skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

body.tool-skillmap .skill-meta span,
body.tool-skillmap .meta-pill {
    padding: 5px 8px;
    color: var(--text-primary);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}

body.tool-skillmap .skill-outcome {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
}

body.tool-skillmap .skill-outcome strong {
    font-size: inherit;
}

body.tool-skillmap .empty-search {
    padding: 42px 20px;
    text-align: center;
}

body.tool-skillmap .empty-search h4,
body.tool-skillmap .empty-search p {
    margin: 0 0 8px;
}

body.tool-skillmap .choice-list,
body.tool-skillmap .choice-grid {
    display: grid;
    gap: 12px;
}

body.tool-skillmap .choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tool-skillmap .choice-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.tool-skillmap .choice-grid.four-up,
body.tool-skillmap .duration-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.tool-skillmap .choice-card {
    display: grid;
    gap: 8px;
}

body.tool-skillmap #custom-goal-wrap {
    max-width: 700px;
    margin-top: 18px;
}

body.tool-skillmap .plan-warning {
    margin-top: 18px;
    padding: 14px 16px;
    color: var(--text-primary);
    background: #ece3ce;
    border: 1px solid var(--warning);
    border-radius: 10px;
}

body.tool-skillmap .plan-preview {
    margin-top: 22px;
    padding: 22px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 14px;
}

body.tool-skillmap .plan-preview h4 {
    margin: 0 0 14px;
}

body.tool-skillmap .plan-preview dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

body.tool-skillmap .plan-preview dl div {
    display: grid;
    gap: 3px;
}

body.tool-skillmap .plan-preview dt {
    color: var(--text-secondary);
    font-size: .75rem;
}

body.tool-skillmap .plan-preview dd {
    margin: 0;
    font-family: Inter, sans-serif;
    font-weight: 800;
}

body.tool-skillmap .form-error {
    margin: 18px 0 0;
    padding: 12px 14px;
    color: var(--danger);
    background: var(--surface-muted);
    border: 1px solid var(--danger);
    border-radius: 9px;
}

body.tool-skillmap .onboarding-actions {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    backdrop-filter: none;
}

body.tool-skillmap .roadmap-mobile-head {
    display: none;
}

body.tool-skillmap .roadmap-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

body.tool-skillmap .roadmap-sidebar {
    position: sticky;
    top: 16px;
    min-height: calc(100vh - 32px);
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

body.tool-skillmap .sidebar-brand {
    padding: 0 8px 20px;
    border-bottom: 1px solid var(--border);
}

body.tool-skillmap .sidebar-brand h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

body.tool-skillmap .sidebar-brand > p:last-child {
    margin: 0;
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.5;
}

body.tool-skillmap .roadmap-sidebar nav {
    display: grid;
    gap: 5px;
    margin-top: 20px;
}

body.tool-skillmap .roadmap-sidebar nav button {
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 700;
    text-align: left;
}

body.tool-skillmap .roadmap-sidebar nav button:hover,
body.tool-skillmap .roadmap-sidebar nav button[aria-current="page"] {
    background: var(--surface-muted);
    border-color: var(--border);
}

body.tool-skillmap .sidebar-privacy {
    margin: 26px 8px 0;
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.5;
}

body.tool-skillmap .roadmap-content {
    min-width: 0;
    min-height: 680px;
    padding: clamp(22px, 4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

body.tool-skillmap .view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

body.tool-skillmap .view-header h1,
body.tool-skillmap .view-header h2 {
    margin: 0 0 8px;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

body.tool-skillmap .view-header p:not(.section-kicker) {
    max-width: 760px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

body.tool-skillmap .status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    color: var(--text-primary);
    background: var(--surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

body.tool-skillmap .continue-card,
body.tool-skillmap .panel,
body.tool-skillmap .topic-card,
body.tool-skillmap .resource-card,
body.tool-skillmap .summary-card,
body.tool-skillmap .note-card,
body.tool-skillmap .recommendation-card,
body.tool-skillmap .settings-card,
body.tool-skillmap .week-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
}

body.tool-skillmap .continue-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    border-color: var(--border-strong);
}

body.tool-skillmap .continue-card h2 {
    margin: 2px 0 8px;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

body.tool-skillmap .continue-card p {
    margin: 0;
    color: var(--text-secondary);
}

body.tool-skillmap .progress-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

body.tool-skillmap .progress-track {
    height: 10px;
    overflow: hidden;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
}

body.tool-skillmap .progress-track span {
    display: block;
    height: 100%;
    background: var(--text-primary);
    border-radius: inherit;
}

body.tool-skillmap .progress-line strong {
    font-family: Inter, sans-serif;
}

body.tool-skillmap .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 16px;
    margin-top: 16px;
}

body.tool-skillmap .panel,
body.tool-skillmap .settings-card {
    padding: 22px;
}

body.tool-skillmap .panel h2,
body.tool-skillmap .panel h3,
body.tool-skillmap .settings-card h3 {
    margin: 0 0 14px;
}

body.tool-skillmap .today-list,
body.tool-skillmap .action-list,
body.tool-skillmap .note-list,
body.tool-skillmap .recommendation-grid,
body.tool-skillmap .resource-list,
body.tool-skillmap .week-list,
body.tool-skillmap .topic-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.tool-skillmap .today-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

body.tool-skillmap .today-list li:last-child {
    border-bottom: 0;
}

body.tool-skillmap .today-list .task-number {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: Inter, sans-serif;
    font-size: .75rem;
    font-weight: 800;
}

body.tool-skillmap .today-list small {
    color: var(--text-secondary);
}

body.tool-skillmap .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

body.tool-skillmap .summary-card {
    padding: 18px;
}

body.tool-skillmap .summary-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: .76rem;
}

body.tool-skillmap .summary-card strong {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 1.3rem;
}

body.tool-skillmap .quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

body.tool-skillmap .quick-actions .button {
    flex: 1 1 150px;
}

body.tool-skillmap .topic-card,
body.tool-skillmap .week-card {
    padding: 18px;
}

body.tool-skillmap .topic-card-head,
body.tool-skillmap .week-card-head,
body.tool-skillmap .resource-card-head,
body.tool-skillmap .note-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.tool-skillmap .topic-card h3,
body.tool-skillmap .week-card h3,
body.tool-skillmap .resource-card h3,
body.tool-skillmap .note-card h3 {
    margin: 0;
    font-size: 1.04rem;
}

body.tool-skillmap .topic-number {
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: .8rem;
    font-weight: 800;
}

body.tool-skillmap .topic-card > p,
body.tool-skillmap .week-card > p,
body.tool-skillmap .resource-card > p,
body.tool-skillmap .note-card > p {
    color: var(--text-secondary);
    line-height: 1.55;
}

body.tool-skillmap .topic-meta,
body.tool-skillmap .resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

body.tool-skillmap .topic-card-actions,
body.tool-skillmap .resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

body.tool-skillmap .resource-card {
    padding: 20px;
}

body.tool-skillmap .resource-card details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

body.tool-skillmap .resource-card summary {
    min-height: 44px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 700;
}

body.tool-skillmap .resource-disclosure {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: .78rem;
    line-height: 1.55;
}

body.tool-skillmap .completion-box {
    margin-top: 22px;
    padding: 22px;
    background: var(--surface-muted);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
}

body.tool-skillmap .completion-box h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

body.tool-skillmap .check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

body.tool-skillmap .check-row {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

body.tool-skillmap .check-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--text-primary);
}

body.tool-skillmap .transparency-note {
    color: var(--text-secondary);
    font-size: .78rem;
}

body.tool-skillmap .topic-note textarea,
body.tool-skillmap .review-form textarea {
    min-height: 120px;
    resize: vertical;
}

body.tool-skillmap .note-status {
    min-height: 20px;
    color: var(--text-secondary);
    font-size: .75rem;
    text-align: right;
}

body.tool-skillmap .stats-table {
    width: 100%;
    border-collapse: collapse;
}

body.tool-skillmap .stats-table :is(th, td) {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

body.tool-skillmap .stats-table th {
    font-family: Inter, sans-serif;
    font-size: .76rem;
}

body.tool-skillmap .review-form {
    display: grid;
    gap: 14px;
}

body.tool-skillmap .review-form label,
body.tool-skillmap .settings-form label,
body.tool-skillmap .time-entry label {
    display: grid;
    gap: 6px;
    font-family: Inter, sans-serif;
    font-weight: 700;
}

body.tool-skillmap .review-history {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

body.tool-skillmap .review-entry {
    padding: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
}

body.tool-skillmap .review-entry p {
    margin: 4px 0;
    font-size: .82rem;
}

body.tool-skillmap .note-card,
body.tool-skillmap .recommendation-card,
body.tool-skillmap .settings-card {
    padding: 18px;
}

body.tool-skillmap .note-card p {
    white-space: pre-wrap;
}

body.tool-skillmap .recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.tool-skillmap .recommendation-card p {
    color: var(--text-secondary);
    line-height: 1.55;
}

body.tool-skillmap .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.tool-skillmap .settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.tool-skillmap .settings-form .full-row {
    grid-column: 1 / -1;
}

body.tool-skillmap .settings-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

body.tool-skillmap .completion-summary {
    padding: clamp(24px, 5vw, 48px);
    background: var(--surface-raised);
    border: 2px solid var(--text-primary);
    border-radius: 18px;
}

body.tool-skillmap .completion-summary h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

body.tool-skillmap .completion-summary .summary-grid {
    margin-block: 24px;
}

body.tool-skillmap .empty-state {
    padding: 42px 20px;
    text-align: center;
}

body.tool-skillmap .empty-state h2,
body.tool-skillmap .empty-state p {
    margin: 0 0 10px;
}

body.tool-skillmap .skillmap-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    overflow-y: auto;
    padding: 20px;
    place-items: center;
    background: rgba(0, 0, 0, .42);
}

body.tool-skillmap .skillmap-modal {
    width: min(620px, 100%);
    max-height: min(780px, calc(100vh - 40px));
    overflow-y: auto;
    color: var(--text-primary);
    background: var(--surface-raised);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

body.tool-skillmap .skillmap-modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
}

body.tool-skillmap .skillmap-modal-head h2 {
    margin: 0;
    font-size: 1.3rem;
}

body.tool-skillmap .skillmap-modal-body {
    padding: 20px;
}

body.tool-skillmap .skillmap-modal-body > :first-child {
    margin-top: 0;
}

body.tool-skillmap .skillmap-modal-body > :last-child {
    margin-bottom: 0;
}

body.tool-skillmap .skillmap-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

body.tool-skillmap .time-entry {
    display: grid;
    gap: 14px;
}

body.tool-skillmap .time-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.tool-skillmap .time-options label {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
}

body.tool-skillmap .broken-report-details {
    padding: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .8rem;
    word-break: break-word;
}

@media (max-width: 1100px) {
    body.tool-skillmap .skill-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tool-skillmap .choice-grid.four-up,
    body.tool-skillmap .duration-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.tool-skillmap .roadmap-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    body.tool-skillmap .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.tool-skillmap .skillmap-page {
        width: min(760px, calc(100% - 20px));
        max-width: calc(100% - 20px);
    }

    body.tool-skillmap .welcome-panel,
    body.tool-skillmap .dashboard-grid {
        grid-template-columns: 1fr;
    }

    body.tool-skillmap .choice-grid.three-up,
    body.tool-skillmap .choice-grid.four-up,
    body.tool-skillmap .duration-grid,
    body.tool-skillmap .recommendation-grid,
    body.tool-skillmap .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tool-skillmap .roadmap-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
    }

    body.tool-skillmap .roadmap-layout {
        display: block;
    }

    body.tool-skillmap .roadmap-sidebar {
        position: static;
        min-height: 0;
        margin-bottom: 12px;
    }

    body.tool-skillmap .roadmap-sidebar:not(.is-open) {
        display: none;
    }
}

@media (max-width: 620px) {
    body.tool-skillmap .skillmap-page {
        width: min(560px, calc(100% - 16px));
        max-width: calc(100% - 16px);
        padding-bottom: 42px !important;
    }

    body.tool-skillmap .skillmap-hero {
        padding-block: 34px 28px;
    }

    body.tool-skillmap .skillmap-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    body.tool-skillmap .skill-search-controls {
        grid-template-columns: 1fr;
    }

    body.tool-skillmap .welcome-panel,
    body.tool-skillmap .onboarding,
    body.tool-skillmap .roadmap-content {
        padding: 20px;
        border-radius: 14px;
    }

    body.tool-skillmap .welcome-actions,
    body.tool-skillmap .view-header,
    body.tool-skillmap .continue-card,
    body.tool-skillmap .topic-card-head,
    body.tool-skillmap .week-card-head,
    body.tool-skillmap .resource-card-head,
    body.tool-skillmap .note-card-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.tool-skillmap .welcome-actions .button,
    body.tool-skillmap .continue-card .button {
        width: 100%;
    }

    body.tool-skillmap .onboarding-head {
        display: block;
    }

    body.tool-skillmap #onboarding-step-label {
        margin-top: 10px;
    }

    body.tool-skillmap .step-indicator li {
        overflow: hidden;
        padding-inline: 2px;
        font-size: .65rem;
        text-overflow: ellipsis;
    }

    body.tool-skillmap .skill-choice-grid,
    body.tool-skillmap .choice-list,
    body.tool-skillmap .choice-grid.three-up,
    body.tool-skillmap .choice-grid.four-up,
    body.tool-skillmap .duration-grid,
    body.tool-skillmap .plan-preview dl,
    body.tool-skillmap .summary-grid,
    body.tool-skillmap .recommendation-grid,
    body.tool-skillmap .settings-grid,
    body.tool-skillmap .settings-form,
    body.tool-skillmap .time-options {
        grid-template-columns: 1fr;
    }

    body.tool-skillmap .skill-choice-grid {
        max-height: 560px;
    }

    body.tool-skillmap .onboarding-actions .button {
        flex: 0 0 auto;
    }

    body.tool-skillmap .today-list li {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    body.tool-skillmap .today-list li small {
        grid-column: 2;
    }

    body.tool-skillmap .skillmap-modal-backdrop {
        padding: 8px;
        place-items: end center;
    }

    body.tool-skillmap .skillmap-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 16px 16px 8px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tool-skillmap *,
    body.tool-skillmap *::before,
    body.tool-skillmap *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    body.tool-skillmap .skillmap-hero,
    body.tool-skillmap .roadmap-sidebar,
    body.tool-skillmap .roadmap-mobile-head,
    body.tool-skillmap .quick-actions,
    body.tool-skillmap .button,
    body.tool-skillmap .themh-footer,
    body.tool-skillmap .topic-card-actions,
    body.tool-skillmap .resource-actions {
        display: none !important;
    }

    body.tool-skillmap,
    body.tool-skillmap .skillmap-page,
    body.tool-skillmap .roadmap-content,
    body.tool-skillmap .panel,
    body.tool-skillmap .topic-card,
    body.tool-skillmap .week-card {
        width: 100% !important;
        color: #000000 !important;
        background: #f2f2f2 !important;
        box-shadow: none !important;
    }

    body.tool-skillmap .roadmap-content {
        padding: 0;
        border: 0;
    }
}

/* Neutralize the global neumorphic text shadow on SkillMap's plain labels. */
body.home-page.tool-suite.tool-skillmap:not(#shadow-standard-a):not(#shadow-standard-b):not(#shadow-standard-c)
    .tool-page.skillmap-page :is(.section-kicker, .page-kicker, .small-note, .card-label, .form-label, .tax-label) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}
