/* Complete v6 boards 01, 25, 26 and 32, with controls bound to their live records. */
html[data-wz-mode="light"] {
  --life-camera:url("assets/lifestyle/v6/reference/template-camera-light.webp");
  --life-conversation:url("assets/lifestyle/v6/reference/template-conversation-light.webp");
  --life-template-search:url("assets/lifestyle/v6/reference/template-search-light.webp");
  --life-guide-books:url("assets/lifestyle/v6/reference/guide-books-light.webp");
  --life-guide-calendar:url("assets/lifestyle/v6/reference/guide-calendar-light.webp");
  --life-guide-seedling:url("assets/lifestyle/v6/reference/guide-seedling-light.webp");
  --life-guide-cup:url("assets/lifestyle/v6/reference/guide-cup-light.webp");
  --life-guide-reading:url("assets/lifestyle/v6/reference/guide-reading-light.webp");
  --life-setting-calendar:url("assets/lifestyle/v6/reference/setting-calendar-light.webp");
  --life-setting-layers:url("assets/lifestyle/v6/reference/setting-layers-light.webp");
  --life-setting-goal:url("assets/lifestyle/v6/reference/setting-goal-light.webp");
  --life-setting-reminder:url("assets/lifestyle/v6/reference/setting-reminder-light.webp");
  --life-setting-export:url("assets/lifestyle/v6/reference/setting-export-light.webp");
  --life-setting-erase:url("assets/lifestyle/v6/reference/setting-erase-light.webp");
  --life-setting-profile:url("assets/lifestyle/v6/reference/setting-profile-light.webp");
}
html[data-wz-mode="dark"] {
  --life-camera:url("assets/lifestyle/v6/reference/template-camera-dark.webp");
  --life-conversation:url("assets/lifestyle/v6/reference/template-conversation-dark.webp");
  --life-template-search:url("assets/lifestyle/v6/reference/template-search-dark.webp");
  --life-guide-books:url("assets/lifestyle/v6/reference/guide-books-dark.webp");
  --life-guide-calendar:url("assets/lifestyle/v6/reference/guide-calendar-dark.webp");
  --life-guide-seedling:url("assets/lifestyle/v6/reference/guide-seedling-dark.webp");
  --life-guide-cup:url("assets/lifestyle/v6/reference/guide-cup-dark.webp");
  --life-guide-reading:url("assets/lifestyle/v6/reference/guide-reading-dark.webp");
  --life-setting-calendar:url("assets/lifestyle/v6/reference/setting-calendar-dark.webp");
  --life-setting-layers:url("assets/lifestyle/v6/reference/setting-layers-dark.webp");
  --life-setting-goal:url("assets/lifestyle/v6/reference/setting-goal-dark.webp");
  --life-setting-reminder:url("assets/lifestyle/v6/reference/setting-reminder-dark.webp");
  --life-setting-export:url("assets/lifestyle/v6/reference/setting-export-dark.webp");
  --life-setting-erase:url("assets/lifestyle/v6/reference/setting-erase-dark.webp");
  --life-setting-profile:url("assets/lifestyle/v6/reference/setting-profile-dark.webp");
}

/* Overview */
html.life-pdf-layout[data-wz-screen="lifestyle-home"] #lifestyle-workspace .life-area-grid {
  display:flex;
  align-items:flex-start;
  gap:5px;
  padding:3px 2px 5px;
  overflow-x:auto;
  scrollbar-width:thin;
  scroll-padding-inline:4px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-home"] #lifestyle-workspace .life-area-grid > a {
  flex:0 0 auto;
  width:max-content;
  padding-inline:6px;
  min-height:53px;
  min-inline-size:58px;
  max-inline-size:min(11rem,75%);
}
#lifestyle-workspace .life-area-name {
  white-space:normal;
  overflow:visible;
  overflow-wrap:anywhere;
  text-overflow:clip;
}
.life-journey-card .life-overview-split {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.life-journey-card .life-journey-landscape {
  align-self:center;
}
#lifestyle-workspace .life-journey-card .life-overview-split progress {
  display:block;
  width:100%;
  height:9px;
  margin-block:5px;
}
#lifestyle-workspace .life-journey-card .life-overview-split p {
  margin-block:3px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-home"] #lifestyle-workspace .life-overview-disclosure > summary {
  padding-block:4px;
}
.life-overview-disclosure summary > span:nth-child(2) {
  min-width:0;
}
.life-overview-disclosure summary strong,
.life-overview-disclosure summary small {
  display:block;
  overflow-wrap:anywhere;
}
.life-overview-disclosure summary small {
  color:var(--life-muted);
  font-size:.75rem;
}
.life-gym-connected {
  flex:none;
  padding:2px 5px;
  color:var(--life-accent);
  background:var(--life-raised);
  border:1px solid var(--life-line);
  border-radius:999px;
  font-size:.72rem;
}
.life-weekly-tiles {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr));
  gap:4px;
  align-items:stretch;
}
html.life-pdf-layout[data-wz-screen="lifestyle-home"] #lifestyle-workspace .life-weekly-tiles > a {
  display:grid;
  grid-template-columns:1.12rem minmax(0,1fr);
  align-items:center;
  gap:4px;
  padding:5px;
  margin:0;
  min-width:0;
  text-align:start;
  color:var(--life-text);
}
.life-weekly-tiles .life-symbol {
  display:inline-flex;
  flex:none;
  color:var(--life-accent);
}
.life-weekly-tiles svg {
  width:1.1rem;
  height:1.1rem;
}
.life-weekly-tiles a span {
  min-width:0;
}
.life-weekly-tiles strong,
.life-weekly-tiles small {
  display:block;
  overflow-wrap:anywhere;
}
.life-weekly-tiles strong {
  font-size:.82rem;
}
.life-weekly-tiles small {
  color:var(--life-muted);
  font-size:.75rem;
}
.life-weekly-sources {
  padding-block:5px;
  border-top:1px solid var(--life-line);
}

/* Goal Templates */
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace > :is(.life-wide-action,.life-inline-back) {
  border-radius:999px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace > .life-inline-back {
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  padding-inline:1px;
}
.life-template-tools {
  margin:3px 0 9px;
}
html.life-pdf-layout #lifestyle-workspace .life-template-school-tools {
  padding:10px;
  border:1px solid var(--life-line);
  border-radius:var(--life-panel-radius,12px);
  background:var(--life-raised);
  box-shadow:var(--life-shadow);
}
#lifestyle-workspace .life-template-school-tools > h2 {
  margin:0 0 7px;
}
#lifestyle-workspace .life-template-school-tools .life-template-filters {
  border:0;
}
#lifestyle-workspace .life-template-school-tools .life-academic-section {
  margin-block:6px 0;
}
html.life-pdf-layout #lifestyle-workspace .life-template-tools .life-catalog-search > label {
  position:relative;
  margin:0;
}
html.life-pdf-layout #lifestyle-workspace .life-template-tools .life-catalog-search input {
  width:100%;
  min-height:44px;
  padding-inline-start:2.15rem !important;
  border-radius:999px;
}
.life-template-tools .life-catalog-search label .life-action-icon {
  position:absolute;
  inset-inline-start:.7rem;
  inset-block-start:50%;
  transform:translateY(-50%);
  pointer-events:none;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-search > button {
  margin:0;
  min-width:64px;
  border-radius:999px;
}
.life-template-filters > summary,
.life-template-preview > summary {
  cursor:pointer;
  min-height:44px;
  align-content:center;
  color:var(--life-accent);
}
.life-template-filters > summary {
  font-size:.875rem;
}
.life-template-filters[open] {
  border-top:1px solid var(--life-line);
  padding-block-end:4px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-card {
  grid-template-columns:clamp(56px,20%,91px) minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:9px;
  align-items:center;
  padding:10px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-card > .life-catalog-art {
  grid-row:1;
  align-self:center;
  margin:0;
  border-radius:8px !important;
}
.life-template-intro {
  grid-column:2;
  min-width:0;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-template-intro p {
  margin:0;
}
.life-catalog-art[data-life-template-art] {
  background:var(--life-template-motif) center/contain no-repeat;
  aspect-ratio:1.22;
}
[data-life-template-art="camera"] { --life-template-motif:var(--life-camera); }
[data-life-template-art="conversation"] { --life-template-motif:var(--life-conversation); }
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-body {
  grid-column:1/-1;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-template-tip {
  background:var(--life-raised);
  border:1px solid var(--life-line);
  border-radius:999px;
  padding:6px 11px;
  margin:8px 0 1px;
  text-align:center;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-school {
  grid-template-columns:clamp(62px,23%,104px) minmax(0,1fr);
  align-items:start;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-school > .life-catalog-art {
  align-self:start;
  grid-row:1 / span 2;
}
.life-catalog-school .life-catalog-art img {
  height:auto;
  aspect-ratio:3 / 2;
  object-fit:contain;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-catalog-school .life-catalog-body {
  grid-column:2;
}
.life-catalog-school .life-academic-tag {
  font-weight:650;
}
.life-catalog-school .life-template-intro .life-academic-tag + p {
  padding-block-start:4px;
}
.life-catalog-school .life-catalog-body > button {
  width:100%;
}
.life-template-preview {
  padding:0;
}
.life-template-preview > summary {
  list-style:none;
}
.life-template-preview > summary::-webkit-details-marker {
  display:none;
}
.life-template-preview > summary::after {
  content:'›';
  display:inline-block;
  margin-inline-start:6px;
}
.life-template-preview[open] > summary::after {
  transform:rotate(90deg);
}
.life-template-arrow {
  margin-inline-start:5px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace button.life-template-action {
  margin-block:0;
  color:var(--life-accent);
  font-weight:700;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace button.life-more-templates {
  margin:0;
  border-radius:999px;
}
html.life-pdf-layout[data-wz-screen="lifestyle-goal-templates"] #lifestyle-workspace .life-template-empty {
  text-align:center;
  min-height:175px;
}
.life-template-empty::before {
  content:"";
  display:block;
  width:61px;
  height:54px;
  margin:10px auto 7px;
  background:var(--life-template-search) center/contain no-repeat;
}
.life-template-empty h2 > .life-action-icon {
  display:none;
}

/* Guides & Recovery */
html.life-pdf-layout #lifestyle-workspace .life-banner[data-life-art="recovery"] {
  height:auto;
  min-height:94px;
  padding:10px 11px;
}
html.life-pdf-layout #lifestyle-workspace .life-banner[data-life-art="recovery"] > p {
  max-width:66%;
}
.life-guide-list {
  display:grid;
  gap:5px;
  margin-block:0 10px;
}
.life-guide-panel,
.life-guide-body,
.life-guide-inset,
.life-guide-inset summary {
  min-width:0;
  overflow-wrap:anywhere;
}
html.life-pdf-layout[data-wz-screen="lifestyle-recovery"] #lifestyle-workspace .life-guide-list > button {
  display:grid;
  width:100%;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-height:52px;
  padding:4px 9px;
  margin:0;
  color:var(--life-text);
  text-align:start;
}
html.life-pdf-layout[data-wz-screen="lifestyle-recovery"] #lifestyle-workspace .life-guide-list > button[aria-pressed="true"] {
  background:var(--life-card) !important;
  color:var(--life-text) !important;
  outline:1px solid var(--life-accent);
  outline-offset:-2px;
  box-shadow:var(--life-interactive-shadow);
}
.life-guide-list strong,
.life-guide-list small {
  display:block;
  overflow-wrap:anywhere;
}
.life-guide-list small {
  color:var(--life-muted);
  font-size:.75rem;
}
.life-guide-symbol {
  display:grid;
  place-items:center;
  width:44px;
  height:38px;
  color:var(--life-accent);
  background:var(--life-guide-image) center/contain no-repeat;
}
.life-guide-symbol svg {
  width:22px;
  height:22px;
}
[data-life-guide-art="books"] { --life-guide-image:var(--life-guide-books); }
[data-life-guide-art="calendar"] { --life-guide-image:var(--life-guide-calendar); }
[data-life-guide-art="seedling"] { --life-guide-image:var(--life-guide-seedling); }
[data-life-guide-art="cup"] { --life-guide-image:var(--life-guide-cup); }
[data-life-guide-art="reading"] { --life-guide-image:var(--life-guide-reading); }
.life-guide-hero {
  width:100%;
  min-height:70px;
  aspect-ratio:4.5;
  margin-block-end:8px;
  border-radius:10px;
  overflow:hidden;
  background:var(--life-guide-image) center/cover no-repeat;
}
.life-guide-hero > :is(.life-motif,.life-catalog-art) {
  display:block;
  width:100%;
  height:100%;
  margin:0;
  border-radius:0 !important;
}
.life-guide-hero .life-motif {
  background-size:cover;
}
.life-guide-hero:has(> .life-catalog-art) {
  aspect-ratio:auto;
}
.life-guide-hero > .life-catalog-art {
  height:auto;
  max-height:none !important;
}
.life-guide-inset {
  margin-block:5px;
  padding:5px 8px;
  border:1px solid var(--life-line);
  border-radius:9px;
  background:var(--life-raised);
}
.life-guide-inset h4 {
  margin:0;
  font-size:.875rem;
}
.life-guide-inset summary small {
  margin-inline-start:auto;
  color:var(--life-accent);
}
html.life-pdf-layout #lifestyle-workspace .life-guide-inset p {
  margin:3px 0;
}
html.life-pdf-layout #lifestyle-workspace .life-guide-reflection textarea {
  min-height:58px;
}
.life-guide-panel h3 {
  scroll-margin-block-start:12px;
}

/* Lifestyle Settings */
html.life-pdf-layout[data-wz-screen="lifestyle-settings"] #lifestyle-workspace .life-setting-row {
  display:grid;
  grid-template-columns:clamp(36px,14%,61px) minmax(0,1fr);
  gap:8px;
  align-items:start;
}
.life-setting-art {
  display:block;
  width:100%;
  aspect-ratio:1;
  background:var(--life-setting-image) center/contain no-repeat;
}
[data-life-setting-art="effects"] { --life-setting-image:var(--life-settings); }
[data-life-setting-art="calendar"] { --life-setting-image:var(--life-setting-calendar); }
[data-life-setting-art="layers"],
[data-life-setting-art="sources"] { --life-setting-image:var(--life-setting-layers); }
[data-life-setting-art="goal"] { --life-setting-image:var(--life-setting-goal); }
[data-life-setting-art="reminder"] { --life-setting-image:var(--life-setting-reminder); }
[data-life-setting-art="export"] { --life-setting-image:var(--life-setting-export); }
[data-life-setting-art="erase"] { --life-setting-image:var(--life-setting-erase); }
[data-life-setting-art="profile"] { --life-setting-image:var(--life-setting-profile); }
.life-setting-body {
  min-width:0;
}
html.life-pdf-layout #lifestyle-workspace .life-setting-body .life-setting-description {
  margin-block:0 4px;
  color:var(--life-muted);
  font-size:.8rem;
}
html.life-pdf-layout #lifestyle-workspace .life-setting-body > h2 {
  margin-block-end:2px;
}
html.life-pdf-layout #lifestyle-workspace .life-setting-body .life-choice-set {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,4.3rem),1fr));
  gap:4px;
}
html.life-pdf-layout #lifestyle-workspace .life-setting-body .life-choice-set button {
  margin:0;
  padding:3px 4px;
  font-size:.78rem;
}
.life-setting-body .life-choice-set .life-action-icon {
  display:flex;
  justify-content:center;
  margin:0;
}
.life-setting-body .life-preferences-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr));
  gap:4px;
}
html.life-pdf-layout #lifestyle-workspace .life-setting-body .life-preferences-grid label {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  min-height:44px;
  margin:0;
  padding:4px 6px;
  border:1px solid var(--life-line);
  border-radius:8px;
  background:var(--life-raised);
  overflow-wrap:anywhere;
}
.life-preferences-grid input {
  flex:none;
  order:-1;
}
html.life-pdf-layout #lifestyle-workspace .life-settings-form > :is(.life-setting-row,.life-settings-visibility) {
  border-radius:9px;
  box-shadow:none;
}
html.life-pdf-layout #lifestyle-workspace .life-settings-form > button[type="submit"] {
  width:100%;
  margin:0;
}
.life-reminder-permission {
  border-radius:8px;
  padding:6px;
  background:var(--life-raised);
  border:1px solid var(--life-line);
}
#profile-preferences {
  scroll-margin-block-start:12px;
}

/* The shared account retains the Lifestyle footer when opened from Lifestyle. */
body[data-lifestyle-profile] nav.lifestyle-nav {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;
  padding:5px 6px max(10px,env(safe-area-inset-bottom));
  border:1px solid var(--wz-edge);
  border-radius:15px 15px 0 0;
  background:var(--wz-panel);
}
body[data-lifestyle-profile] nav.lifestyle-nav > a {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3px;
  min-width:0;
  min-height:52px;
  padding:3px 1px;
  border-radius:10px;
  line-height:1.15;
  text-align:center;
  overflow-wrap:anywhere;
  text-decoration:none;
  color:var(--wz-muted);
}
body[data-lifestyle-profile] nav.lifestyle-nav > a[aria-current="page"] {
  font-weight:700;
  background:var(--wz-surface-raised);
  color:var(--wz-link);
}
body[data-lifestyle-profile] nav.lifestyle-nav svg {
  display:block;
  width:22px;
  height:22px;
}
