:root {
  --accent-500: #0055ff;
  --accent-50: #e6eeff;
  --accent-25: #f3f6ff;
  --neutral-950: #101828;
  --neutral-700: #303a4f;
  --neutral-600: #3a4760;
  --neutral-500: #445371;
  --neutral-400: #69758e;
  --neutral-300: #858fa3;
  --neutral-100: #d0d4dc;
  --neutral-75: #dfe2e7;
  --neutral-50: #eceef1;
  --neutral-10: #f9fafb;
  --surface-muted: #f6f6f8;
  --success-500: #019f3c;
  --success-50: rgba(215, 245, 217, 0.5);
  --warning-200: #fed27b;
  --error-500: #e0190e;
  --error-50: #ffefef;
  --orange-500: #f28c28;
  --orange-50: #fff2e3;
  --sidebar: 276px;
  --topbar: 60px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1024px;
  height: 100%;
  margin: 0;
  color: var(--neutral-950);
  background: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  max-height: 20px;
  overflow: hidden;
  color: currentColor;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.9;
}

[data-icon] img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: var(--sidebar);
  background: var(--neutral-10);
  border-right: 1px solid var(--neutral-50);
  overflow-x: hidden;
  overflow-y: auto;
}

.project-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar);
  padding: 12px 16px 12px 24px;
  border-bottom: 1px solid var(--neutral-50);
}

.project-logo,
.user-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--accent-500);
  font-weight: 700;
}

.project-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}

.project-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.project-text strong {
  overflow: hidden;
  color: var(--neutral-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-text span {
  overflow: hidden;
  color: var(--neutral-400);
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  height: 36px;
  margin: 4px 8px 0;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--neutral-500);
  background: var(--neutral-50);
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease;
}

.sidebar-search:hover {
  transform: translateY(-1px);
}

.sidebar-search span:nth-child(2) {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  line-height: 20px;
}

kbd {
  color: var(--neutral-300);
  font: 500 14px/20px Inter, "Segoe UI", Arial, sans-serif;
}

.nav-list,
.category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 24px;
  color: var(--neutral-700);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.nav-item [data-icon] {
  color: var(--neutral-500);
}

.nav-item.tree {
  gap: 4px;
  padding-left: 8px;
}

.nav-item.tree [data-icon="chevron-right"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.nav-item span:last-child {
  min-width: 0;
  font-weight: 500;
  line-height: 20px;
}

.nav-item.active {
  width: calc(100% - 16px);
  margin: 0 8px;
  padding-left: 16px;
  color: var(--accent-500);
  border-radius: 8px;
  background: var(--accent-50);
}

.nav-item.active [data-icon] {
  color: var(--accent-500);
}

.sidebar-section {
  border-top: 1px solid var(--neutral-50);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px 24px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.mini-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--neutral-500);
  border-radius: 8px;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.mini-button {
  width: 24px;
  height: 24px;
  background: var(--neutral-50);
}

.mini-button [data-icon] {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
}

.icon-button:hover,
.nav-item:hover {
  background: var(--neutral-50);
}

.icon-button:hover {
  transform: translateY(-1px);
}

.topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding: 12px 24px 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--neutral-50);
}

.topbar-left,
.topbar-actions,
.breadcrumbs {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 20px;
}

.breadcrumbs {
  gap: 8px;
  color: var(--neutral-300);
  font-weight: 500;
  line-height: 20px;
}

.breadcrumbs strong {
  color: var(--neutral-600);
  font-weight: 500;
}

.topbar-actions {
  gap: 12px;
}

.badge {
  position: relative;
}

.badge em {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 4px 6px;
  color: #ffffff;
  background: var(--error-500);
  border-radius: 10px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 12px;
}

.user-button {
  width: auto;
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--neutral-500);
  font-weight: 500;
  line-height: 20px;
}

.logout-button [data-icon] {
  width: 24px;
  height: 24px;
  min-width: 24px;
}

.content {
  position: fixed;
  inset: var(--topbar) 0 0 var(--sidebar);
  overflow: auto;
  padding: 24px 28px 48px;
  background: #ffffff;
}

.toolbar-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--neutral-50);
}

h1 {
  margin: 0;
  color: #272f3d;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
}

.archive-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neutral-950);
  font-size: 16px;
  line-height: 24px;
}

.switch-mini,
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: var(--neutral-100);
  transition: background 0.18s ease;
}

.switch-mini::after,
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.16);
  transition: transform 0.18s ease;
}

.news-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.news-card {
  position: relative;
  min-height: 216px;
  width: 100%;
  padding: 24px 24px 74px 32px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--neutral-50);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.news-card:hover {
  transform: translateY(-1px);
  border-color: var(--neutral-75);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

.news-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 96px 16px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.news-card h2::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #ff5a1f;
  border: 2px solid #ff5a1f;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
}

.news-card + .news-card h2::before {
  content: "";
  border: 0;
  border-radius: 6px;
  background: var(--accent-50);
  box-shadow: inset 0 0 0 2px var(--accent-500);
}

.news-card p {
  max-width: 920px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.accent-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--orange-500);
}

.card-actions {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  gap: 4px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-500);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.link-button [data-icon],
.read-button [data-icon] {
  width: 24px;
  height: 24px;
  min-width: 24px;
}

.news-card footer {
  position: absolute;
  right: 24px;
  bottom: 14px;
  left: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-75);
  color: #797e8b;
  font-size: 14px;
  line-height: 20px;
}

.read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 218px;
  height: 36px;
  padding: 6px 12px;
  color: var(--success-500);
  background: var(--success-50);
  border-radius: 8px;
  font-weight: 500;
  line-height: 20px;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.22);
  animation: fadeIn 0.16s ease both;
}

.hidden {
  display: none !important;
}

.search-modal {
  display: grid;
  grid-template-columns: minmax(0, 840px) 252px;
  width: min(1092px, calc(100vw - 72px));
  height: min(684px, calc(100vh - 48px));
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.22);
  animation: modalIn 0.2s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.search-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 0 0;
  overflow: hidden;
}

.search-input-row {
  flex: 0 0 auto;
  padding: 0 20px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--accent-500);
  border-radius: 12px;
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.search-field:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

.search-field > [data-icon] {
  color: var(--neutral-500);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--neutral-700);
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

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

.clear-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--neutral-500);
  border-radius: 8px;
}

.clear-button [data-icon] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  max-height: 24px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 12px 20px 0;
  overflow: hidden;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 8px 14px;
  color: var(--neutral-600);
  border: 1px solid var(--neutral-100);
  border-radius: 20px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.filter-pill[data-filter="scope"] {
  max-width: 248px;
}

.filter-pill[data-filter="sort"] {
  max-width: 184px;
}

.filter-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-pill:hover {
  transform: translateY(-1px);
  border-color: #b8c0ce;
}

.filter-pill.active {
  color: var(--accent-500);
  border-color: #b3c8ff;
  background: var(--accent-50);
}

.filter-pill [data-icon] {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.title-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 6px 8px;
  color: var(--neutral-500);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  flex: 0 0 auto;
}

.title-search-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.title-search-toggle input:checked + .switch {
  background: var(--accent-500);
}

.title-search-toggle input:checked + .switch::after {
  transform: translateX(20px);
}

.clear-tags-button {
  flex: 0 0 auto;
  height: 28px;
  padding: 4px 10px;
  color: var(--error-500);
  background: var(--error-50);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: background 0.14s ease, transform 0.14s ease;
}

.clear-tags-button:hover {
  transform: translateY(-1px);
  background: #ffe1e1;
}

.active-filter-row {
  display: flex;
  gap: 8px;
  min-height: 0;
  padding: 0 20px;
  flex-wrap: wrap;
}

.active-filter-row:not(:empty) {
  min-height: 32px;
  padding-top: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 6px 8px 6px 10px;
  color: var(--accent-500);
  background: var(--accent-50);
  border-radius: 8px;
  font-weight: 500;
  line-height: 16px;
  animation: chipIn 0.16s ease both;
}

.filter-chip button {
  width: 16px;
  height: 16px;
  color: var(--accent-500);
}

.filter-chip button [data-icon] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  max-height: 16px;
}

.filter-chip.overflow-filter {
  display: none;
}

.active-filter-toggle {
  height: 28px;
  padding: 6px 10px;
  color: var(--neutral-500);
  background: var(--neutral-50);
  border-radius: 8px;
  font-weight: 600;
  line-height: 16px;
}

.tabs {
  display: flex;
  align-items: flex-end;
  height: 41px;
  margin-top: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--neutral-50);
}

.tab {
  height: 29px;
  margin-right: -1px;
  padding: 4px 12px;
  color: var(--neutral-300);
  background: var(--surface-muted);
  border: 1px solid var(--neutral-100);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  line-height: 20px;
  transition: color 0.14s ease, background 0.14s ease;
}

.tab.active {
  color: var(--neutral-700);
  background: #ffffff;
}

.modal-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: var(--neutral-300) transparent;
}

.list-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 20px;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  min-height: 56px;
  padding: 10px 20px;
  color: var(--neutral-700);
  text-align: left;
  animation: rowIn 0.18s ease both;
}

.list-row:hover {
  background: var(--surface-muted);
}

.list-row > [data-icon] {
  margin-top: 2px;
  color: var(--neutral-500);
}

.list-row > [data-icon="file-text"],
.list-row > [data-icon="history"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  max-height: 24px;
}

.list-main {
  min-width: 0;
}

.list-title {
  margin: 0;
  color: var(--neutral-700);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.list-meta,
.result-meta {
  color: var(--neutral-300);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.row-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neutral-400);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.row-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.row-stats [data-icon] {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--neutral-400);
  font-weight: 500;
  line-height: 20px;
}

.result-count {
  color: var(--neutral-700);
  font-size: 16px;
  font-weight: 600;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 20px;
}

.result-card {
  position: relative;
  padding: 16px 20px 14px 44px;
  border: 1px solid var(--neutral-50);
  border-radius: 8px;
  background: #ffffff;
  animation: rowIn 0.2s ease both;
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.result-card:hover {
  transform: translateY(-1px);
  border-color: var(--neutral-75);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.result-card::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  width: 4px;
  height: calc(100% - 32px);
  border-radius: 4px;
  background: transparent;
}

.result-card.accent-orange::before {
  background: var(--orange-500);
}

.result-card h3 {
  margin: 0 72px 8px 0;
  color: var(--neutral-950);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.result-card p {
  margin: 0 0 10px;
  color: var(--neutral-950);
  font-size: 14px;
  line-height: 20px;
}

.result-card mark {
  padding: 0 2px;
  background: var(--warning-200);
}

.result-actions {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.result-actions .icon-button {
  width: 28px;
  height: 28px;
  padding: 4px;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--neutral-400);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.article-tag {
  height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.article-tag.blue {
  color: var(--accent-500);
  background: var(--accent-50);
}

.article-tag.red {
  color: #d92d20;
  background: #ffebe9;
}

.article-tag.yellow {
  color: #9a5b00;
  background: var(--orange-50);
}

.article-tag.green {
  color: #027a48;
  background: #e8f7ee;
}

.article-tag.violet {
  color: #6941c6;
  background: #f1ecff;
}

.search-side {
  min-width: 0;
  padding: 20px 16px;
  border-left: 1px solid var(--neutral-50);
  background: #ffffff;
  overflow: auto;
}

.side-section + .side-section {
  margin-top: 26px;
}

.side-section.collapsed > :not(.side-heading) {
  display: none;
}

.side-section.collapsed .collapse-button [data-icon] {
  transform: rotate(180deg);
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.collapse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--neutral-400);
  background: var(--neutral-50);
  border-radius: 8px;
}

.collapse-button [data-icon],
.side-check em,
.tag-cloud button [data-icon] {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.side-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--neutral-500);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.side-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.side-check span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #a9b1c0;
  border-radius: 4px;
  background: #ffffff;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.side-check input:checked + span {
  border-color: var(--accent-500);
  background: var(--accent-500);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.side-check em {
  margin-left: auto;
  color: var(--neutral-300);
  font-style: normal;
  background: var(--neutral-50);
  border-radius: 6px;
}

.side-dropdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
}

.side-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--neutral-300);
  background: var(--neutral-50);
  border-radius: 8px;
}

.side-toggle em {
  display: inline-flex;
  width: 16px;
  height: 16px;
  font-style: normal;
  transition: transform 0.14s ease;
}

.side-toggle.open em {
  transform: rotate(180deg);
}

.side-dropdown-panel {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 8px 26px;
}

.side-dropdown-panel.open {
  display: flex;
}

.side-dropdown-panel button {
  height: 24px;
  padding: 4px 8px;
  color: var(--accent-500);
  background: var(--accent-50);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.tag-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud button {
  height: 24px;
  padding: 4px 8px;
  color: var(--accent-500);
  background: var(--accent-50);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  transition: transform 0.14s ease, background 0.14s ease;
}

.tag-cloud button:hover,
.tag-cloud button.active {
  transform: translateY(-1px);
  background: #dbe7ff;
}

.filter-popover {
  position: fixed;
  z-index: 30;
  width: 352px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--neutral-50);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
  animation: popoverIn 0.14s ease both;
}

.filter-popover.scope-popover {
  width: 372px;
  padding: 8px;
}

.popover-search {
  padding: 4px 0 8px;
}

.popover-search label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--accent-500);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.popover-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--neutral-700);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.popover-kicker {
  margin: 2px 8px 6px;
  color: var(--neutral-300);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
}

.popover-option {
  display: block;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  color: var(--neutral-700);
  border-radius: 6px;
  text-align: left;
  animation: rowIn 0.14s ease both;
}

.scope-popover .popover-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
}

.filter-popover:not(.scope-popover) .popover-option {
  min-height: 36px;
  padding: 8px 10px;
}

.filter-popover:not(.scope-popover) .popover-option strong {
  line-height: 20px;
}

.popover-option:hover,
.popover-option.active {
  color: var(--accent-500);
  background: var(--accent-50);
}

.popover-option strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popover-option small {
  display: block;
  overflow: hidden;
  color: var(--neutral-300);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popoverIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1180px) {
  html,
  body {
    min-width: 900px;
  }

  .content {
    padding: 24px 28px 48px;
  }

  .search-modal {
    grid-template-columns: minmax(0, 1fr) 232px;
    width: min(1020px, calc(100vw - 40px));
  }
}
