/*
 | INTELLO EDU responsive foundation
 | mobile: 0-479 | large mobile: 480-767 | tablet: 768-1199
 | desktop: 1200-1439 | wide desktop: 1440+
 */
:root {
    --breakpoint-mobile: 0px;
    --breakpoint-large-mobile: 30rem;
    --breakpoint-tablet: 48rem;
    --breakpoint-desktop: 75rem;
    --breakpoint-wide-desktop: 90rem;
    --touch-target: 44px;
    --page-gutter: clamp(16px, 3vw, 38px);
    --section-gap: clamp(16px, 2vw, 24px);
    --card-padding: clamp(17px, 2vw, 24px);
    --grid-min-card: 230px;
    --form-label-control-gap: 12px;
    --form-group-gap: 26px;
    --sticky-header-offset: 0px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --type-page-title: clamp(25px, 2.5vw, 34px);
    --type-section-title: clamp(17px, 1.7vw, 22px);
    --type-hero-title: clamp(26px, 3vw, 43px);
    --type-kpi: clamp(20px, 2.1vw, 28px);
    --type-body: clamp(14px, 1vw, 15px);
    --icon-label-gap: 8px;
}

html {
    min-width: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:where(.edu-control,.edu-choice-group){scroll-margin-block-start:calc(var(--sticky-header-offset) + 12px)}

body {
    min-width: 0;
    overflow-x: clip;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

input,
select,
textarea {
    font-size: max(16px, 1em);
}

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

/* Shared icon/label contract: DOM order stays icon then text; `dir` places the
   icon at the logical start without reversing non-directional SVG artwork. */
.icon-label,
.icon-label-control {
    direction: inherit;
    flex-direction: row;
    align-items: center;
    gap: var(--icon-label-gap);
}

.icon-label {
    display: inline-flex;
    min-width: 0;
}

.icon-label__text {
    min-width: 0;
}

.icon-label__icon {
    flex: 0 0 1.25em;
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[dir="rtl"] :is(.icon-label, .icon-label-control, .sidebar nav a) {
    flex-direction: row;
}

html[dir="rtl"] :is(.icon-label__icon, .glass-bottom-nav__icon).is-directional,
html[dir="rtl"] .directional-icon {
    transform: scaleX(-1);
}

.button,
.mobile-nav,
.drawer-close,
.theme,
.notify,
.icon-button,
.tabs a,
.tabs button,
.pagination a,
.pagination button,
.table-action,
.sidebar nav a,
.admin button,
.portal-body button,
.language-control,
.appearance-control,
.password-toggle,
.check {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.shell,
.shell > main,
.content,
.card,
.grid-two,
.module-grid,
.kpis {
    min-width: 0;
}

.shell {
    grid-template-columns: 258px minmax(0, 1fr);
}

html[dir="rtl"] .shell {
    grid-template-columns: minmax(0, 1fr) 258px;
}

html[dir="rtl"] .sidebar {
    grid-column: 2;
    grid-row: 1;
}

html[dir="rtl"] .shell > main {
    grid-column: 1;
    grid-row: 1;
}

.content {
    width: 100%;
    max-width: 1460px;
    padding: clamp(25px, 3vw, 42px) var(--page-gutter) calc(60px + var(--safe-bottom));
    padding-inline-start: max(var(--page-gutter), var(--safe-left));
    padding-inline-end: max(var(--page-gutter), var(--safe-right));
}

.topbar {
    height: max(72px, calc(62px + var(--safe-top)));
    padding-inline: max(var(--page-gutter), var(--safe-left)) max(var(--page-gutter), var(--safe-right));
}

.responsive-app-bar__leading,
.responsive-app-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.responsive-app-bar__title {
    flex: 1 1 auto;
    min-width: 0;
}

.responsive-app-bar__actions {
    margin-inline-start: auto;
}

.responsive-app-bar__logo {
    display: none;
    flex: 0 0 auto;
    width: clamp(122px, 16vw, 154px);
    height: 42px;
    background: url('/branding/intello-edu/intello-edu-logo-light.png') no-repeat center / contain;
}

.header-language,
.theme,
.notify {
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #596477;
    font: 500 12px/1.4 inherit;
    text-decoration: none;
}

.header-language:hover,
.theme:hover,
.notify:hover {
    background: rgba(240, 106, 35, .08);
    color: #dc5c1b;
}

.header-language img {
    width: 20px;
    height: 14px;
    object-fit: contain;
}

.theme-icon,
.theme-action-name {
    display: none;
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme[data-action="light"] .theme-icon--action-light,
.theme[data-action="light"] .theme-action-name--light,
.theme[data-action="dark"] .theme-icon--action-dark,
.theme[data-action="dark"] .theme-action-name--dark,
html[data-theme="light"] .theme:not([data-action]) .theme-icon--action-dark,
html[data-theme="light"] .theme:not([data-action]) .theme-action-name--dark,
html[data-theme="dark"] .theme:not([data-action]) .theme-icon--action-light,
html[data-theme="dark"] .theme:not([data-action]) .theme-action-name--light {
    display: block;
}

@media (prefers-color-scheme: light) {
    html[data-theme="system"] .theme:not([data-action]) .theme-icon--action-dark,
    html[data-theme="system"] .theme:not([data-action]) .theme-action-name--dark { display: block; }
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .theme:not([data-action]) .theme-icon--action-light,
    html[data-theme="system"] .theme:not([data-action]) .theme-action-name--light { display: block; }
}

.sidebar-copyright {
    display: block;
    margin: 14px 8px 0;
    color: #718099;
    font-size: 8px;
    line-height: 1.65;
    text-align: start;
}

.page-head {
    gap: var(--section-gap);
}

.page-head h1 {
    font-size: var(--type-page-title);
    line-height: 1.25;
}

.card h3,
.hero h2 {
    font-size: var(--type-section-title);
}

.kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpis b {
    font-size: var(--type-kpi);
}

.grid-two {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-card)), 1fr));
}

.card {
    padding: var(--card-padding);
}

.hero {
    gap: var(--section-gap);
}

.hero > div:first-child {
    min-width: 0;
}

.bars {
    min-width: 0;
}

.chart {
    container-type: inline-size;
}

.form-group,
.quote label,
.form-card label {
    min-width: 0;
}

.form-group {
    display: grid;
    gap: var(--form-label-control-gap);
    margin-block-end: var(--form-group-gap);
}

.form-group > :is(input, select, textarea, .control-shell) {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.form-group > label,
.quote .form-group > label,
.form-card .form-group > label {
    margin: 0;
    line-height: 1.5;
}

.quote .form-group > :is(input, select),
.form-card .form-group > input {
    margin: 0;
}

.filters {
    align-items: center;
}

.filters input,
.form-card input,
.form-card select,
.quote input,
.quote select,
.form-control {
    min-height: 48px;
    min-width: 0;
}

.choice-control {
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    touch-action: manipulation;
}

.choice-control input:is([type="checkbox"], [type="radio"]) {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.responsive-table {
    min-width: 680px;
}

.responsive-table th,
.responsive-table td {
    white-space: nowrap;
}

.responsive-table {
    text-align: start;
}

html[dir="rtl"] .sidebar nav a {
    flex-direction: row;
}

.responsive-table td:first-child,
.responsive-table th:first-child {
    white-space: normal;
}

.table-scroll-hint {
    display: none;
    margin: 0 0 10px;
    color: #7c8799;
    font-size: 11px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    border: 0;
    background: rgba(9, 16, 28, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.drawer-close {
    display: none;
    place-items: center;
    position: absolute;
    inset-block-start: max(12px, var(--safe-top));
    inset-inline-end: 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 23px;
}

.mobile-nav {
    display: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 21px;
}

.tabs {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.tabs > * {
    flex: 0 0 auto;
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: max(16px, var(--safe-top)) max(16px, var(--safe-right)) max(16px, var(--safe-bottom)) max(16px, var(--safe-left));
    background: rgba(9, 16, 28, .58);
}

.modal {
    width: min(100%, 680px);
    max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
}

.drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 31;
    width: min(92vw, 420px);
    max-width: 100%;
    overflow-y: auto;
    padding-block-end: var(--safe-bottom);
    background: #fff;
}

html[dir="rtl"] .drawer {
    inset-inline: 0 auto;
}

@media (min-width: 1440px) {
    :root {
        --page-gutter: 42px;
        --card-padding: 24px;
    }
}

@media (max-width: 1199px) {
    .responsive-app-bar {
        min-height: calc(64px + var(--safe-top));
        display: flex;
        align-items: center;
        gap: clamp(8px, 2vw, 18px);
        padding-block: var(--safe-top) 0;
        padding-inline-start: max(16px, var(--safe-left));
        padding-inline-end: max(16px, var(--safe-right));
        border-bottom: 1px solid #e6e9ee;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 4px 18px rgba(20, 31, 48, .055);
    }

    .responsive-app-bar__logo {
        display: block;
    }

    .shell,
    html[dir="rtl"] .shell {
        display: block;
    }

    .shell > main,
    html[dir="rtl"] .shell > main {
        width: 100%;
    }

    .sidebar,
    html[dir="rtl"] .sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 10;
        width: min(86vw, 288px);
        height: 100dvh;
        padding-block-start: max(25px, calc(16px + var(--safe-top)));
        padding-block-end: max(18px, var(--safe-bottom));
        overflow-y: auto;
        transform: translateX(calc(-100% - 32px));
        transition: transform .22s ease;
        box-shadow: 14px 0 34px rgba(8, 14, 25, .24);
    }

    html[dir="rtl"] .sidebar {
        transform: translateX(calc(100% + 32px));
        box-shadow: -14px 0 34px rgba(8, 14, 25, .24);
    }

    .nav-open .sidebar,
    html[dir="rtl"] .nav-open .sidebar {
        transform: translateX(0);
    }

    .nav-open .drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .drawer-close,
    .mobile-nav {
        display: grid;
    }

    .brand {
        width: 190px;
        height: 52px;
        margin-inline: 8px;
        background-image: url('/branding/intello-edu/intello-edu-logo-dark.png');
    }

    .brand span,
    .sidebar nav span,
    .sidebar nav p,
    .sidebar nav em,
    .admin span:not(.avatar),
    .admin form {
        display: initial;
    }

    .sidebar nav a {
        justify-content: flex-start;
        font-size: 13px;
    }

    .admin {
        justify-content: flex-start;
    }

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

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

@media (max-width: 767px) {
    :root {
        --page-gutter: 16px;
        --card-padding: 17px;
        --section-gap: 16px;
        --form-group-gap: 22px;
    }

    .responsive-app-bar {
        min-height: calc(60px + var(--safe-top));
        gap: 8px;
        padding-inline-start: max(12px, var(--safe-left));
        padding-inline-end: max(12px, var(--safe-right));
    }

    .topbar {
        min-height: calc(60px + var(--safe-top));
        height: auto;
        gap: 8px;
        padding-block: max(8px, var(--safe-top)) 8px;
    }

    .responsive-app-bar__leading,
    .responsive-app-bar__actions,
    .top-actions {
        gap: 6px;
    }

    .responsive-app-bar .login-tools {
        gap: 6px;
    }

    .responsive-app-bar .responsive-language-control,
    .responsive-app-bar .responsive-appearance-control {
        position: relative;
        box-sizing: border-box;
        height: 44px;
        min-height: 44px;
    }

    .responsive-app-bar .responsive-language-control {
        gap: 7px;
        padding: 5px 9px;
    }

    .responsive-app-bar .responsive-language-control img,
    .responsive-app-bar .responsive-language-control .language-flag {
        width: 19px;
        height: 14px;
        flex: 0 0 19px;
    }

    .responsive-app-bar .responsive-appearance-control {
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .responsive-app-bar .responsive-language-control::after,
    .responsive-app-bar .responsive-appearance-control::after {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
    }

    .responsive-app-bar .responsive-appearance-control svg {
        width: 20px;
        height: 20px;
    }

    .responsive-app-bar .responsive-appearance-control span {
        display: none;
    }

    .platform-responsive-bar .responsive-app-bar__title {
        display: none;
    }

    .crumb {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-actions .theme span,
    .top-actions .notify {
        display: none;
    }

    .content {
        padding-block-start: 24px;
    }

    .crm-workspace :is(input:not([type="hidden"]), textarea, select, [role="combobox"], .edu-toggle),
    .crm-touch-list a,
    .crm-touch-list button {
        min-height: var(--touch-target);
    }

    .crm-touch-list a {
        display: inline-flex;
        align-items: center;
        min-width: var(--touch-target);
    }

    .page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .shell .page-header--surface {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .page-header--surface > .page-header__lead,
    .page-header--surface > .page-header__actions {
        inline-size: auto;
    }

    .page-header--surface > .page-header__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .page-header--surface > .page-header__actions > :is(.button, .edu-button) {
        inline-size: 100%;
        min-inline-size: 0;
        white-space: normal;
    }

    .page-head > .button,
    .head-actions,
    .head-actions .button {
        width: 100%;
    }

    .head-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .hero {
        min-height: 0;
        padding: 23px;
    }

    .hero-mini {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .orb {
        display: none;
    }

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

    .filters,
    .color-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filters .button {
        width: 100%;
    }

    .responsive-table--stack {
        min-width: 0;
    }

    .responsive-table--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .responsive-table--stack,
    .responsive-table--stack tbody,
    .responsive-table--stack tr,
    .responsive-table--stack td {
        display: block;
        width: 100%;
    }

    .responsive-table--stack tbody {
        display: grid;
        gap: 12px;
    }

    .responsive-table--stack tr {
        padding: 10px 14px;
        border: 1px solid #e5e8ec;
        border-radius: 12px;
        background: #fff;
    }

    .responsive-table--stack td {
        display: grid;
        grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        text-align: end;
        white-space: normal;
    }

    .responsive-table--stack td::before {
        content: attr(data-label);
        color: #8791a1;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .4px;
        text-align: start;
    }

    .responsive-table--stack td:first-child {
        display: block;
        padding-block-start: 5px;
        text-align: start;
    }

    .responsive-table--stack td:first-child::before {
        display: none;
    }

    .responsive-table--stack .empty {
        display: block;
        text-align: center;
    }

    .responsive-table--scroll {
        min-width: 640px;
    }

    .table-wrap:has(.responsive-table--scroll) + .table-scroll-hint,
    .table-scroll-hint {
        display: block;
    }

    .modal-backdrop {
        place-items: end center;
        padding: 0;
    }

    .modal {
        width: 100%;
        max-height: calc(92dvh - var(--safe-top));
        border-radius: 18px 18px 0 0;
        padding-block-end: var(--safe-bottom);
    }
}

@media (max-width: 479px) {
    :root {
        --page-gutter: 14px;
        --card-padding: 15px;
    }

    .crumb span {
        display: none;
    }

    .platform-responsive-bar .avatar {
        display: none;
    }

    .platform-responsive-bar :is(.shell-search-trigger, .help-action, .responsive-appearance-control) {
        display: none;
    }

    .platform-responsive-bar .app-shell-notification__trigger {
        inline-size: var(--touch-target);
        min-inline-size: var(--touch-target);
        min-block-size: var(--touch-target);
    }

    .platform-responsive-bar .app-shell-notification__panel {
        max-inline-size: calc(100vw - 24px);
    }

    .responsive-app-bar .responsive-app-bar__logo {
        width: 118px;
        height: 40px;
    }

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

    .kpis article > span {
        display: grid;
    }

    .card-head {
        gap: 10px;
    }

    .legend {
        flex-wrap: wrap;
    }

    .responsive-table--stack td {
        grid-template-columns: minmax(82px, .75fr) minmax(0, 1.25fr);
    }

    .crm-platform-staff-workspace .responsive-table--stack td:last-child {
        display: block;
        text-align: start;
    }

    .crm-platform-staff-workspace .responsive-table--stack td:last-child::before {
        display: block;
        margin-block-end: 10px;
    }
}

@media (max-width: 360px) {
    .platform-responsive-bar :is(.shell-search-trigger, .help-action, .responsive-appearance-control) {
        display: none;
    }

    .platform-responsive-bar .responsive-app-bar__logo { width: 92px; }
    .platform-responsive-bar .responsive-language-control span { display: none; }
    .platform-responsive-bar .responsive-language-control { inline-size: var(--touch-target); padding-inline: 0; }
}

@media (hover: none), (pointer: coarse) {
    .button:hover,
    .kpis article:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .platform-responsive-bar .responsive-app-bar__title {
        display: none;
    }

    .platform-responsive-bar .top-actions {
        min-width: 0;
    }

    .platform-responsive-bar .shell-search-trigger :is(span, kbd),
    .platform-responsive-bar .help-action span,
    .platform-responsive-bar .responsive-appearance-control span {
        display: none;
    }

    .platform-responsive-bar :is(.shell-search-trigger, .help-action),
    .crm-workspace .edu-password-toggle {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
    }

    .crm-workspace .edu-password-toggle {
        inline-size: var(--touch-target);
        block-size: var(--touch-target);
        inset-inline-end: 2px;
    }

    .crm-workspace .crm-touch-list a {
        display: inline-flex;
        align-items: center;
        min-width: var(--touch-target);
        min-height: var(--touch-target);
    }
}

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

html[data-theme="dark"] .responsive-table--stack tr,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .drawer {
    border-color: #273449;
    background: #182235;
}

/* Reusable glass bottom navigation. Hidden unless a page explicitly renders it. */
.glass-bottom-nav {
    display: none;
    position: fixed;
    z-index: 24;
    inset-inline-start: max(12px, var(--safe-left));
    inset-inline-end: max(12px, var(--safe-right));
    bottom: max(12px, var(--safe-bottom));
    width: min(calc(100% - 24px - var(--safe-left) - var(--safe-right)), 560px);
    margin-inline: auto;
    padding: 7px;
    border: 1px solid rgba(177, 185, 197, .68);
    border-radius: 24px;
    background: rgba(252, 250, 247, .78);
    box-shadow: 0 14px 38px rgba(28, 37, 50, .18), inset 0 1px 0 rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
    transition: opacity .16s ease, transform .16s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-bottom-nav {
        background: rgba(252, 250, 247, .96);
    }
}

.glass-bottom-nav__list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 4px;
    direction: inherit;
}
.glass-bottom-nav[data-bottom-nav-items="2"] .glass-bottom-nav__list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.glass-bottom-nav[data-bottom-nav-items="3"] .glass-bottom-nav__list { grid-template-columns:repeat(3,minmax(0,1fr)); }
.glass-bottom-nav[data-bottom-nav-items="4"] .glass-bottom-nav__list { grid-template-columns:repeat(4,minmax(0,1fr)); }
.glass-bottom-nav[data-bottom-nav-items="5"] .glass-bottom-nav__list { grid-template-columns:repeat(5,minmax(0,1fr)); }
.glass-bottom-nav[data-bottom-nav-items="6"] .glass-bottom-nav__list { grid-template-columns:repeat(6,minmax(0,1fr)); }
.glass-bottom-nav--scroll .glass-bottom-nav__list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
}
.glass-bottom-nav--scroll .glass-bottom-nav__item {
    flex: 0 0 72px;
    scroll-snap-align: start;
}
.ui-catalogue .glass-bottom-nav--catalogue {
    position: relative;
    display: block;
    inset: auto;
    width: min(100%, 560px);
}

.glass-bottom-nav__item {
    position: relative;
    min-width: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 3px 5px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: #4c586a;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.glass-bottom-nav__item:hover {
    background: rgba(255, 255, 255, .48);
    color: #293548;
}

.glass-bottom-nav__item:focus-visible {
    outline: 3px solid rgba(242, 119, 42, .42);
    outline-offset: 1px;
}

.glass-bottom-nav__item.is-active {
    border-color: rgba(241, 118, 40, .2);
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 239, 225, .78));
    color: #202c3e;
    box-shadow: 0 5px 16px rgba(35, 45, 59, .1), inset 0 1px 0 rgba(255, 255, 255, .86);
    font-weight: 600;
}

.glass-bottom-nav__icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
}

.glass-bottom-nav__icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glass-bottom-nav__item.is-active .glass-bottom-nav__icon {
    color: #ed681f;
    stroke-width: 2;
}

.glass-bottom-nav__label {
    width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.glass-bottom-nav__label--compact {
    display: none;
}

.glass-bottom-nav__icon-wrap[data-visual-accent] .glass-bottom-nav__icon { color: var(--visual-icon-foreground); }

.glass-bottom-nav__active-mark {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-start: 50%;
    width: 15px;
    height: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #ed681f;
}

html[dir="rtl"] .glass-bottom-nav__active-mark {
    transform: translateX(50%);
}

.glass-bottom-nav__badge {
    position: absolute;
    inset-block-start: -4px;
    inset-inline-end: -9px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding-inline: 4px;
    border: 2px solid rgba(252, 250, 247, .92);
    border-radius: 999px;
    background: #ed681f;
    color: #fff;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

html[dir="rtl"] .glass-bottom-nav__icon.is-directional {
    transform: scaleX(-1);
}

.bottom-nav-keyboard .glass-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 32px + var(--safe-bottom)));
}

@media (max-width: 767px) {
    .glass-bottom-nav {
        display: block;
    }

    .has-glass-bottom-nav .content {
        padding-bottom: calc(112px + var(--safe-bottom));
    }

    .tenant-application:has(.glass-bottom-nav) .tenant-application__content {
        padding-block-end: calc(132px + var(--safe-bottom));
    }

    .glass-bottom-nav[data-bottom-nav-items="6"] .glass-bottom-nav__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tenant-application:has(.glass-bottom-nav[data-bottom-nav-items="6"]) .tenant-application__content {
        padding-block-end: calc(198px + var(--safe-bottom));
    }
}

@media (max-width: 480px) {
    .glass-bottom-nav {
        padding-inline: 5px;
    }

    .glass-bottom-nav__list {
        gap: 2px;
    }

    .glass-bottom-nav__item {
        padding-inline: 0;
    }

    .glass-bottom-nav__item.has-compact-label .glass-bottom-nav__label--full {
        display: none;
    }

    .glass-bottom-nav__item.has-compact-label .glass-bottom-nav__label--compact {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .glass-bottom-nav--tablet {
        display: block;
    }

    .has-glass-bottom-nav--tablet .content {
        padding-bottom: calc(116px + var(--safe-bottom));
    }

    .tenant-application:has(.glass-bottom-nav--tablet) .tenant-application__content {
        padding-block-end: calc(132px + var(--safe-bottom));
    }
}

@media (max-height: 520px) and (max-width: 1023px) {
    .glass-bottom-nav {
        padding: 5px;
        border-radius: 20px;
    }

    .glass-bottom-nav__item {
        min-height: 48px;
    }

    .glass-bottom-nav__label {
        display: none;
    }
}

html[data-theme="dark"] .glass-bottom-nav {
    border-color: rgba(186, 199, 219, .2);
    background: rgba(20, 31, 48, .78);
    box-shadow: 0 16px 42px rgba(3, 8, 17, .46), inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .glass-bottom-nav__item {
    color: #bdc8d8;
}

html[data-theme="dark"] .glass-bottom-nav__item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

html[data-theme="dark"] .glass-bottom-nav__item.is-active {
    border-color: rgba(245, 134, 65, .28);
    background: linear-gradient(145deg, rgba(58, 72, 94, .72), rgba(39, 51, 70, .7));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .glass-bottom-nav__badge {
    border-color: rgba(20, 31, 48, .96);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .glass-bottom-nav {
        border-color: rgba(186, 199, 219, .2);
        background: rgba(20, 31, 48, .78);
        box-shadow: 0 16px 42px rgba(3, 8, 17, .46), inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    html[data-theme="system"] .glass-bottom-nav__item {
        color: #bdc8d8;
    }

    html[data-theme="system"] .glass-bottom-nav__item:hover {
        background: rgba(255, 255, 255, .07);
        color: #fff;
    }

    html[data-theme="system"] .glass-bottom-nav__item.is-active {
        border-color: rgba(245, 134, 65, .28);
        background: linear-gradient(145deg, rgba(58, 72, 94, .72), rgba(39, 51, 70, .7));
        color: #fff;
    }
}

html[data-theme="dark"] .header-language,
html[data-theme="dark"] .theme,
html[data-theme="dark"] .notify {
    color: #c8d1df;
}

html[data-theme="dark"] .responsive-app-bar {
    --shell-text: #edf1f7;
    --shell-muted: #aeb9c8;
    border-bottom-color: #2a384d;
    background: rgba(17, 26, 43, .98);
    color: var(--shell-text);
}

html[data-theme="dark"] .responsive-app-bar .top-actions :is(button, a, summary) {
    color: #c8d1df;
}

html[data-theme="dark"] .responsive-app-bar__logo {
    background-image: url('/branding/intello-edu/intello-edu-logo-dark.png');
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .header-language,
    html[data-theme="system"] .theme,
    html[data-theme="system"] .notify {
        color: #c8d1df;
    }

    html[data-theme="system"] .responsive-app-bar {
        --shell-text: #edf1f7;
        --shell-muted: #aeb9c8;
        border-bottom-color: #2a384d;
        background: rgba(17, 26, 43, .98);
        color: var(--shell-text);
    }

    html[data-theme="system"] .responsive-app-bar .top-actions :is(button, a, summary) {
        color: #c8d1df;
    }

    html[data-theme="system"] .responsive-app-bar__logo {
        background-image: url('/branding/intello-edu/intello-edu-logo-dark.png');
    }
}
