:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f4ef;
  color: #181a1f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button {
  border: 1px solid #cfd3d8;
  border-radius: 8px;
  background: #ffffff;
  color: #181a1f;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  min-height: 38px;
  padding: 0 14px;
}

button:hover {
  border-color: #8a929d;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  margin: 0 auto;
  max-width: 1380px;
  min-height: 100vh;
  padding: 28px;
}

.ideas-panel,
.services-panel {
  min-width: 0;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid #d9d5ca;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.section-head.compact {
  align-items: start;
}

.eyebrow {
  color: #656d78;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 6px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 4.2rem;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 0;
}

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

.status {
  color: #656d78;
  font-size: 0.95rem;
  margin: 12px 0 18px;
}

.ideas {
  display: grid;
  gap: 12px;
}

.idea {
  background: #ffffff;
  border: 1px solid #dedbd3;
  border-radius: 8px;
  padding: 18px;
}

.idea-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.idea h3 {
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 8px;
}

.idea p {
  color: #383d45;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.count {
  background: #233348;
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #e9ece7;
  border-radius: 999px;
  color: #404752;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 5px 8px;
}

.examples {
  border-top: 1px solid #ece9e2;
  color: #59616d;
  display: grid;
  font-size: 0.88rem;
  gap: 7px;
  line-height: 1.4;
  margin-top: 14px;
  padding-top: 12px;
}

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

.service {
  background: #ffffff;
  border: 1px solid #dedbd3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.service-main {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr;
}

.rank {
  align-items: center;
  background: #dde6eb;
  border-radius: 8px;
  color: #233348;
  display: flex;
  font-size: 0.95rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.service h3 {
  font-size: 0.98rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 4px;
}

.service-meta {
  color: #626a76;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.metric {
  background: #f4f5f2;
  border-radius: 8px;
  padding: 8px;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 0.96rem;
  line-height: 1.15;
}

.metric span {
  color: #68717d;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
}

.empty,
.error {
  background: #ffffff;
  border: 1px solid #dedbd3;
  border-radius: 8px;
  color: #555e6a;
  padding: 18px;
}

.error {
  border-color: #c97070;
  color: #8d2f2f;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .section-head {
    align-items: start;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 14px;
  }

  .section-head {
    display: grid;
  }

  .idea-header {
    display: grid;
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }
}
