html.kgm-ios {
    --m-ease: cubic-bezier(.32, .72, 0, 1);
    --m-tab: 76px;
    --kgi-tint: #f0cd74;
    --kgi-label: #bdb2b8;
    --kgi-bar: rgb(34 25 34 / 0.82);
    --kgi-line: rgb(252 248 244 / 0.15);
    --kgi-hl: rgb(252 248 244 / 0.18);
    --kgi-hl-soft: rgb(252 248 244 / 0.06);
    --kgi-lens: rgb(252 248 244 / 0.1);
    --kgi-lens-lifted: rgb(64 28 40 / 0.97);
    --kgi-brass-line: rgb(217 180 90 / 0.34);
    --kgi-bar-h: 64px;
    --kgi-bar-gap: max(10px, calc(var(--m-safe-b) - 12px));
}

html.kgm-ios body {
    animation-fill-mode: backwards;
}

html.kgm-ios header.nav.kgm-header {
    background: rgba(20, 16, 21, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
}

html.kgm-ios .kgm-tabbar.mobile-bottom-nav {
    left: calc(16px + var(--m-safe-l));
    right: auto;
    bottom: var(--kgi-bar-gap);
    width: min(480px, calc(100% - 32px - var(--m-safe-l) - var(--m-safe-r)));
    height: var(--kgi-bar-h);
    padding: 4px;
    border: 1px solid var(--kgi-line);
    border-radius: 999px;
    grid-template-columns: var(--kgi-cols, 1fr 1fr 1fr 1fr 1fr);
    gap: 0;
    background: var(--kgi-bar);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    box-shadow:
        0 20px 48px rgb(0 0 0 / 0.5),
        0 4px 14px rgb(0 0 0 / 0.28),
        inset 0 1px 0 var(--kgi-hl),
        inset 0 -1px 0 var(--kgi-hl-soft);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    scale: 1;
    transition:
        scale .45s cubic-bezier(.34, 1.4, .64, 1),
        width .5s cubic-bezier(.3, 1.25, .5, 1),
        height .4s var(--m-ease),
        grid-template-columns .5s cubic-bezier(.3, 1.25, .5, 1);
    transition:
        scale .5s linear(0, 0.174, 0.521, 0.849, 1.065, 1.155, 1.153, 1.104, 1.046, 1.002, 0.979, 0.973, 0.979, 0.988, 0.997, 1.002, 1.004, 1.004, 1.003, 1.001, 1, 0.999, 0.999, 0.999, 1),
        width .6s linear(0, 0.132, 0.4, 0.672, 0.881, 1.01, 1.071, 1.083, 1.07, 1.047, 1.025, 1.008, 0.998, 0.994, 0.993, 0.994, 0.996, 0.998, 0.999, 1, 1.001, 1.001, 1, 1, 1),
        height .4s var(--m-ease),
        grid-template-columns .6s linear(0, 0.132, 0.4, 0.672, 0.881, 1.01, 1.071, 1.083, 1.07, 1.047, 1.025, 1.008, 0.998, 0.994, 0.993, 0.994, 0.996, 0.998, 0.999, 1, 1.001, 1.001, 1, 1, 1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.kgm-ios .kgm-tabbar.mobile-bottom-nav {
        background: rgb(34 25 34 / 0.97);
    }
}

html.kgm-ios .kgm-tabbar.mobile-bottom-nav.is-pressing {
    scale: 1.015;
}

html.kgm-ios .kgm-tabbar.mobile-bottom-nav.is-compact {
    width: 58px;
    height: 58px;
}

html.kgm-ios .kgm-tabbar .mbn-item,
html.kgm-ios .kgm-tab-loupe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    padding: 0 2px;
    font-family: var(--m-body);
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
}

html.kgm-ios .kgm-tabbar .mbn-item {
    z-index: 1;
    border-radius: 999px;
    color: var(--kgi-label);
    font-weight: 500;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transition: color .25s var(--m-ease), opacity .25s var(--m-ease);
}

html.kgm-ios .kgm-tabbar .mbn-item > span:not(.kgm-tab-badge),
html.kgm-ios .kgm-tab-loupe-item > span {
    display: block;
    max-width: 100%;
    max-height: 2.4em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity .2s var(--m-ease), max-height .35s var(--m-ease);
}

html.kgm-ios .kgm-tabbar .mbn-item::before {
    display: none;
}

html.kgm-ios .kgm-tabbar .mbn-item svg,
html.kgm-ios .kgm-tab-loupe-item svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

html.kgm-ios .kgm-tabbar .mbn-item svg {
    transition: transform .15s var(--m-ease);
}

html.kgm-ios .kgm-tabbar .mbn-item:active svg {
    transform: scale(0.97);
}

html.kgm-ios .kgm-tabbar .mbn-item.is-active {
    color: var(--kgi-tint);
    font-weight: 600;
}

html.kgm-ios .kgm-tabbar.has-lensed .mbn-item.is-active:not(.is-lensed) {
    color: var(--kgi-label);
    font-weight: 500;
}

html.kgm-ios .kgm-tabbar.has-lensed .mbn-item.is-lensed {
    color: var(--kgi-tint);
}

html.kgm-ios .kgm-tabbar .mbn-item:active {
    color: inherit;
}

html.kgm-ios .kgm-tabbar.is-compact .mbn-item {
    overflow: hidden;
    padding: 0;
}

html.kgm-ios .kgm-tabbar.is-compact .mbn-item:not(.is-active) {
    opacity: 0;
    pointer-events: none;
}

html.kgm-ios .kgm-tabbar.is-compact .mbn-item > span:not(.kgm-tab-badge) {
    opacity: 0;
    max-height: 0;
}

html.kgm-ios .kgm-tabbar .kgm-tab-badge {
    top: 3px;
    z-index: 4;
    box-shadow: 0 0 0 2px rgb(34 25 34);
}

.kgm-tab-lens {
    display: none;
}

html.kgm-ios .kgm-tab-lens {
    --kgi-x: 0px;
    --kgi-w: 64px;
    --kgi-sx: 1;
    --kgi-sy: 1;
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    width: var(--kgi-w);
    border-radius: 999px;
    background: var(--kgi-lens);
    box-shadow: inset 0 1px 0 var(--kgi-hl);
    pointer-events: none;
    opacity: 1;
    translate: var(--kgi-x) 0;
    scale: var(--kgi-sx) var(--kgi-sy);
    transition:
        translate .45s cubic-bezier(.3, 1.25, .5, 1),
        scale .4s cubic-bezier(.34, 1.4, .64, 1),
        width .3s var(--m-ease),
        opacity .25s ease;
    transition:
        translate .55s linear(0, 0.132, 0.4, 0.672, 0.881, 1.01, 1.071, 1.083, 1.07, 1.047, 1.025, 1.008, 0.998, 0.994, 0.993, 0.994, 0.996, 0.998, 0.999, 1, 1.001, 1.001, 1, 1, 1),
        scale .5s linear(0, 0.174, 0.521, 0.849, 1.065, 1.155, 1.153, 1.104, 1.046, 1.002, 0.979, 0.973, 0.979, 0.988, 0.997, 1.002, 1.004, 1.004, 1.003, 1.001, 1, 0.999, 0.999, 0.999, 1),
        width .3s var(--m-ease),
        opacity .25s ease;
    will-change: translate, scale;
}

html.kgm-ios .kgm-tab-lens::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--kgi-lens-lifted);
    box-shadow:
        inset 0 1px 0 var(--kgi-hl),
        inset 0 -1px 0 var(--kgi-hl-soft),
        inset 0 0 0 1px var(--kgi-brass-line);
    opacity: 0;
    transition: opacity .15s var(--m-ease);
}

html.kgm-ios .kgm-tab-lens.is-idle {
    opacity: 0;
}

html.kgm-ios .kgm-tab-loupe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    display: grid;
    width: var(--kgi-cw, 100%);
    grid-template-columns: var(--kgi-cols, 1fr 1fr 1fr 1fr 1fr);
    color: var(--kgi-tint);
    font-weight: 600;
    opacity: 0;
    translate: calc(-1 * var(--kgi-x)) 0;
    transition:
        translate .45s cubic-bezier(.3, 1.25, .5, 1),
        opacity .15s var(--m-ease);
    transition:
        translate .55s linear(0, 0.132, 0.4, 0.672, 0.881, 1.01, 1.071, 1.083, 1.07, 1.047, 1.025, 1.008, 0.998, 0.994, 0.993, 0.994, 0.996, 0.998, 0.999, 1, 1.001, 1.001, 1, 1, 1),
        opacity .15s var(--m-ease);
}

html.kgm-ios .kgm-tabbar.is-pressing .kgm-tab-lens {
    z-index: 2;
    opacity: 1;
    box-shadow:
        inset 0 1px 0 var(--kgi-hl),
        0 12px 28px rgb(0 0 0 / 0.45);
}

html.kgm-ios .kgm-tabbar.is-pressing .kgm-tab-lens::before,
html.kgm-ios .kgm-tabbar.is-pressing .kgm-tab-loupe {
    opacity: 1;
}

html.kgm-ios .kgm-tabbar.is-dragging .kgm-tab-lens {
    transition:
        translate 0s,
        scale 0s,
        width .3s var(--m-ease),
        opacity .25s ease;
}

html.kgm-ios .kgm-tabbar.is-dragging .kgm-tab-loupe {
    transition: translate 0s, opacity .15s var(--m-ease);
}

html.kgm-ios .kgm-sheet-backdrop {
    background: rgba(8, 6, 10, 0.5);
    transition: opacity .38s var(--m-ease);
}

html.kgm-ios .kgm-sheet {
    background: rgba(29, 23, 30, 0.86);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    backdrop-filter: blur(30px) saturate(1.8);
    border-radius: 28px 28px 0 0;
    border-top-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -10px 40px rgba(0, 0, 0, 0.4);
    transition: transform .5s var(--m-ease);
}

html.kgm-ios .kgm-sheet-grip {
    width: 38px;
    height: 5px;
    margin-left: -19px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.24);
}

html.kgm-ios .kgm-btn {
    border-radius: 14px;
    transition: background-color .2s, border-color .2s, transform .35s cubic-bezier(.34, 1.4, .64, 1);
}

html.kgm-ios .kgm-btn:active {
    transform: scale(0.96);
    transition-duration: .2s, .2s, .12s;
}

html.kgm-ios .kgm-btn.is-quiet,
html.kgm-ios .kgm-btn.is-ghost {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
}

html.kgm-ios .toast {
    border-radius: 18px !important;
    background: rgba(51, 41, 58, 0.82) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
}

@media (prefers-reduced-motion: reduce) {
    html.kgm-ios .kgm-tabbar.mobile-bottom-nav,
    html.kgm-ios .kgm-tabbar .mbn-item,
    html.kgm-ios .kgm-tabbar .mbn-item > span,
    html.kgm-ios .kgm-tabbar .mbn-item svg,
    html.kgm-ios .kgm-tab-lens,
    html.kgm-ios .kgm-tab-lens::before,
    html.kgm-ios .kgm-tab-loupe,
    html.kgm-ios .kgm-sheet,
    html.kgm-ios .kgm-btn {
        transition: none !important;
    }

    html.kgm-ios .kgm-tabbar.mobile-bottom-nav.is-pressing {
        scale: 1;
    }
}
