@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:wght@400;500;600&display=swap');

:root {
  --primary: #1A237E;
  --secondary: #303F9F;
  --tertiary: #3F51B5;
  --light: #7986CB;
  --bg: #C5CAE9;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #CFD8DC;
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-muted: #90A4AE;
  --accent: #37474F;
  --accent-light: #546E7A;
  --danger: #D32F2F;
  --danger-light: #FFEBEE;
  --success: #2E7D32;
  --success-light: #E8F5E9;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(55, 71, 79, 0.08);
  --shadow-md: 0 4px 12px rgba(55, 71, 79, 0.1);
  --shadow-lg: 0 8px 24px rgba(55, 71, 79, 0.12);
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

::selection {
  background: var(--tertiary);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.app-header {
  background: var(--primary);
  color: var(--white);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(38, 50, 56, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-icon {
  font-size: 1.4rem;
  color: var(--light);
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tab-nav {
  display: flex;
  gap: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ========== MAIN ========== */
.app-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ========== TIMELINE ========== */
.timeline-container {
  animation: fadeIn 0.3s ease;
}

.timeline-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tertiary);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(84, 110, 122, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--tertiary);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.refresh-btn {
  background: var(--white);
  border: 1px solid var(--card-border);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.refresh-btn:hover:not(:disabled) {
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-meta {
  display: flex;
  gap: 1rem;
  padding: 0 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-count {
  font-weight: 500;
  color: var(--secondary);
}

.error-banner {
  background: var(--danger-light);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ========== ARTICLE CARDS ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-card {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  animation: slideUp 0.35s ease both;
}

.article-card:hover {
  border-color: var(--tertiary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.article-content {
  flex: 1;
  min-width: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.article-source {
  background: var(--bg);
  color: var(--secondary);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.article-date {
  color: var(--text-muted);
  white-space: nowrap;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-snippet {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-thumb-wrapper {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
  margin: 0 auto;
}

/* ========== FEED MANAGER ========== */
.manager-container {
  animation: fadeIn 0.3s ease;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.add-feed-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.add-feed-row {
  display: flex;
  gap: 0.5rem;
}

.feed-url-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-url-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(84, 110, 122, 0.15);
  background: var(--white);
}

.feed-url-input::placeholder {
  color: var(--text-muted);
}

.add-feed-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.add-feed-btn:hover:not(:disabled) {
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.add-feed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* ========== QUICK ADD ========== */
.quick-add-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.quick-feed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-feed-chip {
  background: var(--bg);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-feed-chip:hover:not(:disabled) {
  border-color: var(--secondary);
  color: var(--primary);
  background: var(--white);
}

.quick-feed-chip.added {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
  cursor: default;
}

/* ========== MY FEEDS ========== */
.my-feeds-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.feed-count-badge {
  background: var(--bg);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
}

.empty-feeds {
  padding: 2rem 1rem;
  text-align: center;
}

.empty-feeds-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  gap: 1rem;
  animation: slideUp 0.3s ease both;
}

.feed-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.feed-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-remove-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.feed-remove-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-light);
}

/* ========== SKELETON ========== */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--card-border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-title {
  height: 18px;
  width: 60%;
  margin-bottom: 0.75rem;
}

.skeleton-meta {
  height: 12px;
  width: 35%;
  margin-bottom: 0.6rem;
}

.skeleton-body {
  height: 12px;
  width: 90%;
  margin-bottom: 0.4rem;
}

.skeleton-body.short {
  width: 55%;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .app-header {
    padding: 0 1rem;
    height: 56px;
  }

  .header-title {
    font-size: 1.15rem;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .app-main {
    padding: 1rem 0.75rem 2rem;
  }

  .timeline-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .refresh-btn {
    width: 100%;
    text-align: center;
  }

  .add-feed-row {
    flex-direction: column;
  }

  .add-feed-btn {
    width: 100%;
    text-align: center;
  }

  .article-card {
    padding: 0.9rem 1rem;
  }

  .article-thumb-wrapper {
    width: 72px;
    height: 60px;
  }

  .article-title {
    font-size: 0.95rem;
  }

  .article-snippet {
    -webkit-line-clamp: 1;
  }

  .add-feed-section,
  .quick-add-section,
  .my-feeds-section {
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 380px) {
  .article-thumb-wrapper {
    display: none;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Feedstream — your personal RSS feed aggregator. Let's start by adding some feeds.", "view": "user", "highlight_selector": ".tab-btn:last-child", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Head to Manage Feeds to add RSS feed URLs or quick-add popular sources like Hacker News and TechCrunch.", "view": "user", "highlight_selector": ".quick-feed-grid", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Click any popular feed chip to instantly add it, or paste a custom feed URL and click Add Feed.", "view": "user", "highlight_selector": ".add-feed-row", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Switch to the Timeline tab to see all your articles in one unified feed, sorted by date.", "view": "user", "highlight_selector": ".tab-btn:first-child", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Use the search bar to find articles across all your feeds by title, source, or content. Click any article to read the full post.", "view": "user", "highlight_selector": ".search-wrapper", "wait_for": "tap_to_continue"}
]
-->

.auth-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.auth-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.auth-login-btn {
  appearance: none;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-login-btn:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.user-chip {
  font-size: 0.85rem;
  color: var(--light);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
  .app-header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
    order: 2;
  }

  .tab-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

.feed-category-select {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 120px;
}

.feed-category-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(84, 110, 122, 0.15);
  background: var(--white);
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.category-filter-chip {
  background: var(--bg);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-filter-chip:hover {
  border-color: var(--secondary);
  color: var(--primary);
  background: var(--white);
}

.category-filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chip-category {
  opacity: 0.75;
  font-size: 0.75rem;
  margin-left: 0.15rem;
}

.feed-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.feed-category-pill {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .add-feed-row {
    flex-direction: column;
  }

  .feed-category-select {
    width: 100%;
  }
}

.timeline-view-filter {
  margin-bottom: 0.9rem;
}

.article-save-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.article-save-btn:hover {
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.article-save-btn.saved {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.filter-settings-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.filter-settings-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.filter-settings-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.status-pill {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.on {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.status-pill.off {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.filter-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}

.keyword-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.keyword-chip {
  appearance: none;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.keyword-chip:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.filter-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.status-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.status-card-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.status-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .filter-settings-header {
    flex-direction: column;
  }

  .filter-settings-status {
    justify-content: flex-start;
  }

  .filter-input-row {
    flex-direction: column;
  }

  .filter-status-grid {
    grid-template-columns: 1fr;
  }
}

.bookmark-export-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.bookmark-export-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.bookmark-export-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .bookmark-export-header {
    flex-direction: column;
  }

  .bookmark-export-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .bookmark-export-controls .feed-category-select,
  .bookmark-export-controls .article-save-btn {
    width: 100%;
  }
}
