/* Bio2Twin Love Overview header V3 — align with live Meal / Today header.
   Scoped to #love/overview through existing b2t-love-overview-ui class.
   Meal and other routes unchanged. No fabricated watch or health metrics. */

/* Exact Meal / Today desktop header rhythm. */
body.b2t-love-overview-ui main.workspace > section.app-head {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  max-width:1180px;
  margin:0 auto 18px !important;
}
body.b2t-love-overview-ui main.workspace > section.app-head > div:first-child {
  min-width:0;
  flex:1 1 auto;
}
body.b2t-love-overview-ui main.workspace > section.app-head #appEyebrow {
  font-size:11px !important;
  font-weight:400 !important;
  letter-spacing:.12em;
  margin:0 0 6px !important;
  line-height:normal;
}
body.b2t-love-overview-ui main.workspace > section.app-head #appTitle {
  font-size:28px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  letter-spacing:0;
  margin:0 !important;
}
body.b2t-love-overview-ui main.workspace > section.app-head #b2tLoveTodayDate {
  display:block;
  margin:7px 0 9px !important;
  color:#acb5c3;
  font:400 13px/1.55 -apple-system,BlinkMacSystemFont,"Noto Sans TC",system-ui,sans-serif;
  letter-spacing:.025em;
}
body.b2t-love-overview-ui main.workspace > section.app-head #b2tLoveTodayDate[hidden] {
  display:none !important;
}
body.b2t-love-overview-ui main.workspace > section.app-head #appSubtitle {
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.65 !important;
  margin:7px 0 0 !important;
  max-width:680px;
}
body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics {
  display:flex !important;
  flex:0 0 auto;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap;
  gap:8px !important;
  margin:0 !important;
  min-width:0;
  width:auto;
}
body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip {
  box-sizing:border-box !important;
  flex:0 0 auto;
  min-width:90px !important;
  min-height:55px;
  padding:9px 12px !important;
  border-radius:13px !important;
  border:1px solid #333c4b;
  background:#10151e;
}
body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip small {
  display:block;
  font-size:10px !important;
  font-weight:400 !important;
  line-height:1.2;
  margin:0 0 3px;
  letter-spacing:.05em;
  white-space:nowrap;
}
body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip b {
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.4;
  white-space:nowrap;
}

/* Exact Meal / Today tab bar sizing, inactive/active states, spacing. */
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  box-sizing:border-box;
  width:100%;
  max-width:1180px;
  min-height:56px !important;
  margin:0 auto 18px !important;
  padding:6px !important;
  gap:7px !important;
  border:1px solid #3c485c !important;
  border-radius:17px !important;
  background:#10151e !important;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  scrollbar-width:none;
}
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav::-webkit-scrollbar {
  display:none;
}
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button {
  flex:0 0 auto;
  box-sizing:border-box;
  min-height:42px !important;
  padding:9px 15px !important;
  margin:0 !important;
  font-size:15px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#b3bece;
}
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button.active,
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button[aria-current="page"] {
  background:#25334b !important;
  border-color:#728db7 !important;
  color:#fff !important;
}
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button:hover {
  color:#fff !important;
}
body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button:focus-visible {
  outline:2px solid currentColor;
  outline-offset:2px;
}

/* Keep the Love content palette, cards and small type as already approved. */
@media(max-width:760px) {
  body.b2t-love-overview-ui main.workspace > section.app-head {
    display:block !important;
    gap:12px !important;
    margin:0 auto 14px !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head > div:first-child {
    min-width:0;
    width:100%;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #appEyebrow {
    font-size:11px !important;
    letter-spacing:.12em;
    margin:0 0 10px !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #appTitle {
    font-size:24px !important;
    line-height:1.35 !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #b2tLoveTodayDate {
    font-size:12px !important;
    margin:6px 0 8px !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #appSubtitle {
    font-size:14px !important;
    line-height:1.6 !important;
    margin:12px 0 0 !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:6px !important;
    width:100%;
    margin:15px 0 0 !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip {
    min-width:0 !important;
    width:100%;
    min-height:57px;
    padding:9px 10px !important;
    border-radius:13px !important;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip small {
    font-size:10px !important;
    margin:0 0 5px;
  }
  body.b2t-love-overview-ui main.workspace > section.app-head #headMetrics .metric-chip b {
    display:block;
    font-size:13px !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.b2t-love-overview-ui main.workspace > nav#subnav.subnav {
    min-height:50px !important;
    margin-bottom:14px !important;
    padding:5px !important;
    gap:5px !important;
    border-radius:14px !important;
    -webkit-overflow-scrolling:touch;
  }
  body.b2t-love-overview-ui main.workspace > nav#subnav.subnav > button {
    min-height:38px !important;
    padding:8px 11px !important;
    font-size:13px !important;
    border-radius:9px !important;
  }
}
