/* Host integration only. Page/card geometry lives in approved-prototype.css. */
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/miniapp/assets/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/miniapp/assets/onest-latin.woff2') format('woff2');
}
html[data-theme] {
  --mn2-base: #201412;
  --mn2-surface: #34201c;
  --mn2-ink: #f9e6c7;
  --mn2-muted: #d8b79a;
  --mn2-on-action: #321b13;
  --mn2-action: hsl(var(--approved-hue, 168) 65% 68%);
  --mn2-soft: color-mix(in srgb, hsl(var(--approved-hue, 168) 55% 45%) 24%, var(--mn2-surface));
  --mn2-line: color-mix(in srgb, var(--mn2-ink) 12%, transparent);
  --mn-shape: 28px;
  --mn2-radius: 26px;
  --font-ui: Onest, 'Segoe UI', sans-serif;
  --font-heading: Onest, 'Segoe UI', sans-serif;
  --bg: var(--mn2-base);
  --surface: var(--mn2-surface);
  --ink: var(--mn2-ink);
  --muted: var(--mn2-muted);
}
html[data-theme='light'] {
  --mn2-base: #f5eee0;
  --mn2-surface: #fff8eb;
  --mn2-ink: #381d17;
  --mn2-muted: #755342;
  --mn2-action: hsl(var(--approved-hue, 168) 60% 30%);
  --mn2-on-action: #fff3d8;
}
html[data-theme='dark'][data-palette='graphite'] {
  --mn2-base: #17191d;
  --mn2-surface: #24272d;
  --mn2-ink: #f1f3f7;
  --mn2-muted: #b8bfcb;
}
html[data-theme='light'][data-palette='graphite'] {
  --mn2-base: #edf0f4;
  --mn2-surface: #ffffff;
  --mn2-ink: #222834;
  --mn2-muted: #536071;
}
html[data-theme='dark'][data-palette='forest'] {
  --mn2-base: #141d19;
  --mn2-surface: #20312a;
  --mn2-ink: #eaf4eb;
  --mn2-muted: #b1c7b9;
}
html[data-theme='light'][data-palette='forest'] {
  --mn2-base: #edf3ed;
  --mn2-surface: #f8fcf7;
  --mn2-ink: #213c2c;
  --mn2-muted: #4e6c57;
}
html[data-theme] #app [data-palette-option='warm'] .mn2-profile-accent-swatch {
  background: #745043;
}
html[data-theme] #app [data-palette-option='graphite'] .mn2-profile-accent-swatch {
  background: #66717f;
}
html[data-theme] #app [data-palette-option='forest'] .mn2-profile-accent-swatch {
  background: #47745b;
}
html[data-theme] #app [data-profile-back] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mn2-surface) 55%, var(--mn2-base)) !important;
  color: var(--mn2-ink);
}
html[data-accent='blue'] {
  --approved-hue: 212;
}
html[data-accent='violet'] {
  --approved-hue: 276;
}
html[data-accent='amber'] {
  --approved-hue: 39;
}
html,
body {
  margin: 0;
  min-width: 0;
  background: var(--mn2-base);
  color: var(--mn2-ink);
  font-family: Onest, 'Segoe UI', sans-serif;
  overflow-x: clip;
}
#app.mn2-concept {
  display: block;
  max-width: 440px;
  min-height: 100dvh;
  margin: auto;
  overflow: visible;
  padding: 0;
  background: var(--mn2-base);
  isolation: isolate;
}
#app .mn2-window {
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 100dvh;
}
#app .mn2-layout {
  display: block;
}
#app .mn2-topbar {
  padding-top: calc(8px + env(safe-area-inset-top));
  border: 0;
}
#app .mn2-logo {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  min-height: 36px;
  color: var(--mn2-ink);
}
#app .mn2-round {
  display: flex;
  align-items: center;
  justify-content: center;
}
#app .mn2-round svg {
  width: 18px;
  height: 18px;
}
#app #profile-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 50% !important;
}
#app #profile-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
#app .mn2-notify {
  position: relative;
  min-width: 32px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#app #screen.mn2-body {
  display: block;
  width: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
  gap: 0;
  overflow: visible;
}
#app .mn2-input-dock {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 26px), 414px);
  z-index: 50;
  padding: 0;
  background: transparent;
  border: 0;
}
#app .mn2-nav {
  margin: 0;
  background: var(--mn2-surface);
  border: 0;
  --mn2-capture-cutout: 56px;
}
#app.mn2-concept .mn2-nav.mn2-full-nav {
  --mn2-capture-cutout: 56px;
  --mn2-capture-lift: 0px;
  --mn2-capture-slot: 60px;
  align-items: center;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 2fr)) 56px repeat(2, minmax(0, 3fr));
  gap: 0;
}
#app.mn2-concept .mn2-nav.mn2-full-nav > button {
  min-height: 44px;
  height: 44px;
  padding: 8px 3px;
  border-radius: 14px;
}
#app.mn2-concept .mn2-nav.mn2-full-nav > .voice-fab {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  align-self: center;
  border-radius: 50%;
  transform: none;
}
#app.mn2-concept .mn2-nav.mn2-full-nav:before {
  display: none;
}
/* Goals live inside the profile. Admins retain one private habit destination;
   equal total column weight on both sides keeps capture centered. */
#app .mn2-input-dock.mn2-admin-dock {
  width: min(calc(100% - 10px), 414px);
}
#app.mn2-concept .mn2-nav.mn2-full-nav.mn2-admin-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 56px repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 8px 2px;
}
@media (max-width: 360px) {
  #app.mn2-concept .mn2-nav.mn2-full-nav {
    grid-template-columns: repeat(3, minmax(0, 2fr)) 48px repeat(2, minmax(0, 3fr));
  }
  #app.mn2-concept .mn2-nav.mn2-full-nav > .voice-fab {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }
  #app.mn2-concept .mn2-nav.mn2-full-nav.mn2-admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 48px repeat(3, minmax(0, 1fr));
  }
  #app.mn2-concept .mn2-nav.mn2-full-nav.mn2-admin-nav > .voice-fab {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }
}
#app .mn2-nav .voice-fab {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  right: auto;
  box-shadow: none !important;
  overflow: visible;
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
  border: 0;
  display: flex;
  border-radius: 50%;
  opacity: 1;
  pointer-events: auto;
}
#app .mn2-nav .voice-fab:before,
#app .mn2-nav .voice-fab:after {
  display: none;
}
#app .mn2-nav .voice-fab-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  transform: none;
}
#app .mn2-nav .voice-fab-icon .mn2-icon {
  width: 20px;
  height: 20px;
}
#app .mn2-nav .voice-fab-label {
  display: none;
}
#app .mn2-nav .voice-fab:focus-visible {
  outline: 2px solid var(--mn2-ink) !important;
  outline-offset: 4px;
}
#app .mn2-nav .voice-fab:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
#app .mn2-task-focus .mn2-focus-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
/* Center the balance summary only; operations keep their existing alignment. */
#app.mn2-concept .mn2-money-focus > .mn2-joined-upper {
  text-align: center;
}
#app.mn2-concept .mn2-money-focus > .mn2-joined-upper > :is(h2, .mn2-starting) {
  text-align: center;
  margin-inline: auto;
}
#app .mn2-date-control input[type='date'] {
  background: transparent !important;
  color: var(--mn2-ink) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color-scheme: dark;
  padding: 0 3px;
  min-height: 24px;
  font:
    400 12px/1.4 Onest,
    sans-serif !important;
  text-align: center;
}
html[data-theme='light'] #app .mn2-date-control input[type='date'] {
  color-scheme: light;
}
#app .mn2-date-control input[type='date']:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 3px;
  border-radius: 6px;
}
#app.mn2-concept .mn2-profile-page {
  display: grid;
  gap: 18px;
  margin: 0;
}
#app .mn2-profile-page > .mn2-native-page-head,
#app .mn2-profile-page > .mn2-caption {
  margin: 0;
}
#app .mn2-profile-page > .mn2-open-section {
  margin: 0;
  padding: 20px;
}
#app .mn2-profile-hero {
  background: var(--mn2-action);
  color: var(--mn2-on-action);
  border-radius: var(--mn2-radius);
  padding: 24px 20px;
}
#app .mn2-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
#app .mn2-profile-identity-copy {
  min-width: 0;
  flex: 1;
}
#app .mn2-profile-identity-copy h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
#app .mn2-profile-identity-copy p {
  font-size: 12px;
  margin: 7px 0 12px;
  color: inherit;
  opacity: 0.8;
}
#app .mn2-profile-status {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
#app .mn2-profile-hero .mn2-native-avatar {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--mn2-on-action) 12%, transparent);
  color: inherit;
  font-size: 20px;
}
#app .mn2-profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#app .mn2-profile-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 12px;
  background: var(--mn2-surface);
  color: var(--mn2-ink);
  border: 0;
  border-radius: 20px;
  text-align: left;
  min-width: 0;
}
#app .mn2-profile-shortcuts:has(> :nth-child(3)) .mn2-profile-shortcut:last-child {
  grid-column: 1 / -1;
}
#app .mn2-profile-shortcut strong {
  font-size: 14px;
  font-weight: 500;
}
#app .mn2-profile-shortcut small {
  font-size: 11px;
  color: var(--mn2-muted);
  margin-top: 4px;
  line-height: 1.4;
}
#app .mn2-profile-shortcut > .mn2-chevron {
  display: none;
}
#app .mn2-profile-shortcuts:has(> :nth-child(3)) .mn2-profile-shortcut:last-child > .mn2-chevron {
  display: flex;
}
#app .mn2-profile-category {
  background: var(--mn2-surface);
  padding: 18px;
  border-radius: 22px;
  border: 0;
  gap: 14px;
}
#app .mn2-profile-category .mn2-row-main {
  display: grid;
  gap: 5px;
}
#app .mn2-profile-category small,
#app .mn2-profile-next {
  color: var(--mn2-muted);
  font-size: 12px;
  line-height: 1.4;
}
#app .mn2-profile-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--mn2-soft);
  display: block;
  margin: 7px 0;
  overflow: hidden;
}
#app .mn2-profile-progress > i {
  display: block;
  height: 100%;
  width: var(
    --achievement-profile-progress,
    var(--achievement-item-progress, var(--achievement-progress, 0%))
  );
  background: var(--mn2-action);
  border-radius: inherit;
}
#app .mn2-profile-achievement-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#app .mn2-profile-achievement-count strong {
  font-size: 36px;
  font-weight: 500;
}
#app .mn2-profile-hero > p,
#app .mn2-profile-hero .mn2-caption {
  color: inherit;
}
#app .mn2-profile-hero .mn2-profile-progress {
  background: color-mix(in srgb, var(--mn2-on-action) 15%, transparent);
}
#app .mn2-profile-hero .mn2-profile-progress > i {
  background: var(--mn2-on-action);
}
#app .mn2-profile-achievement-row {
  gap: 12px;
  align-items: start;
  background: none;
}
#app .mn2-profile-achievement-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}
#app .mn2-profile-achievement-title em {
  font-style: normal;
  font-size: 11px;
  color: var(--mn2-muted);
}
#app .mn2-profile-statistic {
  gap: 12px;
  background: none;
}
#app .mn2-profile-statistic > b {
  font-size: 20px;
  font-weight: 500;
}
#app .mn2-profile-card-heading {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}
#app .mn2-profile-page :is(h2, h3) {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
#app .mn2-profile-page p {
  line-height: 1.5;
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-profile-card-heading p {
  margin: 5px 0 0;
}
#app .mn2-profile-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 12px;
}
#app .mn2-profile-promo-offer {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}
#app .mn2-profile-promo-offer small {
  font-size: 11px;
  color: var(--mn2-muted);
}
#app .mn2-profile-code {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mn2-soft);
  text-align: center;
}
#app .mn2-profile-code small {
  font-size: 10px;
  color: var(--mn2-muted);
}
#app .mn2-profile-code strong {
  font-size: 15px;
  font-weight: 600;
}
#app .mn2-profile-welcome > button {
  grid-column: 1 / -1;
  background: var(--mn2-action);
  color: var(--mn2-on-action);
}
#app .mn2-profile-promo-form {
  margin-top: 18px;
}
#app .mn2-profile-page .mn2-button {
  background: var(--mn2-soft);
  color: var(--mn2-ink);
}
#app .mn2-profile-welcome > .mn2-button,
#app .mn2-profile-access > .mn2-button {
  background: var(--mn2-action);
  color: var(--mn2-on-action);
}
#app .mn2-profile-promo-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-profile-promo-form label > div {
  display: flex;
  gap: 8px;
}
#app .mn2-profile-promo-form input {
  flex: 1;
  width: 0;
  min-width: 0;
  background: var(--mn2-base);
  color: var(--mn2-ink);
  border: 0;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
}
#app .mn2-profile-promo-form button {
  flex-shrink: 0;
  padding: 10px 12px;
}
#app .mn2-profile-access-heading {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
#app .mn2-profile-access-heading p {
  margin-top: 5px;
}
#app .mn2-profile-price {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  text-align: right;
}
#app .mn2-profile-price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--mn2-muted);
  margin-top: 6px;
}
#app .mn2-profile-access-time {
  display: grid;
  gap: 6px;
  margin: 18px 0;
}
#app .mn2-profile-access-time strong {
  font-size: 16px;
  font-weight: 500;
}
#app .mn2-profile-access-time span {
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-profile-features {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
#app .mn2-profile-features > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
#app .mn2-profile-features b {
  font-weight: 400;
}
#app .mn2-profile-quota {
  display: flex;
  gap: 22px;
  margin: 18px 0;
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-profile-quota strong {
  color: var(--mn2-ink);
  font-size: 17px;
  font-weight: 500;
  margin-right: 4px;
}
#app .mn2-profile-access > button {
  width: 100%;
}
#app .mn2-profile-learning-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
#app .mn2-profile-referral-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
#app .mn2-profile-referral-link > span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#app .mn2-profile-companion {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
#app .mn2-profile-app-icon img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
#app .mn2-profile-device-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
#app .mn2-profile-device-facts > div {
  display: grid;
  gap: 5px;
  font-size: 12px;
}
#app .mn2-profile-device-facts span {
  color: var(--mn2-muted);
}
#app .mn2-profile-page .mn2-actions {
  gap: 10px;
}
#app .mn2-profile-settings-list {
  display: grid;
}
#app .mn2-profile-setting-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 15px 0;
  text-align: left;
  background: none;
  border: 0;
  color: var(--mn2-ink);
  border-radius: 0;
}
#app .mn2-profile-setting-row + .mn2-profile-setting-row {
  border-top: 1px solid var(--mn2-line);
}
#app .mn2-profile-setting-row strong {
  font-weight: 500;
  font-size: 14px;
}
#app .mn2-profile-setting-row small {
  color: var(--mn2-muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}
#app .mn2-profile-setting-row > button.mn2-row-main {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
#app .mn2-profile-setting-row input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--mn2-action);
  flex-shrink: 0;
}
#app .mn2-profile-theme-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--mn2-soft);
}
#app .mn2-profile-native-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  padding: 0;
  border-radius: 28px;
  background: var(--mn2-soft);
}
#app .mn2-profile-native-switch input[type='checkbox'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
#app .mn2-profile-native-switch > span {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: var(--mn2-ink);
  transition: transform 180ms ease;
}
#app .mn2-profile-native-switch:has(input:checked) {
  background: var(--mn2-action);
}
#app .mn2-profile-native-switch input:checked + span {
  transform: translateX(20px);
  background: var(--mn2-on-action);
}
#app .mn2-profile-native-switch input:focus-visible + span {
  outline: 2px solid var(--mn2-ink);
  outline-offset: 4px;
}
#app .mn2-profile-theme-switch > span {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 4px;
  top: 4px;
  background: var(--mn2-ink);
  transition: transform 180ms ease;
}
#app .mn2-profile-theme-switch[aria-checked='true'] {
  background: var(--mn2-action);
}
#app .mn2-profile-theme-switch[aria-checked='true'] > span {
  transform: translateX(20px);
  background: var(--mn2-on-action);
}
#app .mn2-profile-accent-setting {
  padding: 16px 0;
}
#app .mn2-profile-accent-setting strong {
  font-size: 14px;
  font-weight: 500;
}
#app .mn2-profile-accent-setting small {
  font-size: 12px;
  color: var(--mn2-muted);
  margin-top: 5px;
}
#app .mn2-profile-accent-options {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 14px;
}
#app .mn2-profile-accent-option {
  display: grid;
  justify-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 7px 2px;
  background: none;
  border: 0;
  border-radius: 14px;
  color: var(--mn2-muted);
  font-size: 10px;
}
#app .mn2-profile-accent-option[aria-checked='true'] {
  color: var(--mn2-ink);
  background: var(--mn2-soft);
}
#app .mn2-profile-accent-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: hsl(var(--profile-swatch, 168) 65% 60%);
}
[data-accent-option='blue'] {
  --profile-swatch: 212;
}
[data-accent-option='violet'] {
  --profile-swatch: 276;
}
[data-accent-option='amber'] {
  --profile-swatch: 39;
}
#app .mn2-profile-page svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mn2-body .mn-sport-period-chart {
  background: transparent !important;
  border-color: var(--mn2-line) !important;
}
.mn2-body .mn-sport-nutrition-chart i,
.mn2-body .mn-sport-workout-chart em {
  background: var(--mn2-action) !important;
}
.mn2-body .mn-sport-nutrition-chart .under i {
  opacity: 0.65;
}
.mn2-body .mn-sport-nutrition-chart .over i {
  background: var(--mn2-ink) !important;
}
.mn2-body .mn-sport-nutrition-chart .empty i {
  background: var(--mn2-soft) !important;
}
.mn2-body .mn-sport-nutrition-chart .empty.has-skips i,
.mn2-body .mn-nutrition-legend .nutrition-skipped::before {
  border-color: var(--mn2-muted) !important;
  background: repeating-linear-gradient(
    135deg,
    var(--mn2-muted) 0 2px,
    transparent 2px 6px
  ) !important;
}
.mn2-body .mn-nutrition-skip-count {
  background: var(--mn2-surface) !important;
  border-color: var(--mn2-line) !important;
  color: var(--mn2-ink) !important;
  font-weight: 500;
}
.mn2-body .mn-sport-workout-chart .mn-workout-count {
  background: transparent !important;
  color: var(--mn2-on-action) !important;
  font-weight: 500;
}
.mn2-body .mn-sport-period-chart small,
.mn2-body .mn-sport-week-legend,
.mn2-body .mn-sport-week-legend span {
  color: var(--mn2-muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
.mn2-body .mn-sport-week-legend .done::before {
  background: var(--mn2-action) !important;
}
/* All transient notices share the prototype's quiet, flat surface. Keep the
   native status/alert roles, action callbacks, timers and swipe dismissal. */
html[data-theme] #toast-region {
  top: calc(env(safe-area-inset-top) + 72px) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 32px)) !important;
  gap: 8px;
}
html[data-theme] #toast-region .toast.mn2-toast {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  min-height: 48px;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--mn2-surface) !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font:
    400 13px/1.45 Onest,
    'Segoe UI',
    sans-serif;
  animation: mn2-notice-enter 180ms ease-out both !important;
}
html[data-theme] #toast-region .mn2-toast .toast-signal {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mn2-action);
}
html[data-theme] #toast-region .mn2-toast .toast-signal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}
html[data-theme] #toast-region .mn2-toast .toast-message {
  min-width: 0;
  font: inherit;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme] #toast-region .mn2-toast .toast-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
html[data-theme] #toast-region .mn2-toast .toast-action {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink);
  font:
    500 12px/1.4 Onest,
    'Segoe UI',
    sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}
html[data-theme] #toast-region .mn2-toast .toast-action:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 2px;
}
html[data-theme] #toast-region .mn2-toast.leaving {
  animation: mn2-notice-leave 180ms ease-in both !important;
}
@keyframes mn2-notice-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}
@keyframes mn2-notice-leave {
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #toast-region .toast.mn2-toast {
    animation: none !important;
    transition: none !important;
  }
  #app .mn2-profile-theme-switch > span,
  #app .mn2-profile-native-switch > span {
    transition: none;
  }
}
.mn2-concept .mn2-hidden {
  display: none !important;
}
.mn2-concept :is(.mn2-list-row, .mn2-memory-row, .mn2-memory-hero-title, .mn2-measure-row) {
  cursor: pointer;
}
.mn2-concept .mn2-task-line {
  position: relative;
  padding-right: 36px;
}
.mn2-concept .mn2-task-check {
  position: absolute;
  right: 0;
  top: 8px;
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
}
.mn2-concept .mn2-task-line .mn2-list-row {
  border-bottom: 0;
}
.mn2-concept .mn2-native-group {
  padding: 16px;
  border-radius: 22px;
  background: var(--mn2-surface);
  margin: 18px 0;
  min-width: 0;
}
.mn2-concept .mn2-native-group :is(h2, h3) {
  margin-bottom: 12px;
}
.mn2-concept .mn2-native-group .mn2-native-group {
  background: var(--mn2-base);
  margin: 12px 0;
}
.mn2-concept .mn2-native-group .mn2-list-row {
  gap: 12px;
}
.mn2-concept .mn2-row-main {
  display: block;
  min-width: 0;
  flex: 1;
}

/* row() has optional time/status/icon slots; a fixed three-column grid cannot
   describe those combinations. Keep only the text flexible. */
html[data-theme] #app.mn2-concept .mn2-list-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
html[data-theme] #app.mn2-concept .mn2-list-row > .mn2-row-main {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
}
html[data-theme]
  #app.mn2-concept
  .mn2-list-row
  > :is(.mn2-time, .mn2-status-dot, .mn2-row-glyph, .mn2-chevron) {
  flex: 0 0 auto;
}
.mn2-concept .mn2-row-main :is(strong, small) {
  display: block;
}
.mn2-concept .mn2-native-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.mn2-concept .mn2-native-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.mn2-concept .mn2-native-stack {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.mn2-concept .mn2-native-stack > :is(p, small, strong) {
  display: block;
  margin-top: 6px;
}
.mn2-concept .mn2-native-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mn2-concept .mn2-native-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mn2-soft);
  flex-shrink: 0;
}
.mn2-concept .mn2-native-avatar img {
  max-width: 100%;
  border-radius: 50%;
}
.mn2-concept .mn2-native-group form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.mn2-concept .mn2-native-group .mn2-native-field {
  margin: 8px 0;
}
.mn2-concept .mn2-native-group > .mn2-button {
  margin-top: 10px;
}
.mn2-concept .mn2-native-field input,
.mn2-concept .mn2-native-field select,
.mn2-concept .mn2-native-field textarea {
  background: var(--mn2-base);
  color: var(--mn2-ink);
  border: 0;
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.mn2-concept .mn2-native-field input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
}
.mn2-concept .mn2-caption {
  line-height: 1.5;
  margin-top: 10px;
}
.mn2-concept .mn2-empty {
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.mn2-concept .mn2-exercise-line {
  display: flex;
  gap: 12px;
  align-items: start;
}
.mn2-concept .mn2-exercise-number {
  font-size: 12px;
  color: var(--mn2-action);
}
.mn2-concept .mn2-measure-plot .mn-sport-line-chart {
  margin: 0;
  max-width: 100%;
  color: var(--mn2-action);
}
.mn2-concept .mn2-measure-plot .mn-sport-line-chart .line {
  stroke: var(--mn2-action);
}
.mn2-concept .mn2-measure-plot .mn-sport-chart-caption {
  color: var(--mn2-muted);
}
.mn2-concept
  :is(.mn2-row-main, .mn2-mini, .mn2-memory-row, .mn2-native-group)
  :is(strong, p, small) {
  overflow-wrap: anywhere;
}
.mn2-concept .mn2-topbar,
.mn2-concept .mn2-nav {
  font-family: Onest, 'Segoe UI', sans-serif;
}
.mn2-concept :is(h1, h2, h3, strong, button, input, select, textarea) {
  font-family: Onest, 'Segoe UI', sans-serif !important;
}
#app .mn2-concept h1,
#app .mn2-page-heading h1 {
  letter-spacing: -0.5px !important;
}
.mn2-concept .mn2-follow-up {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
}
/* Real forms retain IDs/validation and the existing sheet gesture/focus stack. */
/* One approved sheet skin for all existing forms and record dialogs.
   The explicit priority is intentional: the historical theme used !important. */
#modal-root {
  max-width: none;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet::before,
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet::after {
  display: none !important;
}
html[data-theme] #modal-root.mn2-concept > .modal-backdrop:not(.modal-underlay) {
  background: rgb(0 0 0 / 24%) !important;
  backdrop-filter: blur(3px) !important;
  padding: 8px !important;
  align-items: flex-end !important;
}
html[data-theme] #modal-root.mn2-concept > .modal-backdrop .modal-sheet.mn2-sheet {
  display: flex !important;
  flex-direction: column;
  min-height: 240px;
  width: min(100%, 424px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  padding: 7px 18px 18px !important;
  border: 0 !important;
  border-radius: 30px 30px 22px 22px !important;
  background: var(--mn2-surface) !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  font:
    400 14px/1.5 Onest,
    'Segoe UI',
    sans-serif;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet.sheet-expanded {
  height: calc(100dvh - 24px - env(safe-area-inset-top));
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-head {
  flex: 0 0 auto;
  display: block;
  text-align: center;
  padding: 0 0 18px !important;
  margin: 0;
  border: 0;
  min-height: 0;
  background: var(--mn2-surface) !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-head h2 {
  margin: 0;
  font:
    600 20px/1.35 Onest,
    'Segoe UI',
    sans-serif !important;
  letter-spacing: -0.25px !important;
  color: var(--mn2-ink) !important;
  text-align: center;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 !important;
  display: block;
  scrollbar-width: thin;
}
/* A tariff sheet has more than the legacy three grid rows. Keep every offer
   and payment method at its natural height; only the outer body scrolls. */
html[data-theme] #modal-root.mn2-concept .payment-sheet.mn2-sheet .modal-body {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 16px !important;
}
html[data-theme] #modal-root.mn2-concept .payment-sheet.mn2-sheet .modal-body > * {
  flex: 0 0 auto;
  min-width: 0;
}
html[data-theme] #modal-root.mn2-concept .payment-sheet .payment-offer {
  padding: 16px !important;
}
html[data-theme] #modal-root.mn2-concept .payment-sheet .payment-methods {
  margin: 0 !important;
}
html[data-theme] #modal-root.mn2-concept .payment-sheet .payment-note {
  display: block !important;
  margin: 0 !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 0 !important;
  margin: 0;
  background: var(--mn2-surface) !important;
  border: 0;
  box-shadow: none !important;
}
#modal-root .modal-actions > * {
  flex: 1;
  min-width: 0;
}
#modal-root .modal-actions > .full {
  flex-basis: 100%;
}
#modal-root .modal-accessible-close {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#modal-root .modal-accessible-close:focus-visible {
  position: static;
  width: auto;
  height: 44px;
  clip: auto;
  margin: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-grab-zone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  height: 34px;
  padding: 0 !important;
  margin: 0 !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-grab-handle {
  width: 110px;
  height: 34px;
  min-height: 34px;
  background: none !important;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 !important;
  box-shadow: none !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-grab-handle > span {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--mn2-ink) !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .btn {
  font:
    500 13px/1.4 Onest,
    'Segoe UI',
    sans-serif !important;
  min-height: 44px;
  border: 0 !important;
  border-radius: 15px;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  padding: 11px 13px;
  box-shadow: none !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .btn:is(.primary, .success),
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .btn[type='submit'] {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .field-grid {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .field {
  display: grid;
  gap: 6px;
  margin: 0;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(.field > span, legend, .field-hint, .field > small) {
  color: var(--mn2-muted) !important;
  font:
    400 12px/1.5 Onest,
    'Segoe UI',
    sans-serif !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(input, select, textarea):not([type='radio']):not([type='checkbox']):not([type='hidden']):not(
    [type='range']
  ) {
  font:
    400 16px/1.5 Onest,
    'Segoe UI',
    sans-serif !important;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px !important;
  border: 0 !important;
  border-radius: 14px;
  box-shadow: none !important;
  background: var(--mn2-base) !important;
  color: var(--mn2-ink) !important;
  color-scheme: dark;
}
html[data-theme='light']
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(input, select, textarea) {
  color-scheme: light;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet textarea {
  min-height: 96px;
  resize: vertical;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .category-picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .category-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .category-choice {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .category-choice span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px !important;
  border: 0 !important;
  border-radius: 14px;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  font:
    400 13px/1.4 Onest,
    sans-serif !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  .category-choice
  input:checked
  + span {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet :is(p, strong, small, span, label) {
  font-family: Onest, 'Segoe UI', sans-serif !important;
  letter-spacing: normal !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body h3 {
  font:
    500 18px/1.35 Onest,
    sans-serif !important;
  letter-spacing: normal !important;
  color: var(--mn2-ink) !important;
  margin: 0 0 12px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body p {
  font:
    400 14px/1.5 Onest,
    sans-serif !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body small {
  font:
    400 12px/1.5 Onest,
    sans-serif !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .task-action-panel {
  padding: 16px 0 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body .mn2-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .modal-body .mn2-actions > button {
  flex: 1 1 120px;
  width: auto !important;
  min-width: 0;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .task-quick-delay {
  margin-top: 18px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .task-quick-delay > span {
  font:
    400 12px/1.5 Onest,
    sans-serif !important;
  color: var(--mn2-muted) !important;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .task-quick-delay > div {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .task-quick-delay button {
  flex: 1 1 90px;
  min-width: 0;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(p, small, .detail-meta, .muted) {
  color: var(--mn2-muted) !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(.task-detail, .transaction-detail, .calendar-detail) {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--mn2-action) !important;
  outline-offset: 3px;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  .category-choice
  input:focus-visible
  + span {
  outline: 2px solid var(--mn2-ink);
  outline-offset: 3px;
}
body.modal-open #app .mn2-input-dock {
  visibility: visible;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet.mn2-note-sheet .preview-item {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet.mn2-note-sheet .note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .note-tags .tag {
  border: 0 !important;
  box-shadow: none !important;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  padding: 8px 12px;
  border-radius: 14px;
  font:
    400 12px/1.5 Onest,
    sans-serif !important;
  min-height: 36px;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .sport-form-section {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
#voice-root .voice-panel {
  background: var(--mn2-surface);
  color: var(--mn2-ink);
  border-radius: 28px 28px 0 0;
}
#demo-banner {
  font:
    400 12px/1.45 Onest,
    'Segoe UI',
    sans-serif;
  margin: 0 13px;
  background: var(--mn2-surface);
  border: 0;
  max-width: 100%;
  width: calc(100% - 26px);
}
#voice-root:not(.active) .voice-panel {
  display: none;
}
.mn2-concept .mn2-native-group svg,
.mn2-concept .mn2-native-identity svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mn2-native-page-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.mn2-native-page-head h1 {
  text-align: center;
}
.mn2-native-page-head > button {
  width: 44px;
  padding: 10px;
}
.mn2-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mn2-chat-message {
  padding: 14px;
  border-radius: 18px;
  background: var(--mn2-base);
}
.mn2-chat-message.user {
  margin-left: 22px;
  background: var(--mn2-soft);
}
/* Specialist roles override legacy !important themes, without changing the
   frozen prototype or the rest of the working application. */
html[data-theme] #app.mn2-concept .mn2-graph-heading select {
  background: var(--mn2-surface) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  border-radius: 14px;
  padding: 9px;
  min-height: 44px;
  color-scheme: dark;
}
html[data-theme='light'] #app.mn2-concept .mn2-graph-heading select {
  color-scheme: light;
}
html[data-theme] #app.mn2-concept .mn2-graph-heading option {
  background: var(--mn2-surface);
  color: var(--mn2-ink);
}
#app.mn2-concept .mn2-companion-metrics > button:only-child {
  grid-column: 1 / -1;
}
#app.mn2-concept :is(.mn2-companion-metrics, .mn2-measures) button {
  color: var(--mn2-ink);
}
#app.mn2-concept .mn2-measure-row > strong {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}
#app.mn2-concept .mn2-measure-row > strong small {
  font-size: 13px;
  color: inherit;
}
#app.mn2-concept .mn2-period-summary .mn2-mini {
  padding: 0;
  background: none;
  color: var(--mn2-ink);
}
#app.mn2-concept .mn2-period-summary .mn2-mini:last-child {
  text-align: right;
}
#app.mn2-concept .mn2-chart {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px;
}
#app.mn2-concept :is(.mn2-plot, .mn2-axis-y) {
  height: 154px;
}
#app.mn2-concept :is(.mn2-axis-y, .mn2-axis-x) {
  color: var(--mn2-muted);
  opacity: 1;
  font-size: 11px;
}
#app.mn2-concept .mn2-axis-x {
  padding-left: 46px;
  gap: 8px;
}
#app.mn2-concept .mn2-axis-x > span:last-child {
  text-align: right;
}
#app.mn2-concept .mn2-chart-grid {
  stroke: var(--mn2-line);
  stroke-width: 1;
}
#app.mn2-concept .mn2-chart-line {
  fill: none;
  stroke: var(--mn2-action);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#app.mn2-concept .mn2-chart-point {
  fill: var(--mn2-action);
  stroke: var(--mn2-surface);
  stroke-width: 1.5;
}
html[data-theme] #app.mn2-concept .mn2-section-body :is(h2, h3) {
  color: var(--mn2-ink) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0 !important;
}
#app.mn2-concept .mn2-exercises {
  padding: 0;
  display: grid;
  gap: 10px;
  background: transparent;
}
#app.mn2-concept .mn2-exercise-plate {
  padding: 14px;
  margin: 0;
  background: var(--mn2-base);
  border-radius: 18px;
  border: 0;
}
#app.mn2-concept .mn2-program-content .mn2-exercises {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
#app.mn2-concept .mn2-exercise-plate:last-child {
  border-bottom: 0;
}
#app.mn2-concept .mn2-exercise-line small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--mn2-muted);
}
#app.mn2-concept .mn2-training-focus > .mn2-actions > .mn2-actions {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin: 0;
}
/* Rest is a regular surface, not an accent hero. Its headings must not inherit
   the dark foreground reserved for the colored focus panels. */
html[data-theme] #app.mn2-concept .mn2-rest-day :is(h2, h3, .mn2-time, .mn2-starting) {
  color: var(--mn2-ink) !important;
}
#app.mn2-concept .mn2-training-focus .mn2-actions > .mn2-button {
  min-width: 0;
  padding: 12px 8px;
  overflow-wrap: normal;
}
#app.mn2-concept .mn2-native-group :is(h2, h3, strong) {
  color: var(--mn2-ink);
}
html[data-theme] #app.mn2-concept .mn2-body :is(.mn-sport-macro, .mn-sport-range) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
  border-radius: 0;
  padding: 13px 0;
  margin: 0;
}
html[data-theme] #app.mn2-concept .mn2-body :is(.mn-sport-macro, .mn-sport-range) strong {
  color: var(--mn2-ink) !important;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0 !important;
}
html[data-theme] #app.mn2-concept .mn2-body :is(.mn-sport-macro, .mn-sport-range) small {
  color: var(--mn2-muted) !important;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#app.mn2-concept .mn-sport-macro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
html[data-theme] #app.mn2-concept .mn-sport-macro > span,
html[data-theme] #app.mn2-concept .mn-sport-range > div > span {
  color: var(--mn2-ink) !important;
  font-size: 13px;
  font-weight: 400 !important;
}
html[data-theme] #app.mn2-concept .mn2-body :is(.mn-sport-macro, .mn-sport-range) small {
  font-weight: 400 !important;
}
/* Total sugars have no target; a full progress bar would imply one. */
#app.mn2-concept .mn-sport-macro.sugar > div {
  display: none;
}
html[data-theme] #app.mn2-concept .mn-sport-range-track,
html[data-theme] #app.mn2-concept .mn-sport-macro > div {
  background: var(--mn2-soft) !important;
  height: 5px;
  border-radius: 5px;
  box-shadow: none;
}
html[data-theme] #app.mn2-concept .mn-sport-range-track b,
html[data-theme] #app.mn2-concept .mn-sport-macro > div > i {
  background: var(--mn2-action) !important;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal {
  background: none !important;
  border: 0 !important;
  padding: 0;
  margin: 0;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal :is(.mn-meal-period-group, .mn-meal-entry) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0 !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal small {
  color: var(--mn2-muted) !important;
  font-size: 12px;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal .mn-sport-value {
  color: var(--mn2-ink) !important;
  font-size: 13px;
  letter-spacing: 0 !important;
}
/* The bell opens a sheet above the current section, not a second page. */
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-queue {
  display: grid;
  gap: 20px;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-block {
  background: none !important;
  border: 0;
  padding: 0;
  margin: 0;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-block h2 {
  color: var(--mn2-muted) !important;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0 !important;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-list {
  display: grid;
  gap: 12px;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin: 0;
  border: 0 !important;
  border-radius: 20px;
  box-shadow: none !important;
  background: var(--mn2-base) !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-kind {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  background: none;
  color: var(--mn2-action);
}
#modal-root .mn2-notification-kind svg {
  width: 22px;
  height: 22px;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-item-body {
  min-width: 0;
  flex: 1;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-open {
  width: 100%;
  padding: 0;
  background: none !important;
  border: 0;
  color: var(--mn2-ink) !important;
  text-align: left;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notice-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0 !important;
  color: var(--mn2-ink) !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .notification-center-sheet
  .mn2-notice-copy
  :is(small, em) {
  display: block;
  color: var(--mn2-muted) !important;
  font:
    400 12px/1.5 Onest,
    sans-serif;
  margin-top: 5px;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
html[data-theme] #modal-root.mn2-concept .notification-center-sheet .mn2-notification-action {
  flex: 1 1 95px;
  min-height: 44px;
  padding: 10px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  font:
    500 12px/1.4 Onest,
    sans-serif;
}
html[data-theme]
  #modal-root.mn2-concept
  .notification-center-sheet
  .mn2-notification-action[data-action='notification-follow-help']:last-child {
  flex: 1 1 100%;
}
html[data-theme]
  #modal-root.mn2-concept
  .notification-center-sheet
  .mn2-notification-action.is-primary {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
#modal-root .notification-center-sheet .mn2-notification-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--mn2-ink);
}
@media (prefers-reduced-motion: reduce) {
  #modal-root .modal-sheet {
    animation: none;
    transition: none;
  }
}

/* Capture and learning are independent roots, not openModal descendants. Keep
   their IDs, phase classes, media geometry and commands; replace only the skin. */
html[data-theme] :is(#app, #modal-root, #voice-root, #onboarding-root, #feedback-root) {
  --theme-bg: var(--mn2-base);
  --theme-surface: var(--mn2-surface);
  --theme-surface-soft: var(--mn2-surface);
  --theme-surface-raised: var(--mn2-surface);
  --theme-text: var(--mn2-ink);
  --theme-text-muted: var(--mn2-muted);
  --theme-line: var(--mn2-line);
  --ui-text: var(--mn2-ink);
  --ui-text-muted: var(--mn2-muted);
  --ui-border: var(--mn2-line);
  --ui-surface: var(--mn2-surface);
  --ui-surface-soft: var(--mn2-soft);
  --ui-surface-inset: var(--mn2-base);
  --paper: var(--mn2-ink);
  --paper-muted: var(--mn2-muted);
  --paper-dim: var(--mn2-muted);
  --paper-mute: var(--mn2-muted);
  --line: var(--mn2-line);
  --surface-2: var(--mn2-base);
  --surface-3: var(--mn2-soft);
  --mn-surface: var(--mn2-surface);
  --mn-surface-soft: var(--mn2-base);
  --mn-profile-surface: var(--mn2-surface);
  --mn-ui-control: var(--mn2-soft);
  --mn-ui-inset: var(--mn2-base);
  --mn-accent-ink: var(--mn2-on-action);
  --mn-accent: var(--mn2-action);
  --mn-ui-card: var(--mn2-surface);
  font-family: Onest, 'Segoe UI', sans-serif;
  color: var(--mn2-ink);
}
html[data-theme]
  :is(#voice-root, #onboarding-root, #feedback-root)
  :is(h1, h2, h3, strong, button, input, select, textarea, p, span, small, blockquote, label) {
  font-family: Onest, 'Segoe UI', sans-serif !important;
  letter-spacing: normal !important;
}
html[data-theme] #voice-root .voice-scrim,
html[data-theme] #feedback-root .feedback-moment {
  background: rgb(0 0 0 / 24%) !important;
  backdrop-filter: blur(3px) !important;
}
html[data-theme] #voice-root .voice-panel {
  left: max(8px, calc((100vw - 424px) / 2)) !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  right: auto !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
  width: min(424px, calc(100vw - 16px)) !important;
  max-height: calc(
    100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  ) !important;
  border: 1px solid color-mix(in srgb, var(--mn2-ink) 24%, transparent) !important;
  border-radius: 30px 30px 22px 22px !important;
  background: var(--mn2-surface) !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
  backdrop-filter: none !important;
}
html[data-theme] #voice-root .voice-panel::before {
  display: none !important;
}

/* Capture has a real grip, not a decorative pseudo-element. */
html[data-theme] #voice-root .capture-grab-handle {
  display: grid;
  place-items: center;
  width: 96px;
  height: 30px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  touch-action: none;
  user-select: none;
}
html[data-theme] #voice-root .capture-grab-handle span {
  width: 40px;
  height: 4px;
  border-radius: 8px;
  background: var(--mn2-muted);
}
html[data-theme] #voice-root .voice-panel {
  transform: translateY(var(--capture-drag-y, 0px)) !important;
  transition:
    transform 180ms ease,
    height 180ms ease !important;
}
html[data-theme] #voice-root .voice-panel.capture-dragging {
  transition: none !important;
  animation: none !important;
}
html[data-theme] #voice-root .voice-panel.capture-expanded {
  height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  display: flex;
  flex-direction: column;
}
html[data-theme] #voice-root .voice-panel.capture-resizing {
  height: var(--capture-gesture-height) !important;
  display: flex;
  flex-direction: column;
}
html[data-theme]
  #voice-root.camera-live
  :is(.capture-expanded, .capture-resizing)
  .voice-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden !important;
}
html[data-theme] #voice-root.camera-live :is(.capture-expanded, .capture-resizing) .camera-stage {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
}
html[data-theme] #voice-root.camera-live .camera-controls {
  flex-shrink: 0;
}
html[data-theme] #voice-root.camera-live .voice-scrim {
  backdrop-filter: none !important;
}
html[data-theme] #voice-root .capture-expanded .voice-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
}
html[data-theme] #voice-root .capture-accessible-close {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html[data-theme] #voice-root .capture-accessible-close:focus-visible {
  clip-path: none;
  width: auto;
  height: 36px;
  right: 12px;
  top: 4px;
  z-index: 2;
}
html[data-theme] #voice-root .voice-panel-head [data-voice-action='close'],
html[data-theme] #voice-root .voice-panel-head [data-voice-action='cancel-recording'] {
  display: none !important;
}
html[data-theme] #voice-root.camera-live .voice-panel-body {
  padding: 0 6px 8px !important;
}
html[data-theme] #voice-root.camera-live .camera-stage {
  margin: 0;
  border: 0;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  max-height: 60dvh;
}
html[data-theme] #voice-root.camera-live .camera-video {
  height: 100%;
  max-height: none;
  object-fit: cover;
}
html[data-theme] #voice-root .camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 16px;
  padding-top: 10px;
}
html[data-theme] #voice-root .camera-tool,
html[data-theme] #voice-root .camera-shutter {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mn2-soft);
  color: var(--mn2-ink);
}
html[data-theme] #voice-root .camera-shutter {
  width: 56px;
  height: 56px;
  background: var(--mn2-action);
  color: var(--mn2-on-action);
}
html[data-theme] #voice-root .camera-controls svg {
  width: 22px;
  height: 22px;
}
html[data-theme] #voice-root .camera-tool .mneme-glyph,
html[data-theme] #voice-root .camera-tool .mneme-glyph path {
  fill: none !important;
  stroke: currentColor !important;
}
html[data-theme] #voice-root.recording:not(.locked) .voice-lock-stop {
  display: none;
}
html[data-theme] #voice-root.recording .voice-lock-stop {
  min-height: 44px;
}
html[data-theme] #voice-root.recording .voice-waveform {
  background: var(--mn2-base) !important;
  border: 0;
  border-radius: 16px;
}
html[data-theme] #voice-root.recording .voice-live-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
html[data-theme] #voice-root.recording #voice-timer {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html[data-theme] #voice-root.recording #voice-record-hint {
  color: var(--mn2-muted) !important;
  font-size: 12px;
}
html[data-theme] #voice-root.recording .voice-recording-dot {
  position: absolute;
  left: calc(50% - 84px);
  top: 12px;
}
html[data-theme] #bottom-navigation [data-voice-record] {
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #voice-root .voice-panel {
    transition: none !important;
  }
}
html[data-theme] #voice-root .voice-panel-body {
  height: auto !important;
  padding: 8px 18px 18px !important;
  max-height: calc(
    100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  ) !important;
  min-width: 0;
  color: var(--mn2-ink);
}
html[data-theme] #voice-root :is(.voice-panel-head, .voice-result-head) h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--mn2-ink) !important;
  text-align: center;
}
html[data-theme] #voice-root .voice-result-head {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
html[data-theme] #voice-root .voice-result-head .eyebrow {
  display: none;
}
html[data-theme]
  #voice-root
  :is(
    .voice-transcript blockquote,
    .preview-item,
    .voice-question,
    .photo-portion-notice,
    .camera-save-photo,
    .photo-source-grid > button,
    .photo-route-grid > button
  ) {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--mn2-base) !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
  padding: 14px !important;
}
html[data-theme] #voice-root :is(.voice-transcript blockquote, .preview-item) {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-inline: 0;
}
html[data-theme] #voice-root :is(.eyebrow, small, .muted, .camera-privacy) {
  color: var(--mn2-muted) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html[data-theme] #voice-root :is(strong, .voice-transcript blockquote) {
  color: var(--mn2-ink) !important;
}
html[data-theme] #voice-root .preview-item-copy > span {
  color: var(--mn2-muted) !important;
}
html[data-theme] #voice-root .preview-item-edit {
  background: var(--mn2-soft) !important;
  color: var(--mn2-action) !important;
  border: 0 !important;
  border-radius: 14px;
}
html[data-theme] #voice-root .voice-result-actions {
  background: var(--mn2-surface) !important;
  border: 0 !important;
  padding: 14px 0 0 !important;
  gap: 10px !important;
}
html[data-theme] #voice-root :is(.btn, .icon-button),
html[data-theme] #onboarding-root .btn,
html[data-theme] #feedback-root :is(.feedback-moment-choice, .feedback-moment-action) {
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  min-height: 44px;
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: normal;
}

/* Opt-in timeline; classic plan remains the default and a one-click alternative. */
#app .mn2-plan-view {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}
#app .mn2-plan-view > button {
  flex: 1;
  min-width: 0;
}
#app .mn2-plan-view > button[aria-pressed='true'] {
  background: var(--mn2-soft);
}
#app .mn2-timeline-entry {
  display: grid;
  grid-template-columns: 42px 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
#app .mn2-timeline-time {
  font-size: 12px;
  color: var(--mn2-muted);
  font-variant-numeric: tabular-nums;
}
#app .mn2-timeline-rail {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 54px;
  border-left: 2px solid var(--mn2-line);
  color: var(--mn2-action);
}
#app .mn2-timeline-rail .mn2-icon {
  background: var(--mn2-surface);
  padding: 3px;
}
#app .mn2-timeline-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--mn2-base);
  color: var(--mn2-ink);
  text-align: left;
  min-width: 0;
}
#app .mn2-timeline-card strong {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#app .mn2-timeline-card small {
  font-size: 12px;
  color: var(--mn2-muted);
  line-height: 1.5;
}
#app .mn2-calendar-day-list {
  min-height: 0 !important;
  margin: 0;
}
#app .mn2-calendar-day-list :is(.mn2-native-group, .mn2-native-stack) {
  min-height: 0 !important;
  padding-block: 0;
  margin-block: 0;
}
#app .mn2-calendar-day-list + .mn2-actions {
  margin-top: 12px;
}
#app .mn2-calorie-ring {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 18px 20px;
  margin: 0;
  text-align: center;
}
#app .mn2-calorie-toggle > svg {
  width: 160px;
  height: 160px;
  overflow: visible;
}
#app .mn2-ring-track,
#app .mn2-ring-value {
  fill: none;
  stroke-width: 8;
}
#app .mn2-ring-track {
  stroke: var(--mn2-line);
}
#app .mn2-ring-value {
  stroke: var(--mn2-action);
  stroke-linecap: round;
}
#app .mn2-calorie-toggle > .mn2-energy-value {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
}
#app .mn2-energy-value strong {
  font-size: 26px;
  font-weight: 600;
}
#app .mn2-energy-value small {
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-calorie-toggle {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mn2-ink);
  font: inherit;
  cursor: pointer;
}
#app .mn2-calorie-toggle:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 5px;
  border-radius: 12px;
}
#app .mn2-calorie-scale {
  width: 100%;
  padding-inline: 0;
}
#app .mn2-calorie-scale > .mn2-calorie-toggle {
  width: 100%;
  gap: 14px;
  min-height: 96px;
}
#app .mn2-calorie-scale .mn2-energy-value {
  position: static;
}
#app .mn2-energy-bar-track {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 20px;
  background: var(--mn2-line);
  overflow: hidden;
}
#app .mn2-energy-bar-track > span {
  display: block;
  height: 100%;
  background: var(--mn2-action);
  border-radius: inherit;
}
#app .mn2-calorie-ring figcaption {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  line-height: 1.5;
}
#app .mn2-calorie-ring figcaption strong {
  font-size: 14px;
  font-weight: 500;
}
#app .mn2-calorie-ring figcaption span {
  font-size: 12px;
  color: var(--mn2-muted);
}
#modal-root .mn2-meal-detail {
  display: grid;
  gap: 16px;
}
#modal-root .mn2-meal-products {
  display: grid;
  gap: 10px;
}
#modal-root .mn2-meal-product {
  padding: 12px;
  border-radius: 16px;
  background: var(--mn2-base);
}
#modal-root .mn2-meal-product > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}
#modal-root .mn2-meal-product > summary::-webkit-details-marker {
  display: none;
}
#modal-root .mn2-meal-product-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#modal-root .mn2-meal-product-main strong {
  font-size: 16px;
  font-weight: 500;
}
#modal-root .mn2-meal-product-main small {
  font-size: 12px;
  color: var(--mn2-muted);
}
#modal-root .mn2-meal-product[open] > summary > .mn2-icon {
  transform: rotate(90deg);
}
#modal-root .mn2-meal-product-content {
  margin-top: 14px;
}
#modal-root .mn2-meal-nutrients {
  display: grid;
}
#modal-root .mn2-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mn2-line);
  font-size: 14px;
}
#modal-root .mn2-stat-line strong {
  font-weight: 500;
}

/* October 12: targeted statistics and compact, readable program days. */
#app .mn2-stat-lead {
  display: grid;
  gap: 6px;
  margin: 4px 0 18px;
}
#app .mn2-stat-lead > span,
#app .mn2-stat-lead > small {
  color: var(--mn2-muted);
  font-size: 14px;
}
#app .mn2-stat-lead > strong {
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#app .mn2-stat-lines {
  display: grid;
  gap: 0;
}
#app .mn2-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--mn2-line);
}
#app .mn2-stat-line > span {
  color: var(--mn2-muted);
}
#app .mn2-stat-line > strong {
  flex-shrink: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#app .mn2-program-preview {
  display: grid;
  gap: 12px;
}
#app .mn2-program-day {
  border-radius: 18px;
  background: var(--mn2-base);
  padding: 14px;
  min-width: 0;
}
#app .mn2-program-day > summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
#app .mn2-program-day > summary::-webkit-details-marker {
  display: none;
}
#app .mn2-exercise-plate > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}
#app .mn2-exercise-plate > summary::-webkit-details-marker {
  display: none;
}
#app .mn2-exercise-plate[open] > summary > .mn2-icon {
  transform: rotate(90deg);
}
#app .mn2-program-weekday {
  color: var(--mn2-action);
  font-weight: 600;
}
#app .mn2-program-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#app .mn2-program-copy > strong {
  font-size: 17px;
  font-weight: 600;
}
#app .mn2-program-copy > small {
  color: var(--mn2-muted);
  font-size: 13px;
  line-height: 1.5;
}
#app .mn2-program-day > summary > .mn2-icon {
  width: 20px;
  height: 20px;
}
#app .mn2-program-day[open] > summary > .mn2-icon {
  transform: rotate(90deg);
}
#app .mn2-program-content {
  margin-top: 16px;
}
#app .mn2-habit-page .habit-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#app .mn2-habit-page .habit-card-footer .habit-link {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}
#app .mn2-habit-page .habit-card-footer [data-action='habit-related'],
#app .mn2-habit-page .habit-card-footer > :only-child {
  grid-column: 1/-1;
}
#app .mn2-habit-page .habit-card-footer [data-action='habit-related'] {
  grid-row: 2;
}
html[data-theme] #modal-root .habit-editor-sheet :is(.modal-actions, .mn2-sheet-actions) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
html[data-theme] #modal-root .habit-editor-sheet [data-habit-editor-secondary] {
  grid-column: 1/-1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
html[data-theme] #modal-root .habit-editor-sheet [data-habit-editor-secondary] > :only-child {
  grid-column: 1/-1;
}
html[data-theme] #modal-root [data-routine-summary] {
  padding: 0;
  gap: 8px;
}
html[data-theme] #modal-root [data-routine-summary]::before {
  display: none !important;
}
html[data-theme] #modal-root [data-routine-summary] > span {
  color: var(--mn2-muted);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  font-weight: 400;
}
html[data-theme] #modal-root [data-routine-summary] > strong {
  color: var(--mn2-ink);
  font-family: Onest, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
}

html[data-theme] #app .habit-catalog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
}
html[data-theme] #app .habit-catalog-open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--mn2-ink);
  text-align: left;
  padding: 4px;
  min-height: 44px;
}
html[data-theme] #app .habit-catalog-open > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
html[data-theme] #app .habit-catalog-open :is(strong, small) {
  display: block;
  overflow-wrap: anywhere;
}
html[data-theme] #app .habit-catalog-open small {
  color: var(--mn2-muted);
  font-size: 12px;
  margin-top: 4px;
}
html[data-theme] #app .habit-catalog-icon {
  color: var(--mn2-action);
}
html[data-theme] #app .habit-catalog-open > .mn2-icon:last-child {
  flex-shrink: 0;
  width: 18px;
}
html[data-theme] #app .habit-toolbar select {
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mn2-line);
  border-radius: 14px;
  padding: 12px;
  color: var(--mn2-ink);
  background: var(--mn2-surface);
  font: inherit;
}
html[data-theme] #app .habit-toolbar label {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--mn2-muted);
}
html[data-theme] #app .habit-catalog-open:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 3px;
  border-radius: 12px;
}

/* A live focus is the main readout, not another line of supporting copy. */
html[data-theme] .mn2-focus-clock {
  margin: 4px 0 18px;
  text-align: center;
}
html[data-theme] #app.mn2-concept .mn2-focus-clock .focus-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: none;
  gap: 5px;
}
html[data-theme] .mn2-focus-clock [data-focus-time] {
  color: var(--mn2-action);
  font-size: clamp(36px, 10vw, 46px);
  line-height: 1.1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
html[data-theme] .mn2-focus-clock [data-focus-label] {
  color: var(--mn2-muted);
  font-size: 13px;
  line-height: 1.5;
}
html[data-theme] #voice-root .btn:is(.success, .primary),
html[data-theme] #onboarding-root .btn:is(.success, .primary),
html[data-theme] #feedback-root :is(.feedback-moment-choice.primary, .feedback-moment-action) {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
html[data-theme] #voice-root :is(input, select, textarea) {
  color: var(--mn2-ink) !important;
  accent-color: var(--mn2-action);
}
html[data-theme] #voice-root :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--mn2-action) !important;
  outline-offset: 3px;
}
html[data-theme]
  #onboarding-root
  :is(
    .onboarding-route-card,
    .onboarding-example,
    .onboarding-story-note,
    .onboarding-legal-note,
    .onboarding-access-list,
    .onboarding-rhythm-card,
    .onboarding-legal-grid article
  ) {
  border: 0 !important;
  border-radius: 22px !important;
}
html[data-theme] #onboarding-root .onboarding-route-card.recommended {
  background: var(--mn2-soft) !important;
}
html[data-theme] #onboarding-root .onboarding-stage h1 {
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
/* The introduction and consent use the same quiet controls as the app. */
html[data-theme] #onboarding-root .onboarding-shell-choice .onboarding-visual {
  max-height: 140px !important;
  margin-bottom: 6px !important;
}
html[data-theme]
  #onboarding-root
  :is(
    .onboarding-consent,
    .onboarding-rhythm-card,
    .onboarding-legal-grid article,
    .onboarding-legal-note
  ) {
  background: var(--mn2-surface) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #onboarding-root :is(.onboarding-consent, .onboarding-rhythm-card) {
  padding: 16px !important;
  border-radius: 22px !important;
  gap: 12px !important;
}
html[data-theme] #onboarding-root .onboarding-consent {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: start;
  position: relative;
}
html[data-theme] #onboarding-root .onboarding-consent-copy::after {
  content: none !important;
  display: none !important;
}
html[data-theme] #onboarding-root .onboarding-consent-control {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--mn2-line) !important;
  background: var(--mn2-base) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
html[data-theme] #onboarding-root .onboarding-consent input:checked + .onboarding-consent-control {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
  border-color: transparent !important;
}
html[data-theme] #onboarding-root .onboarding-legal-note .link-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0 !important;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  border-radius: 14px;
  box-shadow: none !important;
  font-size: 13px !important;
  text-decoration: none;
}
html[data-theme] #onboarding-root .onboarding-rule-mark {
  width: 3px !important;
  border-radius: 4px;
  background: var(--mn2-action) !important;
}
html[data-theme] #onboarding-root .onboarding-rhythm-card {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}
html[data-theme] #onboarding-root .rhythm-toggle {
  width: 48px;
  height: 44px;
  min-width: 48px;
}
html[data-theme] #onboarding-root .rhythm-check {
  position: relative;
  display: block;
  width: 46px !important;
  height: 28px !important;
  margin: 8px 0;
  border: 0 !important;
  border-radius: 99px !important;
  background: var(--mn2-soft) !important;
  box-shadow: none !important;
}
html[data-theme] #onboarding-root .rhythm-check svg {
  display: none;
}
html[data-theme] #onboarding-root .rhythm-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mn2-ink);
}
html[data-theme] #onboarding-root .rhythm-toggle input:checked + .rhythm-check {
  background: var(--mn2-action) !important;
}
html[data-theme] #onboarding-root .rhythm-toggle input:checked + .rhythm-check::after {
  left: 22px;
  background: var(--mn2-on-action);
}
html[data-theme] #onboarding-root .time-pill {
  min-height: 44px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--mn2-base) !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
}
html[data-theme] #onboarding-root :is(.onboarding-back-top, .onboarding-close) {
  color: var(--mn2-ink) !important;
}
html[data-theme] #modal-root .tour-choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
html[data-theme] #modal-root .tour-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: var(--mn2-base);
  color: var(--mn2-ink);
  text-align: left;
  font: inherit;
}
html[data-theme] #modal-root .tour-choice strong {
  display: block;
  font-size: 16px;
}
html[data-theme] #modal-root .tour-choice small {
  display: block;
  color: var(--mn2-muted);
  margin-top: 6px;
}
html[data-theme] #modal-root .tour-choice-intro {
  color: var(--mn2-muted);
  line-height: 1.5;
}
html[data-theme] #modal-root .tour-choice .mn2-pill {
  flex-shrink: 0;
  font-size: 12px;
}
html[data-theme] #modal-root .product-guide :is(header, aside, .product-guide-card) {
  background: var(--mn2-base) !important;
  border: 0 !important;
  border-radius: 18px;
  box-shadow: none !important;
  padding: 14px;
  color: var(--mn2-ink);
}
#modal-root .product-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 12px 0;
}
#modal-root .product-guide-card > span {
  color: var(--mn2-action);
}
html[data-theme] #feedback-root .feedback-moment-glow {
  display: none;
}
html[data-theme] #feedback-root .feedback-moment-card {
  background: var(--mn2-surface) !important;
  border: 0 !important;
  border-radius: 30px !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #feedback-root .feedback-moment-card :is(h2, p, small) {
  color: var(--mn2-ink) !important;
}

.mn2-finance-net {
  display: grid;
  gap: 4px;
  text-align: center;
  margin: 18px 0 22px;
}
.mn2-finance-net > strong {
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mn2-finance-net > small {
  color: var(--mn2-muted);
  font-size: 12px;
}
.mn2-finance-chart {
  margin: 0;
  min-width: 0;
}
.mn2-finance-chart > figcaption {
  display: grid;
  gap: 10px;
  color: var(--mn2-muted);
  font-size: 11px;
}
.mn2-finance-legend {
  display: flex;
  gap: 16px;
}
.mn2-finance-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mn2-finance-legend > span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mn2-action);
}
.mn2-finance-legend > .income::before {
  background: var(--mn2-soft);
  border: 1px solid var(--mn2-action);
}
.mn2-finance-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 16px 0 10px;
}
.mn2-finance-chart text {
  font:
    10px Onest,
    sans-serif;
  fill: var(--mn2-muted);
}
.mn2-finance-tick line {
  stroke: var(--mn2-line);
  stroke-dasharray: 3 4;
}
.mn2-finance-bar.expense {
  fill: var(--mn2-action);
}
.mn2-finance-bar.income {
  fill: var(--mn2-soft);
  stroke: var(--mn2-action);
  stroke-width: 1;
}
.mn2-finance-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mn2-finance-totals .mn2-mini {
  background: transparent;
  padding: 10px 0;
  min-width: 0;
}
.mn2-finance-totals .mn2-mini strong {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.mn2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #voice-root :is(.voice-panel, .voice-scrim) {
    transition: none !important;
    animation: none !important;
  }
}

/* Rare native states share the same material. Keep state classes, fields,
   consent, semantic warnings and provider logos; remove only legacy chrome. */
html[data-theme]
  :is(#app, #modal-root, #voice-root, #feedback-root)
  :is(p, span, small, label, legend, summary, time, li, a, td, th) {
  font-family: Onest, 'Segoe UI', sans-serif !important;
}
html[data-theme]
  #modal-root
  .modal-body
  :is(
    article,
    section,
    aside,
    .form-context,
    .mn-empty-note,
    .mn-measurement-primary,
    .mn-measurement-more,
    .payment-unavailable,
    .payment-promo-applied
  ) {
  background: var(--mn2-base) !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 18px;
  color: var(--mn2-ink) !important;
}
html[data-theme] #modal-root .modal-body :is(h3, strong, b, .preview-item-copy > span) {
  color: var(--mn2-ink) !important;
}
html[data-theme] #modal-root .modal-body :is(h2, h3) {
  font-weight: 500 !important;
  letter-spacing: normal !important;
}
html[data-theme] #modal-root .modal-body :is(.mn-entry-flag, .day-close-ribbon) {
  display: none !important;
}
html[data-theme] #modal-root :is(.field-grid, fieldset) {
  min-width: 0;
}
html[data-theme] #modal-root .modal-body .mn-toggle > span,
html[data-theme] #modal-root .modal-body .mn-toggle > span::before {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme] #modal-root .modal-body .mn-toggle input:checked + span {
  background: var(--mn2-action) !important;
}
html[data-theme] #modal-root .modal-body .mn-toggle > span::before {
  background: var(--mn2-ink) !important;
}
html[data-theme] #modal-root .modal-body :is(input[type='checkbox'], input[type='radio']) {
  accent-color: var(--mn2-action);
  box-shadow: none !important;
}
html[data-theme] #modal-root .modal-body .payment-method {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  border-radius: 16px;
  min-height: 44px;
}
html[data-theme] #modal-root .mn-review-rating-picker button.selected {
  color: var(--mn2-action) !important;
}
html[data-theme] #modal-root .payment-feature-list > span {
  background: transparent !important;
  border: 0 !important;
}
html[data-theme] #modal-root .payment-feature-list svg {
  color: var(--mn2-action) !important;
}
html[data-theme]
  #voice-root
  :is(
    .voice-error-card,
    .voice-warning,
    .smart-duplicate-warning,
    .camera-batch-results > article,
    .camera-gallery-fallback
  ) {
  background: var(--mn2-base) !important;
  border: 0 !important;
  border-radius: 18px;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #voice-root :is(.field, .camera-batch-date) > span {
  color: var(--mn2-muted) !important;
  font-size: 12px;
}
html[data-theme]
  #voice-root
  :is(
    textarea,
    select,
    input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden'])
  ) {
  background: var(--mn2-base) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  border-radius: 14px;
  min-height: 44px;
  padding: 12px;
  box-shadow: none !important;
  color-scheme: dark;
}
html[data-theme='light'] #voice-root :is(textarea, select, input) {
  color-scheme: light;
}
html[data-theme] #voice-root .voice-result-head > .icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
}
html[data-theme] #voice-root .voice-result-head:has(> .icon-button) h2 {
  padding-inline: 40px;
}
html[data-theme] #voice-root .camera-batch-results button {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  color: var(--mn2-ink) !important;
  border-radius: 14px;
  min-height: 44px;
}
html[data-theme] #feedback-root .welcome-promo-code {
  background: var(--mn2-base) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme] #feedback-root .mn-beta-stars button.selected {
  color: var(--mn2-action) !important;
}

/* Rating controls are large glyphs, not five miniature cards. */
html[data-theme] #modal-root .mn-review-rating-picker,
html[data-theme] #feedback-root .mn-beta-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 4px;
  width: min(100%, 300px);
  margin-inline: auto;
}
html[data-theme] #modal-root.mn2-concept .modal-sheet.mn2-sheet .mn-review-rating-picker > button,
html[data-theme] #feedback-root .beta-review .mn-beta-stars > button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: var(--mn2-ink) !important;
  font-family: Onest, 'Segoe UI', sans-serif !important;
  font-size: 40px !important;
  line-height: 1 !important;
}
html[data-theme] #feedback-root .beta-review .mn-beta-stars > button {
  font-size: 48px !important;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  .mn-review-rating-picker
  > button.selected,
html[data-theme] #feedback-root .beta-review .mn-beta-stars > button.selected {
  color: var(--mn2-action) !important;
}
html[data-theme] #modal-root .mn-review-rating-picker > button:focus-visible,
html[data-theme] #feedback-root .mn-beta-stars > button:focus-visible {
  outline: none !important;
  text-decoration: underline;
  text-decoration-color: var(--mn2-action);
  text-underline-offset: 6px;
}
html[data-theme] #feedback-root .beta-review .mn-beta-rating-label {
  color: var(--mn2-muted) !important;
}

/* The removed decorative flag must not leave a 30px text column behind. */
html[data-theme] #modal-root .meal-capture-form .mn-sport-form-cover {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
  align-items: start;
}
html[data-theme] #modal-root .meal-capture-form .mn-sport-form-cover > div {
  grid-column: 1;
  min-width: 0;
}
html[data-theme] #modal-root .meal-capture-form .mn-sport-form-cover .status-badge {
  grid-column: 1 !important;
  justify-self: start;
  width: fit-content !important;
  max-width: 100%;
  white-space: normal;
}
html[data-theme] #modal-root .mn-review-form .mn-review-name {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
html[data-theme] #modal-root .mn-review-form .mn-review-name > input[type='checkbox'] {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0;
  padding: 0 !important;
}
html[data-theme] #modal-root .mn-review-form .mn-review-name > span {
  flex: 1;
  min-width: 0;
}
html[data-theme] #app :is(.channel-gate-card, .miniapp-banner) {
  background: var(--mn2-surface) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 26px;
}
#app .channel-gate-card h1 {
  font-size: 26px;
  line-height: 1.25;
}
#app .channel-gate-list button {
  background: var(--mn2-base) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  border-radius: 16px;
  min-height: 44px;
}
#app .channel-gate-card .btn {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 16px;
}
#app .miniapp-banner-close {
  background: var(--mn2-soft) !important;
  border: 0 !important;
}
#app .miniapp-banner-link {
  color: var(--mn2-action) !important;
}
#app .mn2-habit-page :is(.habit-card, .habit-empty) {
  background: var(--mn2-surface) !important;
  border: 0;
  border-radius: 22px;
}
#app .mn2-habit-page {
  --text: var(--mn2-ink);
  --text-muted: var(--mn2-muted);
  --border: var(--mn2-line);
  color: var(--mn2-ink);
}
#app .mn2-habit-page h1 {
  font-size: 23px;
}
#app .mn2-habit-page :is(.btn, .habit-edit) {
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 14px;
}
#app .mn2-habit-page .btn:is(.primary, [aria-pressed='true']) {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
#app .mn2-habit-page input {
  background: var(--mn2-surface);
  border: 0;
}
#app .mn2-habit-page .achievement-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
}
#app .mn2-habit-page svg {
  width: 20px;
  height: 20px;
}
#app .mn2-habit-page {
  --text: var(--mn2-ink);
  --text-muted: var(--mn2-muted);
  --border: color-mix(in srgb, var(--mn2-ink) 16%, transparent);
  --accent: var(--mn2-action);
  gap: 18px;
}
#app .mn2-habit-page .habit-overview .mn2-joined-upper {
  padding: 22px 20px 38px;
  min-height: 150px;
}
#app .mn2-habit-page .habit-overview {
  padding: 0;
  overflow: hidden;
}
#app .mn2-habit-page .habit-overview .mn2-connected-content p {
  color: var(--mn2-ink) !important;
  margin: 0 0 12px;
}
#app .mn2-habit-page .mn2-page-heading .mn2-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 14px;
}
#app .mn2-habit-page .habit-overview .mn2-joined-upper :is(h2, p) {
  color: var(--mn2-on-action) !important;
  margin: 10px 0 0;
}
#app .mn2-habit-page .habit-overview h2 {
  font-size: 22px;
  line-height: 1.25;
}
#app .mn2-habit-page .habit-overview p {
  font-size: 14px;
  line-height: 1.5;
}
#app .mn2-habit-page .habit-card {
  padding: 20px;
}
#app .mn2-habit-page .habit-list {
  gap: 12px;
}
#app .mn2-habit-page .habit-area {
  display: block;
  font-size: 12px;
  color: var(--mn2-muted);
  margin-bottom: 8px;
}
#app .mn2-habit-page .habit-row-head h2 {
  font-size: 18px;
}
#app .mn2-habit-page .habit-note {
  color: var(--mn2-ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
#app .mn2-habit-page .habit-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
#app .mn2-habit-page .habit-paused {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: var(--mn2-surface);
}
#app .mn2-habit-page .habit-paused > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#app .mn2-habit-page .habit-paused h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
#app .mn2-habit-page .habit-paused > p {
  color: var(--mn2-muted);
  font-size: 12px;
  margin: 10px 0 14px;
}
#app .mn2-habit-page .habit-paused .habit-card {
  background: var(--mn2-base) !important;
  padding: 12px;
}
html[data-theme] #app .mn2-habit-page .habit-catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}
html[data-theme] #app .mn2-habit-page .habit-tabs {
  margin: 0;
}
html[data-theme] #app .mn2-habit-page > .habit-list:empty {
  display: none;
}
html[data-theme] #app .mn2-habit-page .habit-paused {
  margin-top: 0;
  padding: 14px;
}
html[data-theme] #app .mn2-habit-page .habit-overview {
  margin-bottom: 0;
}
#app .mn2-habit-page .habit-catalog-open {
  padding: 0;
}
#app .mn2-habit-page .habit-catalog-open > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
#app .mn2-habit-page .habit-resume {
  grid-column: 1/-1;
  justify-self: end;
}
#app .mn2-habit-page .habit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--mn2-soft);
  color: var(--mn2-ink);
  border: 0;
  border-radius: 14px;
  text-decoration: none;
}
#app .mn2-habit-page .habit-actions {
  gap: 10px;
  margin-bottom: 12px;
}
html[data-theme] #modal-root .plan-suggestion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 0;
  border-radius: 14px;
  background: var(--mn2-base);
  color: var(--mn2-ink);
  font: inherit;
}
html[data-theme] #modal-root .plan-suggestion-row .plan-suggestion-copy {
  flex: 1;
  min-width: 0;
}
html[data-theme] #modal-root .plan-suggestion-row strong {
  display: block;
  overflow-wrap: anywhere;
}
html[data-theme] #modal-root .plan-suggestion-copy {
  text-align: left;
}
html[data-theme] #modal-root .plan-suggestion-day {
  min-width: 0;
}
html[data-theme] #modal-root .plan-suggestion-day > header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
html[data-theme] #modal-root .plan-suggestion-row .plan-suggestion-time {
  flex: 0 0 74px;
  min-width: 0;
  white-space: normal;
}
html[data-theme] #modal-root .plan-suggestion-row small {
  display: block;
  color: var(--mn2-muted);
  margin-top: 4px;
}
html[data-theme] #modal-root .plan-suggestion-list {
  display: grid;
  gap: 8px;
}
#app .mn2-habit-page .habit-tabs button {
  font-size: 12px;
  min-height: 44px;
  padding: 8px 4px;
  min-width: 0;
}
/* Tracking has its own measurable progress, not another agenda surface. */
#modal-root .habit-editor [hidden] {
  display: none !important;
}
#app .mn2-habit-page .habit-day.partial {
  border-color: var(--mn2-action);
  color: var(--mn2-action);
}
#app .mn2-habit-page .habit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
#app .mn2-habit-page .habit-metrics strong {
  display: block;
  font-size: 22px;
  color: var(--mn2-ink);
}
#app .mn2-habit-page .habit-metrics span {
  display: block;
  font-size: 11px;
  color: var(--mn2-muted);
}
#app .mn2-habit-page :is(.habit-stage, .habit-value) {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
#app .mn2-habit-page .habit-stage span {
  color: var(--mn2-muted);
  font-size: 12px;
}
#app .mn2-habit-page progress {
  appearance: none;
  display: block;
  border: 0;
  width: 100%;
  height: 6px;
  border-radius: 8px;
  background: var(--mn2-base);
  overflow: hidden;
}
#app .mn2-habit-page progress::-webkit-progress-bar {
  background: var(--mn2-base);
}
#app .mn2-habit-page progress::-webkit-progress-value {
  background: var(--mn2-action);
  border-radius: 8px;
}
#app .mn2-habit-page progress::-moz-progress-bar {
  background: var(--mn2-action);
  border-radius: 8px;
}
#app .mn2-habit-page .habit-cue {
  color: var(--mn2-muted);
  font-size: 12px;
  margin: 10px 0;
}
#app .mn2-habit-page .habit-rewards {
  display: grid;
  gap: 14px;
}
#app .mn2-habit-page .habit-rewards h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
#app .mn2-habit-page .habit-rewards p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mn2-ink);
  margin: 12px 0;
}
#app .mn2-habit-page .habit-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
#app .mn2-habit-page .habit-badge {
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: var(--mn2-base);
  color: var(--mn2-muted);
}
#app .mn2-habit-page .habit-badge strong {
  font-size: 22px;
}
#app .mn2-habit-page .habit-badge small {
  font-size: 11px;
}
#app .mn2-habit-page .habit-badge.earned {
  background: var(--mn2-action);
  color: var(--mn2-on-action);
}
#modal-root .habit-reward-moment {
  text-align: center;
  padding: 12px 0;
}
#modal-root .habit-reward-moment > strong {
  display: block;
  font-size: 38px;
  color: var(--mn2-ink);
}
#app .mn2-habit-page .habit-toolbar {
  flex-wrap: nowrap;
  gap: 8px;
}
#app .mn2-habit-page .habit-toolbar label {
  min-width: 0;
}
#app .mn2-habit-page .habit-toolbar input {
  min-height: 48px;
  background: var(--mn2-surface);
  border-radius: 14px;
}
#app .mn2-habit-page .habit-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
#app .mn2-habit-page .habit-day {
  min-height: 44px;
  font-size: 12px;
}
#app .mn2-habit-page .habit-day.done {
  color: var(--mn2-on-action);
}
#app .mn2-habit-page .habit-config-meta {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--mn2-muted);
}
#app .mn2-habit-page .habit-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#app .mn2-habit-page .habit-empty .btn {
  margin-top: 16px;
  width: 100%;
}
#app .mn2-habit-page .habit-legend {
  font-size: 12px;
  margin-top: 12px;
}
#modal-root .habit-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mn2-base);
}
#modal-root .habit-setting:has(input:checked),
#modal-root .mn2-widget-option:has(input:checked) {
  background: var(--mn2-soft);
}
/* Real native checkbox semantics stay intact; switch/day-chip controls keep
   their existing separate presentation. */
html[data-theme]
  :is(#app, #modal-root, #onboarding-root)
  input[type='checkbox']:not(.mn-toggle input):not(.habit-weekdays input):not(
    .mn2-profile-native-switch input
  ):not([role='switch']) {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid;
  place-items: center;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px;
  padding: 0 !important;
  border: 1.5px solid var(--mn2-muted) !important;
  border-radius: 50% !important;
  background: var(--mn2-base) !important;
  cursor: pointer;
}
html[data-theme]
  :is(#app, #modal-root, #onboarding-root)
  input[type='checkbox']:not(.mn-toggle input):not(.habit-weekdays input):not(
    .mn2-profile-native-switch input
  ):not([role='switch']):checked {
  background: var(--mn2-action) !important;
  border-color: var(--mn2-action) !important;
}
html[data-theme]
  :is(#app, #modal-root, #onboarding-root)
  input[type='checkbox']:not(.mn-toggle input):not(.habit-weekdays input):not(
    .mn2-profile-native-switch input
  ):not([role='switch']):checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--mn2-on-action);
  border-bottom: 2px solid var(--mn2-on-action);
  transform: translateY(-1px) rotate(-45deg);
}
html[data-theme] :is(#app, #modal-root, #onboarding-root) input[type='checkbox']:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 3px;
}
#modal-root .habit-setting input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--mn2-action);
}
#modal-root .habit-setting span {
  display: grid;
  gap: 4px;
}
#modal-root .habit-setting small {
  color: var(--mn2-muted);
  font-size: 12px;
}
#modal-root .habit-setting strong {
  font-size: 14px;
}
html[data-theme] #modal-root .modal-body .habit-weekdays label {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
}
html[data-theme] #modal-root .modal-body .habit-weekdays input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0;
  opacity: 0;
  clip-path: inset(50%);
}
html[data-theme] #modal-root .modal-body .habit-weekdays input + span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
html[data-theme] #modal-root .modal-body .habit-weekdays input:focus-visible + span {
  outline: 2px solid var(--mn2-ink);
  outline-offset: 2px;
}
@media (max-width: 360px) {
  #app .mn2-habit-page .habit-card {
    padding: 16px 12px;
  }
}
@media (max-width: 360px) {
  #modal-root .modal-body :is(.field-grid.two, .payment-offer-main) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html[data-theme] body {
  background: var(--mn2-base) !important;
}
#app .splash-card {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Nested legacy controls keep their semantics, not their old green/glass skin. */
html[data-theme] :is(#app, #modal-root, #voice-root, #onboarding-root, #feedback-root) {
  --green: var(--mn2-action);
}
html[data-theme]
  #modal-root
  .modal-body
  :is(
    .routine-week-day,
    .mn-setting-row,
    .mn-sport-form-cover,
    .meal-free-hint,
    .channel-gate-list,
    .task-notify-toggle,
    .check-line
  ) {
  background: var(--mn2-base) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
  min-width: 0;
}
html[data-theme]
  #modal-root
  .modal-body
  :is(.routine-weekdays, .routine-days, .habit-weekdays)
  input
  + span {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme]
  #modal-root
  .modal-body
  :is(.routine-weekdays, .routine-days, .habit-weekdays)
  input:checked
  + span {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
html[data-theme] #modal-root .modal-body :is(.task-notify-box, .rhythm-check, .status-badge) {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme] #modal-root .modal-body input:checked + .task-notify-box {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
}
html[data-theme] :is(#app, #modal-root) :is(.channel-gate-mark, .mn-empty-flag) {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
  box-shadow: none !important;
}
html[data-theme] #app .channel-gate-list {
  background: var(--mn2-base) !important;
  border: 0 !important;
}
html[data-theme] #modal-root .routine-settings-head {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}
html[data-theme] #modal-root .routine-settings-head > div {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme] #modal-root .routine-settings-head :is(strong, small) {
  display: block;
  width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html[data-theme] #modal-root .routine-settings-head {
  width: 100%;
  padding-right: 6px;
  box-sizing: border-box;
}
html[data-theme] #app .mn2-habit-page :is(h1, h2) {
  font-family: Onest, 'Segoe UI', sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  line-height: 1.35 !important;
}
html[data-theme] #modal-root .modal-body .routine-settings {
  background: none !important;
  padding: 0 !important;
}
html[data-theme]
  #modal-root
  .modal-body
  :is(.task-priority-grid, .category-choice-grid, .sport-day-picker, .sport-activity-picker)
  input
  + span {
  background: var(--mn2-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mn2-ink) !important;
}
html[data-theme]
  #modal-root
  .modal-body
  :is(.task-priority-grid, .category-choice-grid, .sport-day-picker, .sport-activity-picker)
  input:checked
  + span,
html[data-theme] #modal-root .modal-body .choice-row.active {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme] #modal-root .modal-body .companion-code {
  background: var(--mn2-base) !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 18px;
}
html[data-theme] #feedback-root .feedback-moment-art {
  background: var(--mn2-soft) !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* The footer owns centering. Legacy modal rules must never translate its nav. */
html[data-theme] #app #bottom-navigation.mn2-nav {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
  background: var(--mn2-surface) !important;
  border: 1px solid color-mix(in srgb, var(--mn2-ink) 24%, transparent) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}
/* Floating surfaces keep their approved fill; only the outer edge is added. */
html[data-theme] #toast-region .toast.mn2-toast,
html[data-theme] #modal-root.mn2-concept > .modal-backdrop .modal-sheet.mn2-sheet,
html[data-theme] #voice-root .voice-panel,
html[data-theme] #feedback-root .feedback-moment-card {
  border: 1px solid color-mix(in srgb, var(--mn2-ink) 24%, transparent) !important;
}
#app .mn2-input-dock {
  animation: none !important;
  transition: none !important;
}
body:is(.modal-open, .feedback-open) #app #bottom-navigation,
body:has(#voice-root.active) #app #bottom-navigation,
body:is(.modal-open, .feedback-open) #app #bottom-navigation button,
body:has(#voice-root.active) #app #bottom-navigation button {
  pointer-events: none !important;
}

/* Rare feedback is an ordinary padded dialog, not a legacy full-screen poster. */
html[data-theme] #feedback-root .feedback-moment {
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
}
html[data-theme] #feedback-root .feedback-moment-card {
  width: min(100%, 420px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 24px 20px 20px;
  box-sizing: border-box;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
html[data-theme] #feedback-root .feedback-moment-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--mn2-muted);
}
html[data-theme] #feedback-root .feedback-moment-art {
  width: 64px;
  height: 64px;
  margin: 0;
}
html[data-theme] #feedback-root .feedback-moment-art svg {
  width: 48px;
  height: 48px;
}
html[data-theme] #feedback-root .beta-review .feedback-moment-art {
  width: 100%;
  height: auto;
  padding: 8px 0;
  border-radius: 0;
  background: none !important;
}
html[data-theme] #feedback-root .feedback-moment-card h2 {
  margin: 0;
  max-width: 100%;
  font-size: 26px !important;
  font-weight: 500 !important;
  line-height: 1.2;
}
html[data-theme] #feedback-root .feedback-moment-card p {
  margin: 0;
  max-width: 100%;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.5;
}
html[data-theme] #feedback-root .feedback-moment-card small {
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mn2-muted) !important;
}
html[data-theme] .mn2-set-exercise {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
}
html[data-theme] :is(.mn2-set-row, .mn2-set-labels) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
html[data-theme] .mn2-set-labels {
  font-size: 12px;
  color: var(--mn2-muted);
}
html[data-theme] .mn2-set-row input {
  min-width: 0;
  width: 100%;
}
html[data-theme] .mn2-set-row input[type='checkbox'] {
  width: 24px;
  height: 24px;
  justify-self: center;
  accent-color: var(--mn2-action);
}
html[data-theme] .mn2-strength-stat {
  margin: 16px 0;
}
html[data-theme] .mn2-strength-stat h3 {
  color: var(--mn2-ink);
  font-size: 16px;
  font-weight: 500;
}
html[data-theme] #feedback-root .feedback-moment-actions {
  width: 100%;
  margin: 6px 0 0;
  gap: 10px;
}

html[data-theme] #modal-root .mn2-routine-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html[data-theme] #modal-root .mn2-routine-presets .btn {
  min-width: 0;
  min-height: 44px;
  margin: 0;
}
html[data-theme]
  #modal-root.mn2-concept
  .modal-sheet.mn2-sheet
  .mn2-routine-presets
  .btn[aria-pressed='true'] {
  background: var(--mn2-action) !important;
  color: var(--mn2-on-action, #201412) !important;
}
html[data-theme] #modal-root .mn2-routine-reservation {
  margin: 0;
  color: var(--mn2-muted);
  font-size: 13px;
  line-height: 1.5;
}
html[data-theme] #modal-root [data-routine-recurring] {
  display: grid;
  gap: 12px;
}
html[data-theme] #modal-root [data-routine-recurring][hidden] {
  display: none !important;
}
html[data-theme] #feedback-root :is(.feedback-moment-choice, .feedback-moment-action) {
  width: 100%;
  padding: 12px 14px;
  font-weight: 500 !important;
}
/* Quiet, arrow-based disclosure rows. Only major sections own a surface. */
#app.mn2-concept[data-layout='hybrid'] .mn2-body > .mn2-disclosure {
  background: transparent;
  border-radius: 0;
  padding: 0 6px;
  margin: 8px 0;
}
#app.mn2-concept[data-layout='hybrid'] .mn2-body > .mn2-disclosure::before,
:is(#app.mn2-concept, #modal-root) .mn2-disclosure > summary::after {
  content: none;
}
#app.mn2-concept[data-layout='hybrid'] .mn2-body > .mn2-disclosure > summary {
  padding-top: 0;
  min-height: 48px;
}
:is(#app.mn2-concept, #modal-root) .mn2-fold-chevron {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--mn2-muted);
}
:is(#app.mn2-concept, #modal-root) .mn2-disclosure[open] > summary > .mn2-fold-chevron {
  transform: rotate(90deg);
}
#app.mn2-concept .mn2-nutrition-indicators {
  display: grid;
  gap: 0;
}
#app.mn2-concept .mn2-indicator-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mn2-line);
}
#app.mn2-concept .mn2-indicator-line:first-child {
  padding-top: 0;
}
#app.mn2-concept .mn2-indicator-line:last-child {
  border: 0;
}
#app.mn2-concept .mn2-indicator-line small {
  display: block;
  margin-top: 4px;
  color: var(--mn2-muted);
  font-size: 12px;
  line-height: 1.4;
}
#app.mn2-concept .mn2-indicator-line strong {
  font-size: 16px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
#app.mn2-concept .mn2-meal-period-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex: 0 0 28px;
  color: var(--mn2-action);
  background: none;
}
#app.mn2-concept .mn2-nutrition-goal strong {
  font-size: 19px;
  font-weight: 600;
}
#app.mn2-concept .mn2-target-facts {
  margin: 14px 0;
}
#app.mn2-concept .mn2-section-body:has(> .mn2-nutrition-goal) > p {
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.55;
  margin-top: 14px;
}
#app.mn2-concept .mn2-section-body:has(> .mn2-nutrition-goal) > .mn2-button {
  margin-top: 16px;
}
#app.mn2-concept .mn2-strength-stat + .mn2-strength-stat {
  border-top: 1px solid var(--mn2-line);
  margin-top: 18px;
  padding-top: 18px;
}
#app.mn2-concept .mn2-strength-stat h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
#app.mn2-concept .mn2-strength-stat > strong {
  font-size: 22px;
  font-weight: 500;
}
@media (max-width: 340px) {
  #app.mn2-concept .mn2-indicator-line {
    gap: 8px;
  }
  #app.mn2-concept .mn2-indicator-line strong {
    font-size: 14px;
  }
}
#app.mn2-concept #screen .mn2-skip-nutrition {
  margin-block: 18px !important;
}
#app.mn2-concept .mn2-stat-category + .mn2-stat-category {
  margin-top: 12px;
}
#app.mn2-concept .mn2-stat-category {
  background: var(--mn2-base);
  border-radius: 20px;
  padding: 16px;
}
#app.mn2-concept .mn2-plan-footer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
#app.mn2-concept .mn2-plan-footer > :is(.mn2-actions, .mn2-button) {
  margin: 0 !important;
}
#app.mn2-concept .mn2-memory-ledger {
  display: grid;
  gap: 10px;
}
#app.mn2-concept .mn2-memory-ledger .mn2-memory-row {
  background: var(--mn2-base);
  border: 0;
  border-radius: 18px;
  padding: 16px;
}
html[data-theme] #app.mn2-concept .mn2-meal-journal .mn-meal-entry {
  background: var(--mn2-base) !important;
  border-radius: 18px;
  padding: 14px;
  margin-block: 10px;
}
#app.mn2-concept .mn2-wellbeing-day {
  background: var(--mn2-base);
  border-radius: 18px;
  padding: 14px;
}
#app.mn2-concept .mn2-wellbeing-day > .mn2-button {
  margin-top: 12px;
}
#app.mn2-concept .mn2-stat-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
#app.mn2-concept .mn2-period-caption {
  margin: 12px 6px 18px;
  font-size: 12px;
  color: var(--mn2-muted);
}
#app.mn2-concept .mn2-periods:has(> button:nth-child(6)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#app.mn2-concept .mn2-important {
  font-weight: 600 !important;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--mn2-action) 50%, transparent);
  text-underline-offset: 4px;
}
#app.mn2-concept .mn2-training-ledger + .mn2-training-ledger {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--mn2-line);
}
#app.mn2-concept .mn2-training-ledger h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
#app .mn2-home-day-state {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

#app .mn2-home-next > .mn2-button.full {
  margin-top: 12px;
}

#app .mn2-task-discovery {
  display: grid;
  gap: 9px;
  min-width: 0;
}
#app .mn2-task-discovery > strong {
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#app .mn2-task-discovery .mn2-caption {
  margin: 0;
}
#app .mn2-task-discovery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#app .mn2-task-discovery-actions > .mn2-button {
  min-width: 0;
  white-space: normal;
}
#app .mn2-task-discovery-actions > .mn2-button:first-child {
  grid-column: 1 / -1;
}
#app .mn2-task-discovery-actions > .mn2-button:last-child:nth-child(4) {
  grid-column: 1 / -1;
}
#app .mn2-task-discovery-actions > .mn2-button:last-child:nth-child(6) {
  grid-column: 1 / -1;
}
#app .mn2-task-discovery-entry {
  margin-top: 8px;
  border-top: 1px solid var(--mn2-line);
  padding-top: 6px;
}
#app .mn2-task-discovery-entry > .mn2-button {
  max-width: 100%;
  white-space: normal;
}
#app .mn2-list-row + .mn2-task-discovery {
  margin-top: 10px;
  border-top: 1px solid var(--mn2-line);
  padding-top: 14px;
}

#app .mn2-current-panel {
  padding-top: 20px;
}
#app .mn2-current-step {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
#app .mn2-current-step small {
  color: var(--mn2-muted);
  font-size: 12px;
}
#app .mn2-current-step strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#app .mn2-current-tools {
  padding-top: 12px;
  border-top: 1px solid var(--mn2-line);
}
#app .mn2-current-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#app .mn2-current-actions > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
#app .mn2-current-tools > .mn2-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#app .mn2-current-tools > .mn2-button .mn2-icon {
  flex: 0 0 20px;
}
#app .mn2-current-tools > .mn2-button > span:last-child {
  min-width: 0;
}
#app .mn2-home-planning {
  margin: 14px 0 22px;
}
#app .mn2-day-summary {
  display: grid;
}
#app.mn2-concept .mn2-summary-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--mn2-ink);
  font: inherit;
}
#app .mn2-summary-fact + .mn2-summary-fact {
  border-top: 1px solid var(--mn2-line);
}
#app .mn2-summary-fact > .mn2-icon {
  flex: 0 0 24px;
  color: var(--mn2-action);
}
#app .mn2-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
#app .mn2-summary-copy strong {
  font-size: 14px;
  font-weight: 500;
}
#app .mn2-summary-copy small {
  font-size: 11px;
  color: var(--mn2-muted);
}
#app .mn2-summary-value {
  flex: 0 1 auto;
  max-width: 48%;
  font-size: 19px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
#app .mn2-summary-fact:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 2px;
  border-radius: 10px;
}
#app .mn2-focus-time-track {
  display: block;
  width: 100%;
  height: 6px;
  background: var(--mn2-line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
}
#app .mn2-focus-time-track > span {
  display: block;
  height: 100%;
  background: var(--mn2-action);
  width: 0;
  border-radius: inherit;
}
#app .mn2-task-day-progress {
  margin-block: 14px;
}
#app .mn2-task-day-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--mn2-muted);
  font-size: 12px;
}
#app .mn2-task-day-progress strong {
  white-space: nowrap;
  color: var(--mn2-ink);
}
#app .mn2-task-part-track {
  height: 8px;
  background: var(--mn2-line);
  border-radius: 20px;
  overflow: hidden;
}
#app .mn2-task-part-track > span {
  display: block;
  height: 100%;
  background: var(--mn2-action);
}
#app .mn2-profile-review-entry {
  padding: 12px 0;
  border-top: 1px solid var(--mn2-line);
}
#app .mn2-profile-review-entry p {
  margin: 8px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#app .mn2-profile-review-entry .mn-review-stars {
  color: var(--mn2-action);
  font-size: 24px;
}
#app .mn2-profile-review-entry small {
  color: var(--mn2-muted);
}
#modal-root .mn2-widget-options {
  display: grid;
  gap: 10px;
}
#modal-root .mn2-widget-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--mn2-base);
  border-radius: 16px;
}
#modal-root .mn2-widget-option > label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
}
#modal-root .mn2-widget-option > label > span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 13px;
}
#modal-root .mn2-widget-option > label .mn2-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
html[data-theme] #modal-root .mn2-widget-option input[type='checkbox'] {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0;
  padding: 0 !important;
}
#modal-root .mn2-widget-option > div {
  display: flex;
  gap: 4px;
}
html[data-theme] #modal-root .modal-sheet.mn2-sheet .mn2-widget-option button {
  min-width: 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: var(--mn2-soft) !important;
  color: var(--mn2-ink) !important;
  border: 0 !important;
  border-radius: 12px;
  padding: 0 !important;
  display: grid;
  place-items: center;
}
#modal-root .mn2-widget-option [data-direction='up'] svg {
  transform: rotate(-90deg);
}
#modal-root .mn2-widget-option [data-direction='down'] svg {
  transform: rotate(90deg);
}
#app .mn2-home-day-state > strong {
  font-size: 18px;
  font-weight: 600;
}
#app .mn2-home-day-state > span {
  font-size: 12px;
  color: var(--mn2-muted);
}
#app .mn2-home-day-state ~ .mn2-button.full {
  margin-top: 14px;
}
#app .mn2-current-state {
  font-weight: 600;
  color: var(--mn2-action);
}
#app .mn2-timeline-time small {
  display: block;
  font-size: 10px;
  color: var(--mn2-muted);
  margin-top: 4px;
}
#app #mn2-home-banner .miniapp-banner {
  background: var(--mn2-surface);
  border-radius: 24px;
  margin: 18px 0;
  color: var(--mn2-ink);
  overflow: hidden;
}
#app #mn2-home-banner .miniapp-banner img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
#app #mn2-home-banner .miniapp-banner-copy {
  padding: 16px;
}

/* Loading and reviews use the current matte materials, not the legacy logo/card bridge. */
#app .mn2-boot {
  gap: 18px;
  color: var(--mn2-muted);
}
#app .mn2-boot-name {
  font:
    500 24px/1.2 Onest,
    sans-serif;
  letter-spacing: 0.06em;
  color: var(--mn2-ink);
}
#app .mn2-boot-motion {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 16px;
}
#app .mn2-boot-motion i {
  width: 18px;
  height: 5px;
  border-radius: 10px;
  background: var(--mn2-action);
  opacity: 0.5;
  animation: mn2-boot-pulse 750ms ease-in-out 2;
}
#app .mn2-boot-motion i:nth-child(2) {
  animation-delay: 100ms;
}
#app .mn2-boot-motion i:nth-child(3) {
  animation-delay: 200ms;
}
#app .mn2-boot p {
  margin: 0;
  font-size: 13px;
}
@keyframes mn2-boot-pulse {
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #app .mn2-boot-motion i {
    animation: none;
  }
}
#app .mn-review-page {
  display: grid;
  gap: 18px;
  padding: 0 0 12px;
  background: none;
  border: 0;
  box-shadow: none;
}
#app .mn-review-page-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}
#app .mn-review-page-head h1 {
  margin: 0;
  text-align: center;
  font-size: 24px;
}
#app .mn-review-page-head .achievement-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--mn2-ink);
  background: var(--mn2-surface);
}
#app .mn-review-page :is(.mn-review-overview, .mn-review-own, .mn-review-list) {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
  background: var(--mn2-surface);
  border-radius: 26px;
  color: var(--mn2-ink);
}
#app .mn-review-page h2 {
  margin: 0;
  font:
    600 18px/1.3 Onest,
    sans-serif;
}
#app .mn-review-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
}
#app .mn-review-summary-value {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
}
#app .mn-review-summary-value > strong {
  font:
    500 48px/1 Onest,
    sans-serif;
}
#app .mn-review-summary-value > small {
  color: var(--mn2-muted);
  font-size: 12px;
}
#app .mn-review-summary-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}
#app .mn-review-summary-info > span:not(.mn-review-stars, .mn-review-unrated) {
  font-size: 14px;
}
#app .mn-review-summary-info > small {
  color: var(--mn2-muted);
  font-size: 11px;
  line-height: 1.5;
}
#app .mn-review-stars {
  position: relative;
  display: inline-block;
  width: max-content;
  font:
    24px/1.1 Arial,
    sans-serif;
  letter-spacing: 2px;
  color: var(--mn2-action);
  white-space: nowrap;
}
#app .mn-review-stars > .mn-review-stars-empty {
  color: var(--mn2-muted);
  opacity: 0.3;
}
#app .mn-review-stars > .mn-review-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  color: var(--mn2-action);
  overflow: hidden;
}
#app .mn-review-unrated {
  font:
    24px/1.1 Arial,
    sans-serif;
  letter-spacing: 2px;
  color: var(--mn2-muted);
}
#app .mn-review-profile-status {
  margin: 12px 0;
  color: var(--mn2-muted);
  font-size: 12px;
}
#app .mn-review-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--mn2-line);
}
#app .mn-review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
#app .mn-review-item-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}
#app .mn-review-item-head time {
  color: var(--mn2-muted);
  flex: 0 0 auto;
  font-size: 11px;
}
#app :is(.mn-review-item, .mn-review-own) p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#app .mn-review-own-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
#app .mn-review-status {
  font-size: 11px;
  padding: 6px 10px;
  background: var(--mn2-base);
  border-radius: 20px;
  color: var(--mn2-muted);
}
#app
  .mn-review-page
  :is(.mn-review-empty, .mn-review-help, .mn-review-own > small, .mn-review-overview > small) {
  margin: 0;
  color: var(--mn2-muted);
  font-size: 12px;
  line-height: 1.6;
}
#app .mn-review-help {
  padding: 0 8px;
  text-align: center;
}
#app .mn-review-help button {
  min-height: 44px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: var(--mn2-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font: inherit;
}
#app .mn-review-page button:focus-visible {
  outline: 2px solid var(--mn2-action);
  outline-offset: 3px;
}
#app .mn-review-rating-layout {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
#app .mn-review-rating-layout > .mn-review-empty:only-child {
  grid-column: 1 / -1;
}
#app .mn-review-rating-layout .mn-review-summary {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
}
#app .mn-review-rating-layout .mn-review-summary-info > small {
  display: none;
}
#app .mn-review-rating-layout :is(.mn-review-stars, .mn-review-unrated) {
  font-size: 20px;
  letter-spacing: 0;
}
#app .mn-review-distribution {
  display: grid;
  gap: 7px;
  min-width: 0;
}
#app .mn-review-bucket {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 19px;
  font-size: 11px;
  color: var(--mn2-muted);
}
#app .mn-review-bucket > span:first-child {
  white-space: nowrap;
}
#app .mn-review-bucket > span:first-child span {
  color: var(--mn2-action);
}
#app .mn-review-bucket strong {
  min-width: 18px;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}
#app .mn-review-bucket-track {
  height: 6px;
  background: var(--mn2-line);
  border-radius: 8px;
  overflow: hidden;
}
#app .mn-review-bucket-track i {
  display: block;
  height: 100%;
  background: var(--mn2-action);
  border-radius: inherit;
}
#app .mn2-profile-reviews .mn-review-rating-layout {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
}
#app .mn2-profile-reviews {
  padding: 20px;
}
#app .mn2-profile-reviews .mn2-section-heading {
  margin-bottom: 12px;
}
#app .mn2-profile-reviews .mn-review-profile-status {
  margin: 10px 0;
}
#app .mn2-profile-reviews .mn2-actions {
  margin: 10px 0 0;
}
#app .mn2-profile-reviews .mn-review-summary-value > strong {
  font-size: 40px;
}
#app .mn2-profile-reviews :is(.mn-review-stars, .mn-review-unrated) {
  font-size: 17px;
}
#app .mn2-profile-reviews .mn2-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font:
    600 18px/1.3 Onest,
    sans-serif;
}
#app .mn2-profile-reviews .mn2-section-heading h2 > .mn2-icon {
  flex: 0 0 20px;
  position: static;
}
#app .mn2-profile-card-heading > .mn2-row-glyph {
  flex: 0 0 24px;
  position: static;
  width: 24px;
  margin: 0;
}
#app .mn2-profile-card-heading > div {
  flex: 1;
  min-width: 0;
}
#app .mn2-profile-card-heading .mn2-row-glyph svg {
  position: static;
  display: block;
  width: 20px;
  height: 20px;
}
#app .mn2-profile-referral {
  display: grid;
  gap: 12px;
}
#app .mn2-profile-referral :is(h2, p) {
  margin: 0;
}
#app .mn2-profile-referral-link {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--mn2-base);
}
#app .mn2-profile-referral-link > span {
  min-width: 0;
  flex: 1;
  line-height: 1.5;
}
#app .mn2-profile-referral .mn2-referral-copy {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
}
#app .mn2-profile-referral .mn2-referral-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
#app .mn2-profile-referral :is(.mn2-referral-copy, .mn2-referral-share) .mn2-icon {
  position: static;
  flex: 0 0 20px;
  display: inline-flex;
  width: 20px;
  height: 20px;
}
#app .mn2-profile-referral .mn2-icon svg {
  position: static;
  display: block;
  width: 20px;
  height: 20px;
}
:is(#app, #modal-root) .mn2-route-progress {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
:is(#app, #modal-root) .mn2-route-progress p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  overflow-wrap: anywhere;
}
:is(#app, #modal-root) .mn2-route-progress p > small {
  display: block;
  margin-bottom: 4px;
}
#modal-root .mn2-route-progress .mn2-task-part-track {
  height: 8px;
  border-radius: 10px;
  background: var(--mn2-line);
  overflow: hidden;
}
#modal-root .mn2-route-progress .mn2-task-part-track > span {
  display: block;
  height: 100%;
  background: var(--mn2-action);
}
#modal-root #route-edit-form .mn2-route-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
#modal-root #route-edit-form .mn2-route-toggle input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
#modal-root .mn2-route-edit-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 10px;
}
#modal-root .mn2-route-edit-row details[open] > summary .mn2-fold-chevron {
  transform: rotate(90deg);
}
#modal-root .mn2-route-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mn2-line);
}
#modal-root .mn2-route-step > div {
  min-width: 0;
}
#modal-root .mn2-route-step :is(strong, small) {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
#modal-root .mn2-route-step small {
  color: var(--mn2-muted);
}
#modal-root .mn2-route-step p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}
#modal-root .mn2-route-step.done strong {
  color: var(--mn2-muted);
  text-decoration: line-through;
}
#modal-root .mn2-route-step .mn2-button {
  margin: 8px 6px 0 0;
  min-height: 44px;
}
#modal-root .mn2-route-check {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--mn2-action);
  font:
    600 18px/1 Onest,
    sans-serif;
}
#modal-root .mn2-route-check:before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--mn2-action);
  border-radius: 50%;
}
#modal-root .mn2-route-check[aria-pressed='true']:before {
  background: var(--mn2-soft);
}
#modal-root .mn2-route-check:focus-visible {
  outline: 2px solid var(--mn2-action);
  border-radius: 50%;
}
#modal-root .mn2-route-edit-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--mn2-line);
}
#modal-root .mn2-route-edit-row details {
  padding: 8px 0;
}
#modal-root .mn2-route-edit-row details .field {
  margin: 10px 0;
}
#modal-root .mn2-route-history-row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mn2-line);
  overflow-wrap: anywhere;
}
.mn2-actions.mn2-route-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
#daily-now .mn2-route-controls .mn2-button,
#modal-root .mn2-route-controls .mn2-button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  margin: 0;
  white-space: normal;
  font-size: 13px;
  line-height: 1.4;
}
.mn2-route-controls > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.mn2-route-clock-note {
  padding: 14px 16px;
}
.mn2-route-clock-note p {
  margin: 0;
  color: var(--mn2-muted);
  font-size: 14px;
}

/* A paused task remains reachable while a fixed commitment owns the main card. */
#app .screen-today .today-return-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 16px 18px 16px 22px;
  gap: 12px;
}
#app .screen-today .today-return-card::before,
#app .screen-today .today-return-card::after {
  display: none;
}
#app .screen-today .today-return-card .today-now-copy strong,
#app .screen-today .today-return-card .today-now-copy span,
#app .screen-today .today-return-card .today-now-copy em {
  overflow-wrap: anywhere;
  white-space: normal;
}
#app .screen-today .today-return-card .today-now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-inner-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.routine-inner-row input,
.routine-inner-row select {
  min-width: 0;
  width: 100%;
}
.routine-inner-editor > p,
.routine-inner-schedule > p {
  font-size: 13px;
  line-height: 1.5;
}
.routine-inner-schedule {
  min-width: 0;
  margin: 18px 0;
}
.routine-inner-schedule ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.routine-inner-schedule li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.routine-inner-schedule li span,
.routine-inner-schedule li small {
  font-size: 12px;
}

.routine-capture-row {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.routine-capture-source {
  min-width: 0;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.routine-capture-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.routine-capture-source-head .btn {
  min-width: 0;
}
.routine-capture-source img {
  display: block;
  width: 100%;
  max-height: 250px;
  margin-top: 8px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg);
}
.routine-capture-source.is-expanded img {
  max-height: none;
}
.routine-capture-photo-warning {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.routine-capture-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.routine-capture-modes .btn {
  min-width: 0;
  white-space: normal;
}
.routine-capture-ack {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: normal;
  margin-top: 12px;
}
.routine-capture-row p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.routine-capture-select {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: normal;
}
.routine-capture-select > span:last-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.routine-capture-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.routine-capture-check svg {
  width: 15px;
  height: 15px;
}
.routine-inner-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.routine-inner-list li {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.routine-change-preview {
  min-width: 0;
}
.routine-change-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.routine-change-row span {
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}
.routine-inner-list li span {
  font-size: 12px;
}
