:root {
  --navy: #0f1922;
  --navy-light: #1e293b;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef3c7;
  --amber-glow: rgba(245, 158, 11, 0.08);
  --grey: #fafafa;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --blue-light: #e0e7ff;
  --blue: #4f46e5;
  --white: #ffffff;
  --shadow-rest: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--grey);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── Animations ────────────────────────────────── */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ─── Login Page ────────────────────────────────── */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.login-container {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand h1 { font-size: 24px; font-weight: 700; margin-top: 12px; letter-spacing: -0.02em; }
.login-brand .accent { color: var(--amber); }
.powered-by { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-primary {
  width: 100%; background: var(--amber); color: var(--white);
  border: none; padding: 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; height: 44px;
}
.btn-primary:hover { background: var(--amber-dark); }

.error-msg { color: var(--red); font-size: 13px; margin-top: 16px; text-align: center; min-height: 20px; }
.error-msg.shake { animation: shake 0.3s ease; }
.login-seal { text-align: center; margin-top: 24px; }
.seal-row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ─── D-Pad Icon ────────────────────────────────── */

.dpad-icon { width: 40px; height: 40px; position: relative; display: inline-block; }
.dpad-icon::before, .dpad-icon::after { content: ''; position: absolute; background: var(--amber); border-radius: 4px; }
.dpad-icon::before { width: 40px; height: 14px; top: 13px; left: 0; }
.dpad-icon::after { width: 14px; height: 40px; top: 0; left: 13px; }
.dpad-icon span { position: absolute; width: 14px; height: 14px; background: var(--navy); top: 13px; left: 13px; z-index: 1; }

/* ─── Header ────────────────────────────────────── */

.header {
  background: var(--navy);
  background-image: linear-gradient(180deg, #1e293b 0%, var(--navy) 100%);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-brand .dpad-icon { width: 28px; height: 28px; }
.header-brand .dpad-icon::before { width: 28px; height: 10px; top: 9px; }
.header-brand .dpad-icon::after { width: 10px; height: 28px; top: 0; left: 9px; }
.header-brand .dpad-icon span { width: 10px; height: 10px; top: 9px; left: 9px; }
.brand-text { color: var(--white); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text .accent { color: var(--amber); }

.header-right { display: flex; align-items: center; gap: 16px; }
.scrape-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.6); }
.scrape-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.scrape-dot.failed { background: var(--red); }
.scrape-dot.pending { background: var(--amber); }
.header-user { color: rgba(255,255,255,0.4); font-size: 13px; }
.logout-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6); padding: 6px 14px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.logout-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }

/* ─── Layout ────────────────────────────────────── */

.layout { display: flex; min-height: calc(100vh - 56px); }

.sidebar { width: 256px; background: var(--white); border-right: 1px solid var(--border); padding: 16px 0; flex-shrink: 0; }
.sidebar-header { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 24px 20px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; height: 36px; color: var(--muted);
  font-size: 14px; font-weight: 500; cursor: pointer;
  border-left: 3px solid transparent; border-radius: 8px;
  margin: 2px 8px; transition: all 0.15s;
}
.nav-item:hover { background: var(--grey); color: var(--text); }
.nav-item.active {
  color: var(--amber); border-left-color: var(--amber);
  background: var(--amber-glow);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.main { flex: 1; padding: 24px 32px; overflow-y: auto; padding-bottom: 80px; }

/* ─── Stats ─────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-rest);
  border-left: 3px solid var(--navy);
}
.stat-card.drafts { border-left-color: var(--amber); }
.stat-card.published { border-left-color: var(--green); }
.stat-card.rejected { border-left-color: var(--red); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-top: 4px; letter-spacing: -0.03em; }
.stat-value.drafts { color: var(--amber); }
.stat-value.published { color: var(--green); }
.stat-value.rejected { color: var(--red); }

/* ─── Paste Box ─────────────────────────────────── */

.paste-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
  box-shadow: var(--shadow-rest);
}
.paste-box h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.paste-box p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.paste-form { display: flex; gap: 10px; flex-wrap: wrap; }
.paste-input {
  flex: 1; min-width: 200px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.paste-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.paste-btn {
  background: var(--navy); color: var(--white); border: none;
  padding: 10px 20px; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.paste-btn:hover { background: var(--navy-light); }
.paste-status { font-size: 13px; margin-top: 10px; display: none; }
.paste-status.show { display: block; }
.paste-status.processing { color: var(--amber); }
.paste-status.success { color: var(--green); }
.paste-status.error { color: var(--red); }

/* ─── Toolbar ────────────────────────────────────── */

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.toolbar-left { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.filter-select, .category-select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: var(--white);
  font-family: inherit; cursor: pointer; transition: border-color 0.15s;
}
.filter-select:focus, .category-select:focus { outline: none; border-color: var(--amber); }

.search-input {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; width: 240px;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }

/* ─── Article Cards ─────────────────────────────── */

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.article-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-rest);
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card-thumb { width: 100%; height: 140px; object-fit: cover; }
.card-thumb-placeholder {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px;
}
.card-body { padding: 16px; }
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.card-source { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-date { font-size: 11px; color: var(--muted); }

/* ─── Skeleton Card ─────────────────────────────── */

.skeleton-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.skeleton-thumb { width: 100%; height: 140px; }
.skeleton-body { padding: 16px; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }

/* ─── Badges ────────────────────────────────────── */

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-draft { background: var(--amber-light); color: #92400e; }
.badge-published { background: var(--green-light); color: #065f46; }
.badge-rejected { background: var(--red-light); color: #991b1b; }
.badge-category { background: var(--blue-light); color: var(--blue); }
.badge-pending { background: #f3f4f6; color: var(--muted); }
.badge-words { background: #f0fdf4; color: #166534; }

/* ─── Modal ─────────────────────────────────────── */

.modal-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100;
}
.modal-overlay.show { display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; }
.modal {
  background: var(--white); border-radius: 12px; max-width: 720px;
  width: 100%; padding: 32px; margin-bottom: 40px;
  animation: fadeInUp 0.2s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-header h2 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 0; line-height: 1; }
.modal-close:hover { color: var(--text); }

.modal-title {
  width: 100%; padding: 10px 12px; border: 1px solid transparent;
  border-radius: 8px; font-size: 20px; font-weight: 700; font-family: inherit;
  color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em;
}
.modal-title:focus { border-color: var(--amber); outline: none; background: var(--grey); }

.modal-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.modal-source { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal-source a { color: var(--amber); text-decoration: none; }
.modal-source a:hover { text-decoration: underline; }

.modal-images { margin: 16px 0; }
.modal-images h4 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 600; }
.image-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.image-thumb { width: 120px; height: 80px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.image-thumb-placeholder { width: 120px; height: 80px; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }

.modal-content-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 20px 0 8px; font-weight: 600; }

/* WYSIWYG Editor */
.wysiwyg-toolbar {
  display: flex; gap: 4px; padding: 8px; border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--grey);
}
.wysiwyg-toolbar button {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 14px; color: var(--text);
  transition: background 0.15s, border-color 0.15s; min-width: 32px;
}
.wysiwyg-toolbar button:hover { background: var(--amber-glow); border-color: var(--amber); }
.wysiwyg-editor {
  width: 100%; min-height: 200px; max-height: 350px; overflow-y: auto;
  padding: 16px; border: 1px solid var(--border); border-radius: 0 0 8px 8px;
  font-size: 15px; line-height: 1.7; color: var(--text); outline: none;
  background: var(--white);
}
.wysiwyg-editor:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.wysiwyg-editor h2 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.wysiwyg-editor p { margin-bottom: 12px; }
.wysiwyg-editor ul, .wysiwyg-editor ol { padding-left: 24px; margin-bottom: 12px; }
.wysiwyg-editor img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.wysiwyg-editor a { color: var(--amber); }

/* Image Section */
.modal-image-section { margin: 16px 0; }
.modal-image-section h4 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 600; }
.modal-image-section .image-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.image-add-section { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.image-thumb-wrapper { position: relative; width: 120px; height: 80px; }
.image-thumb-wrapper img { width: 120px; height: 80px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.image-thumb-wrapper .remove-img { position: absolute; top: -6px; right: -6px; background: var(--red); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Unsaved changes indicator */
.unsaved-indicator {
  display: none; position: fixed; bottom: 24px; left: 24px; background: var(--amber); color: var(--white);
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.unsaved-indicator.show { display: block; }
.modal-info { font-size: 13px; color: var(--muted); margin-top: 12px; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.action-row-tools { justify-content: flex-start; }
.action-row-review {
  justify-content: center;
  gap: 10px;
}
.action-row-review button {
  min-width: 112px;
  text-align: center;
}
.action-row-review .btn-save {
  min-width: 148px;
}
.action-row-publish {
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.action-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.btn-sm { padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn-publish { background: var(--green); color: var(--white); border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn-publish-primary { min-width: 190px; padding: 12px 32px; font-size: 15px; }
.btn-publish:hover { opacity: 0.9; }
.btn-sm { padding: 7px 10px; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.action-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.btn-reject { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-reject:hover { background: #fecaca; }
.btn-save { background: var(--navy); color: var(--white); border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-save:hover { background: var(--navy-light); }

/* ─── Toast ─────────────────────────────────────── */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; box-shadow: var(--shadow-hover); font-size: 14px;
  font-weight: 500; color: var(--text); max-width: 360px;
  animation: slideInRight 0.3s ease; display: flex; align-items: center; gap: 10px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--amber); }
.toast.dismissing { animation: slideOutRight 0.3s ease forwards; }

/* ─── Loading / Empty ────────────────────────────── */

.loading { text-align: center; padding: 40px; color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.empty-state .btn-primary { width: auto; padding: 10px 24px; }

/* ─── Footer ─────────────────────────────────────── */

.dashboard-footer { text-align: center; padding: 24px 0 8px; font-size: 12px; color: var(--muted); }
.dashboard-footer .accent { color: var(--amber); font-weight: 600; }

/* ─── Bottom Nav (Mobile) ────────────────────────── */

.bottom-nav { display: none; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 10px 0 12px; color: var(--muted); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: color 0.15s; text-decoration: none;
}
.bottom-nav-item.active { color: var(--amber); }
.bottom-nav-item .nav-icon { font-size: 20px; margin-bottom: 4px; }

/* ─── Layout Toggle ────────────────────────────── */

.bulk-bar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; }
.bulk-bar button { margin-left: 0; }
.bulk-bar #bulk-count { margin-right: auto; font-size: 14px; font-weight: 600; }
.bulk-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--amber); flex-shrink: 0; }
.card-checkbox { position: absolute; top: 8px; right: 8px; z-index: 10; }
.list-checkbox { flex-shrink: 0; }
.article-card { position: relative; }

.toolbar-right { display: flex; gap: 4px; }
.layout-btn { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 18px; color: var(--muted); transition: all 0.15s; }
.layout-btn:hover { color: var(--text); border-color: var(--muted); }
.layout-btn.active { color: var(--amber); border-color: var(--amber); background: var(--amber-glow); }

/* ─── List View ────────────────────────────────── */

.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-list-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: box-shadow 0.2s ease, transform 0.2s ease; box-shadow: var(--shadow-rest); }
.article-list-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.list-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.list-thumb-placeholder { width: 56px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.list-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 480px) {
  .list-thumb, .list-thumb-placeholder { width: 40px; height: 40px; }
  .list-title { font-size: 13px; }
  .list-meta { gap: 4px; }
  .list-meta .badge { font-size: 10px; padding: 2px 8px; }
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 768px) {
  .sidebar { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .main { padding: 16px; padding-bottom: 80px; }
  .search-input { width: 100%; }
  .toolbar-left { width: 100%; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid var(--navy-light); z-index: 50;
  }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .header-right .scrape-status { display: none; }
  .modal { padding: 20px; }
  .action-row { justify-content: stretch; }
  .action-row button { flex: 1; }
  .action-row-publish { flex-direction: column; }
  .action-row-publish button { width: 100%; }
  .toast-container { left: 16px; right: 16px; bottom: 80px; }
  .toast { max-width: none; }
}
