/* batch-renamer.css — 批量文件重命名工具样式 */
:root {
    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFC;
    --bg-subtle: #F0F1F3;
    --bg-input: #F7F8FA;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #AEAEB2;
    --text-on-primary: #FFFFFF;
    --border-default: #E5E5EA;
    --border-light: #F0F1F3;
    --border-focus: #8B2020;
    --primary: #8B2020;
    --primary-hover: #7A1C1C;
    --primary-active: #6A1818;
    --primary-subtle: rgba(139, 32, 32, 0.08);
    --accent-red: #8B2020;
    --accent-red-subtle: rgba(139, 32, 32, 0.06);
    --success: #34C759;
    --success-bg: #E8F9ED;
    --error: #FF3B30;
    --error-bg: #FFECEA;
    --warning: #FF9500;
    --warning-bg: #FFF6E5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 48px -12px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-display: 28px;
    --fs-title: 20px;
    --fs-body: 15px;
    --fs-caption: 13px;
    --fs-small: 12px;
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
    font-family: var(--font-family);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(44, 111, 206, 0.03), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 32, 32, 0.02), transparent);
    pointer-events: none;
    z-index: 0;
}
.accent-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-red) 30%, var(--accent-red) 70%, transparent 95%);
    z-index: 1000;
}
/* 返回主站按钮 */
.seo-keywords {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}
.back-home {
    position: fixed; top: 14px; left: 20px; z-index: 999;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; font-family: var(--font-family);
    font-size: var(--fs-small); font-weight: var(--fw-medium);
    color: var(--text-secondary); text-decoration: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-default); border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}
.back-home:hover {
    color: var(--primary); border-color: var(--primary);
    background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.back-home svg { width: 14px; height: 14px; flex-shrink: 0; }
/* 联系客服 */
.contact-service { position: fixed; top: 16px; right: 16px; z-index: 100; }
.contact-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: none; border-radius: var(--radius-full);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: var(--fs-caption); font-family: var(--font-family);
    cursor: pointer; transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.contact-btn:hover { color: var(--primary); box-shadow: var(--shadow-md); }
.contact-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 160px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 12px; text-align: center;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: all var(--duration-fast) var(--ease-out); pointer-events: none;
}
.contact-service:hover .contact-dropdown,
.contact-service.open .contact-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.contact-dropdown img { width: 100%; border-radius: var(--radius-md); display: block; }
.qr-hint { margin-top: 8px; font-size: 11px; color: var(--text-tertiary); line-height: 1.3; }
.qr-sub { margin-top: 4px; font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.05em; }
/* Toast */
.toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
    pointer-events: none; width: max-content; max-width: 90%;
}
.toast {
    pointer-events: auto; padding: 12px 20px; border-radius: var(--radius-full);
    font-size: var(--fs-caption); font-weight: var(--fw-medium); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(0.96);
    animation: toastIn var(--duration-normal) var(--ease-out) forwards;
    white-space: nowrap; max-width: 90vw; text-align: center;
}
.toast.removing { animation: toastOut var(--duration-fast) ease-in forwards; }
.toast--error { background: var(--error); color: #fff; }
.toast--success { background: var(--success); color: #fff; }
.toast--warning { background: var(--warning); color: #fff; }
.toast--info { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-default); }
@keyframes toastIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.96); } }

.container {
    position: relative; z-index: 1; width: 100%; max-width: 1180px;
    margin: 0 auto; padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}
.header { text-align: center; animation: fadeUp 0.6s var(--ease-out) both; }
.header h1 {
    font-size: var(--fs-display); font-weight: var(--fw-bold);
    letter-spacing: -0.02em; line-height: var(--lh-tight); color: var(--text-primary);
}
.header h1::after {
    content: ''; display: block; width: 32px; height: 2px;
    background: var(--accent-red); margin: var(--space-md) auto 0; border-radius: 1px;
}
.header p {
    font-size: var(--fs-caption); color: var(--text-secondary);
    margin-top: var(--space-md); letter-spacing: 0.01em; max-width: 620px;
}
/* 上传区 */
.upload-zone {
    width: 100%; padding: var(--space-2xl) var(--space-lg);
    border: 2px dashed var(--border-default); border-radius: var(--radius-xl);
    background: var(--bg-card); text-align: center; cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeUp 0.6s var(--ease-out) 0.1s both; position: relative;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-subtle); box-shadow: var(--shadow-sm); }
.upload-zone.drag-over {
    border-color: var(--accent-red); background: var(--accent-red-subtle);
    transform: scale(1.005); box-shadow: var(--shadow-md);
}
.upload-zone.has-file { padding: 0; border-style: dashed; }
.upload-compact {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md) var(--space-lg); color: var(--text-secondary);
    cursor: pointer; width: 100%;
}
.upload-compact-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--bg-subtle); border: 1px solid var(--border-default);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--text-tertiary); transition: all var(--duration-fast);
}
.upload-compact-text {
    font-size: var(--fs-body); font-weight: var(--fw-medium);
    color: var(--text-secondary); transition: color var(--duration-fast); margin-left: auto;
}
.upload-zone.has-file:hover .upload-compact-icon { color: var(--primary); background: var(--primary-subtle); border-color: var(--primary); }
.upload-zone.has-file:hover .upload-compact-text { color: var(--primary); }
.upload-icon { width: 48px; height: 48px; margin: 0 auto var(--space-md); color: var(--text-tertiary); transition: all var(--duration-normal); }
.upload-zone:hover .upload-icon { color: var(--primary); transform: translateY(-2px); }
.upload-zone.drag-over .upload-icon { color: var(--accent-red); transform: translateY(-4px) scale(1.05); }
.upload-text { font-size: var(--fs-body); color: var(--text-primary); margin-bottom: var(--space-sm); }
.browse-btn {
    display: inline-block; padding: 8px 20px; font-family: var(--font-family);
    font-size: var(--fs-caption); font-weight: var(--fw-semibold);
    color: var(--primary); background: var(--primary-subtle);
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}
.browse-btn:hover { background: rgba(139, 32, 32, 0.14); }
.upload-hint { font-size: var(--fs-small); color: var(--text-tertiary); margin-top: var(--space-md); }

/* 双栏工作区 */
.workspace {
    width: 100%; display: grid; grid-template-columns: 400px minmax(0, 1fr);
    gap: var(--space-md); align-items: start;
    animation: fadeUp 0.6s var(--ease-out) 0.15s both;
}
.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); min-width: 0;
}
.card-head {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}
.card-title { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.card-head-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-sm); }
.reset-btn {
    padding: 4px 12px; font-family: var(--font-family); font-size: var(--fs-small);
    font-weight: var(--fw-medium); color: var(--text-secondary); background: var(--bg-subtle);
    border: none; border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
    white-space: nowrap;
}
.reset-btn:hover { color: var(--primary); background: var(--primary-subtle); }
.collapse-btn {
    display: none; width: 26px; height: 26px; border: none; background: var(--bg-subtle);
    border-radius: var(--radius-full); color: var(--text-secondary); cursor: pointer;
    align-items: center; justify-content: center; transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}
.rules-card.collapsed .collapse-btn { transform: rotate(-90deg); }
.rules-card.collapsed .rules-body { display: none; }

/* 规则块 */
.rules-body { padding: var(--space-sm) var(--space-lg) var(--space-lg); }
.rule-block { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-light); }
.rule-block:last-child { border-bottom: none; padding-bottom: 0; }
.rule-label {
    font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary);
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-sm);
}
.rule-body { display: flex; flex-direction: column; gap: var(--space-sm); }
/* 内容行较多的规则块，加大行间距 */
.rule-body--spaced { gap: 14px; }
.rule-body--spaced .inline-fields { gap: 10px; }

.pill-group {
    display: flex; background: var(--bg-subtle); border-radius: var(--radius-full);
    padding: 3px; gap: 2px; border: 1px solid var(--border-light); align-self: flex-start;
}
.pill-group--wrap { flex-wrap: wrap; align-self: stretch; }
.pill-group--sm .pill { padding: 5px 14px; font-size: var(--fs-small); }
.pill {
    padding: 7px 16px; font-family: var(--font-family); font-size: var(--fs-caption);
    font-weight: var(--fw-medium); color: var(--text-secondary); background: transparent;
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.pill:hover:not(.active) { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.pill:active:not(.active) { transform: scale(0.96); }
.pill.active {
    background: var(--bg-card); color: var(--primary); font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(139, 32, 32, 0.08);
}

.field-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.text-input {
    flex: 1 1 130px; min-width: 0; padding: 9px 14px; font-family: var(--font-family);
    font-size: var(--fs-caption); color: var(--text-primary); background: var(--bg-input);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    outline: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.text-input::placeholder { color: var(--text-tertiary); }
.text-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1); }
.mini-input {
    width: 62px; padding: 6px 6px; text-align: center; font-family: var(--font-family);
    font-size: var(--fs-small); color: var(--text-primary); background: var(--bg-input);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    outline: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    min-width: 0;
}
.mini-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1); }
.inline-fields { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.mini-label { font-size: var(--fs-small); color: var(--text-tertiary); white-space: nowrap; }
.opt-hidden { display: none !important; }

/* 开关 */
.switch-row {
    display: flex; align-items: center; gap: var(--space-sm); cursor: pointer;
    font-size: var(--fs-caption); color: var(--text-secondary); font-weight: var(--fw-medium);
    user-select: none; -webkit-user-select: none;
}
.switch-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.switch {
    width: 38px; height: 22px; border-radius: var(--radius-full);
    background: var(--bg-subtle); border: 1px solid var(--border-default);
    position: relative; transition: all var(--duration-fast); flex-shrink: 0;
}
.switch::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-spring);
}
.switch-input:checked + .switch { background: var(--primary); border-color: var(--primary); }
.switch-input:checked + .switch::after { transform: translateX(16px); }
.check-row {
    display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption);
    color: var(--text-secondary); cursor: pointer; user-select: none; -webkit-user-select: none;
}
.check-row input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }

/* 文件列表卡 */
.file-card {
    position: sticky; top: 80px; display: flex; flex-direction: column;
    max-height: calc(100vh - 100px); overflow: hidden;
}
.file-count { font-size: var(--fs-small); color: var(--text-tertiary); margin-left: auto; }
.file-count strong { color: var(--primary); font-weight: var(--fw-semibold); }
.file-list-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.file-empty {
    padding: var(--space-2xl) var(--space-md); text-align: center;
    font-size: var(--fs-small); color: var(--text-tertiary);
}
.file-item {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--border-light);
    animation: fadeUp 0.3s var(--ease-out) both;
}
.file-item:last-child { border-bottom: none; }
.file-thumb {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-light);
    background: var(--bg-subtle); display: block;
}
.type-box {
    width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.02em;
    text-transform: uppercase; overflow: hidden;
}
.type-box.image { background: #EAF3FF; color: #2C6FCE; }
.type-box.video { background: #F2ECFF; color: #6E4BC4; }
.type-box.audio { background: #E8F9ED; color: #28A745; }
.type-box.doc { background: #FFF6E5; color: #C78600; }
.type-box.archive { background: #FFECEA; color: #D93A30; }
.type-box.other { background: var(--bg-subtle); color: var(--text-tertiary); }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.file-newname {
    font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-name {
    font-size: var(--fs-small); color: var(--text-tertiary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-meta { font-size: 11px; color: var(--text-tertiary); }
.file-meta .dup-tag { color: var(--warning); font-weight: var(--fw-semibold); }
.file-remove {
    width: 28px; height: 28px; border: none; background: var(--bg-subtle);
    border-radius: var(--radius-full); color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast); flex-shrink: 0;
}
.file-remove:hover { background: var(--error-bg); color: var(--error); }

/* 执行按钮 */
.convert-btn {
    width: 100%; max-width: 400px; padding: 14px 32px; font-family: var(--font-family);
    font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text-on-primary);
    background: var(--primary); border: none; border-radius: var(--radius-full);
    cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20); position: relative; overflow: hidden;
}
.convert-btn:hover:not(:disabled) {
    background: var(--primary-hover); box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25);
    transform: translateY(-1px);
}
.convert-btn:active:not(:disabled) { background: var(--primary-active); transform: translateY(0); }
.convert-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-content { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.btn-spinner {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--duration-fast);
}
.convert-btn.loading .btn-content { opacity: 0; }
.convert-btn.loading .btn-spinner { opacity: 1; }
.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note {
    text-align: center; font-size: var(--fs-small); color: var(--text-tertiary);
    margin-top: var(--space-sm); max-width: 520px;
}
.privacy-note span { color: var(--primary); font-weight: var(--fw-semibold); }

/* 进度条 */
.progress-section { width: 100%; max-width: 520px; animation: fadeScale var(--duration-normal) var(--ease-spring); }
.progress-track { width: 100%; height: 4px; background: var(--bg-subtle); border-radius: 2px; overflow: hidden; }
.progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-red), #A52A2A);
    border-radius: 2px; transition: width 0.3s var(--ease-out); position: relative;
}
.progress-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.progress-text { font-size: var(--fs-small); color: var(--text-secondary); }
.progress-percent {
    font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* 结果区 */
.results-section { width: 100%; animation: fadeUp 0.5s var(--ease-out); }
.results-header { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.results-title { font-size: var(--fs-title); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.results-count { font-size: var(--fs-caption); color: var(--text-tertiary); }
.results-count strong { color: var(--primary); font-weight: var(--fw-semibold); }
.download-actions { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }
.btn-download {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 12px 24px; font-family: var(--font-family); font-size: var(--fs-body);
    font-weight: var(--fw-semibold); color: var(--text-on-primary); background: var(--primary);
    border: none; border-radius: var(--radius-full); cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out); box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20);
}
.btn-download:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25); transform: translateY(-1px); }
.btn-download.outline { background: var(--bg-card); color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.btn-download.outline:hover { background: var(--primary-subtle); box-shadow: var(--shadow-sm); }
.btn-download svg { width: 18px; height: 18px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* 平板 */
@media (max-width: 900px) {
    .container { max-width: 720px; }
    .workspace { grid-template-columns: 1fr; }
    .file-card { position: static; max-height: 60vh; }
    .collapse-btn { display: flex; }
}
/* 手机 */
@media (max-width: 640px) {
    .container { padding: var(--space-2xl) var(--space-md) var(--space-xl); gap: var(--space-md); }
    .header h1 { font-size: 24px; }
    .header p { font-size: var(--fs-small); }
    .upload-zone { padding: var(--space-xl) var(--space-md); }
    .upload-compact { padding: var(--space-md); }
    .card-head { padding: var(--space-md); }
    .rules-body { padding: 0 var(--space-md) var(--space-md); }
    .file-item { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
    .file-thumb, .type-box { width: 34px; height: 34px; }
    .convert-btn { max-width: none; }
    .mini-input { width: 54px; }
    .rule-body--spaced { gap: 12px; }
    .pill { padding: 6px 13px; }
    .pill-group--sm .pill { padding: 5px 11px; }
    .back-home { top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; gap: 3px; }
    .back-home svg { width: 12px; height: 12px; }
    .contact-service { top: 8px; right: 8px; }
    .contact-btn { padding: 4px 8px; font-size: 11px; gap: 3px; }
    .contact-btn svg { width: 12px; height: 12px; }
    .results-title { font-size: 18px; }
    .btn-download { flex: 1 1 140px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
