/* Bio2Twin Love Recovery — Meal/Today header parity, compact real-data states; route-only. */
/* Bio2Twin Love Response — Meal/Today matched header and truthful UI layout. */
/* 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-recovery-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-recovery-ui main.workspace > section.app-head > div:first-child {
  min-width:0;
  flex:1 1 auto;
}
body.b2t-love-recovery-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-recovery-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-recovery-ui main.workspace > section.app-head #b2tLoveRecoveryDate {
  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-recovery-ui main.workspace > section.app-head #b2tLoveRecoveryDate[hidden] {
  display:none !important;
}
body.b2t-love-recovery-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-recovery-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-recovery-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-recovery-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-recovery-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-recovery-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-recovery-ui main.workspace > nav#subnav.subnav::-webkit-scrollbar {
  display:none;
}
body.b2t-love-recovery-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-recovery-ui main.workspace > nav#subnav.subnav > button.active,
body.b2t-love-recovery-ui main.workspace > nav#subnav.subnav > button[aria-current="page"] {
  background:#25334b !important;
  border-color:#728db7 !important;
  color:#fff !important;
}
body.b2t-love-recovery-ui main.workspace > nav#subnav.subnav > button:hover {
  color:#fff !important;
}
body.b2t-love-recovery-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-recovery-ui main.workspace > section.app-head {
    display:block !important;
    gap:12px !important;
    margin:0 auto 14px !important;
  }
  body.b2t-love-recovery-ui main.workspace > section.app-head > div:first-child {
    min-width:0;
    width:100%;
  }
  body.b2t-love-recovery-ui main.workspace > section.app-head #appEyebrow {
    font-size:11px !important;
    letter-spacing:.12em;
    margin:0 0 10px !important;
  }
  body.b2t-love-recovery-ui main.workspace > section.app-head #appTitle {
    font-size:24px !important;
    line-height:1.35 !important;
  }
  body.b2t-love-recovery-ui main.workspace > section.app-head #b2tLoveRecoveryDate {
    font-size:12px !important;
    margin:6px 0 8px !important;
  }
  body.b2t-love-recovery-ui main.workspace > section.app-head #appSubtitle {
    font-size:14px !important;
    line-height:1.6 !important;
    margin:12px 0 0 !important;
  }
  body.b2t-love-recovery-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-recovery-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-recovery-ui main.workspace > section.app-head #headMetrics .metric-chip small {
    font-size:10px !important;
    margin:0 0 5px;
  }
  body.b2t-love-recovery-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-recovery-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-recovery-ui main.workspace > nav#subnav.subnav > button {
    min-height:38px !important;
    padding:8px 11px !important;
    font-size:13px !important;
    border-radius:9px !important;
  }
}

/* Match Meal / Today header's tablet-width height without changing small or wide layouts. */
@media (min-width:761px) and (max-width:1100px) {
  body.b2t-love-recovery-ui main.workspace > section.app-head {
    min-height:128px !important;
  }
}

/* Love response: record-state UI, not physiological measurement claims. */
body.b2t-love-recovery-ui #integrationStrip {display:none !important}
body.b2t-love-recovery-ui main.workspace #content {
  min-width:0;
  gap:13px;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card {
  box-sizing:border-box;
  min-height:0 !important;
  padding:23px 25px !important;
  border-radius:20px;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card > .hero-copy {
  max-width:100% !important;
  width:100%;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-copy small {
  font-size:11px;
  font-weight:400;
  letter-spacing:.10em;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-copy h2 {
  font-size:22px !important;
  font-weight:400 !important;
  line-height:1.45;
  letter-spacing:0;
  margin:9px 0 8px;
  max-width:100%;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-copy p {
  font-size:14px !important;
  font-weight:400;
  line-height:1.75;
  max-width:890px;
  margin:0;
}
body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-status {
  display:none !important;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  align-items:stretch;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card {
  box-sizing:border-box;
  min-width:0;
  min-height:118px;
  padding:15px 17px;
  border-radius:17px;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > small {
  display:block;
  font-size:11px !important;
  font-weight:400 !important;
  letter-spacing:.06em;
  line-height:1.5;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > b.value {
  display:block;
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.5;
  letter-spacing:0;
  margin:7px 0 2px !important;
  overflow-wrap:anywhere;
  white-space:normal;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > h3 {
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.5;
  margin:3px 0;
}
body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > p {
  font-size:12px !important;
  line-height:1.65;
  font-weight:400;
  margin:4px 0 0;
  overflow-wrap:anywhere;
}
body.b2t-love-recovery-ui main.workspace #content > .love-panel {
  box-sizing:border-box;
  width:100%;
  max-width:1180px;
  min-width:0;
  margin:0 auto 15px !important;
  padding:18px 22px;
  border-radius:18px;
}
body.b2t-love-recovery-ui main.workspace #content > .love-panel h3 {
  font-size:18px !important;
  font-weight:400 !important;
  line-height:1.5;
  margin:0 0 7px;
}
body.b2t-love-recovery-ui main.workspace #content > .love-panel p {
  font-size:13px;
  line-height:1.8;
  margin:0 0 12px;
  max-width:840px;
}
body.b2t-love-recovery-ui main.workspace #content > .love-panel .btn {
  min-height:42px;
  font-size:13px !important;
  font-weight:400 !important;
  padding:10px 15px;
  border-radius:11px;
}
body.b2t-love-recovery-ui main.workspace #content > .love-panel .btn:focus-visible {
  outline:2px solid currentColor;outline-offset:3px;
}
@media(max-width:760px) {
  body.b2t-love-recovery-ui main.workspace #content {
    gap:10px;
  }
  body.b2t-love-recovery-ui main.workspace #content > .hero-card {
    padding:19px 17px !important;
    border-radius:18px !important;
  }
  body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-copy h2 {
    font-size:20px !important;line-height:1.45;
  }
  body.b2t-love-recovery-ui main.workspace #content > .hero-card .hero-copy p {
    font-size:14px !important;line-height:1.7;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card {
    padding:13px 14px;
    min-height:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    border-radius:15px;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > small {font-size:10px !important}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > b.value {
    font-size:15px !important;
    line-height:1.4;
    margin:6px 0 2px !important;
    align-self:flex-start;
    width:100%;
    text-align:left !important;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > h3 {font-size:13px !important}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > p {font-size:11px !important}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card:nth-child(3) {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    align-items:center;
    column-gap:12px;
    row-gap:2px;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card:nth-child(3) > small {grid-area:1/1}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card:nth-child(3) > h3 {grid-area:2/1}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card:nth-child(3) > b.value {
    grid-area:1/2/3/3;
    white-space:nowrap;
    margin:0 !important;
    text-align:right !important;
  }
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card:nth-child(3) > p {
    grid-area:3/1/-1/-1;
    margin:0 !important;
  }
  body.b2t-love-recovery-ui main.workspace #content > .love-panel {
    padding:17px 16px;
    border-radius:17px;
    margin:0 auto 12px !important;
  }
  body.b2t-love-recovery-ui main.workspace #content > .love-panel h3 {font-size:17px !important}
  body.b2t-love-recovery-ui main.workspace #content > .love-panel p {font-size:13px}
  body.b2t-love-recovery-ui main.workspace {
    min-height:0 !important;
    padding-bottom:14px !important;
  }
  body.b2t-love-recovery-ui #watchDock.watch-dock {
    margin:13px 14px 24px !important;
    padding:16px !important;
  }
  body.b2t-love-recovery-ui #watchDock .watch-face {
    width:min(210px,100%) !important;
    height:276px !important;
    margin:18px auto 17px !important;
    border-radius:46px !important;
  }
}
@media(max-width:350px) {
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 {gap:8px}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card {padding:12px}
  body.b2t-love-recovery-ui main.workspace #content > .grid-3 > .card > b.value {font-size:14px !important}
}
