body.batch-rename {
    color-scheme: light;
    --paper: #f4f7f9;
    --paper-2: #e9f0f3;
    --paper-3: #e2e9ee;
    --ink: #15232c;
    --ink-soft: #2a3944;
    --muted: #55636d;
    --accent: #f15a4a;
    --accent-2: #2f7d7a;
    --accent-3: #f1c061;
    --stroke: rgba(21, 35, 44, 0.16);
    --stroke-strong: rgba(21, 35, 44, 0.32);
    --shadow: 0 24px 50px rgba(37, 50, 60, 0.18);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(980px 520px at 12% -8%, rgba(94, 176, 188, 0.22), transparent 62%),
        radial-gradient(860px 520px at 88% -6%, rgba(241, 170, 110, 0.2), transparent 62%),
        linear-gradient(180deg, var(--paper), var(--paper-2) 60%, var(--paper-3));
    position: relative;
    overflow-x: hidden;
}

body.batch-rename,
body.batch-rename * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.batch-rename::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(21, 35, 44, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(21, 35, 44, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

body.batch-rename::after {
    content: "";
    position: fixed;
    right: -180px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(241, 90, 74, 0.2), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.batch-rename a {
    color: inherit;
    text-decoration: none;
}

.batch-rename input,
.batch-rename button {
    font-family: inherit;
}

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

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

.batch-rename .hero::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(58, 124, 122, 0.18), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

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

.batch-rename .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.9);
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.batch-rename .back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(36, 52, 60, 0.15);
}

.batch-rename .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.batch-rename .badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(240, 199, 94, 0.25);
    border: 1px solid rgba(240, 199, 94, 0.45);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.batch-rename .badge-ink {
    background: rgba(58, 124, 122, 0.18);
    border-color: rgba(58, 124, 122, 0.35);
    color: #1f4e4c;
}

.batch-rename .badge-outline {
    background: transparent;
    border-style: dashed;
}

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

.batch-rename .hero-main {
    display: grid;
    gap: 16px;
}

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

.batch-rename .hero h1 {
    font-size: clamp(2.6rem, 3vw + 1.4rem, 3.8rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--ink);
}

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

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

.batch-rename .hero-cta {
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(241, 90, 74, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.batch-rename .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(241, 90, 74, 0.32);
}

.batch-rename .hero-cta-hint {
    font-size: 0.9rem;
    color: rgba(95, 107, 114, 0.85);
}

.batch-rename .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.batch-rename .tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(27, 39, 48, 0.08);
    border: 1px solid rgba(27, 39, 48, 0.16);
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.batch-rename .hero-side {
    display: grid;
    gap: 16px;
}

.batch-rename .hero-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 36px rgba(36, 52, 60, 0.12);
}

.batch-rename .hero-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--ink);
}

.batch-rename .step-list,
.batch-rename .hero-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.batch-rename .step-list li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    transform: translateY(-1px);
}

.batch-rename .hero-list li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(58, 124, 122, 0.35);
    margin-right: 8px;
    transform: translateY(-1px) rotate(12deg);
}

.batch-rename .feature-section {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.batch-rename .feature-section h2 {
    font-size: 1.6rem;
    color: var(--ink);
}

.batch-rename .feature-section .section-desc {
    color: var(--muted);
    line-height: 1.6;
    max-width: none;
}

.batch-rename .feature-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.batch-rename .feature-section .feature-strip {
    margin-top: 0;
}

.batch-rename .feature-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(36, 52, 60, 0.1);
}

.batch-rename .feature-card.accent {
    background: linear-gradient(140deg, rgba(241, 90, 74, 0.16), rgba(255, 255, 255, 0.9));
}

.batch-rename .feature-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.batch-rename .feature-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.batch-rename .workspace {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
        "step-01 step-02"
        "step-03 step-02";
    gap: 20px;
    align-items: start;
}

.batch-rename .panel.step-01 {
    grid-area: step-01;
}

.batch-rename .panel.step-02 {
    grid-area: step-02;
}

.batch-rename .panel.step-03 {
    grid-area: step-03;
}

.batch-rename .panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(36, 52, 60, 0.12);
}

.batch-rename .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.batch-rename .panel-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.batch-rename .panel h2 {
    font-size: 1.5rem;
    color: var(--ink);
}

.batch-rename .panel-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(58, 124, 122, 0.12);
    border: 1px solid rgba(58, 124, 122, 0.3);
    font-size: 0.82rem;
    color: #1f4e4c;
}

.batch-rename .dropzone {
    border: 2px dashed rgba(27, 39, 48, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    background: rgba(248, 245, 238, 0.9);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.batch-rename .dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.batch-rename .dropzone.is-dragover {
    border-color: rgba(241, 90, 74, 0.6);
    box-shadow: 0 16px 30px rgba(241, 90, 74, 0.18);
    transform: translateY(-2px);
}

.batch-rename .dropzone-inner h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.batch-rename .dropzone-inner p {
    color: var(--muted);
    font-size: 0.95rem;
}

.batch-rename .dropzone-tags {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.batch-rename .dropzone-tags span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(27, 39, 48, 0.2);
    font-size: 0.75rem;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.75);
}

.batch-rename .file-meta {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.batch-rename .quick-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-rename .ghost-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(27, 39, 48, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.batch-rename .ghost-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 39, 48, 0.35);
    background: rgba(255, 255, 255, 0.9);
}

.batch-rename .rename-table {
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.batch-rename .rename-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    background: rgba(27, 39, 48, 0.06);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.batch-rename .rename-table.is-scrollable .rename-head {
    padding-right: 28px;
}

.batch-rename .rename-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.batch-rename .rename-body.is-scrollable {
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
}

.batch-rename .rename-empty {
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(27, 39, 48, 0.2);
    text-align: center;
    color: var(--muted);
    background: rgba(248, 245, 238, 0.9);
}

.batch-rename .rename-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(27, 39, 48, 0.12);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.batch-rename .rename-row > * {
    min-width: 0;
}

.batch-rename .rename-row.is-invalid {
    border-color: rgba(241, 90, 74, 0.55);
    box-shadow: 0 12px 24px rgba(241, 90, 74, 0.14);
}

.batch-rename .rename-row.is-duplicate {
    border-color: rgba(240, 199, 94, 0.7);
    box-shadow: 0 12px 24px rgba(240, 199, 94, 0.16);
}

.batch-rename .file-cell {
    display: grid;
    gap: 4px;
}

.batch-rename .file-name {
    font-weight: 600;
    color: var(--ink);
    word-break: break-all;
}

.batch-rename .file-size {
    font-size: 0.82rem;
    color: var(--muted);
}

.batch-rename .edit-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-right: 6px;
}

.batch-rename .input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(27, 39, 48, 0.2);
    padding: 6px 10px;
    background: rgba(248, 245, 238, 0.9);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.batch-rename .name-input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    flex: 1;
    min-width: 0;
}

.batch-rename .name-input::placeholder {
    color: rgba(95, 107, 114, 0.6);
}

.batch-rename .name-input:focus {
    outline: none;
}

.batch-rename .name-input:focus-visible {
    outline: 2px solid rgba(58, 124, 122, 0.4);
    outline-offset: 2px;
}

.batch-rename .ext-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(58, 124, 122, 0.16);
    color: #1f4e4c;
    font-size: 0.78rem;
    white-space: nowrap;
}

.batch-rename .ext-pill.is-empty {
    display: none;
}

.batch-rename .row-note {
    font-size: 0.78rem;
    color: rgba(241, 90, 74, 0.9);
}


.batch-rename .summary {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.84);
    display: grid;
    gap: 10px;
}

.batch-rename .summary-title {
    font-weight: 600;
    color: var(--ink);
}

.batch-rename .summary-detail {
    font-size: 0.92rem;
    color: var(--muted);
}

.batch-rename .summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.batch-rename .summary-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(27, 39, 48, 0.18);
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink-soft);
}

.batch-rename .summary-chip.alert {
    border-color: rgba(241, 90, 74, 0.5);
    background: rgba(241, 90, 74, 0.12);
    color: #b3362c;
}

.batch-rename .summary-chip.warn {
    border-color: rgba(240, 199, 94, 0.6);
    background: rgba(240, 199, 94, 0.15);
    color: #8f6a0b;
}

.batch-rename .actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.batch-rename .primary-btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(241, 90, 74, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.batch-rename .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(241, 90, 74, 0.32);
}

.batch-rename .primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.batch-rename .primary-btn.is-loading {
    position: relative;
    opacity: 0.75;
}

.batch-rename .primary-btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

.batch-rename .tips {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.batch-rename .tip-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.8);
}

.batch-rename .tip-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.batch-rename .tip-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.batch-rename .tip-card li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-2);
    margin-right: 8px;
    transform: translateY(-1px);
}

.batch-rename .faq-block {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.88);
}

.batch-rename .faq-block h2 {
    font-size: 1.5rem;
}

.batch-rename .faq-list {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.batch-rename .faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

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

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

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

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

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

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

    .batch-rename .workspace {
        grid-template-columns: 1fr;
        grid-template-areas:
            "step-01"
            "step-02"
            "step-03";
    }
}

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

    .batch-rename .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .batch-rename .feature-strip {
        grid-template-columns: 1fr;
    }

    .batch-rename .rename-head {
        display: none;
    }

    .batch-rename .rename-row {
        grid-template-columns: 1fr;
    }
}

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

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

    .batch-rename .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .batch-rename .hero-cta {
        width: 100%;
        text-align: center;
    }

    .batch-rename .tips {
        grid-template-columns: 1fr;
    }
}
