/* Preserve the existing SuperMoms theme while giving each experience its own page. */
html[data-experience=mother] .watch-column,
html[data-experience=watch] .phone-column,
html[data-experience=watch] #app-install-strip,
html[data-experience=mother] .watch-return {
  display: none !important;
}
html[data-experience=mother] .shell { max-width: 740px; }
html[data-experience=watch] .shell { max-width: 800px; }
.topbar { display: flex; min-height: 62px; gap: 12px; flex-shrink: 0; }
.topbar .top-actions { gap: 7px; }
html[data-experience=mother] .topbar { flex-wrap: wrap; }
html[data-experience=mother] .top-actions { flex-wrap: wrap; margin-left: auto; }
.sync-return { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 9px; border: 1px solid #d7d3e4; border-radius: 13px; color: var(--color-primary); font-size: 12px; font-weight: 800; text-decoration: none; background: #ffffff82; }
.sync-return .icon { width: 17px; height: 17px; }
.sync-return:hover,.sync-return:focus-visible { border-color: #b8c1e5; background: #fff; }
#app-install-strip:not([hidden]) { display: block !important; }
#app-install-button { min-height: 44px; padding: 9px 14px; border-radius: 15px; background: var(--color-primary); color: white; font-size: 14px; font-weight: 800; white-space: nowrap; }
.page-link { text-decoration: none; }
.watch-return { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-size: 14px; font-weight: 750; min-height: 44px; padding: 5px; }
.watch-return .icon { width: 18px; }
.device-heading-row { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.device-heading-row h1 { font-size: 28px; letter-spacing: -.6px; }
.device-heading-row p { margin: 3px 0 0; color: #776779; font-size: 14px; }
.device-heading-row .back { min-width: 44px; min-height: 44px; }
.device-card { background: #fff; border: 1px solid #efdde8; border-radius: 22px; padding: 20px; margin-bottom: 20px; box-shadow: 0 12px 30px -25px #76204b44; }
.device-card h2 { font-size: 19px; margin: 0 0 5px; line-height: 1.35; }
.device-card p { font-size: 15px; line-height: 1.65; }
.device-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.device-identity p { color: #736378; font-size: 14px; margin: 0; }
.device-identity h2 { overflow-wrap: anywhere; }
.device-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 17px; background: #ffe7f2; color: #b52468; }
.device-icon .icon { width: 27px; height: 27px; }
.device-status { padding: 15px; background: #f5f7ff; border-radius: 16px; color: #364776; margin-bottom: 16px; }
.device-status strong { display: block; font-size: 15px; }
.device-status p { font-size: 14px; margin: 6px 0 0; line-height: 1.6; }
.device-status[data-phase=error],.device-status[data-phase=limited] { background: #fff5df; color: #75521c; }
.device-status[data-phase=ready] { background: #eaf5ee; color: #225d43; }
.device-status[aria-busy=true] { animation: device-wait 1.6s ease-in-out infinite alternate; }
.device-readings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.device-reading { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid #efdde8; border-radius: 18px; padding: 17px; min-width: 0; }
.device-reading .icon { color: #c32c76; margin-bottom: 10px; }
.device-reading span { font-size: 14px; color: #625269; }
.device-reading strong { font-size: 25px; margin: 4px 0; color: #332c42; }
.device-reading small { font-size: 12px; color: #716276; }
.phone .device-note { font-size: 13px; color: #766578; line-height: 1.65; margin: 13px 0 0; }
.device-readings + .device-note { margin-bottom: 22px; }
.device-capabilities { margin: 12px 0 0; }
.device-capabilities > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1e8ef; font-size: 14px; }
.device-capabilities dt { flex: 1; color: #54445d; }
.device-capabilities dd { flex: 1; margin: 0; text-align: right; color: #71637c; }
.device-help { background: #fff4fa; border: 1px solid #efdeea; border-radius: 18px; padding: 16px; margin-bottom: 20px; }
.device-help summary { cursor: pointer; font-size: 15px; font-weight: 750; min-height: 28px; }
.device-help li,.device-help p { font-size: 14px; line-height: 1.7; margin-bottom: 9px; }
.device-help ol { padding-left: 22px; }
.device-help a { color: #ad245f; font-size: 14px; }
.device-card .btn { min-height: 46px; font-size: 14px; }
@keyframes device-wait { from { opacity: .7; } to { opacity: 1; } }
@media(max-width:899px) {
  .topbar { padding: max(9px,env(safe-area-inset-top)) 16px 9px; min-height: 64px; }
  html[data-experience=mother] .shell { max-width: 650px; }
  html[data-experience=watch] .shell { max-width: none; }
  .topbar .brand-name { font-size: 21px; }
  .topbar .header-icon { min-width: 40px; width: 40px; height: 44px; }
  .device-card { padding: 17px; }
}
@media(max-width:380px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 7px; }
  .topbar .brand { gap: 6px; }
  .topbar .brand-name { font-size: 19px; }
  #app-install-button { padding-left: 10px; padding-right: 10px; }
  .watch-return { font-size: 12px; }
  .sync-return { padding-left: 7px; padding-right: 7px; }
  .sync-return > span:last-child { display: none; }
  .device-reading { padding: 13px; }
  .device-capabilities > div { font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { .device-status[aria-busy=true] { animation: none; } }
