.psb-dock,
#mytask-layout .btn.psb-tablet-menu-toggle {
    display: none;
}

@media (max-width: 1199.98px) {
    .psb-shell,
    .psb-public-shell {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }

    .psb-shell {
        height: 100dvh;
        padding-top: env(safe-area-inset-top);
        scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
        min-width: 0;
        width: 100%;
        padding-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
    }

    .psb-shell #content {
        min-width: 0;
        overflow-x: auto;
    }

    .psb-shell .table-responsive {
        max-width: 100%;
    }

    .psb-shell .psb-desktop-header {
        display: none;
    }

    #psb-mobile-account {
        padding: .25rem .5rem;
    }

    #psb-mobile-account .list-group-item {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .psb-dock,
    #psb-menu-dialog {
        --dock-background: rgb(255 255 255 / .84);
        --dock-ink: #161c24;
        --dock-active: #e8edf3;
        --dock-edge: rgb(35 52 77 / .16);
    }

    [data-theme="dark"] :is(.psb-dock, #psb-menu-dialog) {
        --dock-background: rgb(30 36 48 / .9);
        --dock-ink: #f8fafc;
        --dock-active: #3c4658;
        --dock-edge: rgb(255 255 255 / .24);
    }

    .psb-dock {
        position: fixed;
        z-index: 1025;
        inset-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
        bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
        display: flex;
        gap: .25rem;
        max-width: 34rem;
        margin-inline: auto;
        padding: .35rem;
        border: 1px solid var(--dock-edge);
        border-radius: 999px;
        background: var(--dock-background);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        backdrop-filter: blur(18px) saturate(150%);
        box-shadow: 0 8px 30px rgb(15 23 42 / .16), inset 0 1px rgb(255 255 255 / .4);
    }

    .psb-dock .psb-dock-item {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        min-height: 3.4rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .2rem;
        padding: .25rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--dock-ink);
        font: 600 .75rem/1.15 system-ui, sans-serif;
        text-align: center;
        text-decoration: none;
    }

    .psb-dock-item i {
        font-size: 1.35rem;
    }

    .psb-dock-item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .psb-dock .psb-dock-item:is(:hover, [aria-current], .psb-dock-active) {
        background: var(--dock-active);
    }

    .psb-dock-item:focus-visible,
    .psb-menu-close:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -3px;
    }

    #psb-menu-dialog {
        position: fixed;
        inset: auto 0 calc(.75rem + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        width: min(calc(100% - 1.5rem), 34rem);
        max-height: min(80vh, 42rem);
        max-height: min(80dvh, 42rem);
        margin: 0 auto;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        border: 1px solid var(--dock-edge);
        border-radius: 1.5rem;
        background: var(--dock-background);
        color: var(--dock-ink);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
    }

    #psb-menu-dialog::-webkit-scrollbar {
        display: none;
    }

    #psb-menu-dialog::backdrop {
        background: rgb(15 23 42 / .38);
    }

    #psb-menu-dialog .psb-menu-heading {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .5rem 1rem;
        background: var(--dock-background);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
    }

    .psb-menu-heading h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .psb-menu-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: var(--dock-active);
        color: inherit;
    }

    #psb-menu-dialog .psb-sidebar.sidebar {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
        border-radius: 0;
    }

    #psb-menu-dialog .menu-list > li > .m-link {
        min-height: 44px;
    }
}

@media (max-width: 575.98px) {
    .psb-shell .form-control,
    .psb-shell .form-select {
        font-size: 1rem;
    }
}

@media (max-width: 1199.98px) {
    .psb-landing .banner {
        height: auto;
        min-height: 100svh;
        background-attachment: scroll;
    }

    .psb-landing .banner-carve::before {
        height: 100%;
    }

    .psb-landing .overlay {
        height: auto;
        padding: clamp(2rem, 7vw, 5rem) 1rem 7rem;
    }

    .psb-landing .front-logo {
        width: clamp(8rem, 28vw, 16rem);
        padding-top: 0;
    }

    .psb-landing .overlay h1 {
        font-size: clamp(1.2rem, 4vw, 3rem);
    }

    .psb-landing .overlay h3 {
        font-size: clamp(1rem, 3vw, 2rem);
    }
}

#mytask-layout .main select:not([multiple], [size], .select2-hidden-accessible),
.psb-registration .registration-fields select {
    display: block;
    width: 100%;
    max-width: 100%;
    appearance: auto;
    background-image: none;
    padding-inline: .75rem;
}

#mytask-layout .main select:not([multiple], [size], .select2-hidden-accessible),
#mytask-layout .main select + .select2-container .select2-selection {
    min-height: calc(1.5em + .75rem + 2px);
    border: 1px solid var(--border-color);
    border-radius: .375rem;
    background-color: var(--card-color);
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
}

#mytask-layout .main select + .select2-container {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

#mytask-layout .main .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: auto;
    padding: .375rem 2rem .375rem .75rem;
}

#mytask-layout .main .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0;
    color: inherit;
    line-height: inherit;
}

#mytask-layout .main .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: .5rem;
    height: 100%;
}

#mytask-layout .main .select2-selection:focus-visible,
#mytask-layout .main .select2-container--open .select2-selection {
    border-color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

#mytask-layout .main select:disabled:not(.select2-hidden-accessible),
#mytask-layout .main .select2-container--disabled .select2-selection {
    background-color: var(--body-color);
    opacity: .75;
    cursor: not-allowed;
}

@media (max-width: 1199.98px) and (prefers-reduced-motion: no-preference) {
    .psb-dock-item:is([aria-current], .psb-dock-active) i {
        animation: psb-dock-bounce 380ms ease-out;
    }

    .psb-dock-item:active i {
        transform: scale(.85);
    }

    .psb-shell #content,
    #psb-menu-dialog[open] {
        animation: psb-slide-in 280ms cubic-bezier(.2, .65, .35, 1);
    }
}

@keyframes psb-dock-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-.4rem) scale(1.13); }
    65% { transform: translateY(.1rem) scale(.95); }
    85% { transform: translateY(-.12rem) scale(1.02); }
}

@keyframes psb-slide-in {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199.98px) {
    #mytask-layout {
        --psb-heading-size: clamp(1rem, .95rem + .35vw, 1.125rem);
        --psb-card-gap: clamp(.625rem, 2vw, 1rem);
        --psb-card-radius: .875rem;
        --psb-card-padding: clamp(.75rem, 2.6vw, 1rem);
        --psb-mobile-text: .875rem;
    }

    #mytask-layout .psb-shell {
        font-size: var(--psb-mobile-text);
        line-height: 1.5;
    }

    #mytask-layout .psb-shell :is(.card-body, .card-header, .card-footer) {
        min-width: 0;
        padding: var(--psb-card-padding);
    }

    #mytask-layout .psb-shell .nav-tabs .nav-link {
        min-height: 40px;
        font-size: var(--psb-mobile-text);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    #mytask-layout .psb-shell .btn:not(.nav-link, .note-btn, .btn-sm) {
        max-width: 100%;
        min-height: 44px;
        height: auto;
        padding: .5rem .75rem;
        font-size: var(--psb-mobile-text) !important;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #mytask-layout .psb-shell .btn i {
        flex-shrink: 0;
    }

    #mytask-layout .psb-shell :is(input.form-control, select.form-control, .form-select),
    #mytask-layout .psb-shell select + .select2-container .select2-selection {
        max-width: 100%;
        min-height: 40px;
        font-size: var(--psb-mobile-text) !important;
    }

    #mytask-layout .psb-shell .select2-selection__rendered {
        min-width: 0;
    }
}

.psb-student-notice { font-size: 1.75rem; }
.psb-completion-value { font-size: 1.875rem; }

@media (max-width: 1199.98px) {
    #mytask-layout .psb-shell .psb-student-notice {
        font-size: var(--psb-mobile-text);
    }

    #mytask-layout .psb-shell .psb-completion-value {
        font-size: var(--psb-heading-size);
    }
}

@media (max-width: 575.98px) {
    #mytask-layout .psb-shell :is(input.form-control:not([type="file"]), textarea.form-control, select.form-control, .form-select) {
        font-size: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    #mytask-layout > .psb-dock,
    #psb-mobile-account {
        display: none;
    }

    .psb-shell {
        padding-bottom: env(safe-area-inset-bottom, 0px);
        scroll-padding-bottom: 0;
    }

    .psb-shell .psb-desktop-header {
        display: block;
    }

    #mytask-layout .btn.psb-tablet-menu-toggle {
        display: inline-flex;
        margin-inline-end: .75rem;
    }

    .psb-shell .psb-navbar h3 {
        flex: 1;
        font-size: clamp(1rem, 2vw, 1.4rem);
    }

    .psb-shell .psb-navbar-preview {
        position: static;
        flex-basis: 100%;
        max-width: none;
        transform: none;
    }

    #psb-menu-dialog {
        inset: 0 auto 0 0;
        width: min(22rem, 85vw);
        height: 100%;
        max-height: none;
        margin: 0;
        border-radius: 0 1.5rem 1.5rem 0;
        animation: none;
    }

    #psb-menu-dialog .psb-sidebar.sidebar {
        min-height: calc(100dvh - 60px);
    }
}
