/* Tutor profile action components. Route-scoped from the global stylesheet. */
.profile-portrait-stage {
    position: relative;
}

.profile-intro-video-trigger {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 28px);
    padding: 8px 11px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #fff;
    background: rgba(17, 48, 54, 0.92);
    box-shadow: 0 10px 24px rgba(7, 25, 29, 0.3);
    font: inherit;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-intro-video-trigger:hover {
    background: rgba(5, 116, 150, 0.96);
    box-shadow: 0 13px 28px rgba(7, 25, 29, 0.38);
    transform: translateY(-2px);
}

.profile-intro-video-trigger:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

.profile-intro-video-play {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding-left: 2px;
    border-radius: 50%;
    color: #17343a;
    background: #fff;
    font-size: 0.88rem;
    place-items: center;
}

.profile-intro-video-trigger > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.profile-intro-video-trigger strong,
.profile-intro-video-trigger small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-intro-video-trigger strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.profile-intro-video-trigger small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.65rem;
    font-weight: 760;
}

.tutor-intro-video-dialog {
    width: min(560px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(5, 20, 24, 0.38);
}

.tutor-intro-video-dialog::backdrop {
    background: rgba(5, 20, 24, 0.74);
    backdrop-filter: blur(5px);
}

.tutor-intro-video-shell {
    display: grid;
    max-height: calc(100vh - 24px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.tutor-intro-video-shell > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.tutor-intro-video-shell > header > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.tutor-intro-video-shell > header span {
    color: var(--teal-deep);
    font-size: 0.65rem;
    font-weight: 950;
    text-transform: uppercase;
}

.tutor-intro-video-shell > header strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutor-intro-video-shell > header button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
    cursor: pointer;
    place-items: center;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.tutor-intro-video-shell > header button:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
    transform: translateY(-1px);
}

.tutor-intro-video-shell > header button:focus-visible {
    outline: 3px solid var(--control-focus-ring);
    outline-offset: 2px;
}

.tutor-intro-video-frame {
    display: grid;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    background: #071316;
    place-items: center;
}

.tutor-intro-video-frame video {
    display: block;
    width: min(100%, 480px);
    max-height: calc(100vh - 178px);
    aspect-ratio: 480 / 608;
    background: #050708;
    object-fit: contain;
}

.tutor-intro-video-shell > footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 14px 13px;
    border-top: 1px solid var(--line);
}

.tutor-intro-video-shell > footer span {
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--line));
    border-radius: 5px;
    color: var(--teal-deep);
    background: var(--teal-soft);
    font-size: 0.66rem;
    font-weight: 900;
    white-space: nowrap;
}

.tutor-intro-video-shell > footer p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.45;
}

html[data-theme-tone="dark"] .tutor-intro-video-shell > header button img {
    filter: brightness(0) invert(1);
}

.profile-media .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 14px 30px rgba(23, 52, 58, 0.08);
}

.profile-media .profile-actions .button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.profile-media .profile-actions .button-primary {
    grid-column: 1 / -1;
}

.profile-media .profile-actions .profile-action-main,
.profile-media .profile-actions .profile-action-chat-featured,
.profile-media .profile-actions .profile-action-classroom {
    grid-column: 1 / -1;
}

.profile-media .profile-actions .profile-action-main {
    min-height: 56px;
    padding: 13px 14px;
}

.profile-media .profile-actions .profile-action-main .profile-action-copy strong {
    font-size: 0.96rem;
}

.profile-action-chat {
    border-color: #18383e;
    color: #fff;
    background: #18383e;
    box-shadow: 0 7px 16px color-mix(in srgb, #18383e 22%, transparent);
}

.profile-action-chat:hover {
    border-color: #234c54;
    color: #fff;
    background: #234c54;
    box-shadow: 0 10px 20px color-mix(in srgb, #18383e 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-classroom {
    min-height: 56px;
    justify-content: flex-start;
    padding: 13px 14px;
    border-color: #1d4ed8;
    color: #fff;
    background: #1d4ed8;
    box-shadow: 0 7px 16px color-mix(in srgb, #1d4ed8 22%, transparent);
    text-align: left;
}

.profile-media .profile-actions .profile-action-classroom:hover {
    border-color: #1e40af;
    color: #fff;
    background: #1e40af;
    box-shadow: 0 10px 20px color-mix(in srgb, #1d4ed8 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-classroom > img {
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.profile-media .profile-actions .profile-action-call {
    border-color: #16845f;
    color: #fff;
    background: #16845f;
    box-shadow: 0 7px 16px color-mix(in srgb, #16845f 22%, transparent);
}

.profile-media .profile-actions .profile-action-call:hover {
    border-color: #0f694a;
    color: #fff;
    background: #0f694a;
    box-shadow: 0 10px 20px color-mix(in srgb, #16845f 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-schedule {
    border-color: #057496;
    color: #fff;
    background: #057496;
    box-shadow: 0 7px 16px color-mix(in srgb, #057496 22%, transparent);
}

.profile-media .profile-actions .profile-action-schedule:hover {
    border-color: #045b77;
    color: #fff;
    background: #045b77;
    box-shadow: 0 10px 20px color-mix(in srgb, #057496 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-path {
    border-color: #621dd8;
    color: #fff;
    background: #621dd8;
    box-shadow: 0 7px 16px color-mix(in srgb, #621dd8 22%, transparent);
}

.profile-media .profile-actions .profile-action-path:hover {
    border-color: #4c16ac;
    color: #fff;
    background: #4c16ac;
    box-shadow: 0 10px 20px color-mix(in srgb, #621dd8 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-path-featured {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 56px;
    padding: 13px 14px;
    text-align: left;
}

.profile-media .profile-actions .profile-action-path-featured > img {
    flex: 0 0 auto;
}

.profile-media .profile-actions .profile-action-path-featured .profile-action-copy strong {
    font-size: 0.95rem;
}

.profile-media .profile-actions .profile-action-guide {
    border-color: #a64b0c;
    color: #fff;
    background: #a64b0c;
    box-shadow: 0 7px 16px color-mix(in srgb, #a64b0c 22%, transparent);
}

.profile-media .profile-actions .profile-action-guide:hover {
    border-color: #803906;
    color: #fff;
    background: #803906;
    box-shadow: 0 10px 20px color-mix(in srgb, #a64b0c 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-flashcards {
    border-color: #7b3bb4;
    color: #fff;
    background: #7b3bb4;
    box-shadow: 0 7px 16px color-mix(in srgb, #7b3bb4 22%, transparent);
}

.profile-media .profile-actions .profile-action-flashcards:hover {
    border-color: #5f298f;
    color: #fff;
    background: #5f298f;
    box-shadow: 0 10px 20px color-mix(in srgb, #7b3bb4 30%, transparent);
    transform: translateY(-1px);
}

.profile-media .profile-actions .profile-action-flashcards img {
    filter: brightness(0) invert(1);
}

.profile-media .profile-actions .profile-action-live img,
.profile-media .profile-actions .profile-action-schedule img,
.profile-media .profile-actions .profile-action-path img,
.profile-media .profile-actions .profile-action-guide img {
    filter: brightness(0) invert(1);
}

.profile-media .profile-actions .button:active {
    box-shadow: none;
    transform: translateY(0);
}

.profile-media .profile-actions .button:focus-visible {
    outline: 3px solid var(--control-focus-ring);
    outline-offset: 2px;
}

.profile-media .profile-actions .profile-action-live {
    justify-content: flex-start;
    text-align: left;
}

.profile-media .profile-actions .profile-action-live > img {
    flex: 0 0 auto;
}

.profile-action-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    text-align: left;
}

.profile-action-copy strong,
.profile-action-copy small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-action-copy strong {
    font-size: 0.86rem;
    line-height: 1.15;
}

.profile-action-copy small {
    color: inherit;
    font-size: 0.69rem;
    font-weight: 760;
    line-height: 1.25;
    opacity: 0.8;
}

.profile-next-step {
    margin-top: 24px;
    padding: 20px 18px 18px;
    border-top: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
    border-right: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
    border-bottom: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
    border-left: 4px solid var(--teal);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--teal-soft) 48%, var(--surface));
}

.profile-next-step-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.profile-next-step .eyebrow {
    margin: 0 0 5px;
}

.profile-next-step h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.42rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.profile-next-step-head div > p:last-child {
    max-width: 540px;
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 720;
    line-height: 1.5;
}

.profile-next-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
    border-radius: 6px;
    color: var(--amber-ink);
    background: color-mix(in srgb, var(--amber-soft) 72%, var(--surface));
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-next-step-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.profile-next-step-actions .button {
    justify-content: flex-start;
    min-width: 0;
    min-height: 62px;
    padding: 11px 14px;
    text-align: left;
}

.profile-next-step-actions .button > img {
    flex: 0 0 auto;
}

.profile-next-step-actions .profile-action-copy strong {
    font-size: 0.9rem;
}

.profile-next-step-assurance {
    display: flex;
    align-items: start;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 740;
    line-height: 1.45;
}

.profile-next-step-assurance img {
    flex: 0 0 auto;
    margin-top: 1px;
}


@media (max-width: 640px) {
    .profile-intro-video-trigger {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .tutor-intro-video-shell > footer {
        grid-template-columns: 1fr;
    }

    .profile-actions,
    .profile-next-step-head,
    .profile-next-step-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-next-step-head {
        gap: 10px;
    }

    .profile-next-step-badge {
        justify-self: start;
    }

    .profile-next-step-actions .button {
        min-height: 58px;
    }

    .profile-media .profile-actions .profile-action-copy strong {
        font-size: 0.8rem;
    }

    .profile-media .profile-actions .profile-action-copy small {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-intro-video-trigger,
    .tutor-intro-video-shell > header button {
        transition: none;
    }
}
