body.image-converter {
    color-scheme: light;
    --paper: #f7f1e6;
    --paper-2: #eee3d1;
    --paper-3: #e6d7c3;
    --ink: #1e1b17;
    --ink-soft: #352f29;
    --muted: #6e655a;
    --accent: #e4572e;
    --accent-2: #2a6f97;
    --accent-3: #f4b942;
    --stroke: rgba(37, 30, 24, 0.18);
    --stroke-strong: rgba(37, 30, 24, 0.32);
    --shadow: 0 28px 60px rgba(43, 32, 22, 0.18);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(1200px circle at 8% -20%, rgba(244, 185, 66, 0.35), transparent 60%),
                radial-gradient(900px circle at 92% -10%, rgba(42, 111, 151, 0.28), transparent 60%),
                linear-gradient(180deg, var(--paper), var(--paper-2) 60%, var(--paper-3));
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

body.image-converter,
body.image-converter * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.image-converter::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(30, 27, 23, 0.05) 1px, transparent 1px),
                      linear-gradient(180deg, rgba(30, 27, 23, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

body.image-converter::after {
    content: "";
    position: fixed;
    right: -140px;
    top: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(228, 87, 46, 0.28), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.image-converter a {
    color: inherit;
    text-decoration: none;
}

.image-converter input,
.image-converter select,
.image-converter button {
    font-family: inherit;
}

.image-converter .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 90px;
    position: relative;
    z-index: 1;
}

.image-converter .hero {
    display: grid;
    gap: 28px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-converter .hero::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(42, 111, 151, 0.18), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.image-converter .hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.image-converter .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-converter .back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(43, 32, 22, 0.18);
}

.image-converter .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-converter .badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(244, 185, 66, 0.28);
    border: 1px solid rgba(244, 185, 66, 0.45);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.image-converter .badge-ink {
    background: rgba(42, 111, 151, 0.18);
    border-color: rgba(42, 111, 151, 0.35);
    color: #1d3c4d;
}

.image-converter .badge-outline {
    background: transparent;
    border-style: dashed;
}

.image-converter .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: start;
}

.image-converter .hero-main {
    display: grid;
    gap: 16px;
}

.image-converter .hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.image-converter .hero h1 {
    font-size: clamp(2.6rem, 3vw + 1.5rem, 3.9rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.image-converter .hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 620px;
}

.image-converter .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.image-converter .hero-cta {
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px rgba(228, 87, 46, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-converter .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(228, 87, 46, 0.34);
}

.image-converter .hero-cta-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.image-converter .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-converter .tag {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px dashed var(--stroke-strong);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.image-converter .hero-side {
    display: grid;
    gap: 16px;
}

.image-converter .hero-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 36px rgba(43, 32, 22, 0.14);
    position: relative;
    overflow: hidden;
}

.image-converter .hero-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    width: 70px;
    height: 20px;
    background: rgba(244, 185, 66, 0.4);
    border: 1px solid rgba(30, 27, 23, 0.12);
    transform: rotate(-3deg);
}

.image-converter .hero-card:nth-child(2) {
    transform: rotate(-1deg);
}

.image-converter .hero-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.image-converter .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.image-converter .stat {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(42, 111, 151, 0.08);
    border: 1px solid rgba(42, 111, 151, 0.18);
    display: grid;
    gap: 4px;
}

.image-converter .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-2);
}

.image-converter .stat-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.image-converter .step-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    counter-reset: step;
    font-size: 0.95rem;
}

.image-converter .step-list li {
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.image-converter .step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-3);
    color: #1a140f;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.image-converter .hero-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.image-converter .feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0 36px;
}

.image-converter .feature-card {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 38px rgba(43, 32, 22, 0.14);
}

.image-converter .feature-card.accent {
    border-color: rgba(228, 87, 46, 0.4);
    background: linear-gradient(160deg, rgba(228, 87, 46, 0.08), rgba(255, 255, 255, 0.95));
}

.image-converter .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.image-converter .feature-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .feature-list li {
    position: relative;
    padding-left: 18px;
}

.image-converter .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.image-converter .feature-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(110, 101, 90, 0.8);
}

.image-converter .workspace {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
}

.image-converter .panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-converter .panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(244, 185, 66, 0.08), transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

.image-converter .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.image-converter .panel-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.image-converter .panel h2 {
    font-size: 1.5rem;
}

.image-converter .panel-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed var(--stroke-strong);
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
}

.image-converter .dropzone {
    position: relative;
    border: 2px dashed rgba(42, 111, 151, 0.5);
    border-radius: var(--radius-md);
    padding: 26px;
    min-height: 190px;
    background: linear-gradient(135deg, rgba(42, 111, 151, 0.08), rgba(255, 255, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1;
}

.image-converter .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(228, 87, 46, 0.12);
    transform: translateY(-2px);
}

.image-converter .dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.image-converter .dropzone-inner {
    display: grid;
    gap: 16px;
    text-align: center;
}

.image-converter .dropzone-copy h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.image-converter .dropzone-copy p {
    color: var(--muted);
    font-size: 0.95rem;
}

.image-converter .dropzone-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.image-converter .dropzone-tags span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 30, 24, 0.12);
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.image-converter .file-meta {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    color: var(--muted);
    border: 1px solid rgba(37, 30, 24, 0.1);
    position: relative;
    z-index: 1;
}

.image-converter .preview {
    margin-top: 18px;
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(37, 30, 24, 0.1);
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.image-converter .preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.image-converter .placeholder {
    color: rgba(110, 101, 90, 0.7);
    text-align: center;
    line-height: 1.5;
}

.image-converter .control {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.image-converter .control label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--ink-soft);
}

.image-converter .format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
}

.image-converter .format-btn {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(37, 30, 24, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.image-converter .format-btn.active {
    border-color: var(--accent);
    background: rgba(228, 87, 46, 0.12);
    color: #7c2a16;
    box-shadow: 0 10px 20px rgba(228, 87, 46, 0.15);
}

.image-converter .format-btn:hover {
    transform: translateY(-1px);
}

.image-converter .size-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.image-converter .size-row input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(37, 30, 24, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.image-converter .lock-toggle {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(37, 30, 24, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.image-converter .lock-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(37, 30, 24, 0.2);
}

.image-converter .lock-toggle.active {
    border-color: rgba(42, 111, 151, 0.6);
    color: #24556f;
}

.image-converter .lock-toggle.active .lock-indicator {
    background: var(--accent-2);
}

.image-converter .hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(110, 101, 90, 0.75);
}

.image-converter .range-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.image-converter .color-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(37, 30, 24, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 6px;
}

.image-converter .select-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(37, 30, 24, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.image-converter .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.image-converter .primary-btn,
.image-converter .ghost-btn {
    flex: 1 1 140px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.image-converter .primary-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(228, 87, 46, 0.25);
}

.image-converter .primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.image-converter .ghost-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border-color: rgba(37, 30, 24, 0.2);
}

.image-converter .primary-btn:hover:not(:disabled),
.image-converter .ghost-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(43, 32, 22, 0.2);
}

.image-converter .output {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 30, 24, 0.16);
    background: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.image-converter .output.hidden {
    display: none;
}

.image-converter .output-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.image-converter .output img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(244, 242, 238, 0.9);
}

.image-converter .download-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(42, 111, 151, 0.15);
    border: 1px solid rgba(42, 111, 151, 0.4);
    color: #1e4c63;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-converter .download-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(42, 111, 151, 0.2);
}

.image-converter .tips {
    margin-top: 36px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-converter .tip-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 30, 24, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 30px rgba(43, 32, 22, 0.12);
    display: grid;
    gap: 10px;
}

.image-converter .tip-card h3 {
    font-size: 1.1rem;
}

.image-converter .tip-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .seo-block {
    margin-top: 46px;
}

.image-converter .seo-shell {
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    max-width: 1100px;
    margin: 0 auto;
}

.image-converter .seo-shell h2 {
    font-size: clamp(1.8rem, 1.8vw + 1.2rem, 2.4rem);
    text-align: center;
    margin-bottom: 18px;
}

.image-converter .seo-lead {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
    text-align: left;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.image-converter .seo-grid {
    margin-top: 26px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-converter .seo-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 30, 24, 0.14);
    background: rgba(255, 255, 255, 0.86);
}

.image-converter .seo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.image-converter .seo-card p {
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .seo-card p + p {
    margin-top: 10px;
}

.image-converter .seo-card ul,
.image-converter .seo-card ol {
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .seo-card li + li {
    margin-top: 8px;
}

.image-converter .seo-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 30, 24, 0.14);
    background: rgba(255, 255, 255, 0.85);
}

.image-converter .seo-note h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.image-converter .seo-note p {
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .seo-note-hint {
    margin-top: 8px;
    font-size: 0.92rem;
    color: rgba(110, 101, 90, 0.7);
}

.image-converter .faq-block .seo-shell {
    padding: 36px;
}

.image-converter .faq-list {
    margin-top: 22px;
    display: grid;
    gap: 20px;
}

.image-converter .faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.image-converter .faq-item p {
    color: var(--muted);
    line-height: 1.6;
}

.image-converter .reveal {
    animation: image-converter-rise 0.8s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes image-converter-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .image-converter .hero-grid {
        grid-template-columns: 1fr;
    }

    .image-converter .hero-side {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .image-converter .feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-converter .seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-converter .workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .image-converter .hero {
        padding: 24px;
    }

    .image-converter .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-converter .hero-side {
        grid-template-columns: 1fr;
    }

    .image-converter .hero-card:nth-child(2) {
        transform: none;
    }

    .image-converter .feature-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .image-converter .page {
        padding: 28px 16px 60px;
    }

    .image-converter .hero h1 {
        font-size: clamp(2.1rem, 5vw + 1rem, 3rem);
    }

    .image-converter .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .image-converter .hero-cta {
        width: 100%;
        text-align: center;
    }

    .image-converter .tag-row {
        gap: 8px;
    }

    .image-converter .panel {
        padding: 20px;
    }

    .image-converter .seo-shell {
        padding: 24px;
        text-align: left;
    }

    .image-converter .seo-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-converter .reveal {
        animation: none;
    }

    .image-converter .primary-btn,
    .image-converter .ghost-btn,
    .image-converter .format-btn,
    .image-converter .back-link,
    .image-converter .dropzone,
    .image-converter .hero-cta,
    .image-converter .download-link {
        transition: none;
    }
}
