* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}
:root {
    --sd-purple: #7f6df2;
    --sd-purple-dark: #6750d8;
    --sd-purple-soft: #f2efff;
    --sd-purple-border: #ded8ff;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f6f3ff, #eef8ff);
    color: #1f2933;
    padding: 12px 0;
}

.app-shell {
    width: 94vw;
    max-width: 520px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 32px;
    margin: 18px 0 18px;
    letter-spacing: -0.5px;
}
.app-shell h1 {
    transform: translateX(8px);
}

#app {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    padding: 26px 20px;
    box-shadow: 0 20px 50px rgba(31, 41, 51, 0.12);
    text-align: center;
}

h2 {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 12px;
}

h3 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 6px;
    color: #52606d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    font-size: 19px;
    line-height: 1.45;
    margin: 10px 0 20px;
}

input {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    border-radius: 18px;
    border: 2px solid #d9e2ec;
    outline: none;
    margin-top: 18px;
}

input:focus {
    border-color: #7c3aed;
}

button {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 20px 18px;
    margin-top: 14px;
    font-size: 19px;
    font-weight: 700;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.08);
    cursor: pointer;
}


.card-button {
    width: 92%;
    max-width: 420px;
    padding: 12px 16px;
    margin: 6px auto;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.2;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: none;
}

.card-subtitle {
    font-size: 17px;
    color: #111827;
    margin-top: -4px;
    margin-bottom: 20px;
}

.mode-grid {
    display: grid;
    gap: 14px;
}

.score {
    font-size: 64px;
    font-weight: 900;
    margin: 8px 0;
    letter-spacing: -2px;
}

.label {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #374151;
    font-weight: 900;
    margin-top: 18px;
    margin-bottom: 8px;
}

.result-challenge {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 24px;
}

.result-detail {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 18px;
}

.insight-box {
    background: #f8fafc;
    border-radius: 22px;
    padding: 20px;
    margin: 18px 0;
    text-align: center;
}

.readiness-box {
    background: #ede9fe;
    border-radius: 24px;
    padding: 24px;
    margin: 20px 0;
}

.readiness-box .score {
    font-size: 68px;
    font-weight: 900;
    margin: 0;
    color: #5b21b6;
}

.readiness-box .readiness-label {
    font-size: 22px;
    font-weight: 800;
    margin-top: 6px;
    color: #5b21b6;
}

.strength-barrier-box {
    background: #f8fafc;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
}

.strength-barrier-row {
    margin-bottom: 18px;
}

.strength-barrier-row:last-child {
    margin-bottom: 0;
}

.small-detail {
    font-size: 17px;
    color: #52606d;
}

.progress-wrap {
    text-align: left;
    margin-bottom: 18px;
}

.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.progress-bar {
    width: 90px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 999px;
}

#outside-controls {
    text-align: center;
    margin-top: 14px;
}

.back-button {
    background: transparent;
    box-shadow: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    width: auto;
    display: inline-block;
}

.copy-button {
    background: #ede9fe;
    color: #4c1d95;
}

.footer-space {
    height: 12px;
}

@media (min-width: 700px) {
    body {
        padding-top: 36px;
    }

    h1 {
        font-size: 32px;
    }

    #app {
        padding: 32px;
    }
}

.help-button {
    background: transparent;
    box-shadow: none;
    color: #5b21b6;
    font-size: 15px;
    font-weight: 700;
    padding: 4px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.help-button:hover {
    box-shadow: none;
    transform: none;
    color: #4c1d95;
}

.nav-button:hover,
.help-link-button:hover,
.more-choices-button:hover,
.copy-button:hover,
.small-action-button:hover {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    filter: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 28px;
    padding: 30px 24px 24px;
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.25);
    text-align: center;
}

.modal-card h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.modal-card p {
    font-size: 18px;
    line-height: 1.45;
    color: #374151;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    font-size: 30px;
    color: #6b7280;
}

.modal-close:hover {
    box-shadow: none;
    transform: none;
    color: #4c1d95;
}
.trend-box {
    background: #faf5ff;
    border-radius: 22px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.trend-box p {
    margin-bottom: 0;
}

.save-confirmation {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 18px;
    padding: 14px;
    margin: 14px 0;
    font-size: 16px;
    font-weight: 700;
}

.recent-box {
    background: #f8fafc;
    border-radius: 22px;
    padding: 18px;
    margin: 20px 0;
    text-align: left;
}

.recent-empty {
    color: #6b7280;
    font-size: 16px;
    margin: 16px 0;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
}

.recent-item:first-of-type {
    border-top: none;
}

.recent-item strong {
    color: #1f2933;
}

.recent-item span {
    color: #5b21b6;
    font-weight: 800;
    white-space: nowrap;
}
.error-message {
    color: #b91c1c;
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0 0;
}
.fine-tune-box {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px 20px 22px;
    margin: 24px 0;
}

input[type="range"] {
    width: 100%;
    padding: 0;
    margin: 18px 0 10px;
    border: none;
    outline: none;
    accent-color: #7c3aed;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #6b7280;
    font-weight: 800;
    margin-top: 4px;
}

.fine-tune-number {
    font-size: 22px;
    font-weight: 800;
    color: #5b21b6;
    margin-top: 18px;
}
.word-scale span {
    flex: 1;
    text-align: center;
}

.word-scale span:first-child {
    text-align: left;
}

.word-scale span:last-child {
    text-align: right;
}

.word-scale span:nth-child(2) {
    color: #5b21b6;
    font-weight: 900;
}
.topic-history-box {
    background: #f8fafc;
    border-radius: 24px;
    padding: 18px;
    margin: 20px 0;
    text-align: left;
}

.topic-card {
    background: white;
    border-radius: 18px;
    margin-top: 12px;
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.06);
    overflow: hidden;
}

.topic-card summary {
    cursor: pointer;
    list-style: none;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topic-card summary::-webkit-details-marker {
    display: none;
}

.topic-summary-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topic-summary-main strong {
    font-size: 18px;
    color: #1f2933;
}

.topic-summary-main span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.topic-summary-score {
    min-width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.topic-results {
    border-top: 1px solid #e5e7eb;
    padding: 8px 16px 16px;
}

.topic-result-row {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.topic-result-row:last-child {
    border-bottom: none;
}

.topic-result-row div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.topic-result-row strong {
    font-size: 24px;
    color: #5b21b6;
}

.topic-result-row span {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
}

.topic-result-row p {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0;
}
.mini-chart-box {
    background: #faf5ff;
    border-radius: 18px;
    padding: 14px;
    margin: 12px 0 16px;
}

.mini-chart {
    width: 100%;
    height: 90px;
    display: block;
}

.mini-chart-axis {
    stroke: #e9d5ff;
    stroke-width: 2;
}

.mini-chart-line {
    fill: none;
    stroke: #7c3aed;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-chart-dot {
    fill: #5b21b6;
}

.mini-chart-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 800;
    margin-top: 8px;
}

.mini-chart-caption strong {
    color: #5b21b6;
}

.mini-chart-empty {
    background: #faf5ff;
    border-radius: 16px;
    padding: 14px;
    margin: 12px 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.mode-card {
    background: #ede9fe;
    border-radius: 24px;
    margin-top: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.07);
}

.mode-card > summary {
    cursor: pointer;
    list-style: none;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mode-card > summary::-webkit-details-marker {
    display: none;
}

.mode-summary-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.mode-summary-main strong {
    font-size: 20px;
    color: #4c1d95;
}

.mode-summary-main span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 800;
}

.mode-summary-arrow {
    color: #5b21b6;
    font-size: 24px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.mode-card[open] .mode-summary-arrow {
    transform: rotate(180deg);
}

.mode-topic-list {
    padding: 0 12px 14px;
}

.mode-topic-list .topic-card {
    margin-top: 12px;
}

@keyframes appFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #app {
        animation: none;
    }
}
.first-screen-fade {
    animation: firstScreenFadeIn 0.5s ease both;
}

@keyframes firstScreenFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .first-screen-fade {
        animation: none;
    }
}
.more-choices-button {
    background: #f3e8ff;
    color: #5b21b6;
    box-shadow: none;
    margin-top: 18px;
}

.more-choices-button:hover {
    box-shadow: none;
    transform: none;
    background: #ede9fe;
}
.readiness-affirmation {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #4c1d95;
    line-height: 1.4;
}
.welcome-back-box {
    background: transparent;
    border-radius: 0;
    padding: 0 10px 18px;
    margin: 0 0 14px;
    text-align: center;
    box-shadow: none;
}

.welcome-back-box p {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.4;
}

.welcome-back-box strong {
    color: #1f2933;
}

.secondary-button {
    background: white;
    color: #5b21b6;
    border: 2px solid #ddd6fe;
    box-shadow: none;
    margin-top: 10px;
}
.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.result-metrics div {
    background: #faf5ff;
    border-radius: 16px;
    padding: 12px 8px;
}

.result-metrics strong {
    display: block;
    font-size: 22px;
    color: #5b21b6;
}

.result-metrics span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
    margin-top: 4px;
}
.targeted-advice-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 0;
    margin: 12px 0;
    text-align: left;
    overflow: hidden;
}

.targeted-advice-box summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    color: #5b21b6;
    font-size: 17px;
    font-weight: 900;
}

.targeted-advice-box summary::-webkit-details-marker {
    display: none;
}

.targeted-advice-box summary::after {
    content: "▾";
    float: right;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.targeted-advice-box[open] summary::after {
    transform: rotate(180deg);
}

.targeted-advice-box p {
    margin: 0;
    padding: 0 16px 16px;
    color: #374151;
    line-height: 1.45;
}
.targeted-advice-box summary {
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.targeted-advice-box summary:hover {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
}
.result-metrics.two-metrics {
    grid-template-columns: repeat(2, 1fr);
}
.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.small-action-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    margin: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: #ede9fe;
    color: #4c1d95;
    border: 1px solid #ddd6fe;
    box-shadow: none;
}

.small-action-button:hover {
    transform: none;
    box-shadow: none;
    background: #e9d5ff;
}
.front-animation {
    margin: 0 0 24px;
    text-align: center;
}

.animated-art-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 320px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 28px;
    background: #6b5fa7;}

.animated-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    opacity: 0;
    transform: scale(1.04);
}

.animated-art-wrap.art-ready .animated-art {
    animation: gentleImageFadeThenSettle 0.75s ease forwards;
}

.overlay-words {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    color: white;
    text-shadow: 0 2px 14px rgba(31, 41, 51, 0.55);
    pointer-events: none;
}

.overlay-words span {
    opacity: 0;
    transform: translateY(4px);
    font-weight: 900;
    line-height: 1.15;
}

.animated-art-wrap.art-ready .overlay-words span {
    animation: introWordQuickAppear 0.8s ease forwards;
}


.overlay-words span:nth-child(1) {
    animation-delay: .2s;
    font-size: 24px;
}

.overlay-words span:nth-child(2) {
    animation-delay: .4s;
    font-size: 24px;
}

.overlay-words span:nth-child(3) {
    animation-delay: .6s;
    font-size: 24px;
}

.overlay-words span:nth-child(4) {
    animation-delay: .9s;
    font-size: 15px;
    font-weight: 800;
    margin-top: 8px;
}


@keyframes gentleImageFadeThenSettle {
    0% {
        opacity: 0;
        object-position: center 40%;
        transform: scale(1.04);
    }

    21% {
        opacity: .4;
        object-position: center 40%;
        transform: scale(1.04);
    }

    66% {
        opacity: .7;
        object-position: center 40%;
        transform: scale(1.04);
    }

    100% {
        opacity: 1;
        object-position: center 30%;
        transform: scale(1.0);
    }
}

@keyframes introWordQuickAppear {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .animated-art,
    .overlay-words span {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .animated-art {
        object-position: center 43%;
    }
}
.nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.nav-button {
    width: auto;
    background: transparent;
    box-shadow: none;
    color: var(--sd-purple-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 8px;
    margin: 0;
    border-radius: 999px;
}

.nav-button:hover {
    background: #ede9fe;
    box-shadow: none;
    transform: none;
}

.progress-fill {
    background: var(--sd-purple);
}

input[type="range"] {
    accent-color: var(--sd-purple);
}

.small-action-button {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
}

.small-action-button:hover {
    background: #e5e0fb;
}

.nav-button {
    color: var(--sd-purple-dark);
}

.nav-button:hover {
    background: var(--sd-purple-soft);
}

.copy-button,
.more-choices-button {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
}

.help-link-button {
    color: var(--sd-purple-dark);
}

.readiness-box {
    background: var(--sd-purple-soft);
}

.readiness-box .score,
.readiness-box .readiness-label,
.result-metrics strong,
.topic-summary-score,
.topic-result-row strong,
.mini-chart-caption strong,
.targeted-advice-box summary {
    color: var(--sd-purple-dark);
}

.mini-chart-line {
    stroke: var(--sd-purple);
}

.mini-chart-dot {
    fill: var(--sd-purple-dark);
}
button.primary {
    background: var(--sd-purple);
    color: white;
}

button.primary,
.slim-primary {
    background: #eadfff;
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: 0 6px 14px rgba(109, 40, 217, 0.10);
}

button.primary:hover,
.slim-primary:hover {
    background: #e5d9ff;
    color: var(--sd-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.14);
}
button.continue-button {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    border-radius: 999px;
    box-shadow: none;
    filter: none;
}

button.continue-button:hover {
    background: #e5e0fb;
    color: var(--sd-purple-dark);
    border-color: var(--sd-purple-border);
    box-shadow: none;
    filter: none;
}
/* Consistent hover behaviour for all buttons */
button:not(:disabled) {
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        filter 0.18s ease;
}

button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.12);
}

button:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(31, 41, 55, 0.10);
}
.more-choices-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    margin: 8px auto 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: none;
}


.card-button:not(:disabled):hover {
    background: #e5e0fb;
    color: var(--sd-purple-dark);
    border-color: var(--sd-purple-border);
    transform: translateY(-1px);
    box-shadow: none;
}

.mode-card,
.topic-card {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.mode-card > summary,
.topic-card > summary {
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.mode-card:hover,
.topic-card:hover {
    background: #flecff;
    border-color: var(--sd-purple-border);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.10);
    transform: translateY(-1px);
}

.mode-card > summary:hover,
.topic-card > summary:hover {
    color: var(--sd-purple-dark);
}
/* Bottom-centre unfold cue for saved check-in cards */
.topic-card > summary {
    position: relative;
    padding-bottom: 28px;
    cursor: pointer;
}

.topic-card > summary::after {
    content: "⌄";
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

.topic-card:hover > summary::after {
    background: #efe7ff;
    color: var(--sd-purple-dark);
    transform: translateX(-50%) translateY(-1px);
}

.topic-card[open] > summary::after {
    content: "⌃";
    background: #efe7ff;
}
button.primary,
.slim-primary {
    background: #eadfff;
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: 0 6px 14px rgba(109, 40, 217, 0.10);
}

button.primary:hover,
.slim-primary:hover {
    background: #e5d9ff;
    color: var(--sd-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.14);
}

/* Opening landing choices */

.landing-choice-box {
    margin-top: 18px;
}
.landing-readiness-button {
    background: #f7f4ff !important;
    color: #4f3f75 !important;
    border: 1px solid #ddd2ff !important;
    box-shadow: none !important;
}

.landing-readiness-button:hover {
    background: #eee8ff !important;
    color: #4f3f75 !important;
    border-color: #c7b8f5 !important;
    box-shadow: none !important;
}


.landing-nextsteps-fake-button {
    width: 100%;
    border-radius: 999px;
    padding: 12px 18px;
    margin-top: 14px;
    text-align: center;

    background: #f1f0f5;
    color: #4f4a5f;
    border: 1px solid #d8d5e3;
    box-shadow: none;

    cursor: pointer;
    user-select: none;
}

.landing-nextsteps-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.landing-nextsteps-note {
    min-height: 18px;
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6578;
}

.landing-nextsteps-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.landing-nextsteps-status {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6578;
    line-height: 1.2;
}


.voice-input-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}

.mic-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: #eadfff;
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: 0 6px 14px rgba(109, 40, 217, 0.10);
}

.mic-button:hover {
    background: #e5d9ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.14);
}

.voice-status {
    font-size: 13px;
    color: #6b7280;
}
.topic-input-wrap {
    position: relative;
    width: 100%;
}

.topic-input-wrap input,
.topic-input-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding-right: 58px;
}

.mic-inside-button {
    position: absolute;
    right: 14px;
    top: 36px;
    transform: none;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #1f2933;
    border: none;
    box-shadow: none;
    font-size: 0;
}

.mic-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.mic-inside-button:hover {
    background: #efe7ff;
    color: var(--sd-purple-dark);
    transform: scale(1.04);
    box-shadow: none;
}

.voice-status {
    min-height: 18px;
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}
@media (min-width: 900px) {
    body {
        padding-top: 42px;
    }

    .app-shell {
        max-width: 680px;
    }

    h1 {
        font-size: 42px;
        margin: 20px 0 24px;
    }

    #app {
        padding: 42px 44px;
        border-radius: 34px;
    }

    h2 {
        font-size: 40px;
    }

    p {
        font-size: 21px;
    }

    .card-subtitle {
        font-size: 20px;
    }

    input {
        font-size: 22px;
        padding: 22px 60px 22px 24px;
    }

    .card-button {
        max-width: 560px;
        font-size: 18px;
        padding: 15px 20px;
    }

    .animated-art-wrap {
        max-width: 620px;
        height: 380px;
    }

    .overlay-words span:nth-child(1),
    .overlay-words span:nth-child(2),
    .overlay-words span:nth-child(3) {
        font-size: 30px;
    }

    .overlay-words span:nth-child(4) {
        font-size: 18px;
    }
    
}
.topic-history-box > .result-title {
    text-align: center;
}
.strength-barrier-inline {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e9d5ff;
}

.strength-barrier-inline p {
    font-size: 18px;
    margin: 6px 0;
    color: #4b5563;
}

.strength-barrier-inline strong {
    color: var(--sd-purple-dark);
    font-weight: 900;
}

.feedback-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin: 16px auto 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: #f8fafc;
    color: var(--sd-purple-dark);
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
}

.feedback-button:hover {
    background: #ecfdf5;
    color: var(--sd-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.12);
}
.install-tip {
    background: #fff8ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 18px auto;
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.install-tip p {
    margin: 0;
}
.footer-note {
    display: block;
    width: 100%;
    margin: 14px auto 0;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
    opacity: 1;
    text-align: center;
}


/* Non-clickable result information should look like calm cards, not buttons */

.readiness-box,
.result-metrics div,
.strength-barrier-box,
.insight-box,
.trend-box,
.topic-history-box,
.recent-box,
.fine-tune-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

/* Keep the readiness score visually special, but not button-like */

.readiness-box .score,
.readiness-box .readiness-label {
    color: var(--sd-purple-dark);
}

.readiness-popup-label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Feedback is clickable, so make it look clickable too */

.feedback-button {
    background: var(--sd-purple);
    color: white;
    border: 1px solid var(--sd-purple);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.18);
}

.feedback-button:hover {
    background: var(--sd-purple-dark);
    color: white;
    border-color: var(--sd-purple-dark);
}
/* Readiness gauge: shows that the score is out of 100 */

/* Readiness gauge: visible half-circle and needle */

.readiness-gauge {
    position: relative !important;
    width: 240px !important;
    height: 130px !important;
    margin: 10px auto 0 !important;
}

.gauge-arc {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 240px !important;
    height: 120px !important;
    border-radius: 240px 240px 0 0 !important;
    border-top: 18px solid #e5e7eb !important;
    border-left: 18px solid #e5e7eb !important;
    border-right: 18px solid #e5e7eb !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

.gauge-needle {
    position: absolute !important;
    left: 50% !important;
    bottom: 8px !important;
    width: 5px !important;
    height: 88px !important;
    background: var(--sd-purple-dark) !important;
    border-radius: 999px !important;
    transform-origin: bottom center !important;
    transform: translateX(-50%) rotate(var(--needle-angle)) !important;
    z-index: 10 !important;
}

.gauge-centre {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 22px !important;
    height: 22px !important;
    background: var(--sd-purple-dark) !important;
    border: 4px solid white !important;
    border-radius: 999px !important;
    transform: translateX(-50%) !important;
    z-index: 11 !important;
}

.gauge-labels {
    display: flex !important;
    justify-content: space-between !important;
    width: 240px !important;
    margin: -4px auto 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #6b7280 !important;
}

.gauge-out-of {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #6b7280 !important;
    margin-top: 4px !important;
}
.suggested-step-inline {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.suggested-step-inline p {
    font-size: 16px;
    line-height: 1.45;
    color: #374151;
    margin: 8px 0 0;
}

.named-step-box input {
    margin-top: 10px;
}

.named-step-box .small-detail {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
}
/* Unified result-page clickable actions */

.readiness-label-button,
.result-action-button {
    width: 100%;
    border: 1px solid var(--sd-purple-border) !important;
    background: var(--sd-purple-soft) !important;
    color: var(--sd-purple-dark) !important;
    border-radius: 999px !important;
    padding: 12px 18px !important;
    margin-top: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.readiness-label-button {
    width: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px !important;
}

.readiness-label-button::after {
    content: "ⓘ";
    font-size: 13px;
    opacity: 0.75;
}

.readiness-label-button:hover,
.result-action-button:hover {
    background: #e5e0fb !important;
    border-color: var(--sd-purple-border) !important;
    color: var(--sd-purple-dark) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(-1px);
}

.readiness-label-button:focus-visible,
.result-action-button:focus-visible {
    outline: 3px solid rgba(109, 40, 217, 0.25);
    outline-offset: 3px;
}
/* Choice cards */

.card-button {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: none;
}

.card-button:not(:disabled):hover {
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 2px solid var(--sd-purple-dark);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Section-specific choice cards */

.card-button.helper-button {
    background: #dcecff;
    color: #1f3f66;
    border-color: #bfd9f6;
}

.card-button.helper-button:not(:disabled):hover {
    background: #cfe4fb;
    color: #1f3f66;
    border-color: #7da9d8;
}

.importance-button-wrap .card-button,
.importance-button-wrap .number-choice-button {
    background: #dff7ec;
    color: #245744;
    border-color: #bfe8d3;
}

.importance-button-wrap .card-button:not(:disabled):hover,
.importance-button-wrap .number-choice-button:not(:disabled):hover {
    background: #d2f0e2;
    color: #245744;
    border-color: #7fbf9f;
}

.importance-finetune-button {
    background: #dff7ec !important;
    color: #245744 !important;
    border-color: #bfe8d3 !important;
}

.importance-finetune-button:hover {
    background: #d2f0e2 !important;
    color: #245744 !important;
    border-color: #7fbf9f !important;
}
/* Importance fine-tune wording */

.importance-finetune-box .word-scale span {
    color: #5f7f70;
}

.importance-finetune-box .word-scale span:nth-child(2) {
    color: #245744;
}

/* Importance fine-tune screen */

button.primary.slim-primary.importance-finetune-button {
    background: #dff7ec !important;
    color: #245744 !important;
    border: 1px solid #bfe8d3 !important;
    box-shadow: 0 6px 14px rgba(36, 87, 68, 0.10) !important;
}

button.primary.slim-primary.importance-finetune-button:hover {
    background: #d2f0e2 !important;
    color: #245744 !important;
    border-color: #7fbf9f !important;
    box-shadow: 0 8px 18px rgba(36, 87, 68, 0.14) !important;
}
.importance-finetune-box input[type="range"] {
    accent-color: #7fbf9f;
}

/* Helper custom input screen */

button.primary.continue-button.helper-continue-button {
    background: #dcecff !important;
    color: #1f3f66 !important;
    border: 1px solid #bfd9f6 !important;
    box-shadow: none !important;
}

button.primary.continue-button.helper-continue-button:hover {
    background: #cfe4fb !important;
    color: #1f3f66 !important;
    border-color: #7da9d8 !important;
    box-shadow: none !important;
}

/* Initial focus input screen */

button.primary.continue-button.focus-start-button {
    background: #f1f0f5 !important;
    color: #4f4a5f !important;
    border: 1px solid #d8d5e3 !important;
    box-shadow: none !important;
}

button.primary.continue-button.focus-start-button:hover {
    background: #e8e5f0 !important;
    color: #4f4a5f !important;
    border-color: #bcb5d2 !important;
    box-shadow: none !important;
}

.card-button.barrier-button {
    background: #f6e1cf;
    color: #6b3f24;
    border-color: #e5bf9d;
}

.card-button.barrier-button:not(:disabled):hover {
    background: #efd3bc;
    color: #6b3f24;
    border-color: #c88955;
}

/* Barrier custom input screen */

button.primary.continue-button.barrier-continue-button {
    background: #f6e1cf !important;
    color: #6b3f24 !important;
    border: 1px solid #e5bf9d !important;
    box-shadow: none !important;
}

button.primary.continue-button.barrier-continue-button:hover {
    background: #efd3bc !important;
    color: #6b3f24 !important;
    border-color: #c88955 !important;
    box-shadow: none !important;
}

/* Saved check-in popup and action-step layout */

.saved-checkins-modal-card {
    width: min(98vw, 900px) !important;
    max-width: 900px !important;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 10px !important;
    padding-right: 10px !important;
    position: relative;
}

.saved-checkins-modal-card .modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 20;
    background: white;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    line-height: 1;
}

.saved-checkins-modal-card .topic-history-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.saved-checkins-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 18px;
    margin: 22px 0;
    text-align: center;
}

.saved-checkins-section .result-title {
    margin-top: 0;
}

.saved-checkins-section .save-step-button {
    margin-bottom: 1.2em;
}

.save-step-button {
    width: auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}



.mode-topic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mode-card,
.topic-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.mode-card-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.mode-card-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0.78;
}

.topic-card summary,
.mode-card > summary {
    width: 100% !important;
    box-sizing: border-box !important;
}

.topic-results {
    display: block;
    border-top: 1px solid #e5e7eb;
    padding: 12px 10px 16px !important;
}

.mini-chart-box {
    background: #faf5ff;
    border-radius: 18px;
    padding: 14px;
    margin: 12px 0 16px;
}

.mini-chart-empty {
    background: #faf5ff;
    border-radius: 16px;
    padding: 14px;
    margin: 12px 0 16px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.chart-click-hint {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    text-align: center;
    margin: 0 0 12px;
}

.topic-result-row {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.topic-result-row:last-child {
    border-bottom: none;
}

.checkin-step-row {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    margin-top: 10px;
}

.step-check-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 2px solid var(--sd-purple-border);
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    box-shadow: none;
    font-size: 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-check-button:hover {
    background: #e5e0fb;
    box-shadow: none;
    filter: none;
}

.checkin-step-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    text-align: left;
}

.checkin-step-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.checkin-step-main span,
.checkin-step-main strong {
    font-size: 20px;
    color: var(--sd-purple-dark);
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none !important;
}

.checkin-step-complete .checkin-step-main strong {
    text-decoration: none !important;
    color: var(--sd-purple-dark);
    font-weight: 400 !important;
}

.mark-step-complete-button {
    width: auto;
    display: inline-flex;
    padding: 0;
    margin: 4px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mark-step-complete-button:hover {
    background: transparent;
    box-shadow: none;
    filter: none;
    color: var(--sd-purple-dark);
    transform: none;
}

.current-action-step-box {
    background: white;
    border: 1px solid var(--sd-purple-border);
    border-radius: 20px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.current-action-step-box .result-title {
    margin-top: 0;
}

.current-action-step-box p {
    font-size: 15px;
    margin: 6px 0 10px;
    color: #4b5563;
}

.current-action-step-box input {
    margin-top: 8px;
}

.targeted-advice-button {
    margin-bottom: 1.2em !important;
}

.title-flower-icon {
    width: 74px;
    height: 74px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 2px;
}

.page-flower-icon {
    width: 66px;
    height: 66px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}
/* Final results screen refinement */

.result-main-box {
    margin-top: 0 !important;
    padding-top: 16px !important;
}

.result-focus-title {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.result-focus-name {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 22px !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.result-main-box .score {
    margin-top: 0 !important;
}
/* Final saved check-in graph refinements */

.mini-chart-toggle-button {
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0 !important;
    padding: 6px 12px;
    text-align: center;
}

.mini-chart-dot-completed-base {
    fill: var(--sd-purple-dark);
    stroke: white;
    stroke-width: 1.5;
}

.mini-chart-tick-above {
    fill: var(--sd-purple-dark);
    font-size: 14px;
    font-weight: 900;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.mini-chart-instruction {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    text-align: center;
}

.mini-chart-marker:hover .mini-chart-dot-todo,
.mini-chart-marker:hover .mini-chart-dot-completed-base,
.mini-chart-marker:hover .mini-chart-tick-above {
    opacity: 0.75;
}
/* Final graph spacing and button sizing */

.mini-chart-caption,
.mini-chart-instruction,
.mini-chart-toggle-button {
    width: min(100%, 460px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mini-chart-caption {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mini-chart-toggle-button {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 6px 12px !important;
    margin-top: 10px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: var(--sd-purple-dark) !important;
    background: white !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.mini-chart-toggle-button:hover {
    background: var(--sd-purple-soft) !important;
    color: var(--sd-purple-dark) !important;
    box-shadow: none !important;
    filter: none !important;
}
/* Centre show-all graph button */

.mini-chart-toggle-button {
    display: flex !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
/* Make show-all graph button text smaller */

.mini-chart-toggle-button {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: var(--sd-purple-dark) !important;
    line-height: 1.2 !important;
    padding: 6px 12px !important;
}
/* Nested topic-card labels */

.topic-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 4px;
}

.topic-summary-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.topic-summary-score-wrap .topic-summary-label {
    text-align: center;
    margin-bottom: 0;
}
/* Nested topic-card labels without changing the popup HTML */

.topic-card > summary .topic-summary-main::before {
    content: "Focus:";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 4px;
}

.topic-card > summary .topic-summary-score::before {
    content: "Readiness:";
    position: absolute;
    top: -22px;
    right: 0;
    transform: none;
    width: max-content;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 900;
}

.topic-card > summary .topic-summary-score {
    position: relative;
    margin-top: 22px;
}
/* V2 task completion message */

.task-completion-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 12px 14px;
    margin: 10px 0 12px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    text-align: left;
}

.mini-chart-box .task-completion-message {
    margin-top: 12px;
    text-align: center;
}
/* Experience Bank choices inside graph box */

.mini-chart-box .experience-bank-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.mini-chart-box .experience-bank-choice-button {
    width: fit-content !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: white !important;
    color: var(--sd-purple-dark) !important;
    border: 1px solid var(--sd-purple-border) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.mini-chart-box .experience-bank-choice-button.secondary {
    background: white !important;
    color: var(--sd-purple-dark) !important;
}

.mini-chart-box .experience-bank-choice-button:hover {
    background: var(--sd-purple-soft) !important;
    box-shadow: none !important;
    filter: none !important;
}
/* Experience Bank */

.review-choice-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

.review-choice-row .result-action-button {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.experience-bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-bank-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 12px;
    text-align: left;
}

.experience-bank-card > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.experience-bank-card > summary::-webkit-details-marker {
    display: none;
}

.experience-bank-card-body {
    margin-top: 12px;
}

.experience-bank-evidence {
    background: white;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.experience-bank-evidence p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
}

.experience-bank-evidence p:last-child {
    margin-bottom: 0;
}
/* Experience Bank card refinement */

.experience-bank-card {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 14px !important;
    text-align: left !important;
}

.experience-bank-card > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.experience-bank-card > summary::-webkit-details-marker {
    display: none !important;
}

.experience-bank-summary-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.experience-bank-summary-main strong {
    font-size: 18px;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.15;
}

.experience-bank-summary-main span {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
}

.experience-bank-mini-graph {
    width: 96px;
    min-width: 96px;
    color: var(--sd-purple);
    background: white;
    border-radius: 999px;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
}

.experience-bank-mini-graph svg {
    display: block;
    width: 100%;
    height: 28px;
}

.experience-bank-card-body {
    margin-top: 12px !important;
}

.experience-bank-evidence {
    background: white !important;
    border-radius: 14px !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
}

.experience-bank-evidence p {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #374151 !important;
}

.experience-bank-evidence p:last-child {
    margin-bottom: 0 !important;
}
/* Experience Bank centering override */

.experience-bank-card {
    text-align: center !important;
}

.experience-bank-card > summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.experience-bank-expand-arrow {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 4px !important;
}

.experience-bank-summary-main {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.experience-bank-summary-main strong {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.experience-bank-mini-graph {
    display: block !important;
    margin: 8px auto 0 !important;
}

.experience-bank-card-body {
    text-align: center !important;
}

.experience-bank-evidence {
    text-align: center !important;
}

.experience-bank-evidence p {
    text-align: center !important;
}
/* Experience Bank non-expand card */

.experience-bank-card {
    text-align: center !important;
}

.experience-bank-card > summary {
    display: none !important;
}

.experience-bank-date {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    margin-top: 4px;
    text-align: center;
}

.experience-bank-card-body {
    margin-top: 14px !important;
    text-align: center !important;
}

.experience-bank-evidence,
.experience-bank-evidence p {
    text-align: center !important;
}
/* Experience Bank reflection input */

.experience-bank-reflection-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    resize: vertical;
    margin: 12px 0;
    color: #1f2937;
    background: white;
}

.experience-bank-reflection-input:focus {
    outline: 3px solid var(--sd-purple-soft);
    border-color: var(--sd-purple);
}

/* Light purple nested task/evidence block inside Experience Bank */

.experience-bank-evidence {
    background: var(--sd-purple-soft) !important;
    border: 1px solid var(--sd-purple-border) !important;
}
/* Experience Bank reflection display */

.experience-bank-reflection-display {
    margin-top: 12px;
}

.experience-bank-reflection-display p {
    margin-bottom: 8px !important;
}
/* Sticky bottom menu inside popups */

.saved-checkins-modal-card {
    padding-bottom: 92px !important;
    position: relative !important;
}

.popup-bottom-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;

    width: calc(100% + 24px) !important;
    margin: 18px -12px -12px !important;
    padding: 12px !important;

    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid #e5e7eb !important;
    backdrop-filter: blur(8px) !important;
}

.popup-bottom-actions .result-action-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}
/* Full-width mobile-friendly popups */

.saved-checkins-modal-card {
    width: min(96vw, 720px) !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    padding-bottom: 0 !important;
    overflow-y: auto !important;
}

/* Flush sticky bottom menu inside popups */

.popup-bottom-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;

    width: calc(100% + 32px) !important;
    margin: 18px -16px -16px !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;

    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -6px 18px rgba(17, 24, 39, 0.06) !important;
    backdrop-filter: blur(8px) !important;
}

/* Make popup menu buttons behave like home/nav buttons */

.popup-bottom-actions .result-action-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;

    background: transparent !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.popup-bottom-actions .result-action-button:hover {
    background: #f9fafb !important;
    color: var(--sd-purple-dark) !important;
    border-color: var(--sd-purple-border) !important;
    box-shadow: none !important;
    filter: none !important;
}
/* Suggested tip box on result screen */

.suggested-tip-box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    margin: 16px 0;
    text-align: center;
}

.suggested-tip-box p {
    margin: 8px 0 0;
    line-height: 1.45;
}
/* Delete buttons */

.delete-checkin-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 8px auto 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #991b1b;
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
}

.delete-checkin-button:hover {
    background: #fef2f2;
    color: #7f1d1d;
    box-shadow: none;
    filter: none;
}

.experience-bank-delete-button {
    margin-top: 12px;
}
/* Quiet task-row actions */

.task-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.task-row-actions .mark-step-complete-button {
    margin: 0 !important;
}

.delete-inline-button {
    opacity: 0.72;
}

.delete-inline-button:hover {
    opacity: 1;
}
/* Quiet Experience Bank delete action */

.experience-bank-delete-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.experience-bank-delete-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    cursor: pointer;
}

.experience-bank-delete-button:hover {
    color: #991b1b !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}
/* Keep task action buttons aligned inside the nested task box */

.checkin-step-text {
    flex: 1 !important;
    width: 100% !important;
}

.task-row-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.task-row-actions .mark-step-complete-button {
    margin: 0 !important;
}

.task-row-actions .delete-inline-button {
    margin-left: auto !important;
    text-transform: lowercase !important;
    opacity: 0.72;
}
.barrier-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.barrier-category-button:active {
    transform: scale(0.98);
}
.next-step-readiness-reminder {
    margin: 18px 0 20px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #f7f4ff;
    border: 1px solid #ddd2ff;
    text-align: center;
}

.next-step-readiness-reminder .result-title {
    margin-bottom: 8px;
}

.next-step-readiness-reminder p {
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}
.next-step-guidance-box {
    margin: 14px 0 22px;
    padding: 14px 18px;
    border-radius: 22px;
    background: #f7f4ff;
    border: 1px solid #ddd2ff;
}

.next-step-guidance-box .result-title {
    margin-bottom: 8px;
}

.next-step-guidance-box .card-subtitle {
    margin-bottom: 0;
}
.saved-button {
    opacity: 0.75;
    cursor: default;
}

.saved-step-preview-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.saved-step-preview-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    text-align: left;
}

.saved-step-circle {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--sd-purple);
    flex: 0 0 auto;
    margin-top: 2px;
}

.saved-step-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 3px;
}

.saved-step-text {
    color: #111827;
    font-weight: 800;
    line-height: 1.35;
}

.saved-step-evidence {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef0f4;
    text-align: left;
    color: #111827;
}

.starting-point-graph-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f4;
}

.starting-point-graph {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.graph-axis {
    stroke: #9ca3af;
    stroke-width: 2;
}

.graph-label {
    fill: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

.graph-start-dot {
    fill: var(--sd-purple);
    stroke: #ffffff;
    stroke-width: 3;
}

.graph-score-label {
    fill: #111827;
    font-size: 13px;
    font-weight: 900;
}

.post-save-message {
    margin-top: 16px;
}
.next-step-context-box {
    margin: 8px 0 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.next-step-context-box p {
    margin: 3px 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}
.small-advice-button {
    margin: 8px auto 16px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #d8d5e3;
    background: #f7f4ff;
    color: #4f4a5f;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: none;
}

.small-advice-button:hover {
    background: #eee8ff;
    border-color: #bcb5d2;
}
.readiness-meaning-button {
    margin-top: 14px;
    margin-bottom: 10px;
}
.post-save-review-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 18px;
}

.post-save-review-actions .result-action-button {
    margin-left: auto;
    margin-right: auto;
    width: min(100%, 380px);
}
.confidence-button {
    background: #e7e0ff !important;
    color: #4f3fa8 !important;
    border: 1px solid #bfb2f3 !important;
    box-shadow: none !important;
}

.confidence-button:hover {
    background: #dcd2ff !important;
    color: #44328f !important;
    border-color: #8873d8 !important;
    box-shadow: none !important;
}
.importance-button {
    background: #dff7ec !important;
    color: #245744 !important;
    border: 1px solid #bfe8d3 !important;
    box-shadow: none !important;
}

.importance-button:hover {
    background: #d2f0e2 !important;
    color: #245744 !important;
    border-color: #9ed8bd !important;
    box-shadow: none !important;
}
.mini-chart-label {
    fill: #6b7280;
    font-size: 10px;
    font-weight: 800;
}

.mini-chart-score-label {
    fill: #111827;
    font-size: 12px;
    font-weight: 900;
}
.project-end-date {
    margin: 4px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.project-ended {
    color: #92400e;
}
.four-home-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.landing-secondary-button {
    background: #f1f0f5 !important;
    color: #4f4a5f !important;
    border: 1px solid #d8d5e3 !important;
    box-shadow: none !important;
}

.landing-secondary-button:hover {
    background: #e8e5f0 !important;
    color: #4f4a5f !important;
    border-color: #bcb5d2 !important;
    box-shadow: none !important;
}

.landing-disabled-button {
    opacity: 0.55;
    cursor: not-allowed;
}
.result-action-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.readiness-save-button {
    width: auto;
    display: inline-block;
}

.landing-disabled-button {
    background: #f1f0f5 !important;
    color: #7a7488 !important;
    border: 1px solid #d8d5e3 !important;
    box-shadow: none !important;
    opacity: 0.75;
}
/* =========================
   APP INTRODUCTION
========================= */

.app-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  overflow: hidden;
  background: black;
}

.intro-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  left: 0%;
  top: 0%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  z-index: 1;
  animation: kenBurnsRoad 18s ease-in-out forwards;
}

@keyframes kenBurnsRoad {
  from {
    transform: scale(1) translate3d(0, -6%, 0);
  }

  to {
    transform: scale(1.05) translate3d(-2%, 4%, 0);
  }
}

/* All dashboard artwork occupies the same aligned canvas */
.dashboard-stack {
  position: absolute;

  /* Smaller overall car artwork */
  width: 72%;
  height: 72%;

  /* Place it toward the upper part of the lower-left quadrant */
  left: -8%;
  top: 28%;

  z-index: 2;
  pointer-events: none;
}

.dash-group,
.dashboard-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dashboard-image {
  object-fit: contain;
}

/* The dashboard itself is visible immediately */
.dashboard-base {
  opacity: 1;
}

/* Gauges and pointers begin hidden */
.gauge-layer {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.gauge-layer.show {
  opacity: 1;
}

#readinessGauge {
  transition: opacity 2.5s ease;
}
.pointer-layer {
  opacity: 0;
  transition: opacity 2.5s ease;
}

.pointer-layer.show {
  opacity: 1;
}

#introFinalSentence {
  /* other properties */

  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

.intro-text {
  position: absolute;
  z-index: 4;

  color: white;
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;

  /* Black edging for visibility */
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black,
     0     2px 4px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}


.intro-text.show {
  opacity: 1;
  transform: translateY(0);
}

/* Where are you going? */
.intro-text-1 {
  top: 21%;
  left: 0;
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1.05;
}

/* What matters today? */
.intro-text-2 {
  bottom: 34%;
  right: 52%;
  text-align: center;
}

/* What is helping you? */
.intro-text-3 {
  bottom: 38%;
  left: 12%;
  text-align: left;
}

/* What is getting in the way? */
.intro-text-4 {
  bottom: 39%;
  right: 53%;
  text-align: right;
}


/* Final message and button */


#introFinalSentence,
#beginAppButton {
  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

#introFinalSentence.show,
#beginAppButton.show {
  opacity: 1;
  transform: translateY(0);
}

#introFinalSentence {
  position: absolute;
  left: 50%;
  top: 33%;
  width: 80%;
  max-width: 520px;
  margin: 0;

  z-index: 7;
  color: white;
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;

  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black,
     0 3px 6px rgba(0, 0, 0, 0.75);

  opacity: 0;
  transform: translate(-50%, 10px);

  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}



#introFinalSentence.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#beginAppButton {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 10px);

  z-index: 8;
  width: min(78%, 520px);
  padding: 18px 28px;

  opacity: 0;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

#beginAppButton.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#dashLayer {
  animation: dashWobble 3.8s ease-in-out infinite;
  transform-origin: 50% 65%;
}

@keyframes dashWobble {
  0%, 100% {
    transform: translate3d(0px, 0px, 0px) rotate(0deg);
  }

  20% {
    transform: translate3d(-1px, 1px, 0px) rotate(-0.12deg);
  }

  45% {
    transform: translate3d(1px, 0px, 0px) rotate(0.08deg);
  }

  70% {
    transform: translate3d(-1px, -1px, 0px) rotate(-0.08deg);
  }
}


#wheelLayer {
  animation: wheelWobble 3.8s ease-in-out infinite;
  transform-origin: 28% 68%;
}
@keyframes wheelWobble {
  0%, 100% {
    transform: translate3d(0px, 0px, 0px) rotate(0deg);
  }

  25% {
    transform: translate3d(1px, -1px, 0px) rotate(0.7deg);
  }

  50% {
    transform: translate3d(-1px, 1px, 0px) rotate(-0.5deg);
  }

  75% {
    transform: translate3d(1px, 0px, 0px) rotate(0.4deg);
  }
}

.intro-app-name {
  position: absolute;
  top: 9%;
  left: 0;
  width: 100%;
  z-index: 7;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: white;
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;

  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black,
     0 3px 7px rgba(0, 0, 0, 0.75);

  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.intro-app-name.show {
  opacity: 1;
  transform: translateY(0);
}

.intro-title-flower {
  width: clamp(48px, 7vw, 82px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
.next-step-readiness-reminder {
    padding: 26px 24px;
    text-align: center;
}

.next-step-focus-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
}

.next-step-focus-text {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1f2933;
}

.next-step-readiness-line {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
}

.next-step-readiness-line span {
    font-weight: 500;
    color: var(--sd-purple-dark);
}

.next-step-readiness-message {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.35;
    color: #111827;
}
.app-shell {
  visibility: hidden;
}

body.app-ready .app-shell {
  visibility: visible;
}

/* Daily reminder time selection */
.reminder-time-box {
    width: min(100%, 360px);
    margin: 20px auto;
    padding: 18px;
    border: 1px solid var(--sd-purple-border);
    border-radius: 20px;
    background: var(--sd-purple-soft);
    text-align: left;
}

.reminder-time-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--sd-purple-dark);
    font-size: 15px;
    font-weight: 900;
}

.reminder-time-box input[type="time"] {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--sd-purple-border);
    border-radius: 14px;
    background: white;
    color: #1f2933;
    font: inherit;
    font-size: 20px;
}

.reminder-time-box input[type="time"]:focus {
    border-color: var(--sd-purple);
    outline: 3px solid rgba(127, 109, 242, 0.18);
}

/* Expanding narrative text fields */

.expanding-textarea {
    width: 100%;
    min-height: 72px;
    max-height: 260px;
    padding: 18px 20px;
    margin-top: 18px;

    box-sizing: border-box;
    border: 2px solid #d9e2ec;
    border-radius: 18px;
    outline: none;

    font-family: inherit;
    font-size: 20px;
    line-height: 1.4;
    color: #1f2933;
    background: white;

    resize: vertical;
    overflow-y: auto;
}

.expanding-textarea:focus {
    border-color: var(--sd-purple);
}
.topic-input-wrap .expanding-textarea {
    padding-right: 58px;
}

.topic-input-wrap .mic-inside-button {
    top: 36px;
}
.setup-progress-fill {
    width: 100%;
    opacity: 0.45;
}
/* Review check-in page */

.checkin-review-box {
    width: 100%;
    margin: 20px 0;
    padding: 8px 18px;
    background: var(--sd-purple-soft);
    border: 1px solid var(--sd-purple-border);
    border-radius: 22px;
}

.checkin-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sd-purple-border);
}

.checkin-review-row:last-child {
    border-bottom: none;
}

.checkin-review-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.checkin-review-text span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkin-review-text strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: #1f2933;
    overflow-wrap: anywhere;
}

.checkin-review-edit {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: white;
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.checkin-review-edit:hover {
    background: #e5e0fb;
    color: var(--sd-purple-dark);
    border-color: var(--sd-purple-dark);
    box-shadow: none;
    filter: none;
}
.next-step-project-title {
    width: fit-content;
    max-width: 100%;
    margin: 4px auto 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    font-size: 18px;
    font-weight: 900;
    overflow-wrap: anywhere;
}
/* Next Steps journey navigation */

.next-steps-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin: 4px 0 24px;
}

.next-steps-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #9ca3af;
    text-align: center;
}

.next-steps-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 17px);
    width: calc(100% - 28px);
    height: 2px;
    background: #e5e7eb;
}

.next-steps-nav-number {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: white;
    border: 1px solid #d1d5db;
    font-size: 12px;
    font-weight: 900;
}

.next-steps-nav-label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.next-steps-nav-item.active {
    color: var(--sd-purple-dark);
}

.next-steps-nav-item.active .next-steps-nav-number {
    background: var(--sd-purple-soft);
    border-color: var(--sd-purple);
    color: var(--sd-purple-dark);
}

.next-steps-nav-item.complete {
    color: var(--sd-purple-dark);
}

.next-steps-nav-item.complete .next-steps-nav-number {
    background: var(--sd-purple);
    border-color: var(--sd-purple);
    color: white;
}

.next-steps-nav-item.complete:not(:last-child)::after {
    background: var(--sd-purple);
}
/* Task completion and Experience Bank qualification popup */

.task-completion-modal-card {
    max-height: 88vh;
    overflow-y: auto;
}

.task-completion-popup-topic {
    width: fit-content;
    max-width: 100%;
    margin: 2px auto 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--sd-purple-soft);
    color: var(--sd-purple-dark);
    border: 1px solid var(--sd-purple-border);
    font-size: 16px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.task-completion-current-readiness {
    margin: 8px 0 16px;
    font-size: 16px;
}

.experience-bank-qualification-box,
.experience-bank-qualified-box {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
    text-align: left;
}

.experience-bank-qualification-box {
    background: var(--sd-purple-soft);
    border: 1px solid var(--sd-purple-border);
}

.experience-bank-qualified-box {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.experience-bank-qualification-box .result-title,
.experience-bank-qualified-box .result-title {
    margin-top: 0;
    text-align: center;
}

.experience-bank-qualification-box p,
.experience-bank-qualified-box p {
    font-size: 16px;
    line-height: 1.45;
    margin: 10px 0;
}

.experience-bank-qualification-box ul {
    margin: 12px 0;
    padding-left: 24px;
}

.experience-bank-qualification-box li {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.4;
}

.task-completion-popup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.task-completion-popup-actions button {
    margin-top: 0;
}
.project-add-step-action {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 18px 0 4px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.project-add-step-action .result-action-button {
    width: auto;
    margin: 0;
}
.preparation-answer {
    margin-top: 6px;
    line-height: 1.5;
}

.preparation-placeholder {
    font-weight: 800;
    color: var(--sd-purple-dark);
    margin-right: 4px;
}
.task-popup-completion-message {
    margin: 16px 0;
    text-align: left;
}