.home-page .quick-convert {
    padding: 64px clamp(24px, 4vw, 64px) 18px;
}

.home-page .tools-section {
    padding: 32px clamp(24px, 4vw, 64px) 100px;
}

.home-page .tools-section .container {
    width: min(100%, 1320px);
    align-items: stretch;
}
.home-page .tools-section__heading { margin-bottom: 24px; text-align: left; }
.home-page .tools-section__filters { justify-content: flex-start; }
.home-page .tools-section__count { max-width: none; margin-top: 24px; text-align: left; }
.home-page .tools-section #tools-list {
    max-width: none;
    align-items: stretch;
    grid-auto-rows: minmax(220px, auto);
}

.home-page .tools-section #tools-list > .grid-item {
    align-self: stretch;
    min-height: 220px;
}

.home-page .tools-section #tools-list .tool-card__description {
    margin-bottom: 18px;
}

.home-page .tools-section #tools-list .tool-card__action {
    margin-top: auto;
}

.home-page .quick-convert__container {
    width: min(100%, 1320px);
    --hero-gap: clamp(36px, 5vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    column-gap: var(--hero-gap);
}

.home-page .quick-convert__hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: center;
    column-gap: var(--hero-gap);
}

.home-page .quick-convert__upload { align-self: center; }

.home-page .quick-convert__heading {
    max-width: 730px;
    margin: 0;
    text-align: left;
}

.home-page .quick-convert__heading h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(38px, 3.2vw, 50px);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.quick-convert__headline-primary,
.quick-convert__headline-accent { display: block; }

.home-page .quick-convert__headline-primary {
    color: #171717;
    font-weight: 550;
}

.home-page .quick-convert__headline-accent {
    color: #b94834;
    font-weight: 750;
}

html[data-theme="dark"] .home-page .quick-convert__headline-primary { color: #f5f5f5; }
html[data-theme="dark"] .home-page .quick-convert__headline-accent { color: #ff8d76; }

.home-page .quick-convert__heading p {
    max-width: 520px;
    margin-top: 21px;
    color: var(--tb-page-muted, #6e6d69);
    font-size: 16px;
    line-height: 1.5;
}

.quick-convert__upload-label {
    display: block;
    margin-bottom: 16px;
    color: var(--tb-page-muted, #777);
    font-size: 14px;
    font-weight: 600;
}

.home-page .quick-convert__upload .quick-convert__drop {
    width: 100%;
    height: 300px;
    min-height: 0;
    margin: 0;
    padding: 30px 24px;
    gap: 14px;
    border-radius: 18px;
}

.home-page .quick-convert__upload .quick-convert__drop strong {
    font-size: 18px;
}

.home-page .quick-convert__upload .quick-convert__drop-caption {
    max-width: 260px;
    line-height: 1.5;
}

.quick-convert__format-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.quick-convert__format-chips > span {
    padding: 4px 7px;
    border: 1px solid #dcdcdc;
    border-radius: 7px;
    background: #fff;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

html[data-theme="dark"] .quick-convert__format-chips > span {
    border-color: var(--tb-page-line);
    background: var(--tb-page-raised);
    color: var(--tb-page-muted);
}

.home-page .quick-convert__upload .quick-convert__drop--compact {
    height: 200px;
    max-height: 200px;
    padding: 16px;
    gap: 8px;
}

.quick-convert__drop--compact .quick-convert__format-chips { display: none; }

.home-page .quick-convert__workspace {
    grid-column: 1 / -1;
    margin-top: 24px;
    scroll-margin-top: 80px;
}

.quick-convert__find {
    grid-column: 1 / -1;
    width: 100%;
    margin: 24px 0 0;
}

.quick-convert__find p {
    margin-bottom: 12px;
    color: var(--tb-page-muted, #777);
    font-size: 14px;
    font-weight: 600;
}

.home-page .quick-convert__find .search-bar {
    width: 100%;
    max-width: none;
    min-height: 58px;
    margin: 0;
}

.home-page .tools-section-message,
.home-page .tools-section-message.fade-in {
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.15;
}

.batch-drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(245 243 240 / 34%);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    pointer-events: none;
}

.batch-drop-overlay[hidden] { display: none; }

.batch-drop-overlay__prompt {
    width: min(100%, 560px);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 36px;
    border: 2px dashed #b94834;
    border-radius: 24px;
    background: #fff;
    color: #171717;
    text-align: center;
    box-shadow: 0 30px 90px rgb(0 0 0 / 14%);
}

.batch-drop-overlay__icon {
    color: #b94834;
    font-size: 48px;
    line-height: 1;
}

.batch-drop-overlay__prompt strong {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.batch-drop-overlay__prompt > span:last-child {
    color: #66615d;
    font-size: 16px;
    line-height: 1.5;
}

html[data-theme="dark"] .batch-drop-overlay { background: rgb(4 4 4 / 40%); }
html[data-theme="dark"] .batch-drop-overlay__prompt {
    border-color: #ff8d76;
    background: #171717;
    color: #f5f5f5;
    box-shadow: 0 30px 90px rgb(0 0 0 / 40%);
}
html[data-theme="dark"] .batch-drop-overlay__icon { color: #ff8d76; }
html[data-theme="dark"] .batch-drop-overlay__prompt > span:last-child { color: #b8b6b3; }

@media (max-width: 1220px) {
    .home-page .quick-convert__container { grid-template-columns: minmax(0, 1fr); }

    .home-page .quick-convert__hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        row-gap: 32px;
    }

    .quick-convert__upload { max-width: 450px; }
    .home-page .quick-convert__upload .quick-convert__drop { height: 300px; max-height: 300px; }
    .home-page .quick-convert__upload .quick-convert__drop--compact { height: 180px; max-height: 180px; }
}

@media (max-width: 600px) {
    .home-page .quick-convert { padding: 42px 18px 18px; }
    .home-page .tools-section { padding: 32px 18px 70px; }
    .quick-convert__hero { row-gap: 26px; }
    .home-page .quick-convert__heading h1 { font-size: clamp(32px, 8.5vw, 38px); }
    .home-page .quick-convert__heading p { margin-top: 18px; font-size: 15px; }
    .quick-convert__upload { max-width: none; }
    .home-page .quick-convert__upload .quick-convert__drop { height: 230px; max-height: 230px; }
    .home-page .quick-convert__upload .quick-convert__drop--compact { height: 160px; max-height: 160px; }
    .quick-convert__find { margin-top: 24px; }
    .batch-drop-overlay__prompt { min-height: 230px; padding: 26px 20px; }
    .batch-drop-overlay__icon { font-size: 40px; }
    .batch-drop-overlay__prompt > span:last-child { font-size: 14px; }
}
