.source-kind {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(25, 72, 86, .08);
  color: #254f5a;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
.source-kind[data-kind="company"] { background: #f9e4d4; color: #7d3c17; }
.source-kind[data-kind="official"], .source-kind[data-kind="system"] { background: #deeee6; color: #235740; }
.source-kind[data-kind="academic"], .source-kind[data-kind="research"] { background: #fff0dd; color: #784719; }
.story-cluster-card .source-kind { margin-bottom: 5px; background: rgba(0, 0, 0, .46); color: #fff; }
.topic-rail-following > .text-button { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 8px; }
.mobile-daily-tools { display: none; position: relative; }
.mobile-daily-tools summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #d4dfdc; cursor: pointer; list-style: none; }
.mobile-daily-tools summary::-webkit-details-marker { display: none; }
.mobile-daily-tools > div { position: absolute; right: 0; top: 42px; z-index: 30; min-width: 150px; padding: 8px; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
@media (max-width: 980px) { .mobile-daily-tools > div { left: 0; right: auto; } }
.mobile-daily-tools button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; }
.starter-packs { margin: 12px 0; }
#starter-pack-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.starter-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px; text-align: left; border-radius: 8px; }
.starter-pack span { font-weight: normal; }
.daily-tool-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 0; border-radius: 8px; padding: 24px; color: var(--ink, #17252c); background: #fff; }
.daily-tool-dialog::backdrop { background: rgba(15, 26, 32, .38); }
.daily-tool-dialog input, .daily-tool-dialog textarea { width: 100%; box-sizing: border-box; margin: 8px 0 16px; }
.daily-tool-dialog pre, #daily-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; }
#studio-preview { max-height: 36dvh; overflow: auto; padding: 12px; background: #f5f8f7; border-radius: 6px; }
.radar-match, .podcast-match { padding: 16px 0; border-bottom: 1px solid rgba(30, 50, 60, .1); }
.radar-match button { text-align: left; }
.radar-match p, .podcast-match p { margin: 6px 0; }
.radar-match .source-kind { margin-right: 8px; }
#detail-podcast-list { display: block; }
.podcast-match a { display: block; color: inherit; font-weight: 600; }
@media (max-width: 980px) { .mobile-daily-tools { display: block; } }
@media (max-width: 600px) {
  #starter-pack-options { grid-template-columns: 1fr; }
  .daily-tool-dialog { padding: 16px; }
  .particle-heading-actions { flex-wrap: wrap; }
}
/* Brief, purposeful feedback; actions never wait for an animation. */
:where(.article-actions button, .article-actions a, .icon-button, .text-button, .particle-heading-actions button, #tabs button) {
  transition: transform 120ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  :where(.article-actions button, .article-actions a, .icon-button, .particle-heading-actions button):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 9px rgb(0 0 0 / 10%);
  }
}
:where(.article-actions button, .article-actions a, .icon-button, .text-button, .particle-heading-actions button, #tabs button):not(:disabled):active {
  transform: scale(0.97);
  box-shadow: none;
}
:where(button, a, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.save-button[aria-busy="true"] { cursor: progress; }
.save-button[aria-pressed="true"] i { color: var(--accent, #087f70); }
@media (prefers-reduced-motion: reduce) {
  :where(.article-actions button, .article-actions a, .icon-button, .text-button, .particle-heading-actions button, #tabs button, .article-card) {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
