.hub-hero { padding-bottom: 38px; }
.hub-hero h1 { max-width: 760px; }
.catalog { margin: 18px 0 36px; }
.section-heading { margin-bottom: 24px; }
.section-kicker { margin: 0 0 7px; color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .1em; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.35rem); letter-spacing: -.04em; }
.tool-category { margin-top: 28px; }
.tool-category > h3 { margin: 0 0 12px; color: var(--muted); font-size: .83rem; letter-spacing: .08em; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 116px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(31,64,104,.07); transition: .18s transform,.18s border-color,.18s box-shadow; }
.tool-tile:hover,
.tool-tile:focus-visible { transform: translateY(-2px); border-color: #9ec5f4; box-shadow: 0 15px 36px rgba(31,64,104,.12); }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #edf5ff; color: var(--blue); font-size: .7rem; font-weight: 900; }
.tool-tile-copy { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.tool-tile-copy strong { font-size: 1rem; }
.tool-tile-copy small { color: var(--muted); line-height: 1.45; }
.tool-arrow { color: var(--blue); font-size: 1.3rem; }
.hub-trust { margin-bottom: 60px; }
.tool-hero { position: relative; padding: 30px 0 28px; }
.tool-hero h1 { margin-top: 13px; font-size: clamp(2.3rem, 7vw, 3.6rem); }
.back-to-tools { display: block; width: max-content; margin: 0 auto 28px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.back-to-tools:hover { color: var(--blue); }
.upload-tool { margin-bottom: 24px; }
.dropzone { position: relative; min-height: 220px; border: 2px dashed #b8c8da; border-radius: 18px; background: var(--soft); transition: .18s border-color,.18s background; }
.dropzone.is-dragging { border-color: var(--blue); background: #edf5ff; }
.dropzone > input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-copy { position: relative; z-index: 1; pointer-events: none; display: flex; min-height: 216px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 28px; text-align: center; }
.dropzone-copy strong { font-size: 1.18rem; }
.dropzone-copy span { color: var(--muted); font-size: .88rem; }
.dropzone-copy button { pointer-events: auto; min-height: 42px; margin-top: 8px; padding: 0 18px; }
.upload-limits { margin: 10px 2px 0; color: var(--muted); font-size: .76rem; text-align: center; }
.tool-parameters { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.tool-parameter fieldset { margin: 0; padding: 0; border: 0; }
.tool-parameter legend,
.tool-parameter > label { display: block; margin-bottom: 9px; font-size: .88rem; font-weight: 700; }
.parameter-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parameter-choices label { position: relative; }
.parameter-choices input { position: absolute; opacity: 0; }
.parameter-choices span { display: flex; min-height: 48px; padding: 10px 14px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-align: center; transition: .18s border-color,.18s background,.18s box-shadow; }
.parameter-choices input:checked + span { border-color: var(--blue); background: #edf5ff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.parameter-choices input:focus-visible + span { box-shadow: 0 0 0 4px rgba(23,105,224,.15); }
.tool-parameter input[type=text],
.tool-parameter input[type=number],
.tool-parameter select { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--ink); font: inherit; }
.tool-parameter input[type=text]:focus,
.tool-parameter input[type=number]:focus,
.tool-parameter select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.12); }
.parameter-input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.parameter-input-with-unit > span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.tool-parameter > .parameter-checkbox { display: flex; min-height: 48px; align-items: center; gap: 11px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.parameter-checkbox input { width: 20px; height: 20px; accent-color: var(--blue); }
.parameter-help { margin: 7px 2px 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.selected-files { margin-top: 22px; }
.selected-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.selected-heading h2 { margin: 0; font-size: 1rem; }
.selected-heading span { color: var(--muted); font-size: .74rem; }
.selected-files ol { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: files; }
.selected-files li { counter-increment: files; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.selected-files li::before { content: counter(files); display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #edf5ff; color: var(--blue); font-size: .75rem; font-weight: 850; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 700; }
.file-size { color: var(--muted); font-size: .73rem; }
.text-button { margin-top: 15px; padding: 6px 0; background: transparent; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.text-button:hover { color: var(--danger); }
.new-conversion { display: inline-flex; min-height: 42px; margin-top: 14px; padding: 0 18px; align-items: center; justify-content: center; }
.download-result > strong { display: block; margin-top: 16px; }
.download-result p { margin-top: 7px; }
.tool-card + .ad-slot-inline { margin-top: 24px; }

@media (max-width: 600px) {
  .hub-hero { padding-top: 38px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-tile { min-height: 105px; padding: 16px; }
  .tool-hero { padding-top: 20px; }
  .back-to-tools { margin-bottom: 22px; }
  .dropzone { min-height: 190px; }
  .dropzone-copy { min-height: 186px; padding: 20px; }
  .parameter-choices { grid-template-columns: 1fr; }
  .selected-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .selected-files li { grid-template-columns: 32px minmax(0, 1fr); }
  .file-size { grid-column: 2; }
  .upload-limits { line-height: 1.5; }
}
