    .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;
    }

    /* Status line while loading / exporting */
    .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);
        }
    }

    /* Disabled states for the toolbar buttons */
    .btn-primary:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .btn-ghost:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    /* Toolbar (image count + Clear all + Export PDF) */
    .images-section {
        display: none;
        margin-top: 34px;
    }

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

    .images-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
    }

    .images-toolbar h2 {
        font-size: 19px;
        margin: 0;
    }

    .images-toolbar .hint {
        font-size: 13px;
        color: var(--muted);
        margin: 2px 0 0;
    }

    .toolbar-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Sortable image grid */
    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
        margin-top: 18px;
        padding: 0;
        list-style: none;
    }

    .page-card {
        position: relative;
        background: var(--paper-raise);
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 10px;
        cursor: grab;
        user-select: none;
    }

    .page-card:active {
        cursor: grabbing;
    }

    .page-card .pc-img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        display: block;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 6px;
        pointer-events: none;
    }

    .page-card .pc-label {
        margin-top: 9px;
        text-align: center;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--ink-soft);
    }

    .page-card .pc-remove {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(20, 24, 31, .75);
        color: #fff;
        border: none;
        font-size: 13px;
        line-height: 24px;
        text-align: center;
        cursor: pointer;
        padding: 0;
    }

    .page-card .pc-remove:hover {
        background: var(--clay);
    }

    .page-card.ui-sortable-placeholder {
        visibility: visible !important;
        background: var(--tag-bg);
        border: 1.5px dashed var(--line);
        min-height: 200px;
    }

    .page-card.ui-sortable-helper {
        box-shadow: 0 10px 24px rgba(20, 24, 31, .18);
    }

    /* "Add more images" card at the end of the grid */
    .add-more-card {
        border: 1.5px dashed var(--line);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 200px;
        cursor: pointer;
        color: var(--muted);
        background: transparent;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
    }

    .add-more-card:hover {
        border-color: var(--teal);
        color: var(--teal-deep);
    }

    .add-more-card .plus {
        font-size: 22px;
        line-height: 1;
    }

    .add-more-card input[type="file"] {
        display: none;
    }

    /* Responsive tweaks for the new elements */
    @media (max-width:640px) {
        .image-grid {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        }
    }