:root {
  color-scheme: dark;
  --bg: #0e1418;
  --panel: #151b20;
  --panel-2: #1c242b;
  --panel-3: #f7f9fc;
  --ink: #eff4f2;
  --ink-dark: #10161a;
  --muted: #93a1a4;
  --muted-dark: #66727d;
  --line: #2d3941;
  --line-light: #dfe5ec;
  --green: #58d1b2;
  --green-dark: #107b68;
  --blue: #2c6eea;
  --amber: #f0b84f;
  --rose: #e36f5a;
  --violet: #7b65de;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-frame {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 14px;
  width: 100vw;
  height: 100vh;
  padding: 14px;
  overflow: hidden;
}

.sidebar,
.search-hero,
.results-panel,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 0;
  padding: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--green-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 24px;
  letter-spacing: 0;
}

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

.side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #10171b;
}

.total-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.total-card div {
  min-width: 0;
}

.total-card strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.total-card span {
  color: var(--muted);
  font-size: 12px;
}

.side-block {
  display: grid;
  min-height: 0;
  gap: 10px;
}

.side-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #dce6e3;
  font-weight: 900;
}

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

.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  min-height: 0;
  overflow: hidden;
}

.category-button,
.need-button,
.tab-button,
.tool-action,
.pager button,
.side-actions button,
.clear-compare {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #10171b;
  color: var(--ink);
}

.category-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  color: #cad5d2;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.category-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button strong {
  color: var(--muted);
  font-size: 12px;
}

.category-button.is-active {
  border-color: rgba(88, 209, 178, 0.35);
  background: #203a32;
  color: var(--green);
}

.compact-filters {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.compact-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-filters select {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10171b;
  color: var(--ink);
  padding: 0 8px;
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-actions button {
  min-height: 34px;
  font-weight: 900;
}

.dashboard {
  display: grid;
  grid-template-rows: 184px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.search-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(500px, 1fr);
  gap: 10px 18px;
  align-items: center;
  align-content: center;
  padding: 18px 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(44, 110, 234, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(88, 209, 178, 0.16), transparent 34%),
    var(--panel);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: #aebbb9;
  font-size: 14px;
  line-height: 1.45;
}

.search-form {
  min-width: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 118px 82px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #d8e0e9;
  border-radius: 22px;
  background: var(--panel-3);
  box-shadow: 0 26px 64px rgba(16, 21, 28, 0.28);
}

.search-box > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--blue);
  font-size: 23px;
  font-weight: 900;
}

.search-box input,
.search-box select {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-dark);
}

.search-box input {
  padding: 0 6px;
  font-size: 18px;
}

.search-box select {
  padding: 0 9px;
  background: #edf2f7;
  font-weight: 800;
}

.search-box button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.need-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  grid-column: 2 / 3;
  min-width: 0;
  overflow: hidden;
}

.need-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfe9e7;
  font-size: 12px;
  font-weight: 900;
}

.need-button:hover,
.tab-button:hover,
.tool-action:hover,
.pager button:hover,
.side-actions button:hover {
  border-color: rgba(88, 209, 178, 0.55);
  color: var(--green);
}

.hero-metrics {
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-metrics div {
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}

.hero-metrics strong {
  display: block;
  color: var(--amber);
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.results-panel,
.insight-panel {
  min-height: 0;
  overflow: hidden;
}

.results-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.board-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.board-tabs .tab-button {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 0 14px;
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pager button {
  min-height: 34px;
  padding: 0 10px;
  font-weight: 900;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.virtual-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(88, 209, 178, 0.45) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.virtual-grid {
  padding: 2px 8px 2px 2px;
}

.virtual-list::-webkit-scrollbar {
  width: 10px;
}

.virtual-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.virtual-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(88, 209, 178, 0.58);
  background-clip: content-box;
}

.virtual-spacer {
  position: relative;
  min-height: 0;
}

.virtual-item,
.virtual-card {
  position: absolute;
  right: 0;
  left: 0;
}

.virtual-card {
  right: auto;
  left: 0;
}

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #10171b;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.tool-card:hover {
  border-color: rgba(88, 209, 178, 0.48);
  background: #111b20;
  transform: translateY(-1px);
}

.tool-card:focus-visible {
  outline: 3px solid rgba(88, 209, 178, 0.35);
  outline-offset: 2px;
}

.tool-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-width: 0;
}

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

.tool-card-head {
  display: flex;
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.favicon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel-2);
  overflow: hidden;
}

.favicon img {
  width: 22px;
  height: 22px;
}

.favicon span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.tool-title {
  min-width: 0;
}

.tool-title h3 {
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-name-link {
  color: #f4fbf8;
}

.tool-name-link:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-title p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #bdc9c7;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row,
.tool-meta,
.source-kpis {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-content: start;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #223039;
  color: #cbd5d4;
  font-size: 11px;
  font-weight: 800;
}

.tool-card-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.compact-card .tool-meta {
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.compact-card .tool-meta .pill {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.mini-action {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #10171b;
  color: #dce6e3;
  font-size: 12px;
  font-weight: 900;
}

.mini-action:hover,
.mini-action.is-on {
  border-color: rgba(88, 209, 178, 0.55);
  color: var(--green);
}

.pill.strong {
  background: rgba(88, 209, 178, 0.14);
  color: var(--green);
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 92px;
}

.tool-action {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 7px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.tool-action.primary {
  border-color: rgba(88, 209, 178, 0.45);
  background: var(--green);
  color: #0e1b18;
}

.tool-action.is-on {
  border-color: rgba(240, 184, 79, 0.48);
  background: rgba(240, 184, 79, 0.18);
  color: var(--amber);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.insight-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.insight-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.insight-tabs.board-tabs {
  display: flex;
  grid-template-columns: none;
  margin-bottom: 10px;
}

.tab-button {
  min-height: 34px;
  font-size: 13px;
  font-weight: 900;
}

.tab-button.is-active {
  border-color: rgba(88, 209, 178, 0.45);
  background: #203a32;
  color: var(--green);
}

.insight-content {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.insight-content.board-page {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(88, 209, 178, 0.45) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px;
}

.insight-card {
  min-height: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #10171b;
}

.insight-card h3 {
  margin-bottom: 6px;
  overflow: hidden;
  color: #f3f8f6;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rank-index {
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
}

.rank-meta {
  color: #e5efec;
  font-size: 12px;
  font-weight: 900;
}

.source-card {
  display: grid;
  gap: 8px;
}

.directory-tile,
.scene-tile {
  display: grid;
  gap: 10px;
}

.compact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.compact-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
}

.compact-stats strong {
  overflow: hidden;
  color: #f0f7f5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eff6f4;
  font-weight: 900;
  text-align: left;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  color: #cbd5d4;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--muted);
  font-weight: 900;
}

.clear-compare {
  min-height: 34px;
  margin-top: 12px;
  font-weight: 900;
}

.compare-card {
  overflow: auto;
}

.empty-compare {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, 0.72);
  backdrop-filter: blur(8px);
}

.detail-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(88, 209, 178, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(44, 110, 234, 0.12), transparent 36%),
    var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #10171b;
  color: #edf6f3;
  font-size: 22px;
  font-weight: 900;
}

.detail-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 44px;
}

.detail-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.detail-icon img {
  width: 30px;
  height: 30px;
}

.detail-hero h2 {
  margin-bottom: 4px;
  font-size: 30px;
}

.detail-hero p:last-child,
.detail-description {
  color: #b9c7c4;
}

.detail-description {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.65;
}

.detail-verdict {
  display: grid;
  gap: 8px;
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 13%, transparent), transparent 72%),
    color-mix(in srgb, var(--panel) 92%, white);
}

.detail-verdict span,
.detail-section-title span,
.detail-source-note strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-verdict p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10171b;
  color: #edf6f3;
  font-weight: 900;
}

.detail-meta strong {
  color: var(--muted);
  font-size: 11px;
}

.detail-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-rich-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.detail-section,
.detail-source-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg) 88%, white);
}

.detail-section-wide,
.detail-related,
.detail-source-note {
  grid-column: 1 / -1;
}

.detail-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.detail-list li::before {
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
  content: "";
}

.related-tool-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.related-tool {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 84%, white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.related-tool:hover {
  border-color: var(--active-border);
  transform: translateY(-1px);
}

.related-tool .favicon {
  width: 30px;
  height: 30px;
}

.related-tool strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-tool small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-source-note {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
}

.detail-source-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.account-button.is-signed-in {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--control-bg));
  color: var(--green);
}

.auth-panel {
  width: min(520px, calc(100vw - 36px));
}

.auth-panel h2 {
  margin: 4px 0 8px;
}

.auth-intro,
.auth-footnote {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-bg) 74%, transparent);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--brand-gradient);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.review-comment-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 82%, white);
  color: var(--ink);
  font: inherit;
}

.auth-form input {
  min-height: 44px;
  padding: 0 12px;
}

.review-form textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.star-display,
.star-input {
  display: inline-flex;
  gap: 1px;
  align-items: center;
  color: color-mix(in srgb, var(--muted) 45%, transparent);
  letter-spacing: -0.04em;
}

.star-display .is-on,
.star-input .is-on {
  color: #ffb928;
}

.star-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.star-button:hover,
.star-button:focus-visible {
  color: #ffb928;
  transform: translateY(-1px) scale(1.06);
}

.rating-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 185, 40, 0.26);
  border-radius: 999px;
  background: rgba(255, 185, 40, 0.12);
  color: #a86b00;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.rating-badge.is-small {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10px;
}

.rating-badge.is-empty {
  border-color: var(--line);
  background: color-mix(in srgb, var(--card-bg) 80%, white);
  color: var(--muted);
}

.rating-badge .star-display {
  font-size: 11px;
}

.tool-review-line {
  display: flex;
  min-height: 22px;
  align-items: center;
}

.review-snippet {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.review-snippet span {
  color: var(--green);
}

.review-panel {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, #ffb928 28%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 185, 40, 0.18), transparent 34%),
    color-mix(in srgb, var(--card-bg) 88%, white);
}

.review-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.review-panel-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.review-score-card {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-score-card strong {
  color: var(--ink);
  font-size: 28px;
}

.review-form,
.review-login-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 86%, white);
}

.review-user-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-user-line strong {
  color: var(--green);
}

.review-user-line em {
  color: #a86b00;
  font-style: normal;
}

.review-login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.review-item > div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.review-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.review-item time {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 11px;
  font-weight: 800;
}

.review-empty {
  min-height: auto;
  padding: 18px;
}

.review-spotlight {
  margin: 18px 0;
}

.review-empty-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, #ffb928 45%, var(--line));
  border-radius: 22px;
  background: rgba(255, 185, 40, 0.1);
}

.review-empty-hero > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #ffb928;
  color: #3b2500;
  font-size: 28px;
}

.review-empty-hero h3,
.review-empty-hero p {
  margin: 0;
}

.review-empty-hero p {
  margin-top: 6px;
  color: var(--muted);
}

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

.review-rank-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 86%, white);
  cursor: pointer;
}

.review-rank-card:hover {
  border-color: color-mix(in srgb, #ffb928 50%, var(--active-border));
  transform: translateY(-1px);
}

.review-rank-card h3,
.review-rank-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-rank-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 10px;
}

.detail-actions .tool-action {
  min-height: 42px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #eff6f4;
  color: #10171b;
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid rgba(88, 209, 178, 0.44);
  outline-offset: 2px;
}

/* Comfortable light theme system. The base theme is overridden below by the colorful AGI direction. */
:root {
  color-scheme: light;
  --bg: #eef7f3;
  --panel: #ffffff;
  --panel-2: #edf7f3;
  --panel-3: #fbfefd;
  --ink: #102821;
  --ink-dark: #102821;
  --muted: #657a73;
  --muted-dark: #657a73;
  --line: #d8e8e2;
  --line-light: #d8e8e2;
  --green: #11a77b;
  --green-dark: #08775e;
  --blue: #3f8cff;
  --amber: #c9832f;
  --shadow: 0 24px 62px rgba(31, 78, 67, 0.12);
  --body-bg:
    radial-gradient(circle at 78% 10%, rgba(17, 167, 123, 0.12), transparent 34%),
    linear-gradient(135deg, #fbfefd, #eaf5f1);
  --surface-bg: rgba(255, 255, 255, 0.93);
  --hero-bg:
    linear-gradient(135deg, rgba(63, 140, 255, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(17, 167, 123, 0.13), transparent 36%),
    #ffffff;
  --brand-gradient: linear-gradient(135deg, #3f8cff, #11a77b);
  --card-bg: #ffffff;
  --card-hover: #f7fcfa;
  --control-bg: #f3faf7;
  --pill-bg: #e8f1ee;
  --pill-text: #31584d;
  --active-bg: rgba(17, 167, 123, 0.12);
  --active-border: rgba(17, 167, 123, 0.28);
  --scroll-thumb: rgba(17, 167, 123, 0.45);
  --scroll-track: rgba(17, 167, 123, 0.09);
  --modal-backdrop: rgba(45, 67, 61, 0.24);
  --soft-panel-shadow: 0 22px 54px rgba(31, 78, 67, 0.11);
}

:root[data-theme="sky"] {
  --bg: #edf6fb;
  --panel-2: #eef6fc;
  --panel-3: #fbfdff;
  --ink: #102538;
  --ink-dark: #102538;
  --muted: #66798a;
  --muted-dark: #66798a;
  --line: #d8e6f1;
  --line-light: #d8e6f1;
  --green: #0e9fc2;
  --green-dark: #087691;
  --blue: #3478f6;
  --amber: #cc8a22;
  --shadow: 0 24px 62px rgba(37, 87, 128, 0.13);
  --body-bg:
    radial-gradient(circle at 74% 12%, rgba(52, 120, 246, 0.10), transparent 34%),
    linear-gradient(135deg, #fbfdff, #e8f3fa);
  --hero-bg:
    linear-gradient(135deg, rgba(52, 120, 246, 0.11), transparent 42%),
    linear-gradient(315deg, rgba(14, 159, 194, 0.10), transparent 36%),
    #ffffff;
  --brand-gradient: linear-gradient(135deg, #3478f6, #0e9fc2);
  --card-hover: #f7fbfe;
  --control-bg: #f4f9fd;
  --pill-bg: #e8f1f8;
  --pill-text: #334f66;
  --active-bg: rgba(14, 159, 194, 0.12);
  --active-border: rgba(14, 159, 194, 0.28);
  --scroll-thumb: rgba(14, 159, 194, 0.45);
  --scroll-track: rgba(14, 159, 194, 0.09);
  --modal-backdrop: rgba(48, 67, 84, 0.24);
  --soft-panel-shadow: 0 22px 54px rgba(37, 87, 128, 0.12);
}

:root[data-theme="cream"] {
  --bg: #f4efe6;
  --panel: #fffdf8;
  --panel-2: #f4eadc;
  --panel-3: #fffaf2;
  --ink: #2b2118;
  --ink-dark: #2b2118;
  --muted: #7b6c5d;
  --muted-dark: #7b6c5d;
  --line: #eadfcc;
  --line-light: #eadfcc;
  --green: #2c9672;
  --green-dark: #1e6d58;
  --blue: #d98943;
  --amber: #c77f26;
  --shadow: 0 24px 62px rgba(105, 78, 42, 0.13);
  --body-bg:
    radial-gradient(circle at 76% 10%, rgba(217, 137, 67, 0.10), transparent 34%),
    linear-gradient(135deg, #fffdf8, #f1eadf);
  --surface-bg: rgba(255, 253, 248, 0.94);
  --hero-bg:
    linear-gradient(135deg, rgba(217, 137, 67, 0.11), transparent 42%),
    linear-gradient(315deg, rgba(44, 150, 114, 0.10), transparent 36%),
    #fffdf8;
  --brand-gradient: linear-gradient(135deg, #d98943, #2c9672);
  --card-bg: #fffdf8;
  --card-hover: #fff9ee;
  --control-bg: #fff8ed;
  --pill-bg: #f1e6d5;
  --pill-text: #604b34;
  --active-bg: rgba(44, 150, 114, 0.12);
  --active-border: rgba(44, 150, 114, 0.28);
  --scroll-thumb: rgba(44, 150, 114, 0.44);
  --scroll-track: rgba(44, 150, 114, 0.09);
  --modal-backdrop: rgba(83, 65, 45, 0.24);
  --soft-panel-shadow: 0 22px 54px rgba(105, 78, 42, 0.11);
}

:root[data-theme="lilac"] {
  --bg: #f4f2fa;
  --panel: #fffefe;
  --panel-2: #f0edf8;
  --panel-3: #fdfbff;
  --ink: #211c34;
  --ink-dark: #211c34;
  --muted: #716a82;
  --muted-dark: #716a82;
  --line: #e3ddec;
  --line-light: #e3ddec;
  --green: #6c63d9;
  --green-dark: #4f46ad;
  --blue: #5f84f5;
  --amber: #bd7d2b;
  --shadow: 0 24px 62px rgba(72, 55, 118, 0.12);
  --body-bg:
    radial-gradient(circle at 76% 10%, rgba(108, 99, 217, 0.10), transparent 34%),
    linear-gradient(135deg, #fffefe, #efedf7);
  --surface-bg: rgba(255, 254, 254, 0.94);
  --hero-bg:
    linear-gradient(135deg, rgba(95, 132, 245, 0.10), transparent 42%),
    linear-gradient(315deg, rgba(108, 99, 217, 0.10), transparent 36%),
    #fffefe;
  --brand-gradient: linear-gradient(135deg, #5f84f5, #6c63d9);
  --card-bg: #fffefe;
  --card-hover: #fbf9ff;
  --control-bg: #faf8ff;
  --pill-bg: #ede9f6;
  --pill-text: #4e4664;
  --active-bg: rgba(108, 99, 217, 0.11);
  --active-border: rgba(108, 99, 217, 0.26);
  --scroll-thumb: rgba(108, 99, 217, 0.42);
  --scroll-track: rgba(108, 99, 217, 0.08);
  --modal-backdrop: rgba(69, 59, 95, 0.24);
  --soft-panel-shadow: 0 22px 54px rgba(72, 55, 118, 0.10);
}

body {
  background: var(--body-bg);
  color: var(--ink);
}

.sidebar,
.search-hero,
.results-panel,
.insight-panel,
.detail-panel {
  background: var(--surface-bg);
}

.search-hero {
  background: var(--hero-bg);
}

.brand-mark,
.search-box button {
  background: var(--brand-gradient);
}

.side-card,
.tool-card,
.category-button,
.tab-button,
.insight-card,
.mini-action,
.detail-close,
.detail-meta span,
.compact-filters select,
.side-actions button,
.clear-compare,
.theme-button {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--line);
}

.tool-card:hover {
  background: var(--card-hover);
  border-color: var(--active-border);
}

.tool-name-link,
.insight-card h3,
.category-button,
.side-title,
.rank-meta,
.scene-button,
.compare-table td {
  color: var(--ink);
}

.description,
.hero-copy p:last-child,
.tool-title p,
.insight-card p,
.detail-hero p:last-child,
.detail-description,
.compare-table th {
  color: var(--muted);
}

.pill,
.tag {
  background: var(--pill-bg);
  color: var(--pill-text);
}

.pill.strong,
.category-button.is-active,
.tab-button.is-active,
.theme-button.is-active {
  background: var(--active-bg);
  color: var(--green);
  border-color: var(--active-border);
}

.search-box {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--soft-panel-shadow);
}

.search-box > span,
.search-box select,
.need-button,
.compact-filters select,
.side-actions button,
.clear-compare {
  background: var(--control-bg);
  color: var(--ink);
  border-color: var(--line);
}

.need-button {
  color: var(--muted);
}

.virtual-list,
.insight-content.board-page {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.virtual-list::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.virtual-list::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  background-clip: content-box;
}

.compact-stats strong,
.detail-meta span,
.compare-table a {
  color: var(--ink);
}

.detail-backdrop {
  background: var(--modal-backdrop);
}

.detail-panel {
  border-color: var(--active-border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, transparent), transparent 36%),
    var(--panel);
  box-shadow: 0 34px 90px rgba(50, 78, 82, 0.22);
}

.tool-action.primary {
  border-color: var(--active-border);
  background: var(--brand-gradient);
  color: #ffffff;
}

.tool-action.is-on {
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber);
}

.toast {
  border-color: var(--line);
  background: var(--ink);
  color: var(--panel);
}

.theme-panel {
  display: grid;
  gap: 8px;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.theme-button {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 900;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(21, 47, 42, 0.12);
}

.theme-dot-mint {
  background: linear-gradient(135deg, #3f8cff, #11a77b);
}

.theme-dot-sky {
  background: linear-gradient(135deg, #3478f6, #0e9fc2);
}

.theme-dot-cream {
  background: linear-gradient(135deg, #d98943, #2c9672);
}

.theme-dot-lilac {
  background: linear-gradient(135deg, #5f84f5, #6c63d9);
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 230px minmax(0, 1fr);
    padding: 12px;
  }

  .dashboard {
    grid-template-rows: 184px minmax(0, 1fr);
  }

  .search-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .search-form,
  .need-list {
    grid-column: 1 / -1;
  }

  .hero-copy p:last-child {
    display: none;
  }

  .content-area {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  html,
  body {
    overflow: auto;
  }

  .app-frame {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar,
  .dashboard,
  .search-hero,
  .content-area {
    min-height: auto;
  }

  .dashboard,
  .content-area,
  .search-hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .board-tabs {
    overflow-x: auto;
  }

  .detail-meta,
  .detail-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .detail-meta,
  .detail-actions {
    grid-template-columns: 1fr;
  }
}

/* WaytoAGI-inspired content portal redesign */
html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background:
    radial-gradient(circle at 16% 6%, color-mix(in srgb, var(--green) 16%, transparent), transparent 28%),
    radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 32%),
    linear-gradient(135deg, #fbfffd 0%, var(--bg) 44%, #f7fbff 100%);
}

.notice-strip {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 18px;
  background:
    linear-gradient(90deg, rgba(168, 103, 255, 0.78), rgba(255, 238, 94, 0.82)),
    linear-gradient(90deg, var(--green), var(--blue));
  color: #151823;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.site-shell {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, white);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--soft-panel-shadow);
  backdrop-filter: blur(18px);
}

.topbar .brand {
  min-width: 192px;
}

.topbar .brand-mark {
  background: var(--brand-gradient);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--green) 18%, transparent);
}

.topbar .brand strong {
  color: var(--ink);
  font-size: 22px;
}

.topbar .brand small {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav button,
.ghost-button,
.soft-link {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.top-nav button {
  padding: 0 14px;
}

.top-nav button:hover,
.top-nav button.is-active,
.ghost-button:hover,
.ghost-button.is-active,
.soft-link:hover {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--green);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.ghost-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0 12px;
  background: var(--control-bg);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
}

.topbar .theme-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
}

.topbar .theme-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topbar .theme-switcher {
  display: flex;
  grid-template-columns: none;
  gap: 4px;
}

.topbar .theme-button {
  display: grid;
  place-items: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
}

.topbar .theme-dot {
  width: 18px;
  height: 18px;
}

.page-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  min-height: 424px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--green) 10%, transparent), transparent 38%),
    linear-gradient(315deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel) 92%, white);
  box-shadow: var(--shadow);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -12%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 20%, transparent), transparent 66%);
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: 12px;
  width: 260px;
  height: 90px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  filter: blur(22px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.search-form {
  width: min(760px, 100%);
}

.search-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 124px 92px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 94%, white);
  box-shadow: 0 24px 54px color-mix(in srgb, var(--green) 12%, transparent);
}

.search-box > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--control-bg);
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.search-box input,
.search-box select {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
}

.search-box input {
  padding: 0 6px;
  font-size: 18px;
}

.search-box select {
  padding: 0 10px;
  background: var(--control-bg);
  font-weight: 900;
}

.search-box button {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
}

.need-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  overflow: visible;
}

.need-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 80%, white);
  border-radius: 30px;
  background: #eef8f5;
  box-shadow: 0 34px 80px color-mix(in srgb, var(--green) 16%, transparent);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
  object-position: center right;
}

.hero-art figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #18352e;
  backdrop-filter: blur(14px);
}

.hero-art figcaption span {
  color: #5c8077;
  font-size: 12px;
  font-weight: 900;
}

.hero-art figcaption strong {
  font-size: 13px;
}

.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-ribbon div {
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 90%, white);
  box-shadow: var(--soft-panel-shadow);
}

.metric-ribbon strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.metric-ribbon span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.content-surface {
  min-height: 520px;
}

.content-view {
  animation: viewIn 220ms ease both;
}

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

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.feature-tile {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--soft-panel-shadow);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-tile:hover,
.portal-card:hover,
.knowledge-card:hover,
.mini-tool-card:hover,
.directory-card:hover,
.source-card:hover,
.agent-card:hover,
.prompt-card:hover {
  transform: translateY(-2px);
  border-color: var(--active-border);
  box-shadow: 0 26px 68px color-mix(in srgb, var(--green) 14%, transparent);
}

.feature-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 42px;
  transform: rotate(18deg);
  opacity: 0.74;
}

.feature-tile span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #263c37;
  font-size: 12px;
  font-weight: 900;
}

.feature-tile h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #10161a;
  font-size: 22px;
}

.feature-tile p {
  position: relative;
  z-index: 1;
  max-width: 250px;
  margin: 0;
  color: rgba(16, 22, 26, 0.68);
  font-size: 13px;
  line-height: 1.62;
}

.tone-violet {
  background: linear-gradient(135deg, #efe8ff, #d9f2ff);
}

.tone-violet::after {
  background: linear-gradient(135deg, #8d6cff, #47b6ff);
}

.tone-mint {
  background: linear-gradient(135deg, #e4fff5, #e7f6ff);
}

.tone-mint::after {
  background: linear-gradient(135deg, #12c89a, #4c97ff);
}

.tone-amber {
  background: linear-gradient(135deg, #fff4d8, #f3fff2);
}

.tone-amber::after {
  background: linear-gradient(135deg, #ffad43, #8edc5c);
}

.tone-blue {
  background: linear-gradient(135deg, #e8f2ff, #f0edff);
}

.tone-blue::after {
  background: linear-gradient(135deg, #4b8cff, #8f6df6);
}

.section-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--panel) 92%, white);
  box-shadow: var(--soft-panel-shadow);
}

.section-block + .section-block {
  margin-top: 18px;
}

.section-head,
.view-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2,
.view-heading h2 {
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.soft-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--control-bg);
  color: var(--ink);
}

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

.portal-card {
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--green) 13%, transparent), transparent 42%),
    var(--control-bg);
  color: var(--ink);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.portal-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--green) 10%, transparent);
}

.portal-card strong {
  font-size: 16px;
}

.portal-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
}

.knowledge-list,
.knowledge-grid,
.agent-grid,
.prompt-grid,
.directory-grid,
.source-grid {
  display: grid;
  gap: 14px;
}

.knowledge-list {
  grid-template-columns: 1fr;
}

.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-card,
.directory-card,
.source-card,
.agent-card,
.prompt-card,
.empty-card {
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.knowledge-card {
  cursor: pointer;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.knowledge-card h3,
.directory-card h3,
.source-card h3,
.agent-card h3,
.prompt-card h3,
.empty-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.knowledge-card p,
.directory-card p,
.source-card p,
.agent-card p,
.prompt-card p,
.empty-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mini-tool-list {
  display: grid;
  gap: 10px;
}

.mini-tool-list.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-bg);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.mini-tool-card h3 {
  overflow: hidden;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-tool-card h3 a:hover,
.directory-card h3 a:hover,
.source-card h3 a:hover,
.compare-table a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-tool-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.directory-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--control-bg) 88%, white);
}

.filter-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-pills {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  flex-wrap: wrap;
  min-height: auto;
  max-height: 118px;
  overflow: auto;
  padding-right: 4px;
}

.category-pills .category-button {
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink);
}

.category-pills .category-button strong {
  color: var(--muted);
  font-size: 12px;
}

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

.select-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.select-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--ink);
  padding: 0 10px;
}

.tool-view {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--panel) 92%, white);
  box-shadow: var(--soft-panel-shadow);
}

.tool-view .virtual-list {
  min-height: 430px;
  height: min(62vh, 690px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 84%, white), color-mix(in srgb, var(--control-bg) 86%, white));
}

.tool-card {
  padding: 15px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--green) 8%, transparent);
}

.tool-card-head {
  gap: 11px;
}

.tool-title h3 {
  font-size: 17px;
}

.tool-name-link {
  color: var(--ink);
}

.description {
  color: var(--muted);
}

.agent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.agent-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.agent-orb {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 28%, #fff, transparent 28%),
    var(--brand-gradient);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--green) 16%, transparent);
}

.prompt-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prompt-card {
  display: grid;
  align-content: start;
  min-height: 270px;
}

.prompt-card p {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--control-bg);
}

.prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.prompt-actions .tool-action:not(.primary) {
  border-color: color-mix(in srgb, var(--green) 18%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--control-bg));
  color: var(--ink);
}

.prompt-actions .tool-action:not(.primary):hover,
.prompt-actions .tool-action:not(.primary):focus-visible {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--green);
}

.prompt-actions .tool-action {
  min-height: 40px;
}

.split-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 18px;
}

.directory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-grid {
  grid-template-columns: 1fr;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber);
  font-size: 15px;
}

.compact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.compact-stats span {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.compact-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-layout {
  display: grid;
  gap: 18px;
}

.soft-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--muted);
  font-weight: 900;
}

.compare-card {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: var(--card-bg);
}

.compare-table th,
.compare-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--ink);
  font-weight: 900;
}

.compare-table a {
  color: var(--ink);
  font-weight: 900;
}

.legacy-compare-table {
  display: none;
}

.empty-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}

.empty-state {
  margin: 14px 0 0;
  background: var(--control-bg);
}

.clear-compare {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--control-bg);
}

.detail-panel {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--green) 12%, transparent), transparent 34%),
    var(--panel);
}

.detail-actions .tool-action:not(.primary) {
  border-color: var(--line);
  background: var(--control-bg);
  color: var(--ink);
}

.detail-actions .tool-action:not(.primary):hover {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--green);
}

@media (max-width: 1180px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar .brand {
    min-width: 0;
  }

  .top-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .hero-stage,
  .home-columns,
  .split-board {
    grid-template-columns: 1fr;
  }

  .visual-grid,
  .directory-strip,
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .knowledge-grid,
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .notice-strip {
    font-size: 12px;
  }

  .site-shell {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .topbar {
    top: 8px;
    border-radius: 20px;
  }

  .top-actions {
    gap: 6px;
  }

  .hero-stage {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .search-box {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .search-box select,
  .search-box button {
    grid-column: span 1;
  }

  .hero-art {
    min-height: 260px;
  }

  .hero-art img {
    min-height: 260px;
  }

  .metric-ribbon,
  .visual-grid,
  .portal-grid,
  .knowledge-grid,
  .prompt-grid,
  .directory-grid,
  .directory-strip,
  .agent-grid,
  .mini-tool-list.wide,
  .select-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .view-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-view {
    padding: 16px;
  }
}

/* More WaytoAGI-like colorful homepage direction */
:root:not([data-theme]) {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f4f5ff;
  --panel-3: #fffefc;
  --ink: #111114;
  --ink-dark: #111114;
  --muted: #727187;
  --muted-dark: #727187;
  --line: #ececf6;
  --line-light: #ececf6;
  --green: #6e40ff;
  --green-dark: #4b22d6;
  --blue: #0797ff;
  --amber: #ffe045;
  --shadow: 0 28px 90px rgba(81, 70, 145, 0.13);
  --body-bg:
    radial-gradient(circle at 2% 8%, rgba(123, 87, 255, 0.16), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(255, 224, 69, 0.24), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #f6fff9 100%);
  --surface-bg: rgba(255, 255, 255, 0.94);
  --control-bg: #f5f6fb;
  --card-bg: #ffffff;
  --card-hover: #fffdf8;
  --pill-bg: #f0edff;
  --pill-text: #4f39b8;
  --active-bg: rgba(110, 64, 255, 0.11);
  --active-border: rgba(110, 64, 255, 0.26);
  --brand-gradient: linear-gradient(135deg, #2ca6ff 0%, #00c8a5 45%, #7048ff 100%);
  --soft-panel-shadow: 0 24px 74px rgba(79, 70, 138, 0.12);
}

body {
  background: var(--body-bg);
}

.notice-strip {
  min-height: 50px;
  background:
    linear-gradient(90deg, #b75cff 0%, #ffe66b 78%, #fff238 100%),
    #ffe66b;
  color: #08070f;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.site-shell {
  width: min(1260px, calc(100% - 96px));
  padding-top: 0;
}

.topbar {
  top: 0;
  min-height: 96px;
  padding: 24px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar .brand {
  min-width: 250px;
}

.topbar .brand-mark {
  border-radius: 14px;
  background: linear-gradient(135deg, #26a5ff, #16c79a);
}

.topbar .brand strong {
  color: #101014;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.top-nav {
  justify-content: center;
  gap: 18px;
}

.top-nav button {
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111114;
  font-size: 17px;
}

.top-nav button:hover,
.top-nav button.is-active {
  border-color: transparent;
  background: transparent;
  color: #633cff;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.top-actions {
  gap: 7px;
}

.ghost-button {
  border-radius: 999px;
  background: #f5f5f8;
  border-color: #ededf5;
}

.topbar .theme-panel {
  background: #f5f5f8;
}

.page-shell {
  margin-top: 0;
}

.hero-stage {
  display: block;
  min-height: 330px;
  padding: 76px 8px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-stage::before,
.hero-stage::after,
.hero-art {
  display: none;
}

.hero-copy {
  display: block;
}

.hero-copy .eyebrow {
  color: #633cff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.agi-title {
  max-width: 900px;
  margin: 0 0 4px;
  color: #050508;
  font-size: clamp(72px, 8.5vw, 124px);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.agi-title span,
.agi-title em {
  display: inline-block;
}

.agi-title em {
  position: relative;
  color: #633cff;
  font-style: normal;
}

.agi-title em::after {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: 0.02em;
  left: 0.02em;
  z-index: -1;
  height: 0.18em;
  background: #ffe43b;
}

.hero-kicker {
  margin: 0 0 14px !important;
  color: #c5c8d8 !important;
  font-size: clamp(36px, 5vw, 62px) !important;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p:not(.eyebrow):not(.hero-kicker) {
  max-width: 820px;
  color: #77768a;
}

.search-form {
  margin-top: 26px;
}

.search-box {
  max-width: 720px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(96, 72, 168, 0.16);
}

.search-box button {
  background: linear-gradient(135deg, #6546ff, #0aa8ff);
}

.need-list {
  max-width: 760px;
}

.need-button {
  background: #ffffff;
  color: #636277;
}

.metric-ribbon {
  display: none;
}

.content-surface {
  margin-top: 10px;
}

.poster-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 78px;
}

.poster-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 22px 58px rgba(32, 28, 58, 0.18);
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.poster-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 32px 86px rgba(32, 28, 58, 0.24);
  filter: saturate(1.08);
}

.poster-card::before,
.poster-card::after,
.poster-card i {
  content: "";
  position: absolute;
  pointer-events: none;
}

.poster-card::before {
  inset: auto -44px -62px auto;
  width: 172px;
  height: 172px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(20deg);
}

.poster-card::after {
  inset: 18px 18px auto auto;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    -64px 72px 0 rgba(255, 255, 255, 0.12),
    -122px 18px 0 rgba(255, 255, 255, 0.10);
}

.poster-card i {
  right: 18px;
  bottom: 18px;
  width: 96px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.poster-card span,
.poster-card h2,
.poster-card p {
  position: relative;
  z-index: 1;
}

.poster-card span {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 1000;
  backdrop-filter: blur(10px);
}

.poster-card h2 {
  max-width: 230px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.poster-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 900;
}

.poster-museum {
  background:
    radial-gradient(circle at 82% 20%, #ffdd44, transparent 23%),
    radial-gradient(circle at 14% 82%, #00e2a8, transparent 26%),
    linear-gradient(135deg, #111019 0%, #4e1bff 48%, #ff5179 100%);
}

.poster-lilac {
  color: #27203b;
  background:
    radial-gradient(circle at 78% 32%, #ff9c5b, transparent 18%),
    radial-gradient(circle at 38% 68%, #8558ff, transparent 24%),
    linear-gradient(135deg, #eeeaff, #cfd3ff);
}

.poster-lilac h2,
.poster-lilac p {
  color: #27203b;
}

.poster-lilac span {
  background: rgba(255, 255, 255, 0.48);
  color: #5b4a87;
}

.poster-cosmos {
  background:
    radial-gradient(circle at 72% 40%, #59d7ff, transparent 22%),
    radial-gradient(circle at 36% 70%, #785cff, transparent 28%),
    linear-gradient(135deg, #08091b, #14297a 55%, #0bb7ff);
}

.poster-navy {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 20px),
    linear-gradient(135deg, #0a1830, #112d73 56%, #1bdaff);
}

.poster-sky {
  color: #11314d;
  background:
    radial-gradient(circle at 78% 76%, #86ffea, transparent 30%),
    radial-gradient(circle at 18% 28%, #7ea8ff, transparent 28%),
    linear-gradient(135deg, #dff1ff, #8bbaff);
}

.poster-sky h2,
.poster-sky p {
  color: #11314d;
}

.poster-sky span {
  background: rgba(255, 255, 255, 0.54);
  color: #315d8a;
}

.poster-ember {
  background:
    radial-gradient(circle at 80% 22%, #ffd56a, transparent 24%),
    radial-gradient(circle at 20% 82%, #ff5a5a, transparent 26%),
    linear-gradient(135deg, #2c0c09, #c23a26 55%, #ff8a00);
}

.poster-sport {
  background:
    radial-gradient(circle at 70% 28%, #ffffff, transparent 12%),
    radial-gradient(circle at 24% 72%, #46d5ff, transparent 24%),
    linear-gradient(135deg, #1166ff, #00c2ff 52%, #0b243b);
}

.poster-orange {
  background:
    radial-gradient(circle at 78% 18%, #ffdf77, transparent 24%),
    radial-gradient(circle at 16% 82%, #101014, transparent 24%),
    linear-gradient(135deg, #ff8a00, #ff4f3d 48%, #331a00);
}

.agi-tool-stage {
  width: min(980px, 100%);
  margin: 0 auto 54px;
}

.agi-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 12px 22px;
  border-radius: 20px;
  background: #f1f2f8;
}

.agi-tabs button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #2a2934;
  font-size: 17px;
  font-weight: 900;
}

.agi-tabs button span {
  color: #6a48ff;
}

.agi-tabs button:hover,
.agi-tabs button.is-active {
  background: #ffffff;
  color: #211e32;
  box-shadow: 0 14px 34px rgba(59, 53, 104, 0.12);
}

.agi-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.agi-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas:
    "title icon"
    "summary icon";
  gap: 8px 14px;
  align-items: start;
  min-height: 118px;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #12121a;
  text-align: left;
  box-shadow: 0 14px 42px rgba(66, 60, 112, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.agi-task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(66, 60, 112, 0.14);
}

.agi-task-card span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8f36, #ff4f9b);
  color: #fff;
  font-weight: 1000;
}

.agi-task-card:nth-child(2n) span {
  background: linear-gradient(135deg, #4d95ff, #26d7ff);
}

.agi-task-card:nth-child(3n) span {
  background: linear-gradient(135deg, #835dff, #b168ff);
}

.agi-task-card:nth-child(4n) span {
  background: linear-gradient(135deg, #34d399, #83d23a);
}

.agi-task-card strong {
  grid-area: title;
  font-size: 18px;
}

.agi-task-card small {
  grid-area: summary;
  color: #858397;
  font-size: 14px;
  line-height: 1.5;
}

.section-block {
  border-radius: 18px;
  border-color: #f0f0f7;
  background: #ffffff;
}

.home-columns {
  align-items: start;
}

.knowledge-card,
.mini-tool-card,
.directory-card,
.source-card,
.agent-card,
.prompt-card {
  border-radius: 16px;
  border-color: #eeeeF6;
}

.site-shell:not([data-view="home"]) .hero-stage {
  display: none;
}

.site-shell:not([data-view="home"]) .content-surface {
  margin-top: 24px;
}

.tool-view {
  border-radius: 26px;
}

@media (max-width: 1180px) {
  .site-shell {
    width: min(100% - 32px, 1120px);
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: start;
  }

  .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agi-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agi-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .notice-strip {
    min-height: 42px;
    font-size: 12px;
  }

  .site-shell {
    width: calc(100% - 20px);
  }

  .hero-stage {
    padding-top: 44px;
  }

  .agi-title {
    font-size: clamp(58px, 18vw, 82px);
  }

  .hero-kicker {
    font-size: clamp(28px, 10vw, 42px) !important;
  }

  .poster-wall,
  .agi-tabs,
  .agi-task-grid {
    grid-template-columns: 1fr;
  }

  .detail-rich-grid,
  .related-tool-row,
  .review-ranking-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 18px;
  }

  .review-panel-head,
  .review-user-line,
  .review-empty-hero {
    align-items: start;
    flex-direction: column;
  }

  .review-score-card {
    justify-items: start;
  }
}

/* Link audit badges */
.link-status-badge,
.tool-meta .link-status-badge,
.source-kpis .link-status-badge,
.compact-stats .link-status-badge,
.detail-meta .link-status-badge,
.compare-table .link-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.link-status-badge.is-small {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10px;
}

.link-status-badge.link-ok {
  border-color: rgba(28, 169, 114, 0.26);
  background: rgba(28, 169, 114, 0.12);
  color: #117a56;
}

.link-status-badge.link-restricted {
  border-color: rgba(226, 141, 38, 0.32);
  background: rgba(255, 190, 88, 0.18);
  color: #a76300;
}

.link-status-badge.link-review {
  border-color: rgba(104, 105, 235, 0.3);
  background: rgba(104, 105, 235, 0.13);
  color: #5554d9;
}

.link-status-badge.link-error,
.link-status-badge.link-timeout,
.link-status-badge.link-broken,
.link-status-badge.link-unknown {
  border-color: rgba(230, 76, 103, 0.3);
  background: rgba(230, 76, 103, 0.12);
  color: #b32f4c;
}

.compact-card .tool-meta .link-status-badge {
  flex: 0 0 auto;
}

.detail-meta {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

@media (max-width: 560px) {
  .detail-meta {
    grid-template-columns: 1fr;
  }
}

/* Top navigation collision fix */
.topbar {
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  grid-template-areas:
    "brand actions"
    "nav nav";
  column-gap: 16px;
  row-gap: 8px;
}

.topbar .brand {
  grid-area: brand;
  min-width: 0;
}

.top-nav {
  grid-area: nav;
  justify-content: start;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-padding-inline: 8px;
}

.top-nav button {
  flex: 0 0 auto;
}

.top-actions {
  grid-area: actions;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.top-actions::-webkit-scrollbar {
  display: none;
}

.top-actions > * {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "actions";
  }

  .top-actions {
    justify-self: start;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
