.create-grid
{
    transition: transform .98s cubic-bezier(.2, .8, .2, 1);
}

.create-form
{
    width: 100%;
    position: absolute;
    transition: transform .58s cubic-bezier(.2, .8, .2, 1);
    height: 90%; /* не перекрывать нижний navbar */
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    background: var(--bg-custom);
    box-shadow: 0 -10px 24px color-mix(in oklab, #000 18%, transparent);
    display: flex;
    flex-direction: column;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 20px calc(20px + var(--app-safe-area-bottom, 0px));
    box-sizing: border-box;
}

.sheet-close
{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #fffa;
    border: 1px solid #0001;
}

.form-head h2
{
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.icon-btn
{
    appearance: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--muted-custom);
}

.icon-btn:active
{
    transform: scale(.96);
}

/* прокручиваемая часть */
.form-scroll
{
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 24px 16px;
}

/* поля */
.create-form label
{
    font-weight: 700;
    font-size: 14px;
    margin: 8px 0 6px;
}

.create-form input,
.create-form textarea,
.create-form select
{
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 14px;
    border: 1px solid color-mix(in oklab, var(--fg-custom) 18%, transparent);
    background: color-mix(in oklab, var(--bg-custom) 96%, transparent);
}

 .status-chat__composer .status-chat__composer-input {
    min-height: auto;
 }

.create-form textarea
{
    min-height: 200px;
    resize: vertical;
}

.row
{
    display: flex;
    gap: 8px;
    align-items: center;
}

.row [type="date"]
{
    max-width: min(100%, 320px);
}

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

.time-select select
{
    width: 44%;
    min-width: 0;
}

.time-separator
{
    width: 12%;
    text-align: center;
    color: #8b94a6;
    flex: 0 0 12%;
}

@media (max-width: 520px)
{
    .row--dates,
    .row--times
    {
        flex-direction: column;
        align-items: stretch;
    }
}

.col
{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.unit
{
    flex: 0 0 auto;
    padding: 0 10px;
    opacity: .8;
}

/* duration chips */
.duration-group
{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.seg
{
    appearance: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--fg-custom) 14%, transparent);
    background: color-mix(in oklab, var(--bg-custom) 94%, transparent);
}

.seg.active
{
    color: #fff;
    background: linear-gradient(180deg, var(--accent-custom), var(--accent-2-custom));
    border-color: transparent;
    box-shadow: 0 6px 16px color-mix(in oklab, var(--accent-custom) 35%, #000 0%);
}

.seg.geo
{
    white-space: nowrap;
}

/* uploader */
.uploader input[type=file]
{
    display: block;
}

.preview
{
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid color-mix(in oklab, var(--fg-custom) 12%, transparent);
}

.preview img
{
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sheet-btn
{
    flex: 1;
    height: 52px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
}

.sheet-btn--loading
{
    opacity: .8;
    cursor: default;
}

.sheet-btn__spinner
{
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    vertical-align: -3px;
    animation: sheet-btn-spin .8s linear infinite;
}

.sheet-btn:disabled
{
    opacity: .7;
}

.sheet-btn.ghost
{
    background: color-mix(in oklab, var(--bg-custom) 92%, transparent);
    color: var(--fg-custom);
    border: 1px solid color-mix(in oklab, var(--fg-custom) 14%, transparent);
}

/* десктопные правки */
@media (min-width: 700px)
{
    .create-form
    {
        max-width: 700px;
        margin: 0 auto;
    }

    .form-head h2
    {
        font-size: 20px;
    }
}

@keyframes sheet-btn-spin
{
    to
    {
        transform: rotate(360deg);
    }
}
