@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}
:root {
  --green: #0b0c0f;
  --lime: #eaf0ff;
  --ink: #0b0c0f;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #f6f7f9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #0657f9;
  outline-offset: 3px;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 35px 21px;
  display: flex;
  flex-direction: column;
  /* The nav can outgrow short viewports; keep every item reachable. */
  overflow-y: auto;
}
.brand {
  font-family: Manrope, sans-serif;
  font-size: 37px;
  letter-spacing: -2px;
  font-weight: 800;
  text-decoration: none;
  color: #0b0c0f;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-icon {
  font-size: 43px;
}
.brand-dot {
  margin-left: -8px;
  color: #08703f;
}
.workspace {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  margin: 35px 0 31px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-icon {
  background: #ecedef;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  font-weight: 400;
}
.workspace small span {
  margin-left: 65px;
}
.nav-label {
  color: #9b9f98;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin: 0 13px 15px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 12px;
  background: transparent;
  color: #727a73;
  border-radius: 7px;
  text-align: left;
  margin-bottom: 5px;
  font-size: 12px;
}
.nav > span {
  font-size: 19px;
  width: 20px;
}
.nav.active {
  color: var(--green);
  background: #ebecee;
  font-weight: 700;
}
.nav em,
.nav b {
  margin-left: auto;
  font-size: 10px;
  font-style: normal;
  background: white;
  padding: 3px 6px;
  border-radius: 4px;
}
.nav i {
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.5px;
  border: 1px solid #ddd;
  padding: 3px 4px;
}
.nav-count {
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
}
.upgrade {
  background: linear-gradient(120deg, #eff0f1, #e9eaed);
  border: 1px solid #dee0e3;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 24px;
}
.upgrade > span {
  font-size: 27px;
  color: #08703f;
}
.upgrade h3 {
  font-family: Manrope;
  font-size: 13px;
  margin: 10px 0 7px;
}
.upgrade p {
  font-size: 11px;
  line-height: 1.7;
  color: #737a87;
}
.upgrade button {
  background: #fff;
  border: 1px solid #dedfe2;
  width: 100%;
  padding: 10px;
  font-size: 11px;
  border-radius: 5px;
  text-align: left;
}
.upgrade button span {
  float: right;
}
.system {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 9px;
  color: #8b928a;
}
.system > span {
  width: 5px;
  height: 5px;
  background: #08703f;
  border-radius: 50%;
}
.system small {
  margin-left: auto;
}
.app {
  margin-left: 238px;
}
header {
  height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39px;
  background: #ffffffa8;
}
.breadcrumb {
  font-size: 12px;
  color: #6b7280;
}
.breadcrumb span {
  margin: 0 16px;
  color: #a0a6b1;
}
.breadcrumb strong {
  font-weight: 500;
  color: #374151;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.demo-pill {
  font-size: 8px;
  letter-spacing: 1px;
  color: #6b7280;
  border: 1px solid #e6e8ec;
  padding: 5px 8px;
  border-radius: 4px;
}
.icon-button {
  background: none;
  font-size: 23px;
  position: relative;
  color: #6b7280;
}
.icon-button i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #0657f9;
  border: 1px solid white;
  border-radius: 50%;
  right: 7px;
  top: 5px;
}
.wallet-button {
  background: var(--green);
  color: white;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 11px;
  display: flex;
  gap: 9px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 39px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #6b7280;
  font-weight: 600;
}
h1 {
  font-family: Manrope, sans-serif;
  font-size: 30px;
  letter-spacing: -1.25px;
  margin: 10px 0;
}
h1 > span {
  color: #0657f9;
}
.page-heading p {
  font-size: 12px;
  color: #6b7280;
  margin: 10px 0 0;
}
.outline-button {
  border: 1px solid #e6e8ec;
  background: white;
  border-radius: 6px;
  padding: 10px 13px;
  color: #374151;
  font-size: 11px;
}
.demo-note {
  font-size: 9px;
  color: #6b7280;
  margin: 17px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat-label {
  font-size: 11px;
  color: #838b7e;
  display: flex;
  justify-content: space-between;
}
.stat-label span {
  color: #9ea3ad;
}
.stat-value {
  font-family: Manrope;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 12px 0 11px;
}
.stat-value small {
  color: #9ba0a9;
  font-size: 20px;
}
.stat-bottom {
  font-size: 9px;
  color: #989da7;
}
.stat-bottom b {
  font-weight: 500;
  color: #626873;
  background: #eeeff1;
  padding: 4px 6px;
  border-radius: 4px;
  margin-right: 5px;
}
.stat.highlight {
  background: #eaebed;
  border-color: #dbdde1;
}
.stat.highlight .stat-value {
  color: #08703f;
}
.middle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 21px;
  margin-bottom: 28px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 22px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
h2 {
  font-family: Manrope;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.3px;
  margin: 0;
}
.card-heading p,
.subtext {
  font-size: 10px;
  color: #6b7280;
  margin: 7px 0;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f6f7f9;
  border-radius: 5px;
}
.segmented button {
  background: transparent;
  color: #8c929d;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 3px;
}
.segmented button.selected {
  background: white;
  color: #41454c;
  box-shadow: 0 1px 3px #00000012;
}
.chart-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.chart-summary strong {
  font-family: Manrope;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.chart-summary span {
  font-size: 9px;
  color: #08703f;
}
.chart {
  height: 161px;
  position: relative;
  margin-top: 10px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #9ca1aa;
  margin-top: 9px;
  padding-right: 30px;
}
.legend {
  display: flex;
  gap: 17px;
  font-size: 9px;
  color: #868c98;
  margin-top: 17px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #08703f;
  margin-right: 5px;
}
.legend span + span:before {
  background: #cdcfd4;
}
.optimizer {
  background: #183c32;
  color: #f0f1f3;
  border: 0;
  position: relative;
  overflow: hidden;
}
.optimizer:after {
  content: "✳";
  position: absolute;
  right: -29px;
  top: 28px;
  font-size: 190px;
  color: #c8e79808;
  pointer-events: none;
}
.optimizer .eyebrow {
  color: #aeb2ba;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.optimizer .opt-icon {
  display: inline-flex;
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 21px;
  color: #c2c5cb;
}
.optimizer h2 {
  font-size: 22px;
  line-height: 1.4;
  max-width: 260px;
  margin-top: 11px;
}
.optimizer p {
  font-size: 11px;
  line-height: 1.8;
  color: #b1b5bc;
  max-width: 270px;
}
.opt-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #c3c6cb;
  font-size: 10px;
}
.opt-benefit strong {
  font-family: Manrope;
  font-size: 25px;
}
.opt-benefit span {
  max-width: 110px;
  font-size: 9px;
  color: #abb0b8;
}
.primary {
  background: var(--green);
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.optimizer .primary {
  background: var(--lime);
  color: #0545c7;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 17px;
}
.section-heading p {
  font-size: 10px;
  color: #898f9b;
  margin: 6px 0 0;
}
.text-button {
  background: none;
  color: #5f646f;
  font-size: 10px;
}
.opportunities {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.filters {
  padding: 15px 17px;
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter {
  padding: 8px 12px;
  border: 1px solid #e2e4e7;
  border-radius: 5px;
  background: white;
  color: #818894;
  font-size: 10px;
}
.filter.active {
  background: #eaecee;
  border-color: #d7d9dd;
  color: #08703f;
}
.filters select,
.filters input {
  border: 1px solid #e1e3e6;
  padding: 8px 9px;
  border-radius: 5px;
  color: #737a87;
  background: white;
  font-size: 10px;
  min-width: 0;
}
.filters .search {
  margin-left: auto;
  width: 140px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 8px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.65px;
  background: #fafbfc;
  padding: 14px 18px;
}
td {
  font-size: 11px;
  padding: 15px 18px;
  border-top: 1px solid #eef0f3;
}
.protocol {
  display: flex;
  align-items: center;
  gap: 11px;
}
.protocol-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.protocol strong {
  font-size: 11px;
  font-weight: 600;
}
.protocol small {
  display: block;
  font-size: 9px;
  color: #6b7280;
  margin-top: 4px;
}
.asset {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 8px;
  padding: 3px 5px;
  border-radius: 3px;
  margin-left: 5px;
}
.chain {
  font-size: 9px;
  color: #6b7280;
}
.chain:before {
  content: "●";
  color: #8598bf;
  margin-right: 5px;
}
.apy {
  font-family: Manrope;
  font-size: 13px;
  font-weight: 750;
  color: #0b0c0f;
}
.tiny {
  display: block;
  color: #6b7280;
  font-size: 8px;
  margin-top: 5px;
  font-weight: 400;
}
.risk {
  display: inline-block;
  border: 1px solid #e6e8ec;
  border-radius: 4px;
  padding: 4px 7px;
  background: #f6f7f9;
  color: #08703f;
  font-size: 9px;
}
.risk.medium {
  background: #faf6eb;
  color: #a49153;
  border-color: #eee6cc;
}
.sparkline {
  width: 66px;
  height: 22px;
}
.deposit {
  background: #f3f4f6;
  border: 1px solid #e6e8ec;
  border-radius: 5px;
  padding: 7px 11px;
  color: #374151;
  font-size: 9px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #6b7280;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 21px;
  margin-top: 23px;
}
.allocation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 23px;
}
.donut {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#575c66 0 75%, #999fa9 75% 90%, #d3d5da 90% 100%);
  display: grid;
  place-items: center;
}
.donut-center {
  width: 83px;
  height: 83px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  color: #9499a3;
}
.donut-center strong {
  font-size: 20px;
  color: #3e4249;
  margin-bottom: 3px;
}
.allocation-list {
  flex: 1;
}
.allocation-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #838995;
  margin: 13px 0;
}
.allocation-row span:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c);
  margin-right: 8px;
  border-radius: 2px;
}
.allocation-row b {
  font-weight: 500;
  color: #5c616b;
}
.alert-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #edeef0;
}
.alert-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.alert-icon {
  background: #edeef0;
  color: #767d8b;
  border-radius: 6px;
  padding: 8px;
  height: 30px;
}
.alert-item strong {
  font-size: 10px;
  font-weight: 500;
}
.alert-item p {
  font-size: 9px;
  color: #9096a1;
  margin: 5px 0;
}
.alert-item time {
  font-size: 8px;
  color: #a5aab3;
  margin-left: auto;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #999fa9;
  margin-top: 29px;
  padding: 8px 0;
}
.footer-logo {
  font-size: 13px;
  margin-right: 6px;
}
.footer-dot {
  margin: 0 9px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  width: min(480px, calc(100% - 30px));
  color: var(--ink);
  box-shadow: 0 25px 100px #10281e25;
}
dialog::backdrop {
  background: #12291e66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin-bottom: 15px;
}
dialog p {
  color: #767d8a;
  font-size: 12px;
  line-height: 1.8;
}
.modal-top {
  display: flex;
  justify-content: space-between;
}
.close {
  background: #eff0f1;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  color: #606671;
}
.field {
  display: block;
  color: #626772;
  font-size: 11px;
  margin: 18px 0;
}
.field input,
.field select {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid #d8dade;
  border-radius: 6px;
  background: white;
  color: #3a3d44;
}
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #e9eaed;
  font-size: 12px;
}
.result-row strong {
  color: #08703f;
}
.full {
  width: 100%;
  margin-top: 18px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 80px);
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: 0.25s;
  background: #0b0c0f;
  color: #eff0f2;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10;
  max-width: 90vw;
  box-shadow: 0 5px 20px #0002;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
.empty {
  text-align: center;
  padding: 50px;
  color: #808692;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.profile-options {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.profile-options button {
  flex: 1;
  padding: 13px 5px;
  font-size: 11px;
}
.notice {
  padding: 12px;
  background: #eeeff1;
  border-radius: 7px;
  color: #747b89;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 18px;
}
.position-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.position-row:last-child {
  border: 0;
}
.position-value {
  text-align: right;
}
.position-value strong {
  font-family: Manrope;
  font-size: 18px;
}
.position-value small {
  display: block;
  color: #6b7280;
  font-size: 10px;
  margin-top: 5px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .chart {
    height: 190px;
  }
  .optimizer h2 {
    font-size: 26px;
  }
  .stat {
    padding: 25px;
  }
  .sidebar {
    width: 250px;
  }
  .app {
    margin-left: 250px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .app {
    margin-left: 205px;
  }
  main {
    padding: 28px 24px;
  }
  header {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .middle-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .filters .search {
    width: 110px;
  }
  th,
  td {
    padding: 13px 12px;
  }
  .workspace small span {
    margin-left: 40px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 22px 12px;
  }
  .brand {
    font-size: 0;
    gap: 0;
    justify-content: center;
  }
  .brand-icon {
    font-size: 37px;
  }
  .brand-dot,
  .workspace,
  .nav-label,
  .upgrade,
  .system {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav {
    font-size: 0;
    justify-content: center;
    padding: 14px;
  }
  .nav > span {
    font-size: 22px;
  }
  .nav em,
  .nav b,
  .nav i {
    display: none;
  }
  .app {
    margin-left: 76px;
  }
  .middle-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .optimizer h2 {
    font-size: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 25px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 65px;
    z-index: 5;
    padding: 3px 7px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
  .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    justify-content: space-around;
  }
  .nav {
    width: auto;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    font-size: 8px;
    padding: 8px 2px;
    margin: 0;
  }
  .nav > span {
    font-size: 20px;
  }
  .app {
    margin-left: 0;
  }
  header {
    height: 66px;
    padding: 0 17px;
  }
  .header-actions {
    gap: 12px;
  }
  .demo-pill {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 9px;
  }
  .wallet-button {
    padding: 10px;
    font-size: 10px;
  }
  main {
    padding: 25px 17px 85px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .outline-button {
    padding: 7px;
    font-size: 14px;
  }
  .outline-button span {
    display: none;
  }
  h1 {
    font-size: 24px;
    max-width: 280px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.6;
    max-width: 260px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .demo-note {
    font-size: 8px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-bottom {
    font-size: 8px;
  }
  .stat-bottom b {
    display: inline-block;
    margin-bottom: 3px;
  }
  .middle-grid {
    grid-template-columns: 1fr;
  }
  .optimizer {
    padding: 23px;
  }
  .optimizer h2 {
    max-width: none;
  }
  .optimizer p {
    max-width: none;
  }
  .optimizer .opt-icon {
    float: right;
    margin: 0;
  }
  .opt-benefit {
    margin: 10px 0 16px;
  }
  .card {
    padding: 19px;
  }
  .filters {
    padding: 12px;
    gap: 6px;
  }
  .filter {
    padding: 7px 9px;
  }
  .filters .search {
    width: 100%;
    margin: 5px 0 0;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 9px;
  }
  .table-footer {
    font-size: 8px;
  }
  .table-footer span:last-child {
    display: none;
  }
  footer {
    gap: 15px;
    line-height: 1.6;
  }
  footer > span {
    max-width: 50%;
  }
  #toast {
    left: 50%;
    bottom: 80px;
    width: max-content;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .profile-options {
    gap: 4px;
  }
}
/* Live market feed */
.feed-badge {
  font-size: 8px;
  letter-spacing: 0.7px;
  padding: 6px 8px;
  border-radius: 5px;
  background: #ebecee;
  color: #08703f;
  white-space: nowrap;
}
.feed-badge[data-status="stale"],
.feed-badge[data-status="unavailable"] {
  background: #faf1dd;
  color: #937230;
}
.feed-badge[data-status="loading"] {
  background: #edf0f1;
  color: #70838b;
}
.feed-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.feed-status strong {
  font-size: 10px;
  font-weight: 500;
  color: #595f69;
}
.feed-status small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: #878d99;
  line-height: 1.6;
}
.feed-status button {
  flex-shrink: 0;
}
.feed-status button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.feed-disclosure {
  font-size: 10px;
  color: #828995;
  line-height: 1.8;
  margin: 12px 0 0;
}
.live-filters .search {
  width: 180px;
}
.live-filters select {
  max-width: 200px;
}
.live-table-footer {
  align-items: center;
  gap: 12px;
}
.live-table-footer a {
  color: #656b76;
  text-decoration: none;
  font-size: 9px;
}
.unrated {
  font-size: 9px;
  color: #9095a0;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 5px 6px;
}
.pool-description {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-link {
  display: block;
  text-decoration: none;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.result-row {
  gap: 15px;
}
.result-row strong {
  text-align: right;
}
.demo-note {
  line-height: 1.7;
}
@media (max-width: 640px) {
  .feed-status {
    padding: 12px;
    align-items: flex-start;
    gap: 8px;
  }
  .feed-status strong {
    font-size: 9px;
  }
  .feed-status small {
    font-size: 8px;
  }
  .feed-status button {
    font-size: 9px;
    padding: 8px;
  }
  .live-filters .search {
    width: 100%;
  }
  .live-filters select {
    max-width: 100%;
  }
  .feed-badge {
    font-size: 7px;
  }
  .feed-disclosure {
    font-size: 9px;
  }
  .live-table-footer {
    flex-wrap: wrap;
  }
}
/* Read-only wallet portfolio */
.wallet-panel {
  margin-bottom: 28px;
}
.wallet-toolbar,
.wallet-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wallet-toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
}
.wallet-toolbar strong {
  font-family: Manrope;
  font-size: 17px;
}
.wallet-network-note {
  font-size: 10px;
  color: #828995;
  line-height: 1.8;
  margin: 9px 0 20px;
}
.wallet-stats .stat-value {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.wallet-chain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 21px;
}
.wallet-chain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
}
.wallet-chain-card > strong {
  display: inline-block;
  font-size: 12px;
  margin: 0 9px 10px 0;
}
.wallet-chain-card .feed-badge {
  font-size: 7px;
  padding: 4px 5px;
}
.wallet-chain-card p,
.wallet-chain-card small {
  font-size: 9px;
  color: #818894;
  line-height: 1.7;
  margin: 5px 0;
}
.wallet-chain-card .wallet-chain-warning {
  color: #967e42;
}
.wallet-table-card {
  padding: 0;
  overflow: hidden;
  margin: 20px 0;
}
.wallet-table-card > .card-heading {
  padding: 20px;
}
.wallet-table-card td .text-button {
  text-decoration: none;
}
.wallet-empty {
  text-align: center;
  padding: 50px 30px;
}
.wallet-empty .opt-icon {
  font-size: 38px;
  color: #08703f;
  margin-bottom: 20px;
}
.wallet-empty h2 {
  font-size: 26px;
  margin: 13px 0;
}
.wallet-empty p {
  font-size: 12px;
  line-height: 1.9;
  color: #838a96;
  max-width: 500px;
  margin: 15px auto 25px;
}
.wallet-network-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 25px;
  font-size: 10px;
  color: #828894;
}
.wallet-network-chips span {
  background: #eeeff0;
  border-radius: 4px;
  padding: 7px 10px;
}
.wallet-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #dedfe2;
  border-radius: 8px;
  background: #fafbfc;
  padding: 12px;
  margin: 9px 0;
  color: #3b3e45;
}
.wallet-choice > span:last-child {
  margin-left: auto;
}
.wallet-choice small {
  display: block;
  font-size: 10px;
  color: #8f949f;
  margin-top: 4px;
}
.wallet-choice:disabled {
  opacity: 0.55;
  cursor: wait;
}
.wallet-help {
  font-size: 10px !important;
}
.wallet-error {
  color: #a24f3c !important;
  min-height: 18px;
}
.wallet-error-banner {
  border: 1px solid #ebd6aa;
  background: #fbf5e9;
  color: #957639;
  border-radius: 7px;
  padding: 13px;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.full-address {
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 12px !important;
}
.wallet-selected {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin: 8px 0 18px;
}
.wallet-view-all {
  margin: 0 0 7px;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.wallet-chain-card strong {
  color: #08703f;
}
@media (max-width: 1000px) {
  .wallet-chain-grid {
    grid-template-columns: 1fr;
  }
  .wallet-stats .stat-value {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  .wallet-toolbar {
    gap: 14px;
  }
  .wallet-toolbar > div {
    gap: 8px;
  }
  .wallet-toolbar .outline-button {
    font-size: 10px;
  }
  .wallet-empty {
    padding: 35px 18px;
  }
  .wallet-empty h2 {
    font-size: 23px;
  }
  .wallet-stats .stat-value {
    font-size: 21px;
  }
  .wallet-chain-grid {
    gap: 9px;
  }
  .wallet-chain-card {
    padding: 13px;
  }
  .wallet-table-card > .card-heading {
    align-items: flex-start;
  }
  .wallet-table-card .subtext {
    max-width: 130px;
    text-align: right;
  }
}

/* Release accessibility and local assets */
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  background: #0b0c0f;
  color: #fff;
  padding: 14px;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus {
  top: 15px;
}
main:focus {
  outline: none;
}
.noscript {
  padding: 20px;
  background: #fff4d9;
  position: relative;
  z-index: 100;
}
.project-aave-v3 {
  background: #9380d3;
}
.project-morpho-blue {
  background: #4276eb;
}
.project-sparklend {
  background: #b06a1d;
}
.project-compound-v3 {
  background: #277c5e;
}
.comparison-intro {
  margin: 0 0 22px;
}
.wallet-empty {
  margin-bottom: 28px;
}
.wallet-help,
.feed-disclosure,
.demo-note,
.subtext,
.wallet-network-note {
  color: #4b5563 !important;
}
.tiny,
.protocol small,
.chain,
.stat-label,
.stat-bottom,
.card-heading p {
  color: #4b5563 !important;
}
.feed-status strong,
.feed-status small,
.filters select,
.filters input,
.text-button,
.outline-button,
.wallet-chain-card p,
.wallet-chain-card small,
.wallet-network-chips,
.wallet-empty p,
.page-heading p,
.eyebrow,
.breadcrumb {
  color: #4b5563;
}
.unrated {
  color: #515660;
}
.nav {
  color: #4b5563;
}
.nav-label,
.system,
footer,
.table-footer {
  color: #595f69;
}
th {
  color: #4b5563;
}
.workspace small,
.wallet-choice small {
  color: #545963;
}
.wallet-error {
  color: #8e3b29 !important;
}
.wallet-error-banner {
  color: #725319;
}
.wallet-chain-card .wallet-chain-warning {
  color: #725319;
}
.feed-badge {
  color: #08703f;
}
.feed-badge[data-status="stale"],
.feed-badge[data-status="unavailable"] {
  color: #725319;
}
.feed-badge[data-status="loading"] {
  color: #4e626b;
}
.demo-pill {
  color: #555a63;
}
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0657f9;
  outline-offset: 3px;
}
.table-wrap {
  border-radius: 0;
}
.table-wrap:focus-visible {
  outline: 3px solid #0657f9;
  outline-offset: -3px;
}
.wallet-view-all {
  padding: 12px 0;
}
button,
a {
  touch-action: manipulation;
}
.filters input::placeholder {
  color: #5d636e;
}
footer .text-button {
  padding: 8px;
}
.feed-status button {
  min-height: 35px;
}
.wallet-toolbar .text-button {
  min-height: 35px;
}
.feed-disclosure a {
  color: #08703f;
}
#toast {
  color: #fff;
}
.protocol-icon {
  color: #fff;
  font-weight: 700;
}
.pool-description {
  font-size: 10px !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.asset {
  color: #4b5563;
  font-size: 10px;
}
.upgrade p {
  color: #4b5563;
}
.protocol-icon {
  font-size: 20px;
}
.live-table-footer a {
  color: #4e535c;
}
.deposit {
  color: #08703f;
}
.nav-label,
.system,
.table-footer,
footer,
.demo-note,
.eyebrow {
  font-size: 10px;
}
.feed-status small,
.tiny,
.wallet-chain-card small,
.wallet-chain-card p {
  font-size: 10px;
}
.live-table-footer a,
.filters select,
.filters input,
.text-button,
.filter,
.deposit {
  font-size: 11px;
}
.feed-disclosure,
.wallet-network-note {
  font-size: 11px;
}
.wallet-table-card td {
  font-size: 12px;
}
.wallet-help {
  font-size: 11px !important;
}
.feed-badge {
  font-size: 9px;
}
.page-heading p {
  font-size: 13px;
}
.card-heading p,
.subtext {
  font-size: 11px;
}
.filters select,
.filters input {
  min-height: 35px;
}
.wallet-empty p {
  font-size: 13px;
}

.section-heading p,
dialog p {
  color: #4b5563;
  font-size: 12px;
}
.notice {
  color: #484c55;
}
.wallet-choice {
  font-size: 13px;
}

.research-card,
.home-widgets {
  padding: 24px;
  margin-bottom: 24px;
}
.research-card p,
.home-widgets p {
  line-height: 1.6;
}
.research-card label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.research-card select,
.research-card input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: #0b0c0f;
  font: inherit;
}
.research-card > label {
  margin-bottom: 12px;
}
.research-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: end;
  margin: 20px 0;
}
.research-form button {
  min-height: 42px;
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.widget-grid > div {
  padding: 16px;
  border: 1px solid #dee0e3;
  border-radius: 12px;
}
.research-card table {
  width: 100%;
}
.research-card summary {
  cursor: pointer;
  padding: 14px 0;
}
.research-card caption {
  text-align: left;
  padding: 12px 0;
}
@media (max-width: 600px) {
  .research-card,
  .home-widgets {
    padding: 16px;
  }
  .research-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- v1.0: scoring, pool detail, execution, insights ---------- */
.card .research-form label,
.nl-form label,
.inline-form {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.card .research-form select,
.card .research-form input,
.nl-form textarea,
.inline-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: #0b0c0f;
  font: inherit;
}
.inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 12px 0;
}
.nl-form {
  display: grid;
  gap: 10px;
  margin: 16px 0 6px;
}
.nl-form button {
  justify-self: start;
}
label.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}
label.check input {
  width: auto;
}
.grade {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 44px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
}
.grade small {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.8;
}
.grade-A {
  background: #dff3e4;
  color: #12552c;
  border-color: #b7e2c3;
}
.grade-B {
  background: #e2e3e6;
  color: #08703f;
  border-color: #c1c4ca;
}
.grade-C {
  background: #fff3cf;
  color: #6b4e00;
  border-color: #f1dc95;
}
.grade-D {
  background: #ffe3cc;
  color: #7a3500;
  border-color: #f4c299;
}
.grade-F {
  background: #fbd9d9;
  color: #7d1414;
  border-color: #efb1b1;
}
.apy-muted {
  display: block;
  color: #4b5563;
  font-weight: 600;
}
.hue-0 {
  background: #4276eb;
}
.hue-1 {
  background: #9380d3;
}
.hue-2 {
  background: #ee9d44;
}
.hue-3 {
  background: #40a782;
}
.hue-4 {
  background: #4ba9dd;
}
.hue-5 {
  background: #38675c;
}
.hue-6 {
  background: #c0577c;
}
.hue-7 {
  background: #08703f;
}
.hue-8 {
  background: #5b6bb5;
}
.hue-9 {
  background: #b07a2a;
}
.hue-10 {
  background: #2f8f9d;
}
.hue-11 {
  background: #7a5c99;
}
.protocol-icon[class*="hue-"] {
  color: #fff;
}
.pool-hero .pool-title {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pool-hero .pool-title > div {
  flex: 1;
  min-width: 0;
}
.pool-hero h2 {
  margin: 4px 0;
}
.pool-hero .grade {
  font-size: 22px;
  padding: 10px 16px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.ladder-step {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.ladder-step span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.ladder-step strong {
  font-size: 22px;
  font-family: Manrope, sans-serif;
}
.ladder-step small {
  font-size: 11px;
  color: var(--muted);
}
.ladder-step.key {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.ladder-step.key span,
.ladder-step.key small {
  color: var(--lime);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.action-row a.primary,
.action-row a.outline-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.two-col > .card {
  margin: 0;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
}
.score-table th {
  text-align: left;
  font-weight: 600;
  padding: 7px 0;
  font-size: 13px;
}
.score-table td {
  padding: 7px 0 7px 10px;
}
.score-table .num {
  text-align: right;
  font-weight: 700;
  width: 40px;
}
.score-bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #eef0f3;
  overflow: hidden;
  min-width: 80px;
}
.score-bar .fill {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 99px;
}
.w-0 {
  width: 0;
}
.w-5 {
  width: 5%;
}
.w-10 {
  width: 10%;
}
.w-15 {
  width: 15%;
}
.w-20 {
  width: 20%;
}
.w-25 {
  width: 25%;
}
.w-30 {
  width: 30%;
}
.w-35 {
  width: 35%;
}
.w-40 {
  width: 40%;
}
.w-45 {
  width: 45%;
}
.w-50 {
  width: 50%;
}
.w-55 {
  width: 55%;
}
.w-60 {
  width: 60%;
}
.w-65 {
  width: 65%;
}
.w-70 {
  width: 70%;
}
.w-75 {
  width: 75%;
}
.w-80 {
  width: 80%;
}
.w-85 {
  width: 85%;
}
.w-90 {
  width: 90%;
}
.w-95 {
  width: 95%;
}
.w-100 {
  width: 100%;
}
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef0f3;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.pill.warn {
  background: #fff0d6;
  color: #7a4a00;
}
.pill.ok {
  background: #dff3e4;
  color: #12552c;
}
.sus-High {
  color: #12552c;
}
.sus-Medium {
  color: #7a4a00;
}
.sus-Low {
  color: #8a1c1c;
}
.warn-text {
  color: #8a1c1c;
}
.ai-note {
  padding: 12px;
  border-left: 3px solid var(--green);
  background: #f6f7f9;
  border-radius: 6px;
}
.line-chart {
  width: 100%;
  height: 140px;
  color: var(--green);
  display: block;
}
.chart-figure {
  margin: 0 0 12px;
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.step {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 2px;
}
.step-passed {
  border-color: #b7e2c3;
  background: #f3fbf5;
}
.step-failed {
  border-color: #efb1b1;
  background: #fdf3f3;
}
.step-later {
  border-style: dashed;
  color: var(--muted);
}
.move-score {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.move-score > div {
  display: grid;
  gap: 2px;
}
.move-score strong {
  font-size: 34px;
  font-family: Manrope, sans-serif;
}
.move-score p {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}
.move-move {
  background: #dff3e4;
}
.move-consider {
  background: #fff3cf;
}
.move-stay {
  background: #eef0f3;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.template {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
}
.template:hover,
.template:focus-visible {
  border-color: var(--green);
}
.template span {
  font-size: 12px;
  color: var(--muted);
}
.alloc-pick {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.alloc-pick ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
}
.alloc-amount {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}
.inbox-item,
.incident,
.hedge {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.inbox-item p,
.incident p {
  margin: 4px 0;
}
.incident.sev-high strong {
  color: #8a1c1c;
}
.hedge {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hedge-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}
.habit {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}
.habit > div {
  display: grid;
  gap: 4px;
}
.habit strong {
  font-size: 30px;
  font-family: Manrope, sans-serif;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.plan .price {
  font-size: 26px;
  font-weight: 800;
  font-family: Manrope, sans-serif;
  margin: 4px 0 12px;
}
.plan.current {
  border-color: var(--green);
}
.report h2 {
  font-family: Manrope, sans-serif;
}
code {
  background: #eef0f3;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
#content > .card,
#content > section.card {
  margin-bottom: 20px;
}
body.embed {
  background: transparent;
  padding: 8px;
}
.embed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  max-width: 480px;
}
.embed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.embed-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.embed-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 900px) {
  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .habit {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .alloc-pick,
  .hedge {
    flex-direction: column;
  }
  .alloc-amount,
  .hedge-meta {
    justify-items: start;
    text-align: left;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .ladder-step strong {
    font-size: 18px;
  }
}
.score-table th {
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: none;
}
@media (max-width: 640px) {
  .sidebar nav {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar nav .nav {
    flex: 0 0 auto;
    min-width: 68px;
  }
}

/* ---------- u.txt decision features ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--green);
  color: #fff;
}
.hero h2 {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  margin: 0 0 6px;
  color: #fff;
}
.hero p {
  margin: 0;
  color: #dedfe2;
}
.hero .tiny,
.hero .text-button {
  color: var(--lime);
}
.hero .inline-form {
  grid-column: 1 / -1;
  margin: 0;
}
.hero .inline-form input {
  border-color: transparent;
}
.hero a.primary {
  background: var(--lime);
  color: var(--green);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.health-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.health-score {
  display: grid;
  justify-items: center;
  padding: 18px 22px;
  border-radius: 16px;
  min-width: 150px;
}
.health-score strong {
  font-family: Manrope, sans-serif;
  font-size: 48px;
  line-height: 1;
}
.health-score small {
  font-size: 16px;
  color: var(--muted);
}
.health-good {
  background: #dff3e4;
}
.health-ok {
  background: #fff3cf;
}
.health-bad {
  background: #fbd9d9;
}
.health-flags {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 6px;
}
.health-flags li {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f6f7f9;
}
.health-flags li.warn {
  background: #fff0d6;
}
.advice {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.advice li span {
  display: block;
  font-size: 13px;
  color: #374151;
}
.advice-protect a strong {
  color: #8a1c1c;
}
.checkup-grid,
.report-grid,
.range-grid,
.risk-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.checkup-grid > div,
.report-grid > div,
.range-grid > div,
.risk-levels > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.checkup-grid span,
.report-grid span,
.range-grid span,
.risk-levels span {
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
}
.checkup-grid strong,
.report-grid strong,
.range-grid strong {
  font-size: 20px;
  font-family: Manrope, sans-serif;
}
.lvl-Low {
  color: #12552c;
}
.lvl-Medium {
  color: #7a4a00;
}
.lvl-High {
  color: #8a1c1c;
}
.lvl-None {
  color: #4b5563;
}
.checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.checks .ok {
  color: #12552c;
}
.checks .warn {
  color: #7a4a00;
}
.conf {
  font-weight: 700;
}
.conf-High {
  color: #12552c;
}
.conf-Medium {
  color: #7a4a00;
}
.conf-Low {
  color: #8a1c1c;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: inherit;
}
.match {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.match ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
}
.match-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}
.match-meta strong {
  font-size: 22px;
  font-family: Manrope, sans-serif;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.recipe {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.recipe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.recipe-head h3 {
  margin: 0;
}
.recipe-apy strong {
  font-size: 22px;
  font-family: Manrope, sans-serif;
}
.legs {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.research-form .wide {
  grid-column: span 2;
}
.protect-headline {
  font-size: 18px;
}
.primary.danger,
button.danger {
  background: #8a1c1c;
  border-color: #8a1c1c;
  color: #fff;
}
a.primary.danger {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
}
.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.timeline em {
  grid-column: 2 / -1;
  font-size: 12px;
  color: #4b5563;
}
.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.profile-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.profile-card input {
  justify-self: start;
}
.profile-card span {
  font-size: 12px;
  color: #4b5563;
}
.profile-card:has(input:checked) {
  border-color: var(--green);
  background: #f6f7f9;
}
.inbox-item.ignored {
  opacity: 0.6;
}
.result-row.total {
  font-weight: 800;
  border-top: 2px solid var(--line);
}
@media (max-width: 700px) {
  .hero,
  .health-top,
  .profile-cards {
    grid-template-columns: 1fr;
  }
  .match {
    flex-direction: column;
  }
  .match-meta {
    justify-items: start;
  }
  .research-form .wide {
    grid-column: auto;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
}
.hero button.primary,
.hero a.primary {
  background: var(--lime);
  color: var(--green);
  border-color: var(--lime);
}
.hero .inline-form input {
  color: var(--ink);
}

.health-score small {
  color: #374151;
}

/* ---------- automation ---------- */
.automation-card fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.automation-card legend {
  font-weight: 700;
  font-size: 13px;
  padding: 0 4px;
}
.auto-pools {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}
.auto-rules,
.auto-log {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#automation code,
.automation-card code {
  overflow-wrap: anywhere;
}
.vault-card h4 {
  margin: 14px 0 6px;
  font-size: 13px;
}

/* ======================================================================================
   Theme v2 — clean product look (top navigation, centered column, neutral palette with one
   blue accent, readable type scale). Later rules override the original workspace styles.
   ====================================================================================== */
:root {
  --green: #0657f9;
  --lime: #eaf0ff;
  --ink: #0b0c0f;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #f6f7f9;
  --accent: #0657f9;
  --accent-ink: #0545c7;
  --accent-soft: #eaf0ff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --positive: #08703f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(6, 87, 249, 0.35);
  outline-offset: 2px;
}
a {
  color: var(--accent-ink);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  background: none;
  padding: 0;
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand.active {
  background: none;
}
.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #6f9cff 0, transparent 55%),
    linear-gradient(135deg, #0657f9, #0a2fa8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.topnav .nav,
.more summary {
  background: none;
  border: 0;
  margin: 0;
  width: auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #3f4652;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.topnav .nav:hover,
.more summary:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.topnav .nav.active {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 600;
}
.topnav .nav em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 7px;
}
.more {
  position: relative;
}
.more summary {
  list-style: none;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 4px;
}
.more-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.14);
}
.more-group {
  display: flex;
  flex-direction: column;
}
.more-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
}
.more-menu .nav {
  justify-content: flex-start;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  text-align: left;
}
.header-actions {
  gap: 12px;
  margin-left: auto;
}
.wallet-button {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}
.wallet-button:hover {
  background: #23262d;
}
.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ---------- Page column ---------- */
.app {
  margin: 0;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
.page-heading {
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb span {
  margin: 0 6px;
  color: #a0a6b1;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
h1 {
  font-family: Manrope, sans-serif;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  font-weight: 800;
  margin: 0;
}
.page-heading p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 680px;
}
.demo-note,
.demo-pill,
.eyebrow {
  display: none;
}
.optimizer .eyebrow {
  display: block;
}

/* ---------- Overview landing ---------- */
body[data-page="Overview"] .page-heading {
  display: none;
}
.landing {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: 28px;
  padding: 72px 24px 76px;
  margin-bottom: 28px;
  background:
    radial-gradient(
      60% 80% at 15% 110%,
      rgba(6, 87, 249, 0.55),
      transparent 60%
    ),
    radial-gradient(
      50% 70% at 90% -10%,
      rgba(6, 87, 249, 0.5),
      transparent 60%
    ),
    radial-gradient(
      40% 60% at 50% 120%,
      rgba(56, 122, 255, 0.35),
      transparent 70%
    ),
    #05060a;
}
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #d6dbe6;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.landing-title {
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 26px 0 14px;
  color: #fff;
}
.landing-sub {
  font-size: 18px;
  color: #aab3c5;
  max-width: 560px;
  margin: 0 auto;
}
.landing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.pill-button {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.pill-button:hover {
  background: #0546d1;
}
.pill-button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.pill-button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Cards, headings, text ---------- */
.card,
.opportunities,
.wallet-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  padding: 24px;
}
h2 {
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.2px;
}
.card-heading p,
.subtext {
  font-size: 14px;
  color: var(--muted);
}
.tiny {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
p {
  line-height: 1.55;
}
.section-heading {
  margin: 8px 0 14px;
}
.section-heading h2 {
  font-size: 22px;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
}
.notice {
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.primary {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.primary:hover:not(:disabled) {
  background: #0546d1;
}
.primary:disabled {
  background: #c9cfdb;
  color: #fff;
  cursor: not-allowed;
}
.outline-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.outline-button:hover {
  background: var(--surface-2);
}
.text-button {
  font-size: 14px;
  color: var(--accent-ink);
}

/* ---------- Discover / vault table ---------- */
.opportunities {
  overflow: hidden;
  padding: 0;
}
.feed-status {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
.feed-status strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.feed-status small {
  display: none;
}
.feed-status button {
  font-size: 13px;
  padding: 6px 14px;
}
.feed-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e8f7ee;
  color: var(--positive);
  border: 0;
}
.filters,
.live-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.filters select,
.live-filters select,
.filters input,
.live-filters .search {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
}
.live-filters .search {
  flex: 1;
  min-width: 180px;
  width: auto;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 6px;
}
.check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
th {
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
th.num,
td.num {
  text-align: right;
}
.vault-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.vault-row:hover {
  background: #f8f9fb;
}
.protocol {
  gap: 14px;
}
.protocol-icon {
  width: 42px;
  height: 42px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.vault-name,
.protocol strong {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.chip {
  font-size: 12px;
  line-height: 1;
  color: #4b5563;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  white-space: nowrap;
}
.apy {
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.apy-muted {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}
.tvl {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 700;
}
td.num .tiny {
  margin-top: 4px;
}
.deposit {
  display: inline-block;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.deposit:hover {
  background: #0546d1;
}
.deposit.ghost {
  background: var(--surface-2);
  color: #374151;
}
.grade {
  font-family: Manrope, sans-serif;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}
.table-footer,
.live-table-footer {
  font-size: 14px;
  color: var(--muted);
  padding: 14px 20px;
}
.live-table-footer a {
  font-size: 14px;
}
.feed-disclosure {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}

/* ---------- Pool page ---------- */
.stat,
.ladder-step {
  border-radius: var(--radius);
}
.ladder-step span {
  font-size: 13px;
}
.ladder-step strong {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  letter-spacing: -0.6px;
}
.ladder-step small {
  font-size: 12.5px;
}
.ladder-step.key {
  background: var(--ink);
  border-color: var(--ink);
}
.action-row {
  gap: 10px;
}
.result-row {
  font-size: 14px;
}

/* ---------- Dialogs, toast, footer ---------- */
dialog {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.25);
}
dialog::backdrop {
  background: rgba(10, 12, 18, 0.45);
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
}
dialog p {
  font-size: 14.5px;
}
#toast {
  background: var(--ink);
  border-radius: 999px;
  font-size: 14px;
}
footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.footer-brand .brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}
footer .text-button {
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar-inner {
    gap: 12px;
  }
  .topnav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topnav .nav,
  .more summary {
    font-size: 14px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .more {
    position: static;
  }
  .more-menu {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr 1fr;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}
@media (max-width: 640px) {
  .topbar {
    position: sticky;
    inset: 0 0 auto;
    height: auto;
    border-top: 0;
  }
  .topbar-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px 6px;
    row-gap: 6px;
  }
  .brand {
    display: flex;
    font-size: 22px;
  }
  .header-actions {
    margin-left: auto;
  }
  .wallet-button {
    padding: 8px 14px;
    font-size: 13px;
  }
  .topnav {
    order: 3;
    flex-basis: 100%;
    margin: 0 -6px;
  }
  .more-menu {
    top: 110px;
    grid-template-columns: 1fr;
  }
  main {
    padding: 20px 16px 32px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .landing {
    padding: 48px 18px 52px;
    border-radius: 20px;
  }
  .landing-sub {
    font-size: 16px;
  }
  th,
  td {
    padding: 14px 12px;
  }
  .protocol-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* ---------- Theme v2 fixes ---------- */
.topbar-inner {
  width: 100%;
}
.hero {
  background: var(--surface);
  color: var(--ink);
  grid-template-columns: 1fr;
  padding: 28px;
}
.hero h2 {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.6px;
}
.hero p {
  color: var(--muted);
}
.hero .tiny,
.hero .text-button {
  color: var(--muted);
}
.hero .text-button {
  color: var(--accent-ink);
  font-size: inherit;
}
.hero .inline-form {
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.hero .inline-form input,
.inline-form input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  background: var(--surface-2);
}
.hero .inline-form input:focus,
.inline-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(6, 87, 249, 0.12);
}
.hero button.primary,
.hero a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}
.hero-copy {
  max-width: 640px;
}
/* One heading per page: Discover's table needs no second title, the pool card is the title. */
body[data-page="Discover"] .section-heading,
body[data-page="Pool"] .page-heading {
  display: none;
}
body[data-page="Discover"] .opportunities {
  margin-top: 4px;
}
.live-filters select {
  max-width: none;
  width: auto;
}
.live-filters .search {
  order: -1;
  flex: 1 1 100%;
}
.pool-crumb {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 14px;
  display: flex;
  gap: 8px;
}
.pool-crumb a {
  color: var(--muted);
  text-decoration: none;
}
.pool-crumb a:hover {
  color: var(--ink);
}
.pool-hero {
  padding: 28px;
}
.pool-title {
  align-items: center;
  gap: 16px;
}
.pool-title .protocol-icon {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.pool-name {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}
.pool-title .subtext {
  margin-top: 8px;
}
.pool-title .grade {
  font-size: 20px;
  padding: 10px 16px;
}
.chip-accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}
.notice {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #374151;
}
@media (max-width: 640px) {
  .hero .inline-form,
  .inline-form {
    grid-template-columns: 1fr;
  }
  .live-filters select {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}
.more:not([open]) .more-menu {
  display: none;
}
.table-wrap {
  position: relative;
}
@media (max-width: 640px) {
  /* Phones: pool, APY, TVL and the action; risk-adjusted APY and score are on the pool page. */
  #live-discovery th:nth-child(3),
  #live-discovery td:nth-child(3),
  #live-discovery th:nth-child(4),
  #live-discovery td:nth-child(4) {
    display: none;
  }
  #live-discovery table {
    white-space: normal;
  }
  #live-discovery .chips .chip:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 640px) {
  #live-discovery td.num .tiny {
    display: none;
  }
  #live-discovery th,
  #live-discovery td {
    padding: 14px 8px;
  }
  #live-discovery th:first-child,
  #live-discovery td:first-child {
    padding-left: 14px;
  }
  #live-discovery .protocol {
    gap: 10px;
  }
  #live-discovery .protocol-icon {
    display: none;
  }
  #live-discovery .deposit {
    padding: 7px 12px;
  }
  .apy,
  .tvl {
    font-size: 15px;
  }
}
@media (max-width: 640px) {
  #live-discovery .deposit {
    padding: 6px 10px;
    font-size: 13px;
  }
  #live-discovery td:last-child {
    padding-right: 12px;
  }
  #live-discovery .vault-name {
    font-size: 15px;
  }
}

/* ---------- Theme v2: forms and secondary pages ---------- */
.research-form input:not([type="checkbox"]):not([type="radio"]),
.research-form select,
.research-form textarea,
.field select,
.field input,
main input[type="text"],
main input[type="number"],
main input:not([type]),
main select,
main textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
}
main textarea {
  padding: 12px 14px;
  line-height: 1.5;
}
main input:focus,
main select:focus,
main textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 87, 249, 0.12);
}
main label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.recipe a,
.card h3 a,
.card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.recipe a:hover,
.card h3 a:hover,
.card h2 a:hover {
  color: var(--accent-ink);
}

/* ---------- Brand & SEO content ---------- */
.brand {
  text-decoration: none;
  letter-spacing: -0.8px;
}
.brand-accent {
  color: var(--accent);
}
.footer-links {
  max-width: 1200px;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-links + footer {
  margin-top: 20px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:first-of-type {
  margin-top: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}
.seo-links p {
  line-height: 2;
}
.seo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.seo-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.seo-stats dt {
  font-size: 13px;
  color: var(--muted);
}
.seo-stats dd {
  margin: 4px 0 0;
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.brand-mark {
  background: url(/favicon.svg) center / cover no-repeat;
  box-shadow: none;
}
.topnav .nav,
.more-menu .nav,
.footer-brand {
  text-decoration: none;
}
.wordmark {
  white-space: nowrap;
}

/* ---------- 404 ---------- */
body[data-page="NotFound"] .page-heading {
  display: none;
}
.not-found {
  text-align: center;
  padding: 56px 20px 40px;
  margin-bottom: 24px;
}
.nf-code {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -6px;
  background: linear-gradient(135deg, #2f74ff, #0a2fa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h2 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 12px 0 8px;
}
.nf-message {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.nf-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 28px auto 0;
}
.nf-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  background: var(--surface);
}
.nf-search .primary {
  height: 48px;
  padding: 0 24px;
}
.nf-actions {
  margin-top: 20px;
}
.pill-button.nf-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.pill-button.nf-ghost:hover {
  background: var(--surface-2);
}
.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 14px;
}
.nf-links a {
  color: var(--muted);
}
@media (max-width: 640px) {
  .nf-search {
    flex-direction: column;
  }
}
