:root {
  --bg: #0b0d14;
  --surface: #131722;
  --surface-2: #1a2030;
  --surface-hover: #21283b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #d9480f;
  --accent-light: #fb923c;
  --accent-soft: rgba(255, 107, 0, 0.14);
  --highlight-bg: rgba(250, 204, 21, 0.16);
  --highlight-border: rgba(250, 204, 21, 0.45);
  --highlight-text: #fde047;
  --breaking-bg: rgba(239, 68, 68, 0.15);
  --breaking-text: #f87171;
  --green-soft: rgba(16, 185, 129, 0.14);
  --green-text: #34d399;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --blue-text: #60a5fa;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --card-shadow: none;
  --radius: 14px;
  --radius-sm: 10px;
}

[data-theme="light"] {
  --bg: #edf0f5;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-hover: #e6ebf2;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-sub: #334155;
  --text-muted: #526071;
  --accent: #d9480f;
  --accent-light: #c2410c;
  --accent-soft: rgba(217, 72, 15, 0.09);
  --highlight-bg: rgba(254, 240, 138, 0.58);
  --highlight-border: #eab308;
  --highlight-text: #854d0e;
  --breaking-bg: rgba(239, 68, 68, 0.1);
  --breaking-text: #dc2626;
  --green-soft: rgba(16, 185, 129, 0.12);
  --green-text: #047857;
  --blue-soft: rgba(37, 99, 235, 0.09);
  --blue-text: #1d4ed8;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
input { font-family: inherit; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.news-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .news-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.28);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-title { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-text);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-sub);
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
}

.progress-strip {
  height: 3px;
  width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.35s ease;
}

/* Hero Banner (Compact & Text-First) */
.hero-bar {
  padding: 20px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero-copy h1 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.hero-copy p {
  font-size: 13.5px;
  color: var(--text-sub);
}

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

.cta-trends-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-trends-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 107, 0, 0.42);
}

.cta-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.cta-home-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.snack-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.snack-meter strong { color: var(--accent-light); }

/* Top 8 Keywords Bar */
.keyword-section {
  margin: 8px 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .keyword-section {
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
  border-color: rgba(217, 72, 15, 0.16);
}

.keyword-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-sub);
}

.keyword-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.keyword-list::-webkit-scrollbar { display: none; }

.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.kw-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.kw-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.kw-rank {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-light);
}
.kw-chip.active .kw-rank { color: #fff; }

.kw-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
[data-theme="light"] .kw-count { background: rgba(15, 23, 42, 0.06); }
.kw-chip.active .kw-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* Issue Clusters */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.cluster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cluster-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.cluster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 11.5px;
  font-weight: 800;
}

.cluster-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.cluster-main-link {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.015em;
  display: block;
}

.cluster-main-link:hover { color: var(--accent-light); }
.cluster-main-link.is-read { opacity: 0.62; }

.cluster-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cluster-related {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cluster-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-sub);
}

.cluster-sub-item:hover .sub-title {
  color: var(--accent-light);
  text-decoration: underline;
}

.press-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
}

/* Main 2-column Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

/* Category Tabs & Smart Filters */
.feed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .feed-panel {
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .cat-tabs {
  background: #f7f9fc;
}

[data-theme="light"] .news-row:nth-child(even):not(.kw-highlighted) {
  background: #fafbfd;
}

[data-theme="light"] .news-row:not(.kw-highlighted):hover {
  background: #f1f5f9;
}

[data-theme="light"] .cluster-card {
  border-top: 3px solid rgba(217, 72, 15, 0.28);
}

[data-theme="light"] .cluster-related {
  background: #f8fafc;
  margin: 0 -16px -16px;
  padding: 12px 16px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab:hover { background: var(--surface-2); color: var(--text); }
.cat-tab.active {
  background: var(--accent);
  color: #fff;
}

.cat-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .cat-tab:not(.active) .cat-count {
  background: rgba(15, 23, 42, 0.08);
}

.filter-toolbar {
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.search-box input {
  width: 100%;
  padding: 8px 34px 8px 32px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  pointer-events: none;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.15s ease;
}

.filter-toggle:hover { border-color: var(--border-strong); }
.filter-toggle.on {
  background: var(--green-soft);
  border-color: var(--green-text);
  color: var(--green-text);
}

.filter-toggle.on-accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
}

.hidden-badge {
  font-size: 11px;
  opacity: 0.88;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.12s ease;
}

.news-row:hover { background: var(--surface-2); }

.news-row.kw-highlighted {
  background: var(--highlight-bg);
  border-left: 3px solid var(--highlight-border);
}

.news-row.is-read .news-title-link {
  opacity: 0.6;
}

.news-main {
  min-width: 0;
  flex: 1;
}

.news-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.badge-breaking {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--breaking-bg);
  color: var(--breaking-text);
  font-size: 11px;
  font-weight: 800;
}

.badge-kw {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  color: var(--highlight-text);
  font-size: 11px;
  font-weight: 800;
}

.badge-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.news-title-link {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: inline-block;
  word-break: keep-all;
}

.news-title-link:hover {
  color: var(--accent-light);
}

.kw-mark {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 900;
}

.news-meta-line {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.news-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.row-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-sub);
  transition: all 0.15s ease;
}

.row-btn:hover { border-color: var(--border-strong); color: var(--text); }
.row-btn.saved {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Native In-Feed Ad Slot */
.native-ad-row {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.ad-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  margin-right: 8px;
}

.native-ad-text {
  color: var(--text-sub);
  font-weight: 600;
}

.native-ad-cta {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-text);
  white-space: nowrap;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 78px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.side-title {
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Briefing Tabs */
.slot-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.slot-tab {
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-sub);
  text-align: center;
}

.slot-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
}

.briefing-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.briefing-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.42;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.briefing-item:last-child { border-bottom: none; padding-bottom: 0; }
.briefing-num {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-light);
  min-width: 16px;
  padding-top: 2px;
}

.briefing-link:hover { color: var(--accent-light); }
.briefing-press {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* My Keywords (LocalStorage) */
.kw-form {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.kw-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
}

.kw-form input:focus { border-color: var(--accent); }

.kw-add-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.my-kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.my-kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  color: var(--highlight-text);
  font-size: 12px;
  font-weight: 800;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.preset-btn {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-sub);
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent-light); }

/* Archive Card */
.archive-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
}

.archive-link:hover { border-color: var(--accent); color: var(--accent-light); }

/* AdSense & SEO Editorial Value Section */
.seo-editorial {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.editorial-card.full-span {
  grid-column: 1 / -1;
}

.editorial-card h2 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.glossary-item {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.glossary-term {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.glossary-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}

.literacy-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--text-sub);
}

.literacy-list li {
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.literacy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-text);
  font-weight: 900;
}

.compliance-note {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* Footer */
.news-footer {
  margin-top: 36px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
}

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 13px;
}

.footer-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.tool-pill:hover { border-color: var(--accent); color: var(--accent-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Bookmark Drawer Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
}

.modal-body {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.empty-reset-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.15s ease;
}

.empty-reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* SEO Guide (Theme-aware) */
.seo-guide-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.seo-guide-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.65;
  box-shadow: var(--card-shadow);
}

.seo-guide-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.seo-guide-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-guide-body h2 {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
}

.seo-guide-body p {
  margin: 0;
}

.seo-guide-body ul {
  padding-left: 16px;
  margin: 0;
}

@media (max-width: 980px) {
  .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .seo-editorial { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cluster-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .status-pill { display: none; }
  .header-inner { height: auto; min-height: 54px; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .brand-badge { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
  .brand-title { font-size: 15.5px; }
  .brand-sub { display: none; }
  .header-controls { gap: 6px; }
  .header-controls .btn-label { display: none; }
  .icon-btn { min-width: 34px; padding: 0 9px; }
  .hero-bar { padding: 16px 0 10px; gap: 12px; }
  .hero-copy h1 { font-size: 20px; line-height: 1.32; word-break: keep-all; }
  .hero-copy p { font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
  .hero-actions { width: 100%; gap: 8px; }
  .cta-trends-btn { flex: 1 1 auto; justify-content: center; padding: 11px 14px; font-size: 13.5px; }
  .cta-home-btn { padding: 10px 14px; font-size: 13.5px; }
  .snack-meter { width: 100%; justify-content: space-between; padding: 8px 14px; }
  .keyword-list {
    padding-right: 20px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-title { font-size: 15px; word-break: keep-all; }
  .news-row { padding: 12px 13px; }
}
