:root {
  --bg: #f2f4ef;
  --card: #fbfcf8;
  --text: #17211c;
  --muted: #707a74;
  --line: #dce2d9;
  --red: #2f6a51;
  --blue: #245a43;
  --yellow: #d9ff65;
  --green: #123d2d;
  --green-deep: #0b2f24;
  --green-soft: #e7f0ea;
  --lime: #d9ff65;
  --paper: #fbfcf8;
  --shadow: 0 1px 2px rgba(18, 61, 45, 0.04), 0 10px 28px rgba(18, 61, 45, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 47, 36, 0.98);
  color: #fff;
  box-shadow: 0 1px 12px rgba(11, 47, 36, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 126px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--lime);
  color: var(--green-deep);
  font-weight: 900;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  color: #b8c9c0;
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: none;
}

.main-nav a:hover,
.main-nav .is-active,
.main-nav .is-strong {
  color: #fff;
  font-weight: 700;
}

.nav-separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions button,
.header-actions a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9d7d0;
  font-size: 22px;
  line-height: 1;
}

.header-actions button:hover,
.header-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lime);
}

.header-actions .account-entry {
  width: auto;
  min-width: 72px;
  padding: 0 13px;
  border: 1px solid rgba(217, 255, 101, 0.38);
  border-radius: 999px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.sub-nav-wrap {
  position: sticky;
  top: 64px;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 245, 0.96);
  backdrop-filter: blur(14px);
}

.category-tabs {
  display: flex;
  gap: 18px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 17px 32px;
  overflow-x: auto;
  color: #849087;
  font-size: 14px;
  white-space: nowrap;
}

.category-tabs button,
.category-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
}

.category-tabs button span,
.category-tabs a span {
  font-size: 12px;
}

.category-tabs button:hover,
.category-tabs button.is-active,
.category-tabs a:hover,
.category-tabs a.is-active {
  color: var(--text);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 210px minmax(520px, 1fr) 320px;
  gap: 31px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px 32px 60px;
}

.left-rail,
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card,
.feed-main,
.ad-card {
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.source-list,
.recommend-list {
  display: grid;
  gap: 2px;
}

.source-link,
.recommend-list button,
.recommend-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  text-align: left;
}

.source-link:hover,
.source-link.is-active,
.recommend-list button:hover,
.recommend-list a:hover {
  color: var(--blue);
}

.source-link.is-active::after {
  content: "›";
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.mini-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.mini-pager button,
.mini-pager a {
  border: 0;
  background: transparent;
  color: #64748b;
}

.mini-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.feed-main {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.feed-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  padding: 20px;
  border-radius: 5px 5px 0 0;
  background: var(--green-deep);
  color: #fff;
}

.feed-icon {
  display: grid;
  flex: none;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 28px;
  font-weight: 900;
}

.feed-title-block {
  min-width: 0;
  flex: 1;
}

.feed-title-block h1 {
  overflow: hidden;
  margin: 0 0 9px;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-title-block p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feed-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 54px;
}

.feed-tabs button {
  align-self: stretch;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #1f2937;
  font-size: 14px;
}

.feed-tabs button.is-active {
  border-bottom-color: var(--red);
}

.item-list {
  display: grid;
  background: #fff;
}

.rss-item-card {
  display: grid;
  grid-template-columns: 48px 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 85px;
  padding: 10px 28px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  cursor: pointer;
}

.rss-item-card:hover {
  background: #fafbfc;
}

.item-rank {
  color: #8a919f;
  font-size: 15px;
  text-align: center;
}

.item-rank.is-hot {
  color: var(--red);
  font-weight: 700;
}

.item-thumb {
  overflow: hidden;
  width: 100px;
  height: 64px;
  border-radius: 6px;
  background: #eef2f7;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-thumb-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--green-soft);
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.item-body {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.item-body h2 {
  overflow: hidden;
  margin: 0 0 4px;
  color: #020617;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.item-body small {
  color: #8a919f;
  font-size: 13px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-language-switch button {
  min-width: 46px;
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.item-arrow {
  color: #c7ccd4;
  font-size: 34px;
}

.loading-card {
  padding: 46px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

.error-card strong {
  display: block;
  color: #111827;
  font-size: 18px;
}

.error-card p {
  margin: 10px auto;
  max-width: 560px;
}

.error-card small {
  display: block;
  margin-bottom: 14px;
}

.error-card a {
  color: var(--blue);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 10px;
  border-radius: 0 0 5px 5px;
  background: #fff;
}

.pager-button,
.page-numbers button,
.page-numbers a,
.page-numbers .ellipsis {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #5f6673;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-numbers .ellipsis {
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  background: transparent;
}

.page-numbers button.is-active,
.page-numbers a.is-active,
.pager-button:hover:not(:disabled),
.page-numbers button:hover,
.page-numbers a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.right-rail {
  gap: 15px;
}

.ad-card {
  min-height: 135px;
  padding: 24px;
  overflow: hidden;
  color: #172033;
  font-size: 18px;
  line-height: 1.8;
}

.ad-card strong {
  font-size: 22px;
}

.ad-yellow {
  background: #f5f2cf;
}

.ad-blue {
  background: #dceee4;
}

.ad-white {
  background: #f7faf6;
  border: 1px solid #e3e8f4;
}

.sponsor-link {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #d8dbe2;
  color: var(--blue);
  font-size: 14px;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.detail-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 92vw);
  height: 100%;
  overflow-y: auto;
  padding: 42px 48px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 26px;
}

.detail-source {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 700;
}

.drawer-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
}

.detail-meta {
  margin-bottom: 26px;
  color: var(--muted);
}

.detail-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #64748b;
  font-size: 13px;
}

.language-switch {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 1px solid #cbd5d1;
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-width: 52px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #52605a;
  font-size: 13px;
  cursor: pointer;
}

.language-switch button.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.language-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body.drawer-open {
  overflow: hidden;
}

.detail-content {
  min-height: 96px;
  color: #111827;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.detail-content pre,
.detail-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-link {
  display: inline-flex;
  margin-top: 30px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

@media (max-width: 1180px) {
  .detail-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 64px;
    padding: 12px 18px;
  }

  .sub-nav-wrap {
    top: 64px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .left-rail {
    order: 2;
  }

  .feed-main {
    order: 1;
  }

  .rss-item-card {
    grid-template-columns: 34px 74px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 14px;
  }

  .item-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .item-language-switch {
    flex-direction: column;
    border-radius: 8px;
  }

  .item-language-switch button {
    min-width: 44px;
  }

  .item-thumb {
    width: 74px;
    height: 52px;
  }

  .feed-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer-panel {
    width: 100%;
    padding: 64px 22px 32px;
  }

  .detail-language-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Index node card page */
.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 36px 48px;
}

.eyebrow {
  margin: 0;
  color: #658072;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.editorial-briefing {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.65fr);
  gap: 36px;
  margin: 8px 0 42px;
  padding: 34px;
  border: 1px solid #b9cbbf;
  border-radius: 16px;
  background: linear-gradient(120deg, #e4eee7, #f9fbf7 62%);
  box-shadow: var(--shadow);
}

.briefing-intro h1 {
  max-width: 360px;
  margin: 10px 0 12px;
  color: var(--green-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.briefing-intro > p:last-child {
  max-width: 330px;
  margin: 0;
  color: #52635a;
  font-size: 14px;
  line-height: 1.75;
}

.briefing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid rgba(18, 61, 45, 0.16);
}

.briefing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 4px 20px 6px;
  border-right: 1px solid rgba(18, 61, 45, 0.16);
}

.briefing-card:last-child {
  border-right: 0;
}

.briefing-card:hover strong,
.briefing-card:hover .briefing-meta {
  color: var(--blue);
}

.briefing-number {
  color: #93a89c;
  font-family: Georgia, serif;
  font-size: 16px;
}

.briefing-meta,
.briefing-reason,
.briefing-time {
  overflow: hidden;
  color: #738178;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.briefing-reason {
  color: #436454;
  font-weight: 650;
}

.briefing-card strong {
  display: -webkit-box;
  min-height: 67px;
  overflow: hidden;
  color: #183c2d;
  font-size: 16px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.board-head h1 {
  margin: 5px 0 0;
  color: var(--green-deep);
  font-size: 22px;
  font-weight: 800;
}

.board-head h1 small {
  color: #75847a;
  font-size: 14px;
  font-weight: 500;
}

.board-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 38vw);
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box span,
.search-box button {
  flex: none;
  width: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.search-box button {
  cursor: pointer;
}

.sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b3b8c2;
  font-size: 14px;
  white-space: nowrap;
}

.sort-tabs button,
.sort-tabs a {
  border: 0;
  background: transparent;
  color: #606773;
}

.sort-tabs button.is-active,
.sort-tabs a.is-active {
  color: var(--red);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.node-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.node-card:hover {
  border-color: #b8cebd;
  box-shadow: 0 12px 30px rgba(18, 61, 45, 0.11);
  transform: translateY(-3px);
}

.node-card-link {
  display: block;
  flex: 1;
}

.node-item-list {
  display: grid;
  gap: 6px;
  margin: 12px 14px;
  padding: 0;
  list-style: none;
}

.node-item-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  min-height: 44px;
  padding: 6px 0;
}

.node-item-link:hover p {
  color: var(--blue);
}

.node-item-link span {
  grid-row: 1 / 3;
  color: #9aa1ad;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.node-item-link p {
  overflow: hidden;
  margin: 0;
  color: #121826;
  font-size: 14px;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-item-link small {
  overflow: hidden;
  color: #8a919f;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-item-placeholder {
  min-height: 168px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.node-card[data-category="ai"] .node-icon,
.node-card[data-category="ai"] .node-label {
  background: #e7f0ea;
  color: var(--blue);
}

.node-card[data-category="tech-team"] .node-icon,
.node-card[data-category="tech-team"] .node-label {
  background: #edf3e9;
  color: #426b51;
}

.node-card[data-category="frontend"] .node-icon,
.node-card[data-category="frontend"] .node-label {
  background: #e7f4ef;
  color: #2d7457;
}

.node-card[data-category="product"] .node-icon,
.node-card[data-category="product"] .node-label {
  background: #f3f1d8;
  color: #736b1d;
}

.node-card[data-category="cloud"] .node-icon,
.node-card[data-category="cloud"] .node-label {
  background: #e6f4ea;
  color: #277149;
}

.node-card[data-category="open-source"] .node-icon,
.node-card[data-category="open-source"] .node-label {
  background: #eef0df;
  color: #60712a;
}

.node-card[data-category="business"] .node-icon,
.node-card[data-category="business"] .node-label {
  background: #f0eee1;
  color: #74652f;
}

.node-card[data-category="general"] .node-icon,
.node-card[data-category="general"] .node-label {
  background: #edf0eb;
  color: #5f6b64;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: 0 14px;
  border-bottom: 1px solid var(--line);
}

.node-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
}

.node-brand a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-brand a:hover {
  color: var(--blue);
}

.node-icon {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.node-label {
  flex: none;
  max-width: 86px;
  overflow: hidden;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-lines {
  display: grid;
  gap: 9px;
  flex: 1;
  margin: 15px 14px 10px;
  padding: 0;
  list-style: none;
}

.node-lines li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.node-lines li span {
  color: #9aa1ad;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.node-lines li:first-child span {
  color: var(--red);
}

.node-lines li:nth-child(2) span {
  color: #ff9f0a;
}

.node-lines li:nth-child(3) span {
  color: #f5c400;
}

.node-lines p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #121826;
  font-size: 15px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.node-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px;
  padding: 10px 0 13px;
  border-top: 1px solid var(--line);
  color: #707785;
  font-size: 13px;
}

.node-foot > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cbd7cf;
  border-radius: 999px;
  background: #fff;
}

.node-language-switch button {
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 11px;
  line-height: 24px;
  cursor: pointer;
}

.node-language-switch button.is-active {
  background: var(--blue);
  color: #fff;
}

.node-language-switch button:disabled {
  color: #b3bab6;
  cursor: not-allowed;
}

.favorite-button,
.more-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
}

.more-button {
  font-size: 18px;
  letter-spacing: 1px;
}

.favorite-button:hover,
.favorite-button.is-favorite,
.more-button:hover {
  color: var(--blue);
  background: #f4f7ff;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

/* Profile, authentication and paid API access */
.profile-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.profile-shell.is-auth {
  width: min(1180px, calc(100% - 48px));
  padding-top: 36px;
  padding-bottom: 20px;
}

.profile-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: min(680px, calc(100vh - 136px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(18, 61, 45, 0.1);
}

.profile-auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(38px, 5vw, 68px);
  background: var(--green-deep);
  color: #fff;
}

.profile-auth-intro h1 {
  max-width: 620px;
  margin: 14px 0 22px;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.profile-auth-intro p {
  max-width: 560px;
  margin: 0;
  color: #bdccc4;
  font-size: 17px;
  line-height: 1.75;
}

.profile-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-benefits li {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-benefits strong {
  font-size: 13px;
}

.profile-benefits span {
  color: #90a69b;
  font-size: 11px;
  line-height: 1.5;
}

.profile-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
  background: #f5f7f3;
}

.profile-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: #e8ece7;
}

.profile-auth-tabs a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 9px;
  color: #7a857e;
  font-size: 13px;
  font-weight: 800;
}

.profile-auth-tabs a.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 10px rgba(18, 61, 45, 0.08);
}

.profile-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-dashboard {
  display: grid;
  gap: 20px;
}

.profile-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.profile-card.is-secondary {
  background: #f7faf6;
}

.profile-auth-card {
  padding: clamp(28px, 3.6vw, 42px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(18, 61, 45, 0.08);
}

.profile-card h1,
.profile-card h2 {
  margin: 8px 0 10px;
  line-height: 1.25;
}

.profile-card h1 {
  font-size: clamp(26px, 4vw, 38px);
}

.profile-card h2 {
  font-size: 26px;
}

.profile-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-eyebrow {
  color: #50705f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.profile-form label,
.credential-reveal label {
  display: grid;
  gap: 8px;
  color: #30463b;
  font-size: 14px;
  font-weight: 700;
}

.profile-form input,
.credential-reveal input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #d3dbd4;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-weight: 500;
}

.profile-form input:focus,
.credential-reveal input:focus {
  border-color: #4c7864;
  box-shadow: 0 0 0 4px rgba(36, 90, 67, 0.1);
}

.profile-form button,
.profile-button {
  min-height: 48px;
  padding: 9px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.profile-form button:hover,
.profile-button:hover:not(.is-quiet):not(.is-danger) {
  background: var(--green-deep);
}

.profile-auth-note,
.profile-auth-meta {
  margin: 16px 0 0 !important;
  color: #8a938d !important;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.profile-auth-meta {
  margin-top: 18px !important;
  letter-spacing: 0.04em;
}

.profile-button.is-quiet {
  background: #f2f4f7;
  color: #475467;
}

.profile-button.is-danger {
  background: #fff1f0;
  color: #d92d20;
}

.profile-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-alert {
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.profile-alert.is-success {
  background: #ecfdf3;
  color: #027a48;
}

.profile-alert.is-error {
  background: #fef3f2;
  color: #b42318;
}

.profile-status {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.profile-status.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.credential-reveal {
  display: grid;
  gap: 16px;
  border-color: #fdb022;
  background: #fffaeb;
}

.profile-endpoint {
  overflow-wrap: anywhere;
}

.profile-endpoint a {
  color: var(--blue);
}

.profile-usage pre {
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  border-radius: 10px;
  background: #101828;
  color: #e4e7ec;
  line-height: 1.65;
}

@media (min-width: 901px) and (max-height: 780px) {
  .profile-shell.is-auth {
    padding-top: 20px;
  }

  .profile-auth-layout {
    min-height: calc(100vh - 104px);
  }

  .profile-auth-intro {
    padding-block: 42px;
  }

  .profile-auth-panel {
    padding-block: 28px;
  }

  .profile-auth-card {
    padding-block: 30px;
  }

  .profile-auth-card .profile-form {
    margin-top: 18px;
  }
}

@media (max-width: 1260px) {
  .node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px 18px 36px;
  }

  .editorial-briefing {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
    padding: 26px;
  }

  .briefing-list {
    border-top: 1px solid rgba(18, 61, 45, 0.16);
    border-left: 0;
    padding-top: 18px;
  }

  .briefing-card {
    padding-inline: 14px;
  }

  .board-head,
  .board-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-auth-layout,
  .profile-plan-grid {
    grid-template-columns: 1fr;
  }

  .profile-auth-layout {
    min-height: auto;
  }

  .profile-auth-intro {
    min-height: 390px;
  }
}

@media (max-width: 580px) {
  .editorial-briefing {
    margin-inline: -2px;
    padding: 22px 18px;
  }

  .briefing-intro h1 {
    font-size: 30px;
  }

  .briefing-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .briefing-card {
    min-height: 92px;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 61, 45, 0.12);
  }

  .briefing-card:last-child {
    border-bottom: 0;
  }

  .briefing-card strong {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .node-grid {
    grid-template-columns: 1fr;
  }

  .profile-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 24px;
  }

  .profile-shell.is-auth {
    width: min(100% - 24px, 1080px);
  }

  .profile-auth-layout {
    border-radius: 16px;
  }

  .profile-auth-intro {
    min-height: 220px;
    padding: 24px;
  }

  .profile-auth-intro h1 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 9vw, 36px);
  }

  .profile-auth-intro p {
    font-size: 13px;
    line-height: 1.6;
  }

  .profile-benefits {
    display: none;
  }

  .profile-auth-panel {
    padding: 24px 16px;
  }

  .profile-card {
    padding: 22px;
    border-radius: 12px;
  }

  .profile-account-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.favorites-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start end;
  padding: 72px 24px 24px;
  background: rgba(15, 23, 42, 0.18);
}

.reading-note {
  padding: 23px 21px;
  border: 1px solid #d6e2d8;
  border-radius: 12px;
  background: #f8fbf7;
}

.reading-note h2 {
  margin: 10px 0;
  color: var(--green-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  line-height: 1.3;
}

.reading-note > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: #66766c;
  font-size: 13px;
  line-height: 1.7;
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.favorites-panel[hidden] {
  display: none;
}

.favorites-panel-card {
  width: min(420px, calc(100vw - 48px));
  max-height: min(640px, calc(100vh - 96px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.favorites-panel-card header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.favorites-panel-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.favorites-panel-body {
  padding: 8px 18px 18px;
}

.favorites-panel-body ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.favorites-panel-body li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.favorites-panel-body a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.favorites-panel-body small,
.favorites-empty {
  color: var(--muted);
}
