:root {
    --ink: #17221d;
    --muted: #6b756f;
    --soft: #f4f6f2;
    --paper: #ffffff;
    --line: #e2e8e1;
    --line-strong: #ccd6ce;
    --brand: #1f5d49;
    --brand-dark: #153e31;
    --brand-soft: #e2f0e9;
    --mint: #a8d6bf;
    --amber: #bc7318;
    --amber-soft: #fff1db;
    --red: #bf4545;
    --red-soft: #ffebeb;
    --blue: #346d9c;
    --blue-soft: #e8f2fb;
    --shadow: 0 14px 40px rgba(22, 37, 31, .08);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--soft);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--soft); }
body { font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.boot-screen { min-height: 100vh; display: grid; place-items: center; gap: 10px; color: var(--muted); }
.boot-mark, .logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--brand); border-radius: 7px; font-weight: 800; letter-spacing: 0; }

.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; font-size: 16px; font-weight: 750; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 1px; }
.topnav { display: flex; align-items: center; gap: 4px; height: 100%; }
.topnav a, .topnav button { border: 0; background: transparent; padding: 8px 12px; color: var(--muted); border-radius: 6px; }
.topnav a:hover, .topnav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.user-menu { position: relative; }
.user-trigger { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px 8px 5px 5px; border-radius: 22px; color: var(--ink); }
.user-trigger:hover, .user-menu:focus-within .user-trigger { background: var(--soft); }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: 12px; font-weight: 700; }
.chevron { font-size: 11px; color: var(--muted); }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 174px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.user-dropdown::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 9px; }
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown button { display: block; width: 100%; padding: 9px 10px; text-align: left; border: 0; background: transparent; border-radius: 5px; color: var(--ink); }
.user-dropdown button:hover { background: var(--soft); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-weight: 650; transition: background .16s, border-color .16s, color .16s, transform .16s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover:not(:disabled) { background: var(--brand-dark); }
.button-secondary { color: var(--brand-dark); background: var(--brand-soft); border-color: #c6dfd2; }
.button-secondary:hover:not(:disabled) { background: #d3e9dd; }
.button-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.button-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); background: var(--paper); }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #f3cdcd; }
.button-danger:hover:not(:disabled) { background: #ffdede; }
.button-small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.button-icon { min-width: 34px; padding: 0 8px; font-size: 17px; }

.auth-wrap { flex: 1; display: grid; place-items: center; padding: 40px 20px; background: var(--soft); }
.auth-panel { width: min(430px, 100%); padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.auth-header { margin-bottom: 26px; }
.auth-header .logo-mark { margin-bottom: 16px; }
.auth-header h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: 0; }
.auth-header p { margin: 0; color: var(--muted); }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); }
.auth-switch button { border: 0; background: transparent; color: var(--brand); font-weight: 650; padding: 0 3px; }
.auth-switch button:hover { text-decoration: underline; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 650; color: #36433b; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: #fff; padding: 10px 11px; transition: border-color .16s, box-shadow .16s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 93, 73, .12); }
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { color: var(--muted); font-size: 12px; }
.field .check-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.field .check-line input[type="checkbox"] { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--brand); box-shadow: none; }
.required { color: var(--red); }
.captcha-line { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: end; }
.captcha-visual { width: 112px; height: 40px; display: block; }
.captcha-image { width: 112px; height: 40px; border: 1px solid var(--line-strong); border-radius: 5px; background: #f2f5f1; object-fit: cover; cursor: pointer; }
.captcha-placeholder { width: 112px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; background: #f2f5f1; color: var(--muted); font-size: 12px; cursor: pointer; user-select: none; }
.captcha-placeholder.is-error { color: var(--red); background: var(--red-soft); }
.captcha-image:focus-visible, .captcha-placeholder:focus-visible { outline: 3px solid rgba(31, 93, 73, .2); outline-offset: 1px; }
.form-error { min-height: 20px; margin: -5px 0 12px; color: var(--red); font-size: 13px; }
.full-button { width: 100%; }

.workspace-layout { width: min(1480px, 100%); margin: 0 auto; padding: 28px 32px 42px; display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 26px; flex: 1; }
.my-rewrites-layout { grid-template-columns: minmax(0, 1fr); }
.side-panel { align-self: start; position: sticky; top: 95px; }
.side-heading { margin: 0 0 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.mode-list { display: grid; gap: 8px; }
.mode-button { width: 100%; min-height: 76px; display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .72); color: var(--muted); transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.mode-button:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(22, 37, 31, .06); transform: translateY(-1px); }
.mode-button.active { color: var(--brand-dark); background: var(--brand-soft); border-color: #c7dfd2; box-shadow: 0 4px 12px rgba(31, 93, 73, .08); }
.mode-button.active::after { content: "✓"; margin-left: auto; color: var(--brand); font-size: 15px; font-weight: 800; line-height: 24px; }
.mode-symbol { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 6px; background: #e2e9e4; color: var(--brand-dark); font-size: 15px; font-weight: 750; }
.mode-button.active .mode-symbol { background: var(--brand); color: #fff; }
.mode-copy strong { display: block; font-size: 14px; }
.mode-copy small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; }
.side-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.side-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.side-note p { margin: 0 0 6px; }
.side-note p:last-child { margin-bottom: 0; }

.content-column { min-width: 0; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { margin: 0; font-size: 24px; letter-spacing: 0; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.editor-surface { overflow: hidden; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 440px; }
.editor-pane { min-width: 0; display: flex; flex-direction: column; }
.editor-pane + .editor-pane { border-left: 1px solid var(--line); }
.pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #425149; font-weight: 700; }
.pane-head small { color: var(--muted); font-size: 12px; font-weight: 500; }
.editor-textarea { flex: 1; width: 100%; min-height: 380px; padding: 18px; border: 0; outline: 0; resize: none; color: var(--ink); background: #fff; line-height: 1.8; }
.result-area { flex: 1; min-height: 380px; padding: 18px; white-space: pre-wrap; overflow: auto; color: #334138; line-height: 1.8; }
.result-placeholder { display: grid; place-items: center; min-height: 330px; color: #9aa69e; text-align: center; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-top: 1px solid var(--line); background: #fbfcfb; }
.counter { color: var(--muted); font-size: 12px; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.article-type-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.article-type-select { min-width: 116px; height: 38px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: #fff; }
.article-type-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 93, 73, .12); }
.progress-wrap { display: none; align-items: center; gap: 10px; min-width: min(320px, 50%); }
.progress-wrap.visible { display: flex; }
.progress-track { flex: 1; height: 8px; overflow: hidden; border: 0; border-radius: 5px; background: #e8ede9; appearance: none; }
.progress-track::-webkit-progress-bar { background: #e8ede9; border-radius: 5px; }
.progress-track::-webkit-progress-value { background: var(--brand); border-radius: 5px; transition: width .35s ease; }
.progress-track::-moz-progress-bar { background: var(--brand); border-radius: 5px; }
.progress-value { min-width: 38px; color: var(--brand-dark); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

.generation-surface { overflow: hidden; }
.generation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 390px; }
.generation-pane { min-width: 0; display: flex; flex-direction: column; }
.generation-pane + .generation-pane { border-left: 1px solid var(--line); }
.generation-textarea { flex: 1; width: 100%; min-height: 340px; padding: 18px; border: 0; outline: 0; resize: vertical; color: var(--ink); background: #fff; line-height: 1.75; }
.generation-textarea:focus { box-shadow: inset 0 0 0 2px rgba(31, 93, 73, .14); }
.generation-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-top: 1px solid var(--line); background: #fbfcfb; }

.upload-surface { padding: 20px; }
.dropzone { display: grid; place-items: center; min-height: 154px; padding: 22px; border: 1.5px dashed #aac1b2; border-radius: 7px; color: var(--muted); text-align: center; background: #f8fbf9; transition: border-color .16s, background .16s; }
.dropzone.dragging, .dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop-symbol { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: var(--brand); background: #dcece3; font-size: 22px; }
.dropzone strong { display: block; color: var(--ink); }
.dropzone p { margin: 5px 0 12px; font-size: 12px; }
.file-input { display: none; }
.file-list { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.file-list-scroll { max-height: 250px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); background: #fafcfb; font-size: 12px; font-weight: 650; }
.table-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.table-sort:hover, .table-sort.active { color: var(--brand-dark); }
.data-table td { color: #344139; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .align-right { text-align: right; }
.filename { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.empty-row { padding: 26px !important; color: var(--muted) !important; text-align: center !important; }
.upload-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.batch-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 11px; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head small { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.task-table .progress-cell { min-width: 160px; }
.mini-progress { position: relative; width: 150px; height: 20px; overflow: hidden; border-radius: 4px; background: #edf0ed; }
.mini-progress > progress { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #edf0ed; appearance: none; }
.mini-progress > progress::-webkit-progress-bar { background: #edf0ed; }
.mini-progress > progress::-webkit-progress-value { background: var(--red); transition: width .3s; }
.mini-progress > progress::-moz-progress-bar { background: var(--red); }
.mini-progress.done > progress::-webkit-progress-value { background: #40946c; }
.mini-progress.done > progress::-moz-progress-bar { background: #40946c; }
.mini-progress.has-error { box-shadow: inset 0 0 0 1px #d99a58; }
.mini-progress em { position: absolute; inset: 0; display: grid; place-items: center; color: #1f3027; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.result-error { min-height: 100%; display: grid; place-items: center; padding: 24px; color: var(--red); text-align: center; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9da8a1; }
.status-queued::before { background: var(--amber); }
.status-processing::before, .status-running::before { background: var(--red); }
.status-completed::before { background: #40946c; }
.status-error::before, .status-completed_error::before { background: var(--red); }
.status-stopped::before { background: #77837c; }
.inline-actions { display: inline-flex; align-items: center; gap: 6px; }
.text-button { padding: 3px 2px; border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--red); }
.muted { color: var(--muted); }
.info-note { margin-top: 13px; color: var(--muted); font-size: 12px; }

.account-layout { display: block; }
.account-nav { display: grid; align-content: start; gap: 4px; }
.account-nav button { padding: 10px 11px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; text-align: left; }
.account-nav button:hover, .account-nav button.active { color: var(--brand-dark); background: var(--brand-soft); }
.account-panel { padding: 25px; }
.account-panel h2 { margin: 0 0 5px; font-size: 18px; }
.account-panel > p { margin: 0 0 24px; color: var(--muted); }
.form-actions { display: flex; gap: 8px; padding-top: 5px; }

.admin-layout { width: min(1480px, 100%); margin: 0 auto; padding: 28px 32px 42px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }
.admin-nav { align-self: start; position: sticky; top: 95px; display: grid; gap: 4px; }
.admin-nav button { padding: 10px 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; text-align: left; }
.admin-nav button:hover, .admin-nav button.active { color: var(--brand-dark); background: var(--brand-soft); }
.admin-nav-label { margin: 2px 12px 6px; color: var(--muted); font-size: 11px; letter-spacing: 0; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 5px; font-size: 25px; font-weight: 750; font-variant-numeric: tabular-nums; }
.admin-surface { margin-top: 22px; padding: 20px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.toolbar h2 { margin: 0; font-size: 17px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { min-height: 34px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; }
.history-surface { overflow: hidden; }
.history-surface-flush { margin-top: 0; }
.history-loading { display: inline-flex; align-items: center; gap: 7px; }
.history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 12px; }
.history-range { min-height: 30px; display: inline-flex; align-items: center; }
.history-pagination-controls { display: inline-flex; align-items: center; gap: 9px; }
.history-page-count { min-width: 54px; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.setting-full { grid-column: 1 / -1; }
.form-section-title { margin: 4px 0 0; font-size: 16px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(18, 30, 24, .46); }
.modal { width: min(900px, 100%); max-height: min(760px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--paper); box-shadow: 0 24px 80px rgba(12, 24, 18, .24); }
.modal-compact { width: min(520px, 100%); }
.modal-wide { width: min(1180px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.modal-body { overflow: auto; padding: 0 20px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfb; }
.close-button { width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 20px; }
.close-button:hover { color: var(--ink); background: var(--soft); }
.admin-task-table td { vertical-align: top; }
.task-submitter { display: grid; gap: 2px; min-width: 130px; }
.task-submitter small { color: var(--muted); font-size: 11px; }
.task-count { display: grid; gap: 2px; }
.task-count small { color: var(--muted); font-size: 11px; }
.admin-task-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0 13px; color: var(--muted); font-size: 12px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; animation: toast-in .2s ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.spinner { width: 15px; height: 15px; border: 2px solid #c8d8ce; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .topbar { padding: 0 18px; }
    .brand { min-width: 0; }
    .brand small, .topnav { display: none; }
    .workspace-layout, .admin-layout { padding: 22px 18px 36px; grid-template-columns: 1fr; gap: 18px; }
    .side-panel, .admin-nav { position: static; }
    .mode-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .side-note { display: none; }
    .account-layout { grid-template-columns: 1fr; gap: 13px; }
    .account-nav { display: flex; overflow-x: auto; }
    .account-nav button { white-space: nowrap; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .topbar { height: 60px; flex-basis: 60px; padding: 0 12px; }
    .brand { min-width: 0; flex: 1; }
    .user-trigger { padding: 4px; }
    .user-trigger > span:nth-child(2), .user-trigger .chevron { display: none; }
    .topbar-actions .button { min-height: 32px; padding: 0 9px; font-size: 12px; }
    .workspace-layout, .admin-layout { padding: 17px 12px 30px; }
    .page-heading { display: block; }
    .heading-actions { margin-top: 12px; }
    .editor-grid { grid-template-columns: 1fr; }
    .editor-pane + .editor-pane { border-top: 1px solid var(--line); border-left: 0; }
    .editor-textarea, .result-area { min-height: 250px; }
    .mode-list { grid-template-columns: 1fr; }
    .generation-grid { grid-template-columns: 1fr; }
    .generation-pane + .generation-pane { border-top: 1px solid var(--line); border-left: 0; }
    .generation-textarea { min-height: 220px; }
    .generation-actions { align-items: stretch; flex-direction: column; }
    .editor-footer { align-items: stretch; flex-direction: column; }
    .progress-wrap { min-width: 0; width: 100%; }
    .editor-actions { justify-content: flex-end; }
    .upload-surface { padding: 12px; }
    .data-table th, .data-table td { padding: 9px 8px; }
    .filename { max-width: 180px; }
    .batch-actions { justify-content: stretch; }
    .batch-actions .article-type-control { flex: 1 0 100%; justify-content: flex-end; }
    .batch-actions .button { flex: 1; }
    .auth-panel { padding: 25px 20px; }
    .stat-grid { gap: 8px; }
    .stat { padding: 12px; }
    .stat-value { font-size: 21px; }
    .settings-grid { grid-template-columns: 1fr; }
    .setting-full { grid-column: auto; }
    .history-pagination { align-items: stretch; flex-direction: column; }
    .history-pagination-controls { justify-content: space-between; }
    .history-pagination-controls .button { flex: 1; }
    .history-page-count { flex: 0 0 auto; }
}
