* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem 0;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: #1f2937;
    background: #f3f4f6;
}

.student-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logout-form { margin: 0; }
.link-button { border: 0; background: transparent; color: #52606d; text-decoration: underline; cursor: pointer; padding: .35rem; }
.auth-container { max-width: 28rem; margin: 3rem auto; }
.local-security-note { color: #52606d; font-size: .9rem; }
.professional-body { display: block; padding: .75rem; background: #f6f7f6; color: #17211b; }
.professional-shell { width: min(100%, 760px); margin: 0 auto; }
.professional-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: .75rem 0 1rem; }
.professional-header h1, .professional-header p, .professional-student-heading h2, .professional-student-heading p { margin: .15rem 0; }
.professional-priorities { margin-bottom: .75rem; padding: .75rem; background: #edf4ef; border-radius: 12px; }
.professional-priorities h2 { margin: 0 0 .55rem; font-size: .85rem; color: #52675a; }
.professional-priorities > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.professional-priorities span { font-size: .72rem; text-align: center; }
.professional-priorities strong { display: block; font-size: 1.05rem; }
.professional-student-list, .professional-action-list { display: grid; gap: .6rem; }
.professional-student-card, .professional-action, .professional-detail-header, .professional-detail-summary { min-width: 0; padding: .8rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.professional-student-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.professional-student-heading h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.professional-student-heading p, .professional-state-message, .professional-action p { color: #52606d; font-size: .86rem; }
.professional-state { display: inline-block; flex: 0 0 auto; padding: .28rem .48rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.professional-state-watch { background: #fee2e2; color: #991b1b; }
.professional-state-progressing { background: #dcfce7; color: #166534; }
.professional-state-steady { background: #e0f2fe; color: #075985; }
.professional-state-collecting { background: #f1f5f9; color: #475569; }
.professional-state-message { margin: .55rem 0; }
.professional-top-action { display: grid; gap: .1rem; padding-top: .5rem; border-top: 1px solid #eef0ef; font-size: .86rem; }
.professional-top-action span { color: #52606d; }
.professional-analysis-link, .professional-back { display: inline-flex; align-items: center; min-height: 44px; color: #17643a; font-weight: 700; text-decoration: none; }
.professional-empty { padding: 1rem; background: #fff; border-radius: 12px; }
.professional-detail { display: grid; gap: .8rem; }
.professional-detail-header h1, .professional-detail-header p { margin: .2rem 0 .55rem; }
.professional-detail section > h2 { font-size: 1rem; }
.professional-action h3, .professional-action p { margin: .15rem 0; }
.professional-detail-summary ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; min-height: 44px; }
@media (max-width: 430px) { .professional-priorities > div { grid-template-columns: repeat(2, 1fr); } .professional-student-heading { display: grid; } }
.student-body {
    --student-nav-height: 3.75rem;
    --student-nav-offset: 1rem;
    --student-nav-clearance: 1rem;
    --student-nav-reserved-space: calc(var(--student-nav-height) + var(--student-nav-offset) + var(--student-nav-clearance) + env(safe-area-inset-bottom, 0px));
    display: block;
    padding: 2rem 1rem var(--student-nav-reserved-space);
    background: #f6f7f6;
}

.student-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.student-header {
    margin: 1rem 0 1.5rem;
}

.student-header h1,
.student-header p {
    margin: 0.35rem 0;
}

.student-bottom-nav {
    position: fixed;
    z-index: 10;
    right: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(calc(100% - 2rem), 560px);
    padding: 0.4rem;
    background: rgb(255 255 255 / 96%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
    transform: translateX(50%);
}

.student-bottom-nav a {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 0.7rem 0.35rem;
    color: #6b7280;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.student-bottom-nav a.active {
    color: #166534;
    background: #dcfce7;
}

.student-bottom-nav a:focus-visible,
.link-button:focus-visible,
.today-workout .primary-cta:focus-visible {
    outline: 3px solid #166534;
    outline-offset: 2px;
}

.student-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.student-stats div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.student-stats strong {
    font-size: 1.4rem;
}

.student-stats span {
    color: #6b7280;
    font-size: 0.875rem;
}

.student-stats small { color: #6b7280; line-height: 1.35; }
.student-body:has(.evolution-page) {
    padding-bottom: var(--student-nav-reserved-space);
}
.student-body:has(.evolution-page) .student-shell { padding-bottom: 0; }
.evolution-page {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    padding-bottom: 0;
}
.evolution-intro { margin-bottom: 0; }
.evolution-week-card,
.evolution-section {
    min-width: 0;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}
.evolution-week-card { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.intelligence-card { border-left: 4px solid #64748b; }
.intelligence-progressing { border-left-color: #15803d; }
.intelligence-watch { border-left-color: #ca8a04; }
.intelligence-steady { border-left-color: #2563eb; }
.intelligence-headline { color: #0f172a !important; font-size: 1.05rem; font-weight: 800; }
.intelligence-message { margin: 0.65rem 0 0; color: #475569; }
.intelligence-actions-title { margin: 1rem 0 0.6rem; font-size: 0.95rem; }
.intelligence-actions { display: grid; gap: 0.65rem; }
.intelligence-action { min-width: 0; padding: 0.8rem; background: #f8fafc; border-radius: 12px; }
.intelligence-action h4 { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.intelligence-action strong { color: #166534; }
.intelligence-watch .intelligence-action strong { color: #854d0e; }
.intelligence-action p { margin: 0.25rem 0 0; color: #475569; overflow-wrap: anywhere; }
.intelligence-action details { margin-top: 0.35rem; }
.intelligence-action summary { display: inline-flex; align-items: center; min-height: 44px; color: #166534; font-weight: 700; cursor: pointer; }
.intelligence-action details p { margin-top: 0; padding-bottom: 0.2rem; font-size: 0.9rem; }
.intelligence-guardrail { margin: 0.85rem 0 0; color: #64748b; font-size: 0.82rem; line-height: 1.4; }
.evolution-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.evolution-section-heading > div { min-width: 0; }
.evolution-section-heading h2,
.evolution-section-heading p { margin-top: 0; }
.evolution-section-heading p { margin-bottom: 0; color: #64748b; }
.evolution-week-card h2 { margin: 0; }
.week-total { display: grid; gap: 0.15rem; margin: 0.55rem 0 0; }
.week-total strong { color: #0f172a; font-size: 1.25rem; }
.week-total span { color: #64748b; font-size: 0.9rem; }
.weekly-progress,
.frequency-track {
    display: block;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.weekly-progress { height: 0.7rem; margin: 1rem 0; }
.weekly-progress > span,
.frequency-track > span {
    display: block;
    width: var(--progress, var(--frequency, 0%));
    height: 100%;
    background: #15803d;
    border-radius: inherit;
}
.weekly-guidance { margin: 0.75rem 0 0; color: #334155; }
.evolution-total-line { margin-bottom: 0; color: #475569; font-weight: 700; }
.frequency-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.frequency-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr) 2rem;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}
.frequency-label { display: flex; align-items: center; gap: 0.4rem; min-width: 0; color: #475569; font-size: 0.9rem; white-space: nowrap; }
.current-week-badge { padding: 0.12rem 0.35rem; color: #166534; background: #dcfce7; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.frequency-track { height: 0.55rem; }
.frequency-zero:not(.frequency-current) .frequency-track { background: #f1f5f9; }
.frequency-current .frequency-label,
.frequency-current > strong { color: #166534; }
.current-week-note { margin: 0.75rem 0 0; color: #64748b; font-size: 0.85rem; }
.progress-list { display: grid; gap: 0.75rem; }
.progress-card { min-width: 0; padding: 0.8rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.progress-evoluiu { border-color: #86efac; }
.progress-mantido { border-color: #93c5fd; }
.progress-acompanhar { border-color: #fde68a; }
.progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.progress-heading h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.progress-status { flex: none; padding: 0.25rem 0.55rem; color: #374151; background: #f3f4f6; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.progress-evoluiu .progress-status { color: #166534; background: #dcfce7; }
.progress-mantido .progress-status { color: #1e40af; background: #dbeafe; }
.progress-acompanhar .progress-status { color: #854d0e; background: #fef9c3; }
.last-record { margin: 0.5rem 0 0; color: #334155; line-height: 1.35; overflow-wrap: anywhere; }
.progress-explanation { margin: 0.3rem 0 0; color: #166534; font-size: 0.9rem; font-weight: 700; }
.progress-acompanhar .progress-explanation { color: #854d0e; }
.progress-coletando-dados .progress-explanation { color: #64748b; }
.collecting-focus { display: grid; gap: 0.35rem; }
.collecting-focus p { margin: 0; color: #475569; overflow-wrap: anywhere; }
.more-exercises { margin-top: 0.75rem; }
.more-exercises summary {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    color: #166534;
    font-weight: 700;
    cursor: pointer;
}
.more-exercises summary:hover { color: #14532d; }
.more-exercises summary:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; border-radius: 4px; }
.more-exercises[open] summary { margin-bottom: 0.75rem; }
.current-records { min-width: 0; }
.current-records .progress-list { min-width: 0; }
.recent-session-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.recent-session-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.9rem;
    align-items: center;
    min-width: 0;
    padding: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.recent-session-card.session-complete { border-color: #bbf7d0; }
.recent-session-card.session-partial { border-color: #fde68a; }
.recent-session-main { min-width: 0; }
.recent-session-main h2,
.recent-session-main h3 { margin: 0; overflow-wrap: anywhere; }
.recent-session-main p { margin: 0.25rem 0 0; color: #64748b; }
.recent-session-status { display: grid; gap: 0.15rem; }
.recent-session-status span { color: #64748b; font-size: 0.85rem; }
.recent-session-card .table-link { display: inline-flex; align-items: center; min-height: 44px; }
.evolution-history-link {
    margin-top: 1rem;
}
.evolution-empty { padding: 1rem; color: #475569; background: #f8fafc; border-radius: 12px; }
.evolution-empty p { margin-top: 0; }
.full-history-page .evolution-intro h1 { margin-top: 0.65rem; }
.pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
    text-align: center;
}
.pagination .button { min-height: 44px; }
.pagination .button:last-child { justify-self: end; }

@media (max-width: 520px) {
    .student-stats { grid-template-columns: 1fr; }
    .evolution-page { gap: 1rem; }
    .evolution-week-card,
    .evolution-section { padding: 1rem; }
    .evolution-section-heading { display: grid; gap: 0.45rem; }
    .week-total strong { font-size: 1.15rem; }
    .frequency-row { grid-template-columns: 7.2rem minmax(0, 1fr) 1.5rem; gap: 0.45rem; }
    .frequency-label { gap: 0.3rem; font-size: 0.82rem; }
    .progress-heading { display: grid; gap: 0.45rem; }
    .progress-status { width: fit-content; max-width: 100%; white-space: normal; text-align: left; }
    .recent-session-card { grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem 0.65rem; padding: 0.75rem; }
    .recent-session-main h2,
    .recent-session-main h3 { font-size: 1rem; line-height: 1.3; }
    .recent-session-main p,
    .recent-session-status span { font-size: 0.8rem; }
    .recent-session-status { text-align: right; }
    .recent-session-card .table-link { grid-column: 1 / -1; width: fit-content; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination > span:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
    .pagination .button { grid-row: 2; justify-self: stretch; }
}

.today-workout {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.today-shell {
    max-width: 720px;
}

.today-shell .student-area-label {
    margin: 0;
    padding: 0;
    color: #6b7280;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.today-shell .link-button {
    min-height: 44px;
    padding: 0.55rem;
    color: #4b5563;
    text-decoration: none;
}

.today-page {
    min-width: 0;
}

.today-intro {
    margin: 1.1rem 0 1.75rem;
}

.today-intro h1 {
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.today-intro .today-focus {
    margin-top: 0.45rem;
    color: #6b7280;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.today-focus strong {
    color: #374151;
    font-weight: 600;
}

.today-page .today-workout {
    min-width: 0;
    padding: clamp(1.2rem, 4vw, 1.75rem);
    border-color: #dfe5df;
    box-shadow: 0 10px 28px rgb(31 41 55 / 7%);
}

.today-page .today-workout h2 {
    margin: 0.45rem 0 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.018em;
    overflow-wrap: anywhere;
}

.today-page .today-workout h2 + p {
    margin: 0.65rem 0 0;
    color: #4b5563;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.today-page .workout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    margin: 1rem 0 1.15rem;
    color: #5f6b63;
    font-size: 0.9rem;
}

.today-page .workout-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.today-page .workout-meta span:not(:last-child)::after {
    content: "·";
    margin: 0 0.55rem;
    color: #9ca3af;
}

.today-page .primary-cta {
    min-height: 52px;
    margin-top: 1.1rem;
    border-radius: 9px;
    font-weight: 700;
    line-height: 1.25;
}

.today-page .primary-cta:hover {
    background: #166534;
}

.today-page .today-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 1.25rem 0 0;
    padding: 0.2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.today-page .today-summary div {
    gap: 0.35rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.today-page .today-summary div + div {
    border-left: 1px solid #e5e7eb;
}

.today-page .today-summary span {
    order: 1;
}

.today-page .today-summary strong {
    order: 2;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .today-shell .student-area-heading {
        display: none;
    }

    .today-page {
        display: flex;
        min-height: calc(100vh - 12rem - env(safe-area-inset-bottom, 0px));
        min-height: calc(100dvh - 12rem - env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        justify-content: center;
    }

    .today-intro {
        margin: 0.75rem 0 1.35rem;
    }

    .today-page .today-workout {
        padding: 1.2rem;
    }

    .today-page .workout-meta {
        flex-direction: row;
        gap: 0.4rem 0;
    }

    .today-page .today-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .today-page .today-summary div {
        padding: 0.85rem 0.75rem;
    }
}

.profile-account-actions {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.profile-account-actions h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.account-logout-button {
    min-width: 9rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    color: #374151;
    background: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-logout-button:hover {
    color: #111827;
    background: #f3f4f6;
    border-color: #6b7280;
}

.account-logout-button:focus-visible {
    outline: 3px solid #166534;
    outline-offset: 2px;
}

@media (max-width: 339px) {
    .today-page .today-summary {
        grid-template-columns: 1fr;
    }

    .today-page .today-summary div + div {
        border-top: 1px solid #e5e7eb;
        border-left: 0;
    }
}

.today-workout h2 {
    margin: 0.35rem 0;
}

.eyebrow {
    margin: 0;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workout-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #6b7280;
}

.primary-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
}

.completion-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0 0.75rem;
    place-items: center;
    color: #ffffff;
    background: #15803d;
    border-radius: 50%;
    font-weight: 700;
}

.next-sequence,
.sequence-notice {
    margin: 1rem 0;
    padding: 0.75rem;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 8px;
}

.profile-list {
    margin: 0 0 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.profile-list div {
    display: grid;
    grid-template-columns: minmax(8rem, 35%) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-list div:last-child {
    border-bottom: 0;
}

.profile-list dt {
    color: #6b7280;
}

.profile-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.quiet-link {
    color: #6b7280;
    font-size: 0.9rem;
}

.assessment-form {
    display: grid;
    gap: 1.5rem;
}

.assessment-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.assessment-form legend,
.assessment-notes {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.assessment-notes {
    display: grid;
    gap: 0.5rem;
}

.assessment-notes span {
    color: #6b7280;
    font-weight: 400;
}

.choice-grid {
    display: grid;
    gap: 0.6rem;
}

.choice-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.choice-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-pill {
    position: relative;
    cursor: pointer;
}

.choice-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-pill span {
    display: grid;
    min-height: 3rem;
    padding: 0.65rem;
    place-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9px;
}

.choice-pill input:checked + span {
    color: #166534;
    background: #dcfce7;
    border-color: #15803d;
}

.choice-pill input:focus-visible + span {
    outline: 3px solid rgb(21 128 61 / 25%);
}

.assessment-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.assessment-summary-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.assessment-summary-heading h2 {
    margin: 0;
}

.assessment-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
}

.assessment-summary dt {
    color: #6b7280;
    font-size: 0.85rem;
}

.assessment-summary dd {
    margin: 0.2rem 0 0;
}

.plan-preview-button {
    display: inline-block;
    margin-top: 1rem;
}

.plan-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-overview div {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.plan-overview span {
    color: #6b7280;
    font-size: 0.8rem;
}

.plan-overview strong {
    overflow-wrap: anywhere;
}

.plan-disclaimer,
.review-warning {
    padding: 1rem;
    border-radius: 9px;
}

.plan-disclaimer {
    color: #4b5563;
    background: #f3f4f6;
}

.review-warning {
    color: #854d0e;
    background: #fef9c3;
    border: 1px solid #fde047;
}

.suggested-workouts {
    display: grid;
    gap: 1rem;
}

.suggested-workout-card {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.suggested-workout-card h2 {
    margin-top: 0;
}

.activation-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.activation-panel p {
    margin-top: 0;
}

.success-message {
    padding: 0.85rem 1rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 9px;
}

.generated-plan-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.execution-intro {
    padding: 0.85rem 1rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 9px;
}

.recommendation-disclaimer {
    padding: 0.8rem 1rem;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 9px;
    font-size: 0.9rem;
}

.session-recommendation {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-left: 3px solid #64748b;
    border-radius: 8px;
}

.session-recommendation h3,
.session-recommendation p { margin: 0.3rem 0; }

.recommendation-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recommendation-evidence {
    color: #6b7280;
    font-size: 0.82rem;
}

.exercise-step[hidden],
.review-step[hidden] {
    display: none !important;
}

.execution-focus {
    width: min(calc(100% - 2rem), 640px);
    max-width: 640px;
}

.focus-only { display: none; }
.focus-mode .focus-only { display: block; }
.focus-mode .fallback-only { display: none !important; }

.focus-progress {
    position: sticky;
    z-index: 2;
    top: 0;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    text-align: left;
    background: rgb(255 255 255 / 96%);
    border: 1px solid #d1d5db;
    border-radius: 9px;
}

.focus-progress-bar {
    display: block;
    width: 100%;
    height: 0.65rem;
    margin-top: 0.55rem;
    accent-color: #15803d;
}

.focus-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.focus-exercise-heading { display: grid; min-width: 0; gap: 0.15rem; }
.focus-progress-text { color: #64748b; font-size: 0.78rem; font-weight: 700; }
.focus-exercise-name { min-width: 0; overflow-wrap: anywhere; font-size: 1.15rem; line-height: 1.2; }
.focus-exercise-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 0.4rem; }
.execution-disclaimer { margin: 0.35rem 0 0.75rem; color: #64748b; font-size: 0.85rem; text-align: left; }
.execution-disclaimer summary { width: fit-content; min-height: 44px; padding: 0.65rem 0; cursor: pointer; font-weight: 700; }
.execution-disclaimer p { margin: 0 0 0.5rem; line-height: 1.4; }

.focus-guidance-trigger { min-height: 44px; padding: 0.35rem 0.65rem; }
.focus-guidance-trigger[hidden] { display: none; }

.exercise-substitution-control { margin: -0.25rem 0 0.75rem; text-align: left; }
.substitution-context { margin: 0 0 0.15rem; color: #64748b; font-size: 0.84rem; }
[data-prescribed-exercise-context][hidden] { display: none !important; }
.exercise-substitution-trigger,
.exercise-substitution-reset {
    min-height: 44px;
    padding: 0.45rem 0;
    color: #475569;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.exercise-substitution-dialog {
    box-sizing: border-box;
    width: min(34rem, calc(100% - 1rem));
    max-width: calc(100% - 1rem);
    padding: 0;
    color: #1f2937;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgb(15 23 42 / 24%);
}
.exercise-substitution-dialog::backdrop { background: rgb(15 23 42 / 42%); }
.exercise-substitution-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.exercise-substitution-sheet h2 { margin: 0; font-size: 1.15rem; }
.exercise-substitution-sheet header p { margin: 0.2rem 0 0; color: #64748b; font-size: 0.85rem; }
.exercise-substitution-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: #475569; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 999px; font: inherit; font-size: 1.4rem; cursor: pointer; }
.exercise-substitution-options { display: grid; gap: 0.5rem; padding: 0.75rem; }
.exercise-substitution-option { width: 100%; min-height: 48px; padding: 0.75rem; color: #1f2937; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.exercise-substitution-option:hover,
.exercise-substitution-option:focus-visible { border-color: #15803d; outline: 3px solid rgb(21 128 61 / 20%); outline-offset: 1px; }

@media (max-width: 520px) {
    .exercise-substitution-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 14px 14px 0 0; }
}

.rest-timer {
    position: fixed;
    z-index: 20;
    right: 1rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 1rem;
    width: min(calc(100% - 2rem), 640px);
    max-width: 640px;
    margin: 0 auto;
    padding: 0.55rem 0.7rem;
    box-sizing: border-box;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    box-shadow: 0 6px 20px rgb(15 23 42 / 18%);
}

.execution-focus.has-rest-timer {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.rest-timer[hidden],
.rest-start[hidden],
.rest-running[hidden],
.rest-complete[hidden] { display: none !important; }

.rest-actions button {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rest-running { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; }
.rest-context { display: block; color: #64748b; font-size: 0.8rem; font-weight: 700; }
.rest-display { display: block; margin-top: 0.1rem; font-size: 1.65rem; line-height: 1; white-space: nowrap; }
.rest-actions { display: flex; gap: 0.4rem; }
.rest-actions button { min-width: 3.5rem; }
.rest-skip { color: #334155 !important; background: #ffffff !important; border-color: #64748b !important; }
.rest-skip:hover { color: #1f2937 !important; background: #e2e8f0 !important; border-color: #475569 !important; }
.rest-actions button:focus-visible { outline: 3px solid rgb(21 128 61 / 30%); outline-offset: 2px; }
.rest-actions button:disabled { color: #94a3b8 !important; background: #f1f5f9 !important; border-color: #cbd5e1 !important; cursor: not-allowed; opacity: 0.65; }
.rest-complete { margin: 0; padding: 0.5rem; font-weight: 700; text-align: center; }

.compact-guidance {
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem;
    text-align: left;
    color: #4b5563;
    background: #f8fafc;
    border-left: 3px solid #64748b;
    border-radius: 7px;
}

.compact-guidance p { margin: 0; }
.compact-guidance span { color: #64748b; font-weight: 700; }
.compact-guidance details { margin-top: 0.35rem; }
.compact-guidance summary { width: fit-content; color: #64748b; cursor: pointer; font-size: 0.85rem; }
.compact-guidance details p { margin-top: 0.4rem; font-size: 0.9rem; }
.compact-guidance small { color: #6b7280; }

.exercise-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.exercise-title-row h2 { margin: 0; }
.focus-mode .exercise-title-row { display: none; }

.exercise-guidance-trigger {
    appearance: none;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.45rem 0.75rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}

.exercise-guidance-trigger:hover,
.exercise-guidance-trigger:focus-visible {
    color: #166534;
    border-color: #15803d;
    outline: 3px solid rgb(21 128 61 / 25%);
    outline-offset: 2px;
}

.exercise-guidance-dialog {
    box-sizing: border-box;
    width: min(760px, 92vw);
    max-width: 92vw;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
    color: #1f2937;
    background: #ffffff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgb(15 23 42 / 24%);
}

.exercise-guidance-dialog::backdrop { background: rgb(15 23 42 / 52%); }

.exercise-guidance-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
}

.exercise-guidance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.exercise-guidance-header h2 { min-width: 0; margin: 0; font-size: 1.2rem; line-height: 1.3; }

.exercise-guidance-icon-close {
    appearance: none;
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
}

.exercise-guidance-icon-close:hover { color: #1f2937; background: #f1f5f9; }
.exercise-guidance-icon-close:focus-visible { outline: 3px solid rgb(21 128 61 / 25%); outline-offset: 2px; }

.exercise-guidance-content {
    min-width: 0;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.exercise-guidance-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(48dvh, 420px);
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 9px;
}
.exercise-guidance-content ol { display: grid; gap: 0.5rem; margin: 0.85rem 0; padding-left: 1.4rem; line-height: 1.45; }
.exercise-guidance-warning { margin: 0; padding: 0.75rem; color: #7c2d12; background: #fff7ed; border-left: 3px solid #ea580c; border-radius: 7px; }

.exercise-guidance-footer { display: flex; justify-content: flex-end; padding: 0.8rem 1rem; border-top: 1px solid #e5e7eb; }
.exercise-guidance-dismiss { min-width: 7rem; min-height: 44px; margin: 0; }

@media (max-width: 520px) {
    .exercise-title-row { align-items: center; }
    .exercise-guidance-dialog {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: auto;
        border-radius: 10px;
    }
    .exercise-guidance-shell { max-height: calc(100dvh - 1rem); }
    .exercise-guidance-header { padding: 0.65rem 0.75rem; }
    .exercise-guidance-header h2 { font-size: 1.05rem; }
    .exercise-guidance-content { padding: 0.75rem; }
    .exercise-guidance-content img { max-height: 40dvh; }
    .exercise-guidance-footer { padding: 0.65rem 0.75rem; }
    .exercise-guidance-dismiss { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .exercise-guidance-dialog,
    .exercise-guidance-content { scroll-behavior: auto; }
}

.series-entry {
    margin: 1.25rem 0;
    padding: 0;
    border: 0;
}

.series-entry legend { margin-bottom: 0.65rem; font-weight: 700; }

.series-head {
    display: grid;
    grid-template-columns: 52px 158px 97px;
    gap: 5px;
    padding: 0 0 0.35rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.set-row {
    display: grid;
    grid-template-columns: 52px 152px 140px 80px;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.set-row > label { font-weight: 700; }
.mobile-series-label { display: none; }
.set-row input { width: 60px; min-height: 44px; padding: 0.35rem; font-size: 16px; text-align: center; }
.repetition-stepper { display: grid; grid-template-columns: 44px 56px 44px; gap: 4px; align-items: center; }
.repetition-stepper input { width: 56px; }
.load-stepper { display: grid; grid-template-columns: 32px 68px 32px; gap: 4px; align-items: center; }
.set-row .series-load { width: 68px; }
.load-stepper button { width: 32px; min-width: 32px; min-height: 44px; }
.series-complete { width: 80px !important; min-height: 44px; color: #166534; background: #f0fdf4 !important; border-color: #86efac !important; }
.series-complete[aria-pressed="true"] { color: #ffffff; background: #15803d !important; border-color: #15803d !important; }
.set-row.series-done { background: #f0fdf4; }
.set-row.next-series { background: #f8fafc; box-shadow: inset 2px 0 #94a3b8; }
.series-summary {
    grid-column: 1 / -1;
    display: flex;
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.65rem !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #166534 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left;
}
.series-summary-text { min-width: 0; overflow-wrap: anywhere; }
.series-summary-action { flex: 0 0 auto; color: #52606d; font-weight: 400; text-decoration: underline; }
.series-future-label { grid-column: 1 / -1; min-height: 44px; margin: 0; padding: 0.75rem 0.65rem; color: #64748b; }
.series-summary[hidden],
.series-future-label[hidden],
.series-edit-done[hidden] { display: none !important; }
.series-row.series-done:not(.series-editing) > label,
.series-row.series-done:not(.series-editing) > .repetition-stepper,
.series-row.series-done:not(.series-editing) > .load-stepper,
.series-row.series-done:not(.series-editing) > .series-complete,
.series-row.series-future > label,
.series-row.series-future > .repetition-stepper,
.series-row.series-future > .load-stepper,
.series-row.series-future > .series-complete { display: none; }
.series-row.series-editing > .series-complete { display: none; }
.series-edit-done { grid-column: 1 / -1; width: 100% !important; color: #334155 !important; background: #e5e7eb !important; }
.post-series-control[hidden] { display: none !important; }
.exercise-aux-actions { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.4rem; }
.exercise-aux-actions button { min-height: 44px; padding: 0.55rem; color: #52606d; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.complete-step.ready-to-continue { outline: 3px solid rgb(21 128 61 / 30%); transform: translateY(-1px); }
.set-row button { width: 44px; min-width: 44px; min-height: 44px; }
.set-row button,
.shortcut-button,
.no-load-toggle { min-height: 40px; padding: 0.45rem 0.7rem; color: #4b5563; border: 1px solid #9ca3af; border-radius: 7px; background: #f3f4f6; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; }
.shortcut-button:disabled { cursor: not-allowed; opacity: 0.5; }
.series-shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
.reuse-last { margin: 0.5rem 0; }
.last-performance-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 0.6rem; }
.last-performance-row .last-performance { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.last-performance-row .reuse-last { flex: 0 0 auto; margin: 0; }
.no-load-toggle.selected { color: #166534; background: #dcfce7; border-color: #15803d; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.step-actions,
.execution-links {
    gap: 0.65rem;
    margin-top: 1rem;
}

.focus-mode .step-actions { display: flex; flex-wrap: wrap; }
.step-actions .button { flex: 1 1 12rem; }
.step-actions .complete-step { order: 1; }
.step-actions .previous-step { order: 2; }
.skip-step { order: 3; min-height: 44px; padding: 0.55rem; color: #52606d; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.step-error { min-height: 1.25rem; color: #991b1b; font-weight: 700; }
.execution-links { display: flex; flex-wrap: wrap; justify-content: center; }
.execution-links a { min-height: 44px; padding: 0.75rem 0.5rem; color: #64748b; text-decoration: underline; }

.workout-review { padding: 1rem; text-align: left; background: #ffffff; border: 1px solid #d1d5db; border-radius: 12px; }
.review-list { display: grid; gap: 0.75rem; }
.review-item { padding: 0.9rem; background: #f8fafc; border-radius: 8px; }
.review-item h3, .review-item p { margin: 0.25rem 0; }
.review-item .button { margin-top: 0.5rem; }
.series-table-wrapper { overflow-x: auto; }
.series-table { font-size: 0.9rem; }
.series-table th, .series-table td { padding: 0.55rem; }

@media (max-width: 520px) {
    body { padding: 0; align-items: start; }
    .execution-focus { width: 100%; max-width: 100%; padding: 0.6rem 0.75rem 1rem; border-radius: 0; }
    .execution-focus > h1 { margin: 0 0 0.15rem; font-size: 1.25rem; line-height: 1.15; }
    .execution-disclaimer { margin: 0 0 0.25rem; font-size: 0.82rem; }
    .execution-disclaimer summary { min-height: 36px; padding: 0.45rem 0; }
    .focus-progress {
        top: 0;
        margin: 0 -0.25rem 0.35rem;
        padding: 0.4rem 0.55rem;
        background: #ffffff;
        border-color: #e5e7eb;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 3px 8px rgb(15 23 42 / 8%);
    }
    .focus-progress-heading { gap: 0.4rem; }
    .focus-exercise-name { font-size: 1.05rem; }
    .focus-progress-bar { height: 0.35rem; margin-top: 0.25rem; }
    .focus-guidance-trigger { padding: 0.3rem 0.55rem; }
    .performance-list { gap: 0.5rem; }
    .execution-focus .performance-card { min-width: 0; padding: 0.65rem 0.75rem 0.8rem; border-radius: 9px; }
    .focus-mode .exercise-title-row { display: none; }
    .prescription { margin: 0.2rem 0 0.45rem; }
    .compact-guidance { margin: 0.35rem 0; padding: 0.35rem 0; background: transparent; border: 0; }
    .compact-guidance p { margin: 0; }
    .last-performance-row { margin: 0.4rem 0; }
    .last-performance-row .reuse-last { min-height: 44px; padding: 0.4rem 0.65rem; }
    .series-entry { min-width: 0; margin: 0.7rem 0; }
    .series-head { display: none; }
    .set-row {
        grid-template-areas:
            "series series"
            "repetitions load"
            "complete complete";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem 0.5rem;
        min-width: 0;
        padding: 0.5rem 0.35rem;
        scroll-margin-top: 6rem;
    }
    .set-row > label { grid-area: series; align-self: center; padding-left: 0.15rem; }
    .repetition-stepper,
    .load-stepper {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 4px;
        min-width: 0;
    }
    .repetition-stepper { grid-area: repetitions; }
    .load-stepper { grid-area: load; }
    .mobile-series-label {
        display: block;
        grid-column: 1 / -1;
        color: #6b7280;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1;
    }
    .repetition-stepper button,
    .load-stepper button { width: 44px; min-width: 44px; min-height: 44px; }
    .execution-focus .set-row input,
    .execution-focus input[type="number"],
    .execution-focus select,
    .execution-focus textarea {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        line-height: 1.25;
        transform: none;
    }
    .series-complete {
        grid-area: complete;
        width: 100% !important;
        min-width: 0;
        min-height: 44px;
        padding: 0.3rem 0.55rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }
    .series-edit-done { grid-area: complete; }
    .series-summary,
    .series-future-label { grid-column: 1 / -1; }
    .set-row.next-series { background: #f8fafc; box-shadow: inset 2px 0 #cbd5e1; }
    .set-row.series-done { background: #f7fcf8; }
    .series-shortcuts { gap: 0.35rem; margin-top: 0.35rem; }
    .series-shortcuts .shortcut-button { min-height: 44px; padding: 0.4rem 0.55rem; }
    .difficulty-picker { margin: 0.7rem 0; }
    .step-error { min-height: 0; margin: 0.35rem 0; }
    .step-error:empty { display: none; }
    .step-actions { margin-top: 0.5rem; }
    .difficulty-picker > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .difficulty-picker span { min-height: 48px; padding: 0.45rem 0.25rem; font-size: 0.9rem; }
    .step-actions .complete-step { width: 100%; flex: 1 0 100%; }
    .step-actions .previous-step,
    .step-actions .skip-step { flex: 1 1 auto; width: auto; }
    .execution-links { gap: 0.25rem 0.75rem; margin-top: 0.4rem; }
}

@media (max-width: 340px) {
    .set-row {
        grid-template-areas:
            "series series"
            "repetitions repetitions"
            "load load"
            "complete complete";
    }
    .repetition-stepper,
    .load-stepper { width: min(100%, 190px); }
}

@media (max-width: 600px) {
    .execution-focus.has-rest-timer {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .rest-timer {
        right: 0.5rem;
        bottom: calc(0.5rem + env(safe-area-inset-bottom));
        left: 0.5rem;
        width: calc(100% - 1rem);
        min-height: 0;
        padding: 0.4rem 0.5rem;
    }

    .rest-running {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem;
    }

    .rest-running > div:first-child {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
    }

    .rest-context {
        min-width: 0;
        overflow: hidden;
        font-size: 0.7rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rest-display {
        flex: 0 0 auto;
        margin: 0;
        font-size: 1.25rem;
    }

    .rest-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .rest-actions button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0.25rem 0.35rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) and (max-height: 500px) {
    .execution-focus.has-rest-timer { padding-bottom: 1rem; }
    .rest-timer {
        position: static;
        width: 100%;
        min-height: 0;
        margin: 0.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rest-timer, .rest-timer * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

@media (max-width: 768px) {
    .series-table { display: table; }
    .series-table thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
    .series-table tbody { display: table-row-group; }
    .series-table tr { display: table-row; padding: 0; border: 0; box-shadow: none; }
    .series-table th, .series-table td { display: table-cell; width: auto; }
    .series-table td::before { content: none; }
}

.performance-list {
    display: grid;
    gap: 1rem;
}

.performance-card {
    padding: 1.25rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.performance-card h2,
.performance-card h3 {
    margin-top: 0;
}

.prescription,
.last-performance {
    color: #6b7280;
}

.last-performance {
    font-size: 0.875rem;
}

.performance-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.performance-fields label {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
}

.difficulty-picker {
    margin: 1rem 0;
    padding: 0;
    border: 0;
}

.difficulty-picker legend {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.difficulty-picker > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.difficulty-picker label {
    position: relative;
    cursor: pointer;
}

.difficulty-picker input {
    position: absolute;
    opacity: 0;
}

.difficulty-picker span {
    display: grid;
    min-height: 3rem;
    padding: 0.65rem;
    place-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
}

.difficulty-picker input:checked + span {
    color: #166534;
    background: #dcfce7;
    border-color: #15803d;
}

.complete-check {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    width: fit-content;
    font-weight: 700;
}

.complete-check input {
    width: 1.25rem;
    height: 1.25rem;
}

.summary-card p {
    margin: 0.4rem 0;
}
.session-summary { max-width: 760px; padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
.summary-header h2 { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0.65rem; }
.summary-metrics article { min-width: 0; padding: 1rem 0.65rem; text-align: left; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; }
.summary-metrics span, .summary-metrics strong { display: block; overflow-wrap: anywhere; }
.summary-metrics span { color: #475569; font-size: 0.82rem; }
.summary-metrics strong { margin-top: 0.3rem; color: #14532d; font-size: 1.05rem; }
.metric-help { margin: 0 0 1.25rem; color: #64748b; font-size: 0.82rem; text-align: left; }
.comparison-card { margin: 1.25rem 0; padding: 1rem; text-align: left; background: #f8fafc; border: 1px solid #dbe3ec; border-radius: 12px; }
.comparison-card h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }.comparison-card p, .comparison-card ul { margin-bottom: 0; }
.summary-card { padding: 0; overflow: hidden; }.summary-card summary { display: flex; min-width: 0; min-height: 64px; padding: 1rem; align-items: center; justify-content: space-between; gap: 0.75rem; cursor: pointer; text-align: left; }
.summary-card summary::marker, .summary-card summary::-webkit-details-marker { display: none; content: ""; }
.summary-card summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }.summary-card summary small { display: block; margin-top: 0.3rem; color: #64748b; }
.summary-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; }.exercise-status { color: #166534; font-size: 0.85rem; font-weight: 700; }
.summary-chevron { color: #64748b; font-size: 1rem; line-height: 1; transform: rotate(0deg); transition: transform 160ms ease; }.summary-card[open] .summary-chevron { transform: rotate(180deg); }
.summary-detail { padding: 0 1rem 1rem; border-top: 1px solid #e5e7eb; }.exercise-comparison { padding: 0.65rem; background: #f8fafc; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .summary-chevron { transition: none; } }

.container {
    width: min(90%, 600px);
    padding: 2.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}

h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    overflow-wrap: anywhere;
}

.status {
    margin-top: 1.5rem;
    font-weight: 700;
    color: #15803d;
}

.container-wide {
    width: min(95%, 1100px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: #15803d;
    border: 0;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.button-secondary {
    color: #1f2937;
    background: #e5e7eb;
}

.button-secondary.evolution-history-link {
    color: #166534;
    background: #f0fdf4;
    border-color: #86efac;
}

.button-secondary.evolution-history-link:hover {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

.button-secondary.evolution-history-link:focus-visible {
    outline: 3px solid #86efac;
    outline-offset: 3px;
}

.student-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    text-align: left;
}

.student-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

.full-width {
    grid-column: 1 / -1;
}

.error {
    padding: 0.75rem;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 6px;
}

.notice {
    padding: 0.75rem;
    color: #854d0e;
    background: #fef9c3;
    border-radius: 6px;
}

.checkbox-label {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
}

.checkbox-label input {
    width: auto;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.badge-active {
    color: #166534;
    background: #dcfce7;
}

.badge-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.workout-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
}

.workout-summary p {
    margin: 0.4rem 0;
}

.table-link {
    color: #15803d;
    font-weight: 700;
}

.student-area-label {
    display: inline-block;
    margin-top: 0;
    padding: 0.4rem 0.75rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.student-profile {
    margin-bottom: 1.5rem;
    padding: 1rem;
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
}

.student-profile h2,
.student-profile p {
    margin: 0.4rem 0;
}

.student-workouts,
.exercise-list {
    display: grid;
    gap: 1rem;
}

.plan-page {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
}

.student-workout-card {
    text-align: left;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.student-workout-card[open] {
    overflow: visible;
}

.next-workout-card {
    border: 2px solid #15803d;
}

.workout-summary-toggle {
    display: list-item;
    min-height: 5.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
}

.workout-summary-toggle:focus-visible {
    outline: 3px solid rgb(21 128 61 / 35%);
    outline-offset: -3px;
}

.workout-summary-main,
.workout-heading-row,
.workout-compact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.workout-summary-main {
    display: inline-flex;
    width: calc(100% - 1.5rem);
    min-width: 0;
    gap: 0.5rem;
    vertical-align: middle;
}

.workout-heading-row {
    width: 100%;
    gap: 0.5rem;
}

.workout-title {
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.workout-compact-meta {
    gap: 0.35rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.sequence-badge,
.completed-badge {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.sequence-badge {
    color: #166534;
    background: #dcfce7;
}

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

.toggle-label {
    display: block;
    margin: 0.65rem 0 0 1.5rem;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 700;
}

.workout-expanded-content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.workout-description {
    color: #4b5563;
}

.exercise-card {
    padding: 1rem;
    background: #f9fafb;
    border-left: 4px solid #15803d;
    border-radius: 6px;
}

.exercise-card h3 {
    margin-top: 0;
    overflow-wrap: anywhere;
}

.exercise-order {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    color: #ffffff;
    background: #15803d;
    border-radius: 50%;
    font-size: 0.875rem;
}

.exercise-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.exercise-details div {
    min-width: 0;
}

.exercise-details dt {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
}

.exercise-details dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.exercise-notes {
    margin-bottom: 0;
}

.student-start-button {
    display: block;
    width: fit-content;
    margin-top: 1rem;
    text-align: center;
}

.execution-list,
.history-list {
    display: grid;
    gap: 1rem;
}

.execution-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    text-align: left;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
}

.execution-card input {
    width: 1.25rem;
    height: 1.25rem;
}

.execution-content {
    display: grid;
    gap: 0.35rem;
    overflow-wrap: anywhere;
}

.execution-check-text {
    font-weight: 700;
    color: #15803d;
}

.history-card {
    padding: 1rem;
    text-align: left;
    border: 1px solid #d1d5db;
    border-left: 4px solid #15803d;
    border-radius: 8px;
}

.history-card h2 {
    margin-top: 0;
}

.history-card p:last-child {
    margin-bottom: 0;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    overflow-wrap: anywhere;
}

th,
td::before {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-actions .button { min-height: 48px; }
    .container,
    .container-wide {
        width: calc(100% - 1.5rem);
        padding: 1.25rem;
    }

    .student-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .actions {
        width: 100%;
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .table-wrapper {
        overflow: visible;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    tbody {
        display: grid;
        gap: 1rem;
    }

    tr {
        padding: 0.5rem 1rem;
        text-align: left;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
    }

    td {
        display: grid;
        grid-template-columns: minmax(7rem, 40%) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.65rem 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #374151;
        white-space: nowrap;
    }

    td:last-child {
        border-bottom: 0;
    }

    .student-area-label {
        border-radius: 8px;
    }

    .student-workout-card,
    .exercise-card {
        padding: 1rem;
    }

    .student-workout-card { padding: 0; }

    .workout-summary-toggle {
        min-height: 6rem;
        padding: 1rem;
    }

    .workout-expanded-content { padding: 0 1rem 1rem; }

    .exercise-details {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .student-start-button {
        width: 100%;
    }

    .execution-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .execution-check-text {
        grid-column: 2;
    }

    .student-body {
        --student-nav-offset: 0.75rem;
        --student-nav-clearance: 1.25rem;
        padding: 1rem 0.75rem var(--student-nav-reserved-space);
    }

    .student-bottom-nav {
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 1.5rem);
    }

    .student-stats,
    .profile-list div {
        grid-template-columns: 1fr;
    }

    .workout-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .choice-grid-five,
    .choice-grid-three,
    .choice-grid-two,
    .assessment-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assessment-summary-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-overview {
        grid-template-columns: 1fr;
    }

    .plan-preview-button {
        width: 100%;
        text-align: center;
    }

    .performance-card {
        padding: 1rem;
    }

    .performance-fields {
        grid-template-columns: 1fr;
    }
}
.difficulty-picker.validation-error {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .18);
}

.finish-error:not(:empty) { color: #b42318; font-weight: 700; }
.professional-review-section { padding: .9rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.professional-review-section h2, .professional-review-section h3, .professional-review-section p { margin: .35rem 0; }
.professional-workout { margin-top: .65rem; border-top: 1px solid #e5e7eb; }
.professional-workout summary { display: flex; justify-content: space-between; gap: .75rem; min-height: 48px; align-items: center; cursor: pointer; }
.professional-workout article { padding: .55rem 0; border-top: 1px solid #f1f5f9; }
.professional-workout article p { color: #52606d; font-size: .86rem; }
.professional-approval-form { position: sticky; bottom: .5rem; padding: .85rem; background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 6px 20px #0f172a1a; }
.professional-approval-form button { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #17643a; color: #fff; font-weight: 700; }
.professional-success { padding: .75rem; border-radius: 10px; background: #dcfce7; color: #166534; }


.professional-warning { padding: .75rem; border-radius: 10px; background: #fff7ed; color: #9a3412; }
.professional-edit-form { display: grid; gap: 1rem; }
.professional-exercise-card { display: grid; gap: .8rem; margin: 0; padding: 1rem; border: 1px solid #dbe3de; border-radius: 12px; background: #fff; }
.professional-exercise-card legend { padding: 0 .35rem; font-weight: 700; }
.professional-exercise-card label { display: grid; gap: .35rem; font-weight: 700; }
.professional-exercise-card input, .professional-exercise-card textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: .75rem; border: 1px solid #94a3b8; border-radius: 9px; font: inherit; }
.professional-exercise-card textarea { min-height: 96px; resize: vertical; }
.professional-edit-form > button { min-height: 52px; border: 0; border-radius: 10px; background: #17643a; color: #fff; font-weight: 700; font-size: 1rem; }
@media (min-width: 720px) { .professional-exercise-card { padding: 1.25rem; } }

/* Public student onboarding */
.onboarding-container { max-width: 42rem; padding-bottom: 3rem; }
.onboarding-heading { margin-bottom: 1.25rem; }
.onboarding-heading p, .auth-alternative { color: #52606d; }
.onboarding-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.onboarding-form fieldset { display: grid; min-width: 0; margin: 0; padding: 1rem; gap: .85rem; border: 1px solid #dbe3de; border-radius: 12px; }
.onboarding-form legend { padding: 0 .35rem; font-weight: 700; }
.onboarding-form label { display: grid; min-width: 0; gap: .35rem; font-weight: 600; }
.onboarding-form input:not([type="checkbox"]), .onboarding-form select, .onboarding-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 48px; padding: .7rem; border: 1px solid #94a3b8; border-radius: 9px; font: inherit; }
.onboarding-form textarea { resize: vertical; }
.consent-row, .onboarding-form .consent-row { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; cursor: pointer; font-weight: 500; line-height: 1.45; }
.consent-checkbox, .onboarding-form .consent-checkbox { box-sizing: border-box; flex: 0 0 1.375rem; width: 1.375rem; height: 1.375rem; min-height: 1.375rem; margin: .12rem 0 0; padding: 0; accent-color: #17643a; }
.consent-checkbox:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }
.consent-copy { min-width: 0; overflow-wrap: anywhere; }
.consent-copy a { display: inline; }
.consent-disclosure[hidden] { display: none; }
.onboarding-submit { width: 100%; min-height: 52px; }
.auth-alternative { text-align: center; }
.form-error { overflow-wrap: anywhere; padding: .75rem; border-radius: 9px; background: #fef2f2; color: #b42318; }
@media (min-width: 720px) { .onboarding-form fieldset { padding: 1.25rem; } }
.invite-shell { max-width: 44rem; display: grid; gap: 1rem; }
.invite-actions { display: grid; gap: .75rem; }
.generated-invite, .invite-list article, .connected-professionals article { padding: 1rem; border: 1px solid #dbe3de; border-radius: 12px; background: #fff; }
.generated-invite input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; margin-bottom: .75rem; }
.invite-list { display: grid; gap: .75rem; }
.connected-professionals article { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.professional-invite-cta { display: inline-block; margin-bottom: 1rem; }
@media (min-width: 600px) { .invite-actions { grid-template-columns: 1fr 1fr; } }
/* Professional verification experience */
.professional-verification-shell {
    box-sizing: border-box;
    width: min(100% - 2rem, 48rem);
    margin: 1.5rem auto;
    padding-bottom: 2.5rem;
    overflow-wrap: anywhere;
}
.verification-hero h1,
.verification-result h1 { margin: .75rem 0; font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.08; }
.verification-hero > p,
.verification-result > p { color: #52606d; line-height: 1.6; }
.verification-badge { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .7rem; border-radius: 999px; background: #eef2f6; color: #334155; font-size: .875rem; font-weight: 700; }
.verification-badge-pending { background: #fff7d6; color: #765b00; }
.verification-badge-success { background: #dcfce7; color: #17643a; }
.verification-section,
.verification-result { margin-top: 1.25rem; padding: 1rem; border: 1px solid #dbe3de; border-radius: 14px; background: #fff; }
.verification-section h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.verification-steps { display: grid; margin: 0; padding: 0; gap: .25rem; list-style: none; }
.verification-steps li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .65rem; padding: .65rem 0; color: #64748b; }
.verification-steps li > span { font-size: 1.15rem; text-align: center; }
.verification-steps li div { display: grid; gap: .15rem; min-width: 0; }
.verification-steps li small { color: #64748b; }
.verification-steps .is-complete,
.verification-steps .is-current { color: #17643a; }
.verification-reassurance { margin: 1rem 0 .5rem; padding: .85rem; border-radius: 10px; background: #f0fdf4; color: #285943; line-height: 1.5; }
.verification-refresh { display: inline-flex; min-height: 44px; align-items: center; color: #17643a; font-weight: 700; }
.verification-capabilities { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.verification-capabilities article { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .65rem; min-width: 0; padding: .85rem; border-radius: 10px; background: #f8fafc; color: #64748b; }
.verification-capabilities h3 { margin: 0 0 .25rem; color: #334155; font-size: 1rem; }
.verification-capabilities p { margin: 0; line-height: 1.45; }
.verification-cref { padding-top: .5rem; }
.verification-primary-action { width: 100%; min-height: 48px; margin-top: .75rem; }
.verification-logout { margin-top: 1rem; text-align: center; }
.verification-logout .link-button { min-height: 44px; }
.admin-verification-card { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0 1.25rem; padding: 1rem; border: 1px solid #dbe3de; border-radius: 12px; background: #f8fafc; }
.admin-verification-card h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.admin-verification-card p { margin: 0; color: #52606d; }
.admin-verification-card .button { min-height: 44px; }
@media (min-width: 600px) {
    .professional-verification-shell { margin-top: 3rem; }
    .verification-section,
    .verification-result { padding: 1.35rem; }
    .verification-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .verification-primary-action { width: auto; }
    .admin-verification-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Professional verification admin queue */
.professional-admin-shell { box-sizing: border-box; width: min(100% - 2rem, 64rem); margin: 1.5rem auto; }
.professional-admin-heading { margin-bottom: 1.25rem; }
.professional-admin-heading h1 { margin: .75rem 0 .4rem; font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.1; }
.professional-admin-heading p { margin: 0; color: #52606d; line-height: 1.55; }
.professional-admin-back { display: inline-flex; min-height: 44px; align-items: center; color: #17643a; font-weight: 700; }
.professional-admin-list { display: grid; gap: 1rem; }
.professional-admin-card { min-width: 0; padding: 1rem; border: 1px solid #dbe3de; border-radius: 14px; background: #fff; }
.professional-admin-card-heading { display: grid; gap: .75rem; }
.professional-admin-identity { min-width: 0; }
.professional-admin-identity h2 { margin: 0 0 .3rem; font-size: 1.15rem; overflow-wrap: break-word; }
.professional-admin-email { color: #52606d; overflow-wrap: break-word; word-break: normal; }
.professional-status { display: inline-flex; width: fit-content; min-height: 32px; padding: .25rem .7rem; align-items: center; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.professional-status-pending { background: #fff7d6; color: #765b00; }
.professional-status-verified { background: #dcfce7; color: #17643a; }
.professional-status-rejected { background: #fef2f2; color: #9f2d25; }
.professional-status-suspended { background: #eef2f6; color: #475569; }
.professional-admin-details { display: grid; gap: .75rem; margin: 1rem 0 0; }
.professional-admin-details div { min-width: 0; }
.professional-admin-details dt { margin-bottom: .2rem; color: #64748b; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.professional-admin-details dd { margin: 0; color: #1f2937; overflow-wrap: break-word; }
.professional-admin-cref { white-space: nowrap; }
.professional-admin-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-top: 1rem; }
.professional-admin-actions form { margin: 0; }
.professional-admin-actions button { width: 100%; min-height: 48px; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.professional-action-approve { border: 1px solid #17643a; background: #17643a; color: #fff; }
.professional-action-reject { border: 1px solid #cbd5e1; background: #fff; color: #9f2d25; }
.professional-admin-empty { padding: 1rem; border-radius: 12px; background: #f8fafc; color: #52606d; }
@media (min-width: 600px) {
    .professional-admin-shell { margin-top: 2.5rem; }
    .professional-admin-card { padding: 1.25rem; }
    .professional-admin-card-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .professional-admin-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .professional-admin-actions { grid-template-columns: repeat(2, minmax(9rem, 12rem)); justify-content: end; }
}
/* Assisted manual CREF verification */
.professional-assisted-check { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #f8fafc; }
.professional-assisted-check h3 { margin: 0 0 .4rem; font-size: 1rem; }
.professional-assisted-check > p { margin: 0; color: #52606d; line-height: 1.5; }
.professional-assisted-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-top: .85rem; }
.professional-copy-cref,
.professional-confef-link { box-sizing: border-box; display: inline-flex; width: 100%; min-height: 48px; padding: .7rem 1rem; align-items: center; justify-content: center; border-radius: 9px; font: inherit; font-weight: 700; text-align: center; }
.professional-copy-cref { border: 1px solid #17643a; background: #fff; color: #17643a; cursor: pointer; }
.professional-confef-link { background: #17643a; color: #fff; }
.professional-copy-feedback { min-height: 1.5em; margin-top: .5rem !important; font-size: .875rem; }
.professional-admin-actions,
.professional-approve-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.professional-confirmation { display: flex; min-height: 48px; gap: .65rem; align-items: flex-start; line-height: 1.45; cursor: pointer; }
.professional-confirmation input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: #17643a; }
@media (min-width: 600px) {
    .professional-assisted-actions { grid-template-columns: repeat(2, minmax(0, 13rem)); }
    .professional-admin-actions { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
    .professional-admin-actions button { max-width: 12rem; }
}
