    .tool-hero {
        padding: 44px 0 8px;
    }

    .crumb {
        font-size: 13px;
        color: var(--muted);
        margin: 0 0 14px;
    }

    .crumb a {
        text-decoration: none;
        color: var(--muted);
    }

    .crumb a:hover {
        color: var(--ink);
    }

    .tool-sub {
        font-size: 16px;
        color: var(--muted);
        max-width: 60ch;
        margin: 0;
    }

    main {
        padding-bottom: 60px;
    }

    /* Upload dropzone */
    .dropzone {
        margin-top: 28px;
        border: 1.5px dashed var(--line);
        border-radius: 14px;
        background: var(--paper-raise);
        padding: 40px 24px;
        text-align: center;
        cursor: pointer;
        transition: border-color .15s ease, background .15s ease;
    }

    .dropzone.drag {
        border-color: var(--teal);
        background: var(--tag-bg);
    }

    .dropzone .dz-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .dropzone h3 {
        margin: 0 0 6px;
        font-size: 17px;
    }

    .dropzone p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
    }

    .dropzone input[type="file"] {
        display: none;
    }

    /* Selected-file row (replaces dropzone once a file is chosen) */
    .file-card {
        display: none;
        margin-top: 28px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        background: var(--paper-raise);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 18px 22px;
    }

    .file-card.on {
        display: flex;
    }

    .file-card .fc-info {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .file-card .fc-icon {
        font-size: 26px;
        flex-shrink: 0;
    }

    .file-card .fc-name {
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 46ch;
    }

    .file-card .fc-size {
        font-size: 13px;
        color: var(--muted);
        margin-top: 2px;
    }

    .file-card .fc-remove {
        background: none;
        border: 1px solid var(--line);
        color: var(--ink-soft);
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
    }

    /* Status line while compressing */
    .status-line {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 16px;
        font-size: 14px;
        color: var(--muted);
        min-height: 20px;
    }

    .spinner {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid var(--line);
        border-top-color: var(--teal);
        animation: spin .7s linear infinite;
        display: none;
    }

    .spinner.on {
        display: inline-block;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Compression level picker */
    .level-section {
        display: none;
        margin-top: 34px;
    }

    .level-section.on {
        display: block;
    }

    .level-section h2 {
        font-size: 19px;
        margin: 0 0 4px;
    }

    .level-section .hint {
        font-size: 13px;
        color: var(--muted);
        margin: 0 0 16px;
    }

    .level-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .level-card {
        position: relative;
    }

    .level-card input {
        position: absolute;
        opacity: 0;
        inset: 0;
        margin: 0;
        cursor: pointer;
    }

    .level-card label {
        display: block;
        background: var(--paper-raise);
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 18px 18px 20px;
        cursor: pointer;
        transition: border-color .15s ease, background .15s ease;
    }

    .level-card input:checked+label {
        border-color: var(--teal);
        background: var(--tag-bg);
    }

    .level-card .lc-tag {
        display: inline-block;
        font-size: 11.5px;
        font-weight: 700;
        color: var(--muted);
        letter-spacing: .02em;
        margin-bottom: 8px;
    }

    .level-card input:checked+label .lc-tag {
        color: var(--teal-deep);
    }

    .level-card h3 {
        margin: 0 0 6px;
        font-size: 16px;
    }

    .level-card p {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
        line-height: 1.4;
    }

    .action-row {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 26px;
        flex-wrap: wrap;
    }

    /* Result box: before/after size comparison + download */
    .result-box {
        display: none;
        margin-top: 30px;
        background: var(--teal-deep);
        color: #F4F2EA;
        border-radius: 16px;
        padding: 28px 30px;
        flex-direction: column;
        gap: 18px;
    }

    .result-box.on {
        display: flex;
    }

    .result-box h3 {
        margin: 0 0 2px;
        color: #fff;
        font-size: 18px;
    }

    .result-box .result-sub {
        margin: 0;
        color: #D9E4DF;
        font-size: 14px;
    }

    .size-compare {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .size-pill {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 10px;
        padding: 12px 18px;
        text-align: center;
    }

    .size-pill .sp-label {
        font-size: 11.5px;
        color: #B9E3D6;
        letter-spacing: .03em;
        margin-bottom: 4px;
    }

    .size-pill .sp-value {
        font-size: 19px;
        font-weight: 800;
        color: #fff;
    }

    .size-arrow {
        font-size: 20px;
        color: #B9E3D6;
    }

    .reduction-badge {
        background: var(--clay);
        color: #fff;
        font-weight: 800;
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 999px;
    }

    .result-note {
        font-size: 13px;
        color: #D9E4DF;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 10px;
        padding: 12px 14px;
    }

    .result-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    /* Responsive tweaks for the new elements */
    @media (max-width:640px) {
        .level-grid {
            grid-template-columns: 1fr;
        }

        .size-compare {
            flex-direction: column;
            align-items: flex-start;
        }
    }