.back-link,
.header-btn,
.secondary-button,
.reset-button,
.source-toggle,
.load-more-button,
.card-button,
.detail-link,
.danger-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.back-link,
.header-btn {
  min-height: 38px;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease;
}

.back-link:hover,
.header-btn:hover {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
}

.count-badge {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, .12);
}

.data-meta[data-tone="stale"] .live-dot,
.data-meta[data-tone="partial"] .live-dot,
.data-meta[data-tone="refreshing"] .live-dot {
  background: #fdb022;
  box-shadow: 0 0 0 4px rgba(253, 176, 34, .12);
}

.data-meta[data-tone="error"] .live-dot {
  background: #f97066;
  box-shadow: 0 0 0 4px rgba(249, 112, 102, .12);
}

.secondary-button {
  min-height: 40px;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 750;
}

.secondary-button:hover {
  background: var(--panel-soft);
}

.secondary-button:disabled {
  cursor: wait;
  opacity: .65;
}

.secondary-button.is-loading .refresh-icon {
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.metric-card {
  display: flex;
  min-height: 68px;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-strong);
  font-size: 25px;
  line-height: 1;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: #eef2f6;
  color: var(--ink);
}

.metric-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.accent-card .metric-icon {
  background: #eef2f6;
  color: var(--accent-dark);
}

.metric-card.accent-card {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.metric-card.accent-card small {
  color: var(--accent-dark);
}

.metric-card.accent-card strong {
  color: #c92a1d;
}

.overview-heading-icon {
  background: linear-gradient(145deg, #ff5a3d, #e7351f);
  color: #fff;
  box-shadow: 0 5px 12px rgba(231, 53, 31, .22);
}

.overview-heading-icon .overview-signal {
  stroke: #ffd7cf;
  stroke-width: 3;
}

.result-count,
.source-summary {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.stage-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stage-tabs::-webkit-scrollbar {
  display: none;
}

.stage-tabs button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.stage-tabs button em {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
}

.stage-tabs button.active {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.stage-tabs button.active em {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.filter-panel,
.source-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  margin-bottom: 14px;
  padding: 13px;
}

.search-field {
  position: relative;
  display: block;
  margin-bottom: 11px;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 9px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--panel-soft);
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--subtle);
}

.search-field input:focus {
  border-color: #84adff;
  background: #fff;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--subtle);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--subtle);
  content: "";
  transform: rotate(45deg);
}

#clearSearchBtn {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #e9eef3;
  color: var(--muted);
  cursor: pointer;
}

.filter-grid label {
  min-width: 0;
}

.filter-grid label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.filter-grid select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.reset-button {
  align-self: end;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.reset-button:hover {
  background: #e4e9ef;
  color: var(--ink);
}

.feed-notice {
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid #fedf89;
  border-radius: 11px;
  background: var(--amber-soft);
  color: #93470b;
  font-size: 14px;
  line-height: 1.55;
}

.feed-notice[data-tone="error"] {
  border-color: #fecdca;
  background: var(--danger-soft);
  color: var(--danger);
}

.topic-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.topic-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--line-strong);
  content: "";
}

.topic-card[data-stage="rising"]::before {
  background: var(--accent);
}

.topic-card[data-stage="cross_border"]::before {
  background: var(--blue);
}

.topic-card[data-stage="evergreen"]::before {
  background: var(--green);
}

.topic-card[data-stage="cooling"]::before {
  background: var(--subtle);
}

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

.topic-card-head,
.topic-card-footer,
.topic-meta,
.topic-badges,
.topic-actions,
.target-list {
  display: flex;
  align-items: center;
}

.topic-card-head,
.topic-card-footer {
  justify-content: space-between;
  gap: 12px;
}

.topic-badges,
.topic-meta,
.target-list {
  flex-wrap: wrap;
  gap: 7px;
}

.stage-badge,
.source-badge,
.meta-chip,
.target-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
}

.stage-badge,
.source-badge {
  padding: 5px 8px;
  font-weight: 800;
}

.stage-badge[data-stage="rising"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.stage-badge[data-stage="cross_border"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.stage-badge[data-stage="evergreen"] {
  background: var(--green-soft);
  color: var(--green);
}

.stage-badge[data-stage="cooling"] {
  background: #eef2f6;
  color: var(--muted);
}

.stage-badge[data-stage="other"] {
  background: var(--purple-soft);
  color: var(--purple);
}

.source-badge {
  max-width: 190px;
  overflow: hidden;
  background: #f2f4f7;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-score {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.opportunity-score strong {
  margin-left: 3px;
  font-size: 22px;
}

.topic-card h3 {
  margin: 10px 0 5px;
  color: var(--ink-strong);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.38;
}

.topic-card .topic-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.topic-meta span + span::before {
  margin-right: 7px;
  color: var(--line-strong);
  content: "•";
}

.topic-card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.target-chip,
.meta-chip {
  padding: 4px 7px;
  background: #f5f7fa;
  color: var(--muted);
}

.target-label {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
}

.topic-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.card-button {
  min-height: 34px;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.card-button .ui-icon {
  width: 15px;
  height: 15px;
}

.card-button:hover {
  border-color: #aeb8c5;
  background: var(--panel-soft);
}

.card-button.primary {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.card-button.saved {
  border-color: #b7e3cd;
  background: var(--green-soft);
  color: var(--green);
}

.source-panel {
  padding: 17px;
}

.source-heading {
  align-items: flex-end;
  gap: 8px;
}

.source-heading h2 {
  font-size: 18px;
}

.source-intro {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.source-list {
  display: grid;
  gap: 2px;
}

.source-list:not(.is-collapsed) {
  max-height: min(62vh, 620px);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.source-list:not(.is-collapsed) .source-copy strong,
.source-list:not(.is-collapsed) .source-copy small {
  overflow: visible;
  white-space: normal;
}

.source-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 5px;
  border-bottom: 1px solid #edf0f4;
}

.source-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #f2f4f7;
  color: #344054;
  overflow: hidden;
}

.source-logo svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.source-logo svg.brand-fill {
  fill: currentColor;
  stroke: none;
}

.source-logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.source-logo[data-brand="trendradar"] img {
  width: 24px;
  height: 24px;
}

.source-logo[data-brand="mediacrawler"] img {
  border-radius: 6px;
}

.source-logo[data-brand="generic"] { background: #f2f4f7; color: #475467; }

.source-item:last-child {
  border-bottom: 0;
}

.source-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

.source-item[data-status="healthy"] .source-status-dot {
  background: #12b76a;
}

.source-item[data-status="partial"] .source-status-dot,
.source-item[data-status="stale"] .source-status-dot {
  background: #f79009;
}

.source-item[data-status="error"] .source-status-dot,
.source-item[data-status="offline"] .source-status-dot,
.source-item[data-status="unauthorized"] .source-status-dot {
  background: #f04438;
}

.source-item[data-status="unconfigured"] .source-status-dot {
  background: #f79009;
}

.source-copy {
  min-width: 0;
}

.source-copy strong,
.source-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
}

.source-copy strong .source-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
}

.source-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.source-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.source-toggle {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border-radius: 9px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.source-list.is-collapsed .source-item:nth-child(n+9) {
  display: none;
}

.feed-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 14px;
}

.feed-footer[hidden] {
  display: none;
}

.load-more-button {
  min-width: 220px;
  min-height: 44px;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--ink-strong);
  border-radius: 11px;
  background: var(--ink-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.load-more-button:hover {
  background: #24314a;
}

.load-more-button:disabled {
  cursor: wait;
  opacity: .7;
}

.load-more-button.is-loading .load-more-icon {
  animation: spin .8s linear infinite;
}

.state-panel,
.skeleton-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.state-panel {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  text-align: center;
}

.state-panel > div {
  max-width: 470px;
}

.state-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--muted);
  font-size: 20px;
}

.state-panel strong,
.state-panel span {
  display: block;
}

.state-panel strong {
  color: var(--ink-strong);
  font-size: 16px;
}

.state-panel span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.state-panel .secondary-button {
  margin: 14px auto 0;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.skeleton-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

.skeleton-line {
  height: 12px;
  margin: 9px 0;
  border-radius: 6px;
  background: #edf1f5;
}

.skeleton-line.short { width: 26%; }
.skeleton-line.medium { width: 64%; }
.skeleton-line.title { width: 82%; height: 22px; margin: 20px 0 14px; }

@keyframes shimmer {
  to { transform: translateX(100%); }
}

dialog {
  width: min(920px, calc(100% - 28px));
  max-height: min(88vh, 880px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 24, 40, .28);
}

dialog::backdrop {
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  padding: 25px;
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.detail-eyebrow {
  margin: 0 44px 7px 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}

.topic-detail h2 {
  margin: 0 48px 8px 0;
  color: var(--ink-strong);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.22;
}

.topic-detail .detail-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 11px;
  color: var(--ink-strong);
  font-size: 15px;
}

.trend-chart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--accent);
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 96px;
}

.trend-chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-history-loading,
.insight-loading {
  display: grid;
  gap: 9px;
}

.detail-history-loading span,
.insight-loading span {
  height: 13px;
  border-radius: 7px;
  background: #edf1f5;
}

.detail-history-loading span:nth-child(2),
.insight-loading span:nth-child(2) { width: 78%; }
.detail-history-loading span:nth-child(3),
.insight-loading span:nth-child(3) { width: 55%; }

.insight-panel {
  padding: 18px;
  border: 1px solid #d7e2ff;
  border-radius: 15px;
  background: #f8faff;
}

.insight-panel.detail-section {
  border-top-color: #d7e2ff;
}

.insight-panel > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.gpt-analyze-button {
  margin-top: 14px;
}

.insight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-title small {
  color: var(--muted);
  font-size: 11px;
}

.insight-verdict {
  margin: 10px 0 16px;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
}

.insight-panel h4 {
  margin: 17px 0 9px;
  color: var(--ink-strong);
  font-size: 14px;
}

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

.angle-card {
  display: flex;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.angle-card > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.angle-card h4 { margin: 1px 0 6px; }
.angle-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.angle-card em { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 11px; font-style: normal; font-weight: 750; }

.caution-list li { background: #fff8eb; }

.detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: 11px 12px 11px 31px;
  border-radius: 11px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.detail-list li::before {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--accent);
  content: "◆";
  font-size: 9px;
}

.evidence-item a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.evidence-item a:hover {
  text-decoration: underline;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-link,
.detail-actions .card-button {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
}

.detail-link {
  background: var(--ink-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.library-heading {
  align-items: flex-start;
  gap: 18px;
  padding-right: 46px;
}

.preferences-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.library-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.preferences-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.preferences-form textarea,
.preferences-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.preferences-form .preference-check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preference-help {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.library-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.danger-text-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}

.library-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.library-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.library-item h3 {
  margin: 0 0 5px;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.45;
}

.library-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.library-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 12px;
}

.library-item-actions label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.library-item-actions select {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.remove-topic {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 11px 14px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
