.home-search-entry {
    width: min(100%, 760px);
    min-height: clamp(30rem, 64vh, 44rem);
    margin: 0 auto;
    padding: clamp(3.5rem, 10vh, 7.5rem) 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-search-entry__semantic-title {
    margin: 0 0 1.35rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 650;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-align: center;
}

.home-search-entry__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.home-search-entry__logo {
    width: clamp(4rem, 8vw, 5.75rem);
    height: auto;
    flex: 0 0 auto;
}

.home-search-entry__form {
    width: 100%;
}

.home-search-control {
    width: 100%;
    min-height: 4.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem 0.45rem 1.35rem;
    border: 1px solid rgba(39, 31, 23, 0.12);
    border-radius: var(--radius-full);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 12px 32px rgba(67, 48, 30, 0.1);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-search-control:focus-within {
    border-color: rgba(39, 31, 23, 0.22);
    background: var(--surface-strong);
    box-shadow: 0 16px 38px rgba(67, 48, 30, 0.14), 0 0 0 4px rgba(17, 17, 17, 0.035);
}

.home-search-control__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-search-control__selection {
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.home-search-control__selection::placeholder {
    color: var(--ink-faint);
    opacity: 1;
}

.home-search-control__submit,
.home-search-control__upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-search-control__submit {
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    color: #fffdf8;
    background: #1c1916;
    font-size: 0.86rem;
}

.home-search-control__submit[hidden] {
    display: none;
}

.home-search-control__submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.home-search-control__upload {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    color: var(--ink);
    background: rgba(17, 17, 17, 0.055);
    border-color: rgba(39, 31, 23, 0.08);
    font-size: 1.45rem;
    font-weight: 500;
}

.home-search-control__submit:not(:disabled):hover,
.home-search-control__upload:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.home-search-control__submit:focus-visible,
.home-search-control__upload:focus-visible {
    outline: 3px solid rgba(178, 74, 44, 0.18);
    outline-offset: 2px;
}

.home-search-entry__form:not(.is-submitting) .upload-progress {
    display: none;
}

.home-search-entry__form .upload-progress {
    margin-top: 0.85rem;
}

.home-search-entry__quota {
    margin: 1rem 0 0;
    color: var(--ink-faint);
    font-size: 0.9rem;
    text-align: center;
}

.home-search-entry__quota strong {
    color: var(--ink-soft);
}

@media (max-width: 720px) {
    .home-search-entry {
        min-height: clamp(27rem, 58vh, 36rem);
        padding-top: clamp(2.5rem, 8vh, 4.5rem);
    }

    .home-search-entry__brand {
        margin-bottom: 0.85rem;
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .home-search-entry__semantic-title {
        margin-bottom: 1.15rem;
        font-size: 1rem;
    }

    .home-search-entry__logo {
        width: clamp(3.6rem, 16vw, 4.6rem);
    }
}

@media (max-width: 440px) {
    .home-search-control {
        min-height: 3.85rem;
        gap: 0.35rem;
        padding-left: 1rem;
    }

    .home-search-control__submit {
        min-height: 2.6rem;
        padding-inline: 0.75rem;
        font-size: 0.8rem;
    }

    .home-search-control__upload {
        width: 2.9rem;
        height: 2.9rem;
    }
}
