.page {
    padding-bottom: 96px;
}

.topbar-holder {
    width: 62px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field:last-child {
    margin-bottom: 4px;
}

.label {
    display: block;
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 6px;
}

.label i {
    color: var(--danger);
    font-style: normal;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    background: #fbfcfd;
    color: var(--text);
    outline: none;
    font-family: inherit;
    appearance: none;
}

.input:focus {
    border-color: var(--brand);
    background: #fff;
}

select.input {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.hint {
    display: block;
    font-size: 12px;
    color: #9aa1ab;
    margin-top: 5px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -6px 0 16px;
}

.chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--sub);
    font-size: 12.5px;
    padding: 5px 11px;
    border-radius: 16px;
    cursor: pointer;
}

.chip:active,
.chip.picked {
    background: #eef4ff;
    border-color: #cddffd;
    color: var(--brand);
}

.segmented {
    display: flex;
    gap: 6px;
    background: #ebedf0;
    padding: 4px;
    border-radius: 11px;
}

.seg {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--sub);
    cursor: pointer;
    font-family: inherit;
}

.seg.active {
    background: #fff;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1);
}

/* 分类格子：一屏选完，不用弹滚轮 */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cat {
    border: 1px solid transparent;
    background: #f2f4f7;
    color: var(--text);
    font-size: 13.5px;
    padding: 9px 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    line-height: 1.2;
    transition: transform .12s, border-color .12s, background .12s;
}

.cat:active {
    transform: scale(.96);
}

.cat.active {
    border-color: var(--brand);
    background: #eef4ff;
    color: var(--brand);
    font-weight: 600;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 246, 248, .94);
    backdrop-filter: blur(8px);
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.btn-primary {
    flex: 1;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:disabled {
    opacity: .6;
}

.btn-ghost {
    border: 1px solid #f6d3d4;
    background: #fef4f4;
    color: var(--danger);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}
