body.sheet-open { overflow: hidden; }
.main { padding-bottom: 110px; }
.floating-create-bar {
    position: fixed;
    left: calc(220px + (100vw - 220px) / 2);
    bottom: 18px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: min(600px, calc(100vw - 260px));
    padding: 7px;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px #0002;
    transform: translateX(-50%);
    transition: opacity .15s, transform .15s;
}
.floating-create-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.floating-create-bar button:hover, .floating-create-bar button:focus {
    background: #edf4ff;
    color: var(--blue);
    outline: none;
}
.floating-create-bar button span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: #edf4ff;
    color: var(--blue);
    font-size: 16px;
}
body.sheet-open .floating-create-bar { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.drawer.bottom-sheet {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    width: min(820px, calc(100% - 32px));
    max-height: min(88vh, 820px);
    padding: 22px 28px 28px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 45px #0002;
    transform: translate(-50%, 105%);
    transition: transform .25s ease;
}
.drawer.bottom-sheet.open { transform: translate(-50%, 0); }
.bottom-sheet .drawer-head { margin-bottom: 14px; }
.bottom-sheet .drawer-head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #d1d6db;
    transform: translateX(-50%);
}
.input-type-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 12px;
    background: #f2f4f6;
}
.input-type-tabs button {
    border: 0;
    border-radius: 9px;
    padding: 10px 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.input-type-tabs button.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 1px 5px #0001;
    font-weight: 700;
}
.sheet-close {
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    background: #f2f4f6;
    color: var(--muted);
    cursor: pointer;
}
@media (max-width: 600px) {
    .floating-create-bar {
        left: 50%;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: calc(100% - 16px);
        border-radius: 16px;
    }
    .floating-create-bar button { flex-direction: column; gap: 2px; min-height: 50px; font-size: 11px; }
    .floating-create-bar button span { width: 19px; height: 19px; }
    .drawer.bottom-sheet {
        width: 100%;
        max-height: 92vh;
        padding: 22px 18px 20px;
        border-radius: 20px 20px 0 0;
    }
    .input-type-tabs { grid-template-columns: repeat(2, 1fr); }
    .main { padding-bottom: 92px; }
}
@media (min-width: 601px) and (max-width: 800px) {
    .floating-create-bar { left: 50%; width: min(600px, calc(100% - 32px)); }
}
