.imageConverterPage {
    min-height: 65vh;
    padding: 0 20px 72px;
    background: var(--bg-primary);
}

.icWorkspace,
.icGuide {
    width: min(100%, 980px);
    margin: 0 auto;
}

.icHero {
    margin: 0 -20px 30px;
    padding: 88px 24px 72px;
    border-bottom: 1px solid var(--divider);
    background: radial-gradient(circle at 75% 20%, rgba(199, 154, 36, .15), transparent 34%), var(--bg-secondary);
    text-align: center;
}

.icHeroContent {
    width: min(760px, 100%);
    margin: 0 auto;
}

.icEyebrow {
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.icHero h1 {
    margin: 14px 0 0;
    color: var(--text-primary);
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
}

.icHeroContent > p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.icHeroActions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.icHeroActions .icButton {
    text-decoration: none;
}

.icWorkspace {
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid var(--surface-secondary);
    border-radius: 20px;
    background: var(--surface-primary);
    box-shadow: 0 18px 48px rgb(0 0 0 / 8%);
}

.icLimits {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: .92rem;
    text-align: center;
}

.icDropzone {
    display: flex;
    width: 100%;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--surface-secondary);
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}

.icDropzone:hover,
.icDropzone.is-dragging {
    border-color: var(--accent-primary);
    background: var(--surface-secondary);
}

.icDropzone strong {
    color: var(--text-primary);
    font-size: 1.08rem;
}

.icUploadIcon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--accent-primary);
}

.icPrivacyNote {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}

.icQueue,
.icResults {
    margin-top: 28px;
}

.icSectionHeader,
.icQueueActions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.icSectionHeader {
    margin-bottom: 14px;
}

.icSectionHeader h2,
.icGuide h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.icSectionHeader p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .88rem;
}

.icCards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 14px;
}

.icCard {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--surface-secondary);
    border-radius: 13px;
    background: var(--bg-primary);
}

.icCardPreview {
    display: grid;
    height: 150px;
    place-items: center;
    overflow: hidden;
    background-color: var(--surface-secondary);
    background-image: linear-gradient(45deg, rgb(127 127 127 / 9%) 25%, transparent 25%, transparent 75%, rgb(127 127 127 / 9%) 75%), linear-gradient(45deg, rgb(127 127 127 / 9%) 25%, transparent 25%, transparent 75%, rgb(127 127 127 / 9%) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.icCardPreview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icCardBody {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.icFileName {
    overflow: hidden;
    color: var(--text-primary);
    font-size: .88rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icFileStatus {
    min-height: 1.2em;
    color: var(--text-muted);
    font-size: .8rem;
}

.icFileStatus.is-error {
    color: var(--danger);
}

.icButton {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}

.icButton:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.icButtonPrimary {
    background: var(--btn-primary-bg);
    color: var(--text-inverse);
}

.icButtonPrimary:hover:not(:disabled) {
    background: var(--btn-primary-hover);
}

.icButtonQuiet {
    border-color: var(--surface-secondary);
    background: var(--surface-primary);
    color: var(--text-secondary);
}

.icButtonQuiet:hover:not(:disabled) {
    background: var(--surface-secondary);
}

.icQueueActions {
    justify-content: flex-start;
    margin-top: 18px;
}

.icCardDownload {
    width: 100%;
    text-decoration: none;
}

.icGuide {
    margin-top: 44px;
    color: var(--text-muted);
    line-height: 1.7;
}

.icGuideHeader {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--divider);
}

.icGuideHeader h2 {
    margin: 8px 0 10px;
    color: var(--text-primary);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.25;
}

.icGuideHeader p,
.icGuideSection p,
.icGuideFaq dd {
    color: var(--text-secondary);
}

.icGuideHeader p,
.icGuideSection p {
    margin: 8px 0;
}

.icGuideSection {
    margin: 26px 0;
}

.icGuideSection h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.18rem;
    line-height: 1.4;
}

.icGuideSection ol,
.icGuideSection ul {
    padding-left: 1.35rem;
    color: var(--text-secondary);
}

.icGuideSection li {
    margin: 7px 0;
}

.icGuideTableWrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--divider);
    border-radius: 12px;
}

.icGuideTable {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background: var(--surface-primary);
    color: var(--text-secondary);
    text-align: left;
}

.icGuideTable th,
.icGuideTable td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--divider);
}

.icGuideTable thead th {
    background: var(--surface-secondary);
    color: var(--text-primary);
    font-weight: 700;
}

.icGuideTable tbody tr:last-child th,
.icGuideTable tbody tr:last-child td {
    border-bottom: 0;
}

.icGuideFaq {
    margin: 0;
}

.icGuideFaq dt {
    margin-top: 17px;
    color: var(--text-primary);
    font-weight: 700;
}

.icGuideFaq dd {
    margin: 5px 0 0;
}

@media (max-width: 560px) {
    .imageConverterPage {
        padding: 0 14px 52px;
    }

    .icHero {
        margin: 0 -14px 24px;
        padding: 64px 18px 52px;
    }

    .icSectionHeader,
    .icQueueActions {
        align-items: stretch;
        flex-direction: column;
    }

    .icQueueActions .icButton,
    .icSectionHeader > .icButton {
        width: 100%;
    }
}
