/* React/MUI adaptation of the approved handoff, loaded last. */
html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip
}

body {
    background: var(--bg) !important;
    color: var(--ink) !important;
    font-family: Lahzeh, Tahoma, sans-serif !important
}

button, input, textarea {
    font-family: inherit
}

a {
    color: inherit
}

h1, h2, h3, p {
    letter-spacing: 0
}

.new-app .wrap {
    max-width: 1280px;
    margin-inline: auto
}

.shell-content {
    padding-top: 18px;
    min-height: 60vh
}

.new-main {
    min-width: 0;
    width: 100%
}

.topbar {
    display: flex;
    align-items: center !important;
    gap: 20px;
    min-height: 90px;
    height: auto;
    padding-block: 15px !important
}

.topbar .brand img {
    width: 48px;
    height: 48px;
    object-fit: contain
}

.desktop-nav {
    display: flex;
    gap: 24px;
    flex: 1
}

.tools {
    display: flex;
    align-items: center;
    gap: 6px
}

.tools .small-btn {
    min-width: 35px;
    padding: 4px;
    font-size: 12px;
    color: var(--ink)
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.profile-link img {
    width: 38px;
    height: 38px
}

.account-grid {
    display: grid;
    grid-template-columns:250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-block: 25px
}

.new-sidebar {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    padding: 14px 8px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto
}

.sidebar-identity {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 16px;
    gap: 6px
}

.sidebar-identity img {
    width: 38px;
    height: 38px;
    object-fit: contain
}

.sidebar-identity small {
    color: var(--muted)
}

.new-sidebar .MuiToolbar-root {
    display: none
}

.new-sidebar .MuiListItemIcon-root {
    min-width: 34px
}

.new-sidebar .MuiListItemButton-root {
    border-radius: 6px;
    margin-block: 3px;
    min-height: 44px
}

.new-sidebar .Mui-selected {
    background: var(--navy) !important;
    color: var(--cream) !important
}

.new-sidebar .MuiListItemText-primary {
    font-size: 14px
}

.new-sidebar .MuiListSubheader-root {
    background: transparent
}

.new-main .MuiContainer-root {
    padding-inline: 0
}

.new-main .MuiDataGrid-root {
    background: var(--panel)
}

.new-main .MuiDataGrid-columnHeader {
    background: var(--panel)
}

.new-main .MuiPaper-root {
    background-color: var(--panel)
}

.new-main .MuiTypography-h4, .new-main .MuiTypography-h5 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 18px
}

.mobile-navigation {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-block: 20px;
    border-block: 1px solid var(--line)
}

.hero .hero-terminal {
    display: block;
    position: relative;
    width: fit-content;
    margin-top: 12px;
    min-height: 1.5em
}

.hero .terminal-live {
    position: relative !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap
}

.hero .hero-fixed {
    white-space: normal !important
}

.hero-statement {
    font-size: clamp(28px, 3.1vw, 44px) !important
}

.hero-actions {
    gap: 16px !important
}

.hero-actions .MuiButton-root {
    min-width: 194px
}

.brand-button {
    height: 43.2px;
    white-space: nowrap;
    font-size: 14px !important;
    border-radius: 5px !important;
    border-width: 2px !important
}

.brand-button:before {
    content: '';
    width: 8px;
    height: 8px;
    flex: none;
    background: currentColor;
    border-radius: 50%;
    margin-inline-end: 0
}

.integrated-course {
    min-width: 0;
    flex: 1
}

.integrated-course .cover {
    height: 220px;
    width: 100%;
    object-fit: cover
}

.integrated-course .price {
    font-size: 21px
}

.integrated-course .course-action {
    margin-top: 18px
}

.integrated-course .card-body {
    padding: 22px
}

.new-main .cards {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.new-auth {
    max-width: 470px;
    margin: 36px auto 80px
}

.auth-logo img {
    width: 170px;
    max-height: 66px;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px
}

.new-auth .panel {
    padding: 32px !important;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.new-auth h1 {
    font-size: 32px;
    margin: 0
}

.new-auth p {
    margin: 0
}

.karabiz-footer {
    margin-top: 64px
}

.karabiz-footer .MuiButton-root {
    color: var(--sky);
    border-color: var(--sky)
}

.karabiz-footer .MuiButton-contained {
    color: var(--blue)
}

.partners {
    display: flex;
    gap: 40px;
    justify-content: space-around
}

.partners a {
    color: var(--cream);
    text-align: center
}

.partners img {
    display: block;
    margin: auto
}

.destination-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 24px;
    margin-block: 35px
}

.destination-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px
}

.destination-card img {
    width: 100%;
    height: 180px;
    object-fit: contain
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px
}

.new-main img {
    max-width: 100%
}

html[lang=en] .MuiTypography-root, html[lang=en] .MuiButton-root {
    font-family: HyperMontserrat, Arial, sans-serif
}

@media (max-width: 1279px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px
    }

    .topbar {
        gap: 12px
    }

    .optional {
        display: none !important
    }

    .account-grid {
        grid-template-columns:220px minmax(0, 1fr);
        gap: 20px
    }

    .new-main .cards {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 699px) {
    .desktop-nav {
        display: none !important
    }

    .topbar {
        min-height: 76px;
        gap: 8px
    }

    .topbar .brand img {
        width: 38px;
        height: 38px
    }

    .topbar .tools {
        margin-inline-start: auto
    }

    .tools .MuiButton-root.signin {
        padding-inline: 14px;
        min-width: 65px
    }

    .account-grid {
        display: block;
        padding-top: 15px
    }

    .new-sidebar {
        display: none;
        position: relative;
        max-height: none;
        margin-bottom: 20px
    }

    .new-sidebar.mobile-open {
        display: block
    }

    .new-main .cards, .destination-grid {
        grid-template-columns:1fr
    }

    .hero {
        padding-top: 50px !important
    }

    .hero > div:first-child {
        width: 100% !important
    }

    .hero-art.generated {
        position: relative !important;
        width: 100% !important;
        inset: auto !important;
        height: 280px !important
    }

    .hero-statement {
        font-size: clamp(23px, 6.7vw, 34px) !important
    }

    .hero-actions {
        flex-wrap: wrap
    }

    .hero-actions .MuiButton-root {
        min-width: 0;
        flex: 1;
        padding-inline: 16px
    }

    .new-auth {
        margin-top: 24px
    }

    .new-auth .panel {
        padding: 24px !important
    }

    .new-main .MuiTypography-h4 {
        font-size: 26px
    }

    .new-main .MuiStack-root {
        max-width: 100%
    }

    .new-main .MuiDataGrid-root {
        overflow: auto
    }

    .karabiz-footer .footer-newsletter {
        display: block
    }

    .karabiz-footer .footer-newsletter .MuiButton-root {
        margin-top: 20px
    }

    .karabiz-footer {
        margin-top: 40px
    }

    .shell-content {
        padding-inline: 18px !important
    }
}

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

.hero-statement {
    font-size: clamp(20px, 2.4vw, 35px) !important
}

.hero .hero-fixed {
    white-space: nowrap !important
}

.hero .hero-terminal {
    max-width: 100%
}

.hero .terminal-live {
    white-space: nowrap
}

.topbar .brand {
    display: block;
    flex-shrink: 0
}

button.small-btn {
    color: var(--blue) !important
}

[data-theme=night] button.small-btn {
    color: var(--sky) !important
}

@media (max-width: 699px) {
    .hero-statement {
        font-size: clamp(17px, 4.9vw, 30px) !important
    }

    .hero .hero-fixed {
        display: inline-block;
        max-width: 100%
    }

    .hero .terminal-live {
        gap: 4px
    }

    .hero .hero-terminal {
        padding-inline: 8px
    }

    .hero .home-brand .brand-title-image {
        max-width: 160px
    }
}

:root {
    --panel: var(--surface)
}

html[data-theme=night] .hero .hero-terminal, html[data-theme=night] .hero .hero-terminal * {
    color: var(--navy) !important
}

html[data-theme=night] .home-brand .brand-title-image, html[data-theme=night] .auth-logo img {
    content: url('../assets/karabiz/brand/logotype-fa/karabiz-fa-cream.webp')
}

html[lang=en][data-theme=night] .home-brand .brand-title-image, html[lang=en][data-theme=night] .auth-logo img {
    content: url('../assets/karabiz/brand/logotype-en/karabiz-en-cream.webp')
}

.new-app .MuiButton-contained:not(.small-btn):not(.brand-button)::before, .new-app .MuiButton-outlined:not(.small-btn):not(.brand-button)::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none
}

/* Page families translated from handoff panels, tables, forms and curriculum. */
.screen-frame {
    min-width: 0
}

.page-head {
    padding: 24px 0 30px
}

.screen-title {
    display: flex;
    align-items: center;
    gap: 14px
}

.screen-title > .MuiSvgIcon-root {
    font-size: 32px;
    color: var(--muted)
}

.screen-title h1 {
    font-size: 36px;
    line-height: 1.5;
    font-weight: 700;
    margin: 0
}

.crumb .MuiTypography-root, .crumb a {
    font-size: 13px;
    color: var(--muted)
}

.screen-body > .MuiContainer-root {
    padding-top: 0;
    margin-top: 0
}

.screen-body .MuiPaper-root:not(.MuiAccordion-root):not(.MuiTableContainer-root) {
    border: 1px solid var(--line);
    border-radius: 22px
}

.screen-body .MuiCardContent-root {
    padding: 24px
}

.screen-body .MuiAccordion-root {
    border: 1px solid var(--line);
    border-radius: 18px !important;
    margin-bottom: 18px;
    overflow: hidden
}

.screen-body .MuiAccordion-root:before {
    display: none
}

.screen-body .MuiAccordionSummary-root {
    background: var(--surface);
    min-height: 64px
}

.screen-body .MuiAccordionDetails-root {
    padding: 24px
}

.screen-body .MuiDataGrid-root {
    border-radius: 18px;
    background: var(--surface);
    font-size: 14px;
    --DataGrid-rowBorderColor: var(--line)
}

.screen-body .MuiDataGrid-columnHeader, .screen-body .MuiDataGrid-columnHeaders {
    background: var(--surface) !important;
    color: var(--muted)
}

.screen-body .MuiDataGrid-cell {
    padding-inline: 18px;
    border-color: var(--line)
}

.screen-body .MuiDataGrid-row:hover {
    background: color-mix(in srgb, var(--sky) 18%, transparent)
}

.screen-body .MuiDataGrid-columnHeaderTitle {
    font-size: 12px;
    font-weight: 700
}

.screen-body .MuiDataGrid-toolbarContainer {
    padding: 18px;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line)
}

.screen-body .MuiDataGrid-footerContainer {
    border-color: var(--line);
    min-height: 64px
}

.screen-body .MuiTableContainer-root {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: auto
}

.screen-body .MuiTableCell-root {
    padding: 16px 18px;
    border-color: var(--line);
    text-align: start
}

.screen-body .MuiTableCell-head {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700
}

.screen-body .MuiTypography-h6 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6
}

.screen-body .MuiTypography-h5 {
    font-size: 23px;
    line-height: 1.6
}

.screen-body .MuiTabs-root {
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    min-height: 58px
}

.screen-body .MuiTab-root {
    min-height: 43.2px;
    margin-inline-end: 8px;
    min-width: 100px;
    border: 1px solid var(--line);
    border-radius: 5px;
    white-space: nowrap;
    padding: 8px 18px;
    color: var(--muted)
}

.screen-body .MuiTab-root.Mui-selected {
    background: var(--cta);
    color: var(--cta-ink)
}

.screen-body .MuiTabs-indicator {
    display: none
}

.editor-panel {
    padding-top: 4px
}

.editor-panel[hidden] {
    display: none !important
}

.screen-body .MuiLinearProgress-root {
    height: 7px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: transparent
}

.screen-body .MuiLinearProgress-bar {
    background: var(--cta)
}

.screen-body .MuiInputBase-root {
    background: var(--surface)
}

.screen-body .MuiAlert-root {
    margin-block: 16px;
    border: 1px solid var(--gold);
    border-inline-start: 4px solid var(--gold);
    border-radius: 12px;
    background: transparent;
    color: var(--ink)
}

.screen-body .MuiFormLabel-root {
    font-weight: 600;
    letter-spacing: 0
}

.screen-body .MuiFormHelperText-root {
    font-size: 12px;
    line-height: 1.8
}

.screen-body .MuiButton-root {
    line-height: 1.5;
    letter-spacing: 0
}

.screen-body .MuiCard-root .MuiButton-root {
    align-self: flex-start
}

.screen-body .MuiChip-root {
    border: 1px solid var(--line);
    border-radius: 99px;
    background: transparent;
    color: var(--muted);
    font-size: 12px
}

.screen-body .MuiChip-colorWarning, .screen-body .MuiChip-colorError {
    border-color: var(--gold);
    color: var(--ink)
}

.screen-body .MuiChip-label {
    padding-inline: 14px
}

.new-sidebar {
    border-radius: 22px;
    padding: 22px 12px
}

.new-sidebar .MuiListItem-root, .new-sidebar .MuiListItemButton-root {
    min-height: 44px;
    border-radius: 9px;
    gap: 6px;
    padding-inline: 9px
}

.new-sidebar .MuiListItemIcon-root {
    color: var(--muted)
}

.new-sidebar .MuiListItem-root:hover, .new-sidebar .MuiListItemButton-root:hover {
    background: color-mix(in srgb, var(--sky) 20%, transparent)
}

.new-sidebar .MuiListItemButton-root.Mui-selected .MuiListItemIcon-root {
    color: var(--cream)
}

.new-sidebar .MuiListItemText-primary {
    line-height: 1.55;
    letter-spacing: 0
}

.sidebar-identity {
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding: 8px 10px 20px
}

.sidebar-identity small {
    font-size: 12px
}

.full-navigation {
    padding: 28px;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 0 36px;
    animation: menu-arrive .22s ease
}

.full-navigation > a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    color: var(--muted)
}

.full-navigation > a:hover {
    color: var(--gold)
}

.screen-auth {
    max-width: 460px;
    margin: 18px auto 50px
}

.screen-auth .page-head {
    padding: 0 0 20px
}

.screen-auth .screen-title {
    justify-content: center
}

.screen-auth .screen-title > .MuiSvgIcon-root {
    display: none
}

.screen-auth .screen-title h1 {
    font-size: 31px;
    text-align: center
}

.screen-auth .screen-body .MuiContainer-root {
    padding: 0;
    max-width: 100%
}

.screen-auth .screen-body .MuiCard-root {
    margin-top: 0;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 18px
}

.screen-auth .screen-body h1 {
    display: none
}

.screen-auth .auth-logo img {
    margin-bottom: 24px;
    width: 196px
}

.screen-auth .MuiInputBase-input {
    direction: ltr;
    text-align: start
}

.screen-auth .MuiButton-root {
    width: 100%
}

.screen-auth .MuiIconButton-root {
    width: auto
}

.screen-auth .phone-entry {
    display: flex;
    direction: ltr;
    gap: 12px;
    align-items: flex-start
}

.otp-digits {
    display: flex;
    direction: ltr;
    gap: 10px;
    justify-content: center;
    margin: 18px 0
}

.otp-digits .MuiInputBase-root {
    width: 55px;
    height: 60px;
    border-radius: 5px
}

.otp-digits input {
    padding: 12px 0;
    text-align: center !important;
    font-size: 25px
}

.otp-status {
    text-align: center;
    color: var(--muted);
    min-height: 28px
}

.learning-workspace {
    display: grid !important;
    /* Chat sidebar track: operator floor 320px, share 24vw, cap 400px.
       Matches resources/js/Pages/Profile/Course/chatSidebarLayout.ts — a
       fixed 280px here overrides the Inertia sx clamp (this sheet loads
       after emotion), which is why the 05aa3c61 fix had no effect. */
    grid-template-columns:clamp(320px, 24vw, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 28px
}

.learning-main {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden
}

.learning-curriculum {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px
}

.learning-curriculum .MuiAccordion-root {
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    margin: 0 !important
}

.learning-curriculum .MuiAccordionSummary-root {
    background: transparent !important
}

.learning-curriculum .MuiAccordionDetails-root {
    padding: 0
}

.learning-main .MuiTab-root {
    min-width: 0;
    padding-inline: 12px
}

.learning-main .MuiTabs-root {
    margin-top: 20px;
    margin-inline: 20px
}

.learning-main article, .learning-main .lesson-copy {
    padding: 24px
}

.learning-main .MuiStack-root {
    max-width: 100%
}

.learning-main video {
    width: 100%
}

.learning-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px
}

.learning-card > a {
    display: block
}

.learning-card .cover {
    width: 100%;
    height: 220px;
    object-fit: cover
}

.learning-card .card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.learning-card h2 {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 12px
}

.learning-card .course-progress {
    margin-top: auto;
    padding-top: 20px
}

.learning-card .MuiButton-root {
    margin-top: 18px;
    align-self: flex-start
}

.course-overview-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 365px;
    gap: 28px;
    align-items: start
}

.course-buybox {
    position: sticky;
    top: 24px
}

.course-buybox .cover {
    height: 230px;
    object-fit: cover
}

.course-details .panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px
}

.course-details h2 {
    font-size: 23px
}

.course-details .MuiAccordion-root {
    margin-bottom: 10px
}

.course-details .MuiTable-root {
    min-width: 0
}

.course-guide-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-block: 20px
}

.course-guide-links a {
    display: flex;
    align-items: center;
    gap: 10px
}

.course-guide-links .MuiAvatar-root {
    width: 45px;
    height: 45px
}

.course-details article {
    line-height: 2
}

.new-app .MuiButton-contained:hover:not(:disabled), .new-app .MuiButton-outlined:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--line)
}

.new-app .MuiButton-root {
    transition: transform .12s ease, box-shadow .12s ease, background-color .18s ease
}

.new-app .MuiIconButton-root {
    transition: color .15s ease, background-color .15s ease
}

.new-app .MuiIconButton-root:hover {
    background: color-mix(in srgb, var(--sky) 22%, transparent)
}

.experience-image {
    animation: slide-arrive .25s ease
}

.hero .hero-terminal {
    position: relative;
    min-width: 0;
    width: fit-content;
    display: block
}

.hero .terminal-reserve {
    visibility: hidden;
    white-space: nowrap;
    display: block;
    line-height: 1.6
}

.hero .terminal-live {
    position: absolute !important;
    inset: 0;
    display: flex;
    align-items: center;
    padding-inline: 12px
}

.typed-copy {
    white-space: pre-wrap
}

.hero .typed-copy {
    white-space: nowrap
}

.rocket-rail {
    --rocket-travel: 0px;
    top: 8px;
    bottom: 24px;
    inset-inline-end: 10px !important;
    inset-inline-start: auto !important;
    width: 76px;
    z-index: 10
}

.rocket-rail img {
    width: 72px;
    transform: translateY(calc(-1 * var(--rocket-travel)));
    transition: transform .08s linear
}

.rocket-trail {
    position: absolute;
    bottom: 0;
    inset-inline-start: 50%;
    height: var(--rocket-travel);
    width: 12px;
    overflow: hidden;
    color: var(--blue)
}

.rocket-trail svg {
    width: 12px;
    height: 100%;
    display: block
}

@media (prefers-reduced-motion: reduce) {
    .kb-root .homepage-approved .rocket-rail img {
        transition: none !important;
    }
}

.new-app:has(.rocket-rail) > .shell-content {
    max-width: 1200px;
    padding-inline: 28px;
    margin-inline: auto
}

.partner-terminal {
    display: flex;
    gap: 8px;
    min-height: 3.6em;
    align-items: baseline;
    margin-top: 36px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--cream)
}

.partner-terminal .terminal-cursor {
    flex: none
}

.join-stage {
    position: relative
}

.join-cta {
    min-height: 140px;
    transition: background-color .08s linear
}

.partners a {
    transform: none
}

.partners img {
    max-width: 160px;
    width: auto
}

.screen-auth .MuiAlert-message {
    width: 100%
}

@keyframes slide-arrive {
    from {
        opacity: .3
    }
    to {
        opacity: 1
    }
}

@keyframes menu-arrive {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width: 1279px) {
    .course-overview-grid {
        grid-template-columns:minmax(0, 1fr) 320px
    }

    .learning-workspace {
        /* Same clamp as the desktop rule above — narrower tablet track was
           240px, below the 320px operator floor (see chatSidebarLayout.ts). */
        grid-template-columns:clamp(320px, 24vw, 400px) minmax(0, 1fr);
        gap: 20px
    }

    .rocket-rail {
        width: 42px
    }

    .rocket-rail img {
        width: 40px
    }

    .new-app:has(.rocket-rail) > .shell-content {
        padding-inline: 38px
    }

    .screen-title h1 {
        font-size: 30px
    }
}

@media (max-width: 1023px) {
    .learning-workspace {
        display: block !important
    }

    .learning-curriculum {
        display: none !important
    }

    .learning-main {
        width: 100%
    }

    .course-overview-grid {
        grid-template-columns:minmax(0, 1fr)
    }

    .course-buybox {
        position: static
    }

    .full-navigation {
        grid-template-columns:repeat(2, 1fr);
        gap: 0 18px
    }

    .full-navigation > a {
        font-size: 16px
    }

    .screen-title h1 {
        font-size: 28px
    }

    .page-head {
        padding: 20px 0
    }

    .screen-body .MuiAccordionDetails-root {
        padding: 18px
    }

    .screen-body .MuiTabs-root {
        max-width: 100%
    }

    .screen-body .MuiDataGrid-cell {
        padding-inline: 12px
    }

    .screen-body .MuiCardContent-root {
        padding: 18px
    }

    .screen-auth {
        margin-top: 12px
    }

    .screen-auth .screen-body .MuiCard-root {
        padding: 24px 18px
    }

    .screen-auth .screen-title h1 {
        font-size: 28px
    }

    .rocket-rail {
        inset-inline-end: 2px !important;
        width: 28px
    }

    .rocket-rail img {
        width: 27px
    }

    .new-app:has(.rocket-rail) > .shell-content {
        padding-inline: 32px !important
    }

    .hero .terminal-live {
        padding-inline: 8px
    }

    .otp-digits {
        gap: 8px
    }

    .otp-digits .MuiInputBase-root {
        width: 46px;
        height: 54px
    }

    .screen-body > .MuiContainer-root {
        padding-inline: 0
    }

    .course-details .panel {
        padding: 20px
    }

    .screen-body .MuiTable-root {
        min-width: 620px
    }

    .screen-body .course-overview-grid .MuiTable-root {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .screen-profile-wallet-index .screen-body > div > div:first-child {
        display: grid;
        grid-template-columns:1fr
    }

    .partner-terminal {
        font-size: 12px
    }

    .partners a {
        min-width: 0;
        flex: 1
    }

    .partners img {
        max-width: 100%;
        height: 55px
    }
}

@media (prefers-reduced-motion: reduce) {
    .join-stage {
        height: auto !important
    }

    .join-cta {
        position: static !important;
        height: auto !important;
        min-height: 140px
    }

    .experience-image, .partners {
        transform: none !important
    }

    .terminal-cursor {
        opacity: 1
    }

    .new-app .MuiButton-root:hover {
        transform: none !important
    }
}

.hero-actions .MuiButton-root {
    background: transparent !important;
    color: var(--blue) !important;
    border: 2px solid var(--blue) !important
}

.hero-actions .MuiButton-root:first-child:before {
    animation: path-dot-color 1.8s ease-in-out infinite
}

.event-carousel-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px
}

.real-event-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px
}

.real-event-carousel > .MuiPaper-root {
    flex: 0 0 300px;
    scroll-snap-align: start;
    min-width: 0
}

.real-event-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.catalog-filters {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    min-width: 260px;
}

.catalog-results > .MuiStack-root:first-child {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.catalog-results .integrated-course {
    width: 100%;
    flex: none
}

.learning-gateway .gateway-intro {
    letter-spacing: 0
}

.more-page h1 {
    text-align: center;
    color: var(--cream);
    font-size: 32px;
    margin-bottom: 44px
}

.screen-courses-browse .page-head:has(+.screen-body .learning-gateway) {
    display: none
}

.screen-body .learning-category-grid {
    padding: 0
}

.screen-body .learning-category-copy {
    border: 1px solid var(--line)
}

.screen-auth .MuiInputBase-root input[type=email] {
    direction: ltr
}

.screen-profile-invoices-show .MuiTable-root {
    min-width: 0
}

@media (max-width: 1279px) {
    .catalog-results > .MuiStack-root:first-child {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .real-event-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 700px) {
    .catalog-results > .MuiStack-root:first-child, .real-event-grid {
        grid-template-columns:1fr
    }

    .real-event-carousel > .MuiPaper-root {
        flex-basis: 85%
    }

    .event-carousel-actions {
        justify-content: start;
        flex-wrap: wrap
    }

    .more-page h1 {
        font-size: 24px
    }

    .catalog-filters {
        position: static
    }

    .learning-category-copy h2 {
        font-size: 12px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .MuiButton-root:first-child:before {
        animation: none
    }
}

html[lang=en] body {
    font-family: HyperMontserrat, Arial, sans-serif !important
}

html[lang=en] .gateway-intro, html[lang=en] .learning-category h2 {
    font-family: HyperGravityTrial, HyperMontserrat, Arial, sans-serif !important
}

.learning-gateway .gateway-layout {
    left: 0
}

/* ── Live-session chrome scope (kb-live-session) ─────────────────────────
   Operator mandate (2026-11-16): every corner on the live-session surface
   is 1rem; only truly circular controls keep 50%. Scope class is applied
   in: Pages/Lecturer/LiveStream.tsx (host console), Player/ViewerStage.tsx
   (watch surface), ClientWrapper.tsx (chat sidebar .learning-curriculum).

   public/ui/conformance.css paints MUI chrome with !important rules
   (22px cards, 5px kb-buttons, 999px chips, 12px alerts, 999px tabs,
   5px outlined inputs) and loads AFTER this sheet — emotion sx cannot
   outrank it. Each selector below mirrors its conformance counterpart
   with .kb-live-session injected, so it is strictly MORE specific and
   wins regardless of sheet order. Circular components (kit kb-icon-button,
   RoundControl 50% sx, MuiAvatar, whiteboard color dots, the curriculum
   accordion's square Paper) are deliberately NOT targeted. ─────────── */

/* Cards, alerts, chips, outlined inputs (chat field) — mirrors
   .kb-root :is(.MuiCard-root,…) / .MuiAlert-root / .MuiChip-root /
   .MuiOutlinedInput-root. */
.kb-root .kb-live-session :is(.MuiCard-root,.MuiAlert-root,.MuiChip-root,.MuiOutlinedInput-root) {
    border-radius:1rem !important
}

/* Papers — mirrors the card rule; curriculum accordions stay square. */
.kb-root .kb-live-session .MuiPaper-root:not(.MuiAccordion-root) {
    border-radius:1rem !important
}

/* Tabs — mirrors .kb-root .MuiTabs-root .MuiTab-root (999px → 1rem). */
.kb-root .kb-live-session .MuiTabs-root .MuiTab-root {
    border-radius:1rem !important
}

/* Buttons — the second rule is the conformance kb-button rule (0,4,0)
   with the scope injected (0,5,0) so it strictly wins. */
.kb-root .kb-live-session .MuiButton-root:not(.kb-button-wrap) {
    border-radius:1rem !important
}

.kb-root .kb-live-session .kb-button.MuiButton-root:not(.kb-button-wrap) {
    border-radius:1rem !important
}

/* The chat sidebar column itself (conformance paints it 22px). */
.kb-root .kb-live-session.learning-curriculum {
    border-radius:1rem !important
}

/* ── Presenter focus mode (operator directive 2026-11-21): the live
   classroom page (Lecturer/LiveStream → ScreenFrame class
   .screen-lecturer-livestream) renders with the catalog "bare" flag, so
   ScreenFrame emits no page-head at all — no breadcrumb, no title block.
   The page itself paints one tiny "course · session" label strip
   (see LiveStream.tsx). useViewportFill measures the console's real top
   offset, so every saved pixel flows straight into the stage. ── */
.screen-lecturer-livestream .page-head {
    display:none
}
