.fmfr-shell {
  --fmfr-cream: #fff8ef;
  --fmfr-card: #ffffff;
  --fmfr-ink: #3f342b;
  --fmfr-muted: #7a6a5d;
  --fmfr-soft: #f7eadb;
  --fmfr-soft-2: #edf7f1;
  --fmfr-line: rgba(86, 64, 43, .13);
  --fmfr-accent: #c7784d;
  --fmfr-accent-dark: #90512f;
  --fmfr-green: #799b78;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--fmfr-ink);
  font-family: inherit;
}

body.fmfr-embed-mode #wpadminbar,
body.fmfr-embed-mode .site-header,
body.fmfr-embed-mode header,
body.fmfr-embed-mode .main-header-bar,
body.fmfr-embed-mode .entry-title {
  display: none !important;
}

body.fmfr-embed-mode {
  background: #fffaf3;
}

body.fmfr-embed-mode.admin-bar {
  padding-top: 0 !important;
}

body.fmfr-embed-mode .site-content,
body.fmfr-embed-mode .content-area,
body.fmfr-embed-mode .ast-container,
body.fmfr-embed-mode main > article,
body.fmfr-embed-mode .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.fmfr-shell.fmfr-shell-embed {
  max-width: none;
  padding: 18px;
}

.fmfr-shell.fmfr-shell-embed .fmfr-run-hero {
  margin-top: 0;
}
.fmfr-shell * { box-sizing: border-box; }
.fmfr-hero,
.fmfr-card,
.fmfr-run-hero,
.fmfr-run-card,
.fmfr-core-context,
.fmfr-softnotice,
.fmfr-message {
  border-radius: 28px;
  border: 1px solid var(--fmfr-line);
  background: var(--fmfr-card);
  box-shadow: 0 16px 45px rgba(95, 72, 52, .08);
}
.fmfr-card,
.fmfr-run-card,
.fmfr-anchor-box {
  border-width: 1.5px;
  box-shadow: 0 18px 44px rgba(86, 64, 43, .10);
}
.fmfr-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  padding: 34px;
  background: linear-gradient(135deg, #fff8ef 0%, #eef8f2 100%);
  margin: 18px 0;
}
.fmfr-hero-main { max-width: 700px; }
.fmfr-hero h1,
.fmfr-card h2,
.fmfr-run-hero h2 { margin: .1em 0 .25em; line-height: 1.05; }
.fmfr-hero p,
.fmfr-card p,
.fmfr-run-hero p { color: var(--fmfr-muted); }
.fmfr-kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 750;
  color: var(--fmfr-accent-dark) !important;
  margin: 0 0 6px;
}
.fmfr-context-card {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--fmfr-line);
}
.fmfr-context-card span { font-size: 1.12rem; }
.fmfr-context-card small { color: var(--fmfr-muted); }
.fmfr-core-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin: 18px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 224, 185, .32), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f5fbf7 100%);
}
.fmfr-core-context-select {
  min-width: 0;
}
.fmfr-context-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: stretch;
}
.fmfr-context-family,
.fmfr-context-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(213,185,150,.52);
  box-shadow: 0 10px 24px rgba(95,72,52,.06);
}
.fmfr-context-family {
  min-width: 170px;
}
.fmfr-context-label,
.fmfr-context-summary strong {
  display: block;
}
.fmfr-context-label {
  color: var(--fmfr-muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fmfr-context-summary strong {
  color: var(--fmfr-ink);
  line-height: 1.12;
}
.fmfr-context-avatar,
.fmfr-context-companion-media {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff8ef;
}
.fmfr-context-avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fmfr-accent-dark);
  font-size: .68rem;
  font-weight: 900;
}
.fmfr-context-avatar .fm-symbol-image,
.fmfr-context-avatar img,
.fmfr-context-companion-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fmfr-context-companion-media {
  background: transparent;
}
.fmfr-help-box {
  margin-top: 22px;
  width: min(620px, 100%);
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 222, 178, .42), transparent 32%),
    rgba(255,255,255,.82);
  border: 1px solid rgba(213,185,150,.62);
  box-shadow: 0 18px 42px rgba(95,72,52,.09);
}
.fmfr-help-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  color: var(--fmfr-accent-dark);
  margin-bottom: 14px;
}
.fmfr-help-title strong,
.fmfr-help-title small {
  display: block;
}
.fmfr-help-title small {
  margin-top: 2px;
  color: var(--fmfr-muted);
  font-weight: 520;
}
.fmfr-help-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.fmfr-help-title-icon .fmfr-icon-image {
  width: 100%;
  height: 100%;
}
.fmfr-help-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fmfr-help-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid rgba(213,185,150,.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,246,235,.82) 100%);
  color: var(--fmfr-ink);
  font: inherit;
  font-weight: 850;
  padding: 12px 18px 12px 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(95,72,52,.045);
}
.fmfr-help-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 232, 204, .9);
  color: var(--fmfr-accent-dark);
  font-size: .9rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.fmfr-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 16px;
  background: rgba(47,38,30,.34);
  overflow-y: auto;
}
.fmfr-help-overlay.is-open { display: flex; }
.fmfr-help-card {
  width: min(760px, 100%);
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background: #fffdf8;
  border: 1px solid rgba(86,64,43,.16);
  box-shadow: 0 28px 80px rgba(47,38,30,.24);
}
.fmfr-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1e5d8;
  color: var(--fmfr-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.fmfr-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.fmfr-help-grid div,
.fmfr-help-note {
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid var(--fmfr-line);
  padding: 14px;
}
.fmfr-help-grid strong,
.fmfr-help-grid span { display: block; }
.fmfr-help-grid span,
.fmfr-help-steps,
.fmfr-help-note { color: var(--fmfr-muted); }
.fmfr-help-steps li { margin: 9px 0; }
.fmfr-core-context,
.fmfr-softnotice,
.fmfr-message {
  padding: 14px 18px;
  margin: 14px 0;
}
.fmfr-softnotice { background: #fffdf9; color: var(--fmfr-muted); }
.fmfr-message { background: #edf7f1; color: #436847; font-weight: 650; }
.fmfr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}
.fmfr-tab {
  text-decoration: none !important;
  color: var(--fmfr-ink);
  background: #fff;
  border: 1px solid var(--fmfr-line);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 680;
}
.fmfr-tab.is-active,
.fmfr-tab:hover {
  background: var(--fmfr-soft);
  color: var(--fmfr-accent-dark);
}
.fmfr-start-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  align-items: stretch;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1.5px solid rgba(121, 155, 120, .28);
  border-left: 7px solid var(--fmfr-green);
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbf8 0%, #fff8eb 100%);
  box-shadow: 0 14px 30px rgba(86, 64, 43, .10);
}
.fmfr-start-focus-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}
.fmfr-start-focus-copy span {
  color: #5f7e5f;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fmfr-start-focus-copy strong {
  color: var(--fmfr-ink);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 950;
  line-height: 1.24;
}
.fmfr-start-focus-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--fmfr-muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.48;
}
.fmfr-start-focus-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}
.fmfr-start-focus-steps a {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 10px;
  border: 1.5px solid rgba(121, 155, 120, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  color: var(--fmfr-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(86, 64, 43, .05);
}
.fmfr-start-focus-steps a.is-active {
  border-color: rgba(199, 120, 77, .42);
  background: linear-gradient(180deg, #fff7df 0%, #fff1c7 100%);
  box-shadow: 0 10px 22px rgba(151, 108, 28, .12);
}
.fmfr-start-focus-steps a:hover,
.fmfr-start-focus-steps a:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid transparent;
  box-shadow: 0 12px 24px rgba(86, 64, 43, .10);
}
.fmfr-start-focus-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8f3e8;
  color: #456d47;
  font-size: 13px;
  font-weight: 1000;
}
.fmfr-start-focus-steps strong {
  color: var(--fmfr-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.24;
}
.fmfr-grid { display: grid; gap: 18px; margin: 18px 0; align-items: start; }
.fmfr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fmfr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fmfr-ritual-atmosphere {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(86,64,43,.13);
  background: linear-gradient(135deg, #fffaf0 0%, #f1f8f1 56%, #eef7fb 100%);
  box-shadow: 0 18px 46px rgba(95,72,52,.08);
}
.fmfr-ritual-scene {
  position: relative;
  min-height: 230px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.18)),
    radial-gradient(circle at 76% 24%, rgba(255,214,116,.75) 0 11%, transparent 12%),
    linear-gradient(160deg, #ccebdc 0%, #f8e1b8 72%);
  border: 1px solid rgba(86,64,43,.12);
}
.fmfr-scene-sun {
  position: absolute;
  right: 34px;
  top: 28px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #ffd36d;
  box-shadow: 0 0 0 14px rgba(255,211,109,.18);
}
.fmfr-scene-path {
  position: absolute;
  left: 18%;
  right: -8%;
  bottom: -18px;
  height: 110px;
  border-radius: 70% 0 0 0;
  background: rgba(255,255,255,.58);
  transform: rotate(-8deg);
}
.fmfr-scene-family {
  position: absolute;
  left: 46%;
  bottom: 56px;
  width: 118px;
  height: 78px;
  transform: translateX(-50%);
}
.fmfr-scene-family:before,
.fmfr-scene-family:after {
  content: '';
  position: absolute;
  bottom: 0;
  border-radius: 999px 999px 18px 18px;
  background: #d8845c;
  box-shadow: 0 12px 24px rgba(95,72,52,.12);
}
.fmfr-scene-family:before {
  left: 8px;
  width: 48px;
  height: 66px;
}
.fmfr-scene-family:after {
  right: 8px;
  width: 58px;
  height: 78px;
  background: #789b78;
}
.fmfr-ritual-copy h2 {
  max-width: 680px;
  margin: 0 0 10px;
}
.fmfr-ritual-copy p {
  max-width: 720px;
  color: var(--fmfr-muted);
}
.fmfr-ritual-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 22px 0 26px;
  padding: 22px;
  border-radius: 32px;
  background:
    linear-gradient(90deg, transparent 9%, rgba(213,185,150,.34) 9%, rgba(213,185,150,.34) 91%, transparent 91%) center 93px / 100% 8px no-repeat,
    radial-gradient(circle at 16% 34%, rgba(255, 224, 185, .28), transparent 32%),
    radial-gradient(circle at 84% 66%, rgba(220, 240, 226, .52), transparent 36%),
    linear-gradient(180deg, #fffdf9 0%, #f3faf5 100%);
  border: 1px solid rgba(213,185,150,.58);
  box-shadow: 0 18px 44px rgba(95,72,52,.08);
  overflow: hidden;
}
.fmfr-phase-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 166px;
  padding: 18px 16px 17px;
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(213,185,150,.58);
  box-shadow: 0 14px 34px rgba(95,72,52,.08);
  backdrop-filter: blur(4px);
}
.fmfr-phase-node::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff8ef;
  border: 3px solid rgba(213,185,150,.42);
  box-shadow: 0 0 0 7px rgba(255,255,255,.74);
  z-index: -1;
}
.fmfr-phase-arrive {
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,249,240,.86) 100%);
}
.fmfr-phase-moment {
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(244,250,246,.9) 100%);
}
.fmfr-phase-close {
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,250,241,.88) 100%);
}
.fmfr-phase-afterglow {
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(241,248,251,.9) 100%);
}
.fmfr-ritual-path span,
.fmfr-ritual-path strong,
.fmfr-ritual-path small {
  display: block;
}
.fmfr-ritual-path span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  margin: 0;
}
.fmfr-ritual-path strong {
  font-size: 1.08rem;
  line-height: 1.16;
  text-align: center;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.fmfr-ritual-path small {
  color: var(--fmfr-muted);
  margin-top: 3px;
  text-align: center;
}
.fmfr-card {
  padding: 24px;
  margin: 18px 0;
}
.fmfr-card-large { min-height: 230px; }
.fmfr-difference-card { background: linear-gradient(180deg, #ffffff 0%, #fff7ef 100%); }
.fmfr-link-card {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  transition: transform .16s ease, box-shadow .16s ease;
}
.fmfr-link-card:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(95, 72, 52, .13); }
.fmfr-startcards .fmfr-link-card {
  min-height: 300px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
}
.fmfr-startcards .fmfr-link-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #edf7f1 100%);
}
.fmfr-startcards .fmfr-link-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #eef7fb 100%);
}
.fmfr-startcards .fmfr-template-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 64px;
  align-items: flex-start;
  min-height: 100%;
}
.fmfr-startcards .fmfr-icon-bubble {
  width: 142px;
  height: 142px;
  margin-bottom: 6px;
}
.fmfr-startcards .fmfr-template-title h3 {
  max-width: 100%;
  margin-top: 0;
  line-height: 1.16;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.fmfr-startcards .fmfr-template-title p {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.fmfr-icon-bubble,
.fmfr-run-phase-icon,
.fmfr-run-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--fmfr-soft);
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.fmfr-run-icon { width: 74px; height: 74px; border-radius: 26px; font-size: 2.3rem; }
.fmfr-icon-image {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
}
.fmfr-inline-icon {
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  vertical-align: -.35em;
  margin-right: 6px;
}
.fmfr-run-icon .fmfr-icon-image {
  width: 88%;
  height: 88%;
}
.fmfr-ritual-path .fmfr-icon-image {
  width: 100%;
  height: 100%;
}
.fmfr-ritual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 224, 185, .36), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
  border-color: rgba(213, 185, 150, .72);
  box-shadow: 0 18px 44px rgba(94, 69, 43, .09);
}
.fmfr-ritual-card .fmfr-card-topline {
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.fmfr-template-head {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-right: 108px;
}
.fmfr-template-card .fmfr-template-head,
.fmfr-ritual-card:not(.fmfr-difference-card):not(.fmfr-link-card) .fmfr-template-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 94px;
}
.fmfr-template-card .fmfr-template-title,
.fmfr-ritual-card:not(.fmfr-difference-card):not(.fmfr-link-card) .fmfr-template-title {
  width: 100%;
  min-width: 0;
}
.fmfr-ritual-card .fmfr-icon-bubble {
  width: 124px;
  height: 124px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 10px;
}
.fmfr-ritual-card .fmfr-icon-bubble .fmfr-icon-image {
  width: 100%;
  height: 100%;
}
.fmfr-template-title h3 {
  margin: 12px 0 6px;
  font-size: 1.28rem;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.fmfr-library-grid .fmfr-template-title h3 {
  min-height: 2.5em;
  display: flex;
  align-items: flex-end;
}
.fmfr-template-title p {
  color: var(--fmfr-muted);
  margin-top: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.fmfr-library-grid .fmfr-template-title p {
  min-height: 7.9em;
}
.fmfr-ritual-card .fmfr-meta-row {
  padding-top: 10px;
}

.fmfr-run-history {
  margin-top: 16px;
  border-top: 1px solid rgba(109, 91, 72, .12);
  border-bottom: 1px solid rgba(109, 91, 72, .12);
}

.fmfr-run-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  color: #654a3c;
  font-weight: 750;
  cursor: pointer;
}

.fmfr-run-history summary small {
  color: #887369;
  font-size: 12px;
  font-weight: 650;
}

.fmfr-run-history-list {
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
}

.fmfr-run-history-list article {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
}

.fmfr-run-history-list article div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.fmfr-run-history-list article span {
  color: #75675e;
  font-size: 13px;
}

.fmfr-run-history-list article p {
  margin: 7px 0 0;
  color: #594e48;
  line-height: 1.5;
}
.fmfr-library-grid .fmfr-meta-row {
  min-height: 100px;
  align-content: flex-start;
  align-items: flex-start;
}
.fmfr-ritual-card .fmfr-details {
  background: rgba(255,255,255,.74);
}
.fmfr-library-grid .fmfr-template-card > form {
  margin-top: 16px;
}
.fmfr-corner-chip {
  position: absolute;
  top: 26px;
  right: 24px;
  z-index: 1;
}
.fmfr-clean-list { padding-left: 1.1em; color: var(--fmfr-muted); }
.fmfr-clean-list li { margin: 8px 0; }
.fmfr-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.fmfr-head-copy { max-width: 420px; margin-top: 0; }
.fmfr-muted { color: var(--fmfr-muted); font-size: .95rem; }
.fmfr-anchor-box {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 224, 185, .28), transparent 38%),
    linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
  border: 1px solid var(--fmfr-line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(94, 69, 43, .07);
}
.fmfr-anchors .fmfr-grid {
  align-items: stretch;
}
.fmfr-anchor-box .fmfr-compact-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.fmfr-anchor-box > p {
  min-height: 52px;
}
.fmfr-anchor-box .fmfr-compact-form label {
  min-height: 22px;
}
.fmfr-anchor-box .fmfr-compact-form select,
.fmfr-anchor-box .fmfr-compact-form input[type="text"] {
  margin-bottom: 0;
}
.fmfr-anchor-box .fmfr-compact-form textarea {
  margin-bottom: 16px;
}
.fmfr-anchor-box .fmfr-button[type="submit"] {
  align-self: flex-start;
  margin-top: auto;
}
.fmfr-current-anchor,
.fmfr-empty-small {
  display: block;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--fmfr-line);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.fmfr-current-anchor strong,
.fmfr-current-anchor span { display: block; }
.fmfr-current-anchor span { color: var(--fmfr-muted); margin-top: 4px; }
.fmfr-form label { display: block; font-weight: 700; margin: 12px 0 6px; }
.fmfr-form small { display:block; color: var(--fmfr-muted); font-weight: 400; margin-top: 4px; }
.fmfr-form input[type="text"],
.fmfr-form input[type="number"],
.fmfr-form select,
.fmfr-form textarea,
.fmfr-inline-status select {
  width: 100%;
  border: 1px solid var(--fmfr-line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: var(--fmfr-ink);
  font: inherit;
  line-height: 1.35;
}
.fmfr-form input[type="text"],
.fmfr-form input[type="number"],
.fmfr-form select,
.fmfr-inline-status select {
  min-height: 50px;
}
.fmfr-form select,
.fmfr-inline-status select {
  padding-top: 0;
  padding-bottom: 0;
}
.fmfr-form textarea {
  display: block;
  min-height: 76px;
  margin-top: 10px;
}
.fmfr-form textarea { resize: vertical; }
.fmfr-compact-form { margin-top: 12px; }
.fmfr-button,
.fmfr-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--fmfr-accent);
  color: #fff !important;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 780;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .14s ease, opacity .14s ease;
}
.fmfr-button:hover { transform: translateY(-1px); opacity: .94; }
.fmfr-button-secondary,
.fmfr-button-secondary:visited { background: var(--fmfr-green); }
.fmfr-button-ghost,
.fmfr-button-ghost:visited {
  background: #fff;
  color: var(--fmfr-accent-dark) !important;
  border: 1px solid var(--fmfr-line);
}
.fmfr-card-topline,
.fmfr-actions,
.fmfr-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fmfr-card-topline { justify-content: space-between; }
.fmfr-actions { margin-top: 16px; }
.fmfr-inline-action { margin: 0; }
.fmfr-template-card .fmfr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.fmfr-template-card .fmfr-actions .fmfr-button,
.fmfr-template-card .fmfr-actions .fmfr-inline-action,
.fmfr-template-card .fmfr-actions .fmfr-inline-action .fmfr-button {
  width: 100%;
}
.fmfr-template-card .fmfr-actions .fmfr-inline-action {
  display: flex;
  height: 100%;
}
.fmfr-template-card .fmfr-actions .fmfr-button {
  min-height: 48px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
}
.fmfr-library-grid .fmfr-template-card > form > .fmfr-button {
  min-height: 77px;
  width: 100%;
}
.fmfr-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--fmfr-soft-2);
  color: #436847;
  font-size: .82rem;
  font-weight: 750;
}
.fmfr-meta-row span {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff8ef;
  color: var(--fmfr-muted);
  font-size: .9rem;
}
.fmfr-details {
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--fmfr-line);
  background: rgba(255,255,255,.72);
}
.fmfr-details summary {
  cursor: pointer;
  font-weight: 850;
  padding: 10px 12px;
  margin: -4px -4px 4px;
  border-radius: 14px;
  color: var(--fmfr-accent-dark);
  background: rgba(255,255,255,.72);
  list-style-position: inside;
}
.fmfr-details summary:focus {
  outline: 2px solid rgba(199,120,77,.32);
  outline-offset: 3px;
}
.fmfr-details[open] summary {
  background: #fff4e8;
}
.fmfr-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.fmfr-idea-item {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff4e8 100%);
  border: 1px solid rgba(213,185,150,.62);
}
.fmfr-idea-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fffdf9 0%, #edf7f1 100%);
}
.fmfr-idea-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 850;
  color: var(--fmfr-accent-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 7px;
}
.fmfr-idea-item p {
  margin: 0;
  color: var(--fmfr-ink);
  line-height: 1.45;
}
.fmfr-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.fmfr-mini-grid span {
  background: #fff8ef;
  border-radius: 16px;
  padding: 11px 12px;
  color: var(--fmfr-muted);
}
.fmfr-mini-grid strong { display: block; color: var(--fmfr-ink); font-size: .82rem; }
.fmfr-inline-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.fmfr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.fmfr-edit-form {
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}
.fmfr-form-section {
  padding: 20px;
  margin: 18px 0;
  border: 1px solid rgba(213, 185, 150, .72);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.fmfr-form-section:first-of-type { margin-top: 0; }
.fmfr-form-section-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.fmfr-form-section-head .fmfr-icon-bubble {
  width: 82px;
  height: 82px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}
.fmfr-form-section-head h3 {
  margin: 2px 0 5px;
}
.fmfr-form-section-head p:not(.fmfr-kicker) {
  margin: 0;
  color: var(--fmfr-muted);
}
.fmfr-check-row,
.fmfr-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.fmfr-child-scope {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 12px 0 6px;
  padding: 0;
  border: 0;
}
.fmfr-calendar-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--fmfr-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.fmfr-calendar-toggle input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--fmfr-accent);
}
.fmfr-calendar-toggle strong,
.fmfr-calendar-toggle small {
  display: block;
}
.fmfr-calendar-toggle small {
  margin-top: 4px;
}
.fmfr-calendar-toggle:has(input:checked) {
  border-color: rgba(201, 113, 70, .72);
  background: #fff5e9;
  box-shadow: 0 0 0 2px rgba(201, 113, 70, .12);
}
.fmfr-child-scope legend {
  margin-bottom: 10px;
  color: var(--fmfr-ink);
  font-weight: 700;
}
.fmfr-child-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.fmfr-child-choice {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid var(--fmfr-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.fmfr-child-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fmfr-child-choice:has(input:checked) {
  border-color: rgba(201, 113, 70, .72);
  background: #fff5e9;
  box-shadow: 0 0 0 2px rgba(201, 113, 70, .12);
}
.fmfr-child-choice__visual {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #f5efe7;
  color: var(--fmfr-accent);
  font-size: 1.45rem;
}
.fmfr-child-choice__visual img,
.fmfr-child-choice__visual svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fmfr-child-choice strong,
.fmfr-child-choice small {
  display: block;
}
.fmfr-child-choice small {
  margin-top: 2px;
}
.fmfr-check-grid label,
.fmfr-check-row label {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--fmfr-line);
  border-radius: 16px;
  background: #fffdf8;
}
.fmfr-run-hero {
  text-align: center;
  padding: 34px 24px;
  margin: 22px 0;
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}
.fmfr-run-card {
  padding: 20px;
  margin: 18px 0;
  background: #fffdf8;
}
.fmfr-run-progress {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr);
  gap: 10px 22px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(49, 119, 103, .24);
  border-radius: 18px;
  background: #f1faf6;
}
.fmfr-run-progress > div:first-child span,
.fmfr-run-progress > div:first-child strong {
  display: block;
}
.fmfr-run-progress > div:first-child span {
  color: #397e70;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}
.fmfr-run-progress > div:first-child strong {
  margin-top: 3px;
  color: var(--fmfr-text);
  font-size: 1.05rem;
}
.fmfr-run-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 119, 103, .15);
}
.fmfr-run-progress-track span {
  display: block;
  width: var(--fmfr-run-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #3c8f7c;
  transition: width .35s ease;
}
.fmfr-run-progress p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--fmfr-muted);
  font-size: .9rem;
}
.fmfr-run-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px;
  margin: 14px 0;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--fmfr-line);
  transition: border-color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .25s ease;
}
.fmfr-run-phase-status {
  display: inline-block;
  margin-bottom: 5px;
  color: #397e70;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}
.fmfr-run-phase.is-active {
  border: 2px solid #3c8f7c;
  box-shadow: 0 16px 38px rgba(49, 119, 103, .16);
  transform: translateY(-2px);
}
.fmfr-run-phase.is-upcoming {
  opacity: .58;
  background: #fbfaf6;
}
.fmfr-run-phase.is-done {
  opacity: .72;
  border-color: rgba(49, 119, 103, .22);
  background: #f7faf7;
}
.fmfr-run-phase h3 { margin: 0 0 8px; }
.fmfr-run-phase p { color: var(--fmfr-muted); margin-top: 0; }
.fmfr-phase-button {
  border: 1px solid var(--fmfr-line);
  background: var(--fmfr-soft-2);
  color: #456c49;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}
.fmfr-run-phase.is-done .fmfr-phase-button {
  border-color: rgba(49, 119, 103, .22);
  background: #fff;
  color: #55716a;
}
.fmfr-run-phase.is-upcoming .fmfr-phase-button {
  background: #f2f1ed;
  color: #7a817e;
}

/* Kompakte Ritualdurchführung innerhalb des Kalender-Modals. */
.fmfr-shell.fmfr-shell-embed {
  padding: 14px 18px 24px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  text-align: left;
  padding: 18px 22px;
  margin: 0 0 18px;
  border-radius: 22px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero .fmfr-run-icon {
  grid-row: 1 / span 3;
  width: 66px;
  height: 66px;
  margin: 0;
  border-radius: 20px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero .fmfr-kicker,
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero h2,
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero p {
  margin: 0;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-hero h2 {
  margin-top: 2px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-card {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-progress {
  margin: 0;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 150px;
  padding: 24px 26px;
  margin: 0;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(95, 72, 52, .07);
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  min-height: 182px;
  padding: 30px 34px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-run-phase-icon {
  width: 82px;
  height: 82px;
  margin: 5px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-run-phase-content {
  min-width: 0;
  padding: 4px 0;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-phase-button {
  margin-top: 6px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase:not(.is-active) {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-height: 88px;
  padding: 14px 18px;
  box-shadow: none;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase:not(.is-active) .fmfr-run-phase-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase:not(.is-active) p,
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase:not(.is-active) .fmfr-phase-button {
  display: none;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase-icon {
  width: 76px;
  height: 76px;
  margin: 0;
  border-radius: 22px;
  align-self: center;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase-icon .fmfr-icon-image {
  width: 88%;
  height: 88%;
}
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase p {
  margin-bottom: 14px;
}
.fmfr-shell.fmfr-shell-embed .fmfr-reflection {
  margin: 0;
  padding: 24px 26px;
  border-radius: 22px;
}

@media (max-width: 620px) {
  .fmfr-shell.fmfr-shell-embed {
    padding: 10px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-hero {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 15px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-hero .fmfr-run-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    padding: 23px 22px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-run-phase-icon {
    width: 62px;
    height: 62px;
    margin: 3px;
  }
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .fmfr-run-progress {
    grid-template-columns: 1fr;
  }
  .fmfr-run-progress p {
    grid-column: auto;
  }
}

/* 1.0.19: Ruhiger Ritualeditor und visueller Abschluss */
.fmfr-editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.fmfr-editor-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  min-height: 72px;
  padding: 11px;
  border: 1.5px solid rgba(66, 94, 87, .2);
  border-radius: 8px;
  color: var(--fmfr-text);
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.fmfr-editor-tabs button > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #41665e;
  font-weight: 850;
  background: #e7f2ee;
}

.fmfr-editor-tabs button strong {
  align-self: end;
  line-height: 1.2;
}

.fmfr-editor-tabs button small {
  color: var(--fmfr-muted);
  font-size: .74rem;
  line-height: 1.2;
}

.fmfr-editor-tabs button:hover,
.fmfr-editor-tabs button:focus-visible {
  border-color: #418b7d;
  background: #f5fbf9;
}

.fmfr-editor-tabs button.is-active {
  border-color: #2f8275;
  background: #e6f5f0;
  box-shadow: inset 0 0 0 1px rgba(47, 130, 117, .12);
}

.fmfr-editor-tabs button.is-active > span {
  color: #fff;
  background: #2f8275;
}

.fmfr-edit-form [data-fmfr-editor-panel][hidden] {
  display: none !important;
}

.fmfr-edit-form .fmfr-form-section {
  margin: 0;
  border-width: 1.5px;
  border-radius: 8px;
  background: #fff;
}

.fmfr-editor-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(62, 94, 86, .14);
}

.fmfr-editor-more,
.fmfr-reflection-more {
  grid-column: 1 / -1;
  border: 1.5px solid rgba(87, 86, 119, .2);
  border-radius: 8px;
  background: #fafafd;
}

.fmfr-editor-more summary,
.fmfr-reflection-more summary {
  padding: 13px 15px;
  color: #4d4b6c;
  font-weight: 800;
  cursor: pointer;
}

.fmfr-editor-more summary small,
.fmfr-reflection-more summary small {
  margin-left: 5px;
  color: var(--fmfr-muted);
  font-weight: 650;
}

.fmfr-editor-more > .fmfr-form-grid,
.fmfr-reflection-more > div {
  padding: 2px 15px 15px;
}

.fmfr-editor-savebar {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px;
  border: 1.5px solid rgba(47, 130, 117, .28);
  border-radius: 8px;
  background: rgba(247, 252, 250, .96);
  box-shadow: 0 10px 28px rgba(39, 75, 66, .14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.fmfr-editor-savebar > span {
  margin-right: auto;
  color: var(--fmfr-muted);
  font-size: .82rem;
}

.fmfr-reflection-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fmfr-reflection-choices label {
  display: grid;
  grid-template-columns: auto 48px;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  min-height: 104px;
  padding: 12px;
  border-width: 1.5px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.fmfr-reflection-choices label > input {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  margin: 0;
}

.fmfr-reflection-choices label > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.fmfr-reflection-choices label > span img,
.fmfr-reflection-choices label > span svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-reflection-choices label:has(input:checked) {
  border-color: #398777;
  background: #e7f5f0;
  box-shadow: inset 0 0 0 1px rgba(57, 135, 119, .12);
}

.fmfr-reflection-more {
  margin-top: 14px;
}

.fmfr-reflection-more > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fmfr-shell.fmfr-shell-embed .fmfr-run-experience {
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.fmfr-shell.fmfr-shell-embed .fmfr-run-experience-inner {
  min-height: 100dvh;
  padding-top: 12px;
  border: 0;
  box-shadow: none;
}

.fmfr-shell.fmfr-shell-embed .fmfr-run-experience-bar {
  display: none;
}

@media (max-width: 820px) {
  .fmfr-editor-tabs,
  .fmfr-reflection-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fmfr-editor-tabs {
    grid-template-columns: 1fr;
  }

  .fmfr-editor-tabs button {
    min-height: 62px;
  }

  .fmfr-editor-panel-actions,
  .fmfr-editor-savebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fmfr-editor-panel-actions .fmfr-button,
  .fmfr-editor-savebar .fmfr-button {
    width: 100%;
    text-align: center;
  }

  .fmfr-editor-savebar > span {
    margin: 0;
    text-align: center;
  }

  .fmfr-reflection-more > div {
    grid-template-columns: 1fr;
  }
}

.fmfr-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fmfr-icon-entry {
  border: 1px solid var(--fmfr-line);
  border-radius: 18px;
  padding: 14px;
  background: #fffdf8;
}
.fmfr-icon-entry span { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.fmfr-icon-entry strong { display: block; }
.fmfr-icon-entry code {
  display: block;
  margin-top: 8px;
  white-space: normal;
  color: var(--fmfr-muted);
  font-size: .78rem;
}
.fmfr-prepared { background: linear-gradient(135deg, #fff 0%, #edf7f1 100%); }
.fmfr-empty { text-align: center; }
@media (max-width: 900px) {
  .fmfr-hero,
  .fmfr-section-head { flex-direction: column; }
  .fmfr-grid-2,
  .fmfr-grid-3,
  .fmfr-ritual-atmosphere,
  .fmfr-ritual-path,
  .fmfr-form-grid,
  .fmfr-idea-grid,
  .fmfr-icon-grid { grid-template-columns: 1fr; }
  .fmfr-help-actions,
  .fmfr-help-grid { grid-template-columns: 1fr; }
  .fmfr-inline-status { grid-template-columns: 1fr; }
  .fmfr-start-focus,
  .fmfr-start-focus-steps { grid-template-columns: 1fr; }
  .fmfr-start-focus-steps a {
    min-height: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
}
@media (min-width: 901px) {
  .fmfr-startcards .fmfr-link-card {
    padding: 28px;
  }
}
@media (max-width: 560px) {
  .fmfr-hero,
  .fmfr-card,
  .fmfr-run-card { border-radius: 20px; padding: 18px; }
  .fmfr-run-phase { grid-template-columns: 1fr; }
  .fmfr-tabs { gap: 8px; }
  .fmfr-tab { width: 100%; text-align: center; }
  .fmfr-template-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 0;
  }
  .fmfr-ritual-card .fmfr-icon-bubble {
    width: 112px;
    height: 112px;
  }
  .fmfr-ritual-path {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    background:
      linear-gradient(180deg, transparent 9%, rgba(213,185,150,.28) 9%, rgba(213,185,150,.28) 91%, transparent 91%) 54px center / 8px 100% no-repeat,
      radial-gradient(circle at 20% 20%, rgba(255, 224, 185, .24), transparent 32%),
      linear-gradient(180deg, #fffdf9 0%, #f3faf5 100%);
  }
  .fmfr-phase-node,
  .fmfr-phase-arrive,
  .fmfr-phase-moment,
  .fmfr-phase-close,
  .fmfr-phase-afterglow {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    margin: 0 0 12px;
  }
  .fmfr-phase-node::before {
    left: 38px;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .fmfr-phase-afterglow { margin-bottom: 0; }
  .fmfr-ritual-path span {
    width: 70px;
    height: 70px;
  }
  .fmfr-ritual-path strong,
  .fmfr-ritual-path small {
    text-align: left;
  }
  .fmfr-form-section {
    padding: 16px;
    border-radius: 20px;
  }
  .fmfr-form-section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fmfr-form-section-head .fmfr-icon-bubble {
    width: 92px;
    height: 92px;
  }
  .fmfr-corner-chip {
    position: static;
    align-self: flex-start;
    margin-bottom: 8px;
  }
  .fmfr-template-card .fmfr-actions {
    grid-template-columns: 1fr;
  }
}

/* Shared Familymap module header */
.fmfr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  align-items: stretch;
  gap: 28px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 224, 153, .28), transparent 34%),
    linear-gradient(145deg, #fffdf8 0%, #f2f9f6 100%);
}
.fmfr-hero-main {
  display: flex;
  max-width: none;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.fmfr-hero-main > .fmfr-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #335f58 !important;
  background: rgba(219, 240, 232, .78);
  letter-spacing: 0;
}
.fmfr-hero h1 {
  color: #1c2e3e;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
}
.fmfr-help-box {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(48, 111, 104, .14);
  box-shadow: 0 10px 24px rgba(32, 73, 69, .07);
}
.fmfr-help-title {
  margin: 0;
}
.fmfr-help-title-icon {
  width: 38px;
  height: 38px;
}
.fmfr-help-title small {
  display: none;
}
.fmfr-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.fmfr-help-button {
  min-height: 40px;
  padding: 8px 13px 8px 9px;
  justify-content: center;
}
.fmfr-help-button span {
  width: 24px;
  height: 24px;
}
.fmfr-hero-context {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.fmfr-hero-context .fmfr-core-context-select,
.fmfr-hero-context .fmfr-context-family,
.fmfr-hero-context .fmfr-context-person {
  border: 1px solid rgba(220, 207, 184, .72);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(42, 76, 67, .06);
}
.fmfr-hero-context .fmfr-core-context-select {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fmfr-hero-main > .fmfr-core-context-select {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(204, 224, 214, .82);
  border-radius: 17px;
  background: rgba(245, 251, 248, .8);
}
.fmfr-core-context-select .fm-context-selector,
.fmfr-core-context-select .fm-context-selector.is-compact {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fmfr-core-context-select .fm-context-form,
.fmfr-core-context-select .fm-context-selector.is-compact .fm-context-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fmfr-core-context-select .fm-context-field label {
  display: block;
  margin: 0 0 5px;
  color: #6f5d4b;
  font-size: 12px;
  font-weight: 750;
}
.fmfr-core-context-select select {
  width: 100%;
  min-height: 46px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #d7e4dc;
  border-radius: 13px;
  background-color: #f8fcf9;
  color: #17304a;
  font: inherit;
}
.fmfr-hero-context .fmfr-context-summary {
  display: grid;
  gap: 12px;
  justify-content: stretch;
  margin-top: 12px;
}
.fmfr-hero-context .fmfr-context-family,
.fmfr-hero-context .fmfr-context-person {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  border-radius: 22px;
}
@media (max-width: 980px) {
  .fmfr-hero {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .fmfr-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 22px;
  }

  .fmfr-hero-main {
    justify-content: center;
  }

  .fmfr-hero-main > .fmfr-core-context-select {
    margin-top: 14px;
  }

  .fmfr-hero-context .fmfr-context-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .fmfr-hero-context .fmfr-context-family,
  .fmfr-hero-context .fmfr-context-person {
    min-height: 0;
    padding: 12px;
  }

  .fmfr-hero-context .fmfr-context-companion {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .fmfr-hero {
    padding: 20px;
    border-radius: 24px;
  }
  .fmfr-help-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .fmfr-core-context-select .fm-context-form,
  .fmfr-core-context-select .fm-context-selector.is-compact .fm-context-form {
    grid-template-columns: 1fr;
  }
}

/* 1.0.20: Der Kalenderbezug bleibt als eigener, ruhiger Arbeitsraum erkennbar. */
.fmfr-edit-form [data-fmfr-editor-panel="connect"] {
  border-color: rgba(69, 126, 111, .34);
  background: linear-gradient(145deg, #f0f8f5 0%, #fbf7ee 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 12px 28px rgba(45, 87, 76, .08);
}

.fmfr-edit-form [data-fmfr-editor-panel="connect"] .fmfr-editor-more {
  background: rgba(255, 255, 255, .78);
}
.fmfr-public {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  color: #1f2420;
}

.fmfr-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 8px;
  border: 1px solid rgba(121, 92, 47, .18);
  background: linear-gradient(135deg, #fffaf0 0%, #f4f8ef 56%, #eef7f5 100%);
  box-shadow: 0 18px 44px rgba(74, 58, 35, .08);
}

.fmfr-public-kicker {
  display: block;
  margin-bottom: 10px;
  color: #7a6232;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fmfr-public h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.fmfr-public p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.fmfr-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.fmfr-public .fmfr-public-test-note {
  max-width: 620px;
  margin: 1.45rem 0 0;
  color: #60736a;
  font-size: .95rem;
  line-height: 1.5;
}

.fmfr-public-button,
.fmfr-public-overview {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 98, 50, .32);
  color: #684f25;
  font-weight: 800;
  text-decoration: none;
}

.fmfr-public-button--primary {
  background: #7a6232;
  color: #fff;
  border-color: #7a6232;
}

.fmfr-public-visual {
  display: grid;
  gap: 12px;
  align-content: center;
}

.fmfr-public-visual span {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  border-left: 5px solid #5f8d78;
  font-weight: 800;
}

.fmfr-public-grid,
.fmfr-public-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.fmfr-public-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fmfr-public-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.fmfr-public-grid article,
.fmfr-public-flow li {
  border: 1px solid rgba(121, 92, 47, .14);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(74, 58, 35, .06);
}

.fmfr-public-grid h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.fmfr-public-grid p {
  margin: 0;
  font-size: .96rem;
}

.fmfr-public-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.fmfr-public-flow strong {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #7a6232;
  color: #fff;
  font-size: .9rem;
}

.fmfr-public-overview {
  margin-top: 18px;
  background: #fff;
}

@media (max-width: 820px) {
  .fmfr-public-hero,
  .fmfr-public-grid,
  .fmfr-public-flow {
    grid-template-columns: 1fr;
  }
}
.fmfr-public-promo {
  max-width: 560px;
  margin: 0 auto 20px;
}

.fmfr-public-promo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(30, 47, 42, .14);
}

/* UI-Fokus: kompakter Einstieg, klarere Kontraste, weniger Scrollballast. */
.fmfr-shell {
  --fmfr-line-strong: rgba(74, 58, 35, .2);
}

.fmfr-hero,
.fmfr-card,
.fmfr-run-hero,
.fmfr-run-card,
.fmfr-core-context,
.fmfr-softnotice,
.fmfr-message,
.fmfr-anchor-box {
  border-color: var(--fmfr-line-strong);
  box-shadow: 0 16px 38px rgba(68, 52, 35, .095);
}

.fmfr-hero {
  gap: 18px;
  padding: 24px;
  margin: 14px 0 12px;
  border-width: 1.5px;
}

.fmfr-hero-main {
  display: grid;
  align-content: start;
  gap: 10px;
  max-width: none;
}

.fmfr-hero-main > p:not(.fmfr-kicker) {
  max-width: 720px;
  margin: 0;
}

.fmfr-help-box {
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  border-width: 1.5px;
}

.fmfr-help-title {
  gap: 10px;
  margin-bottom: 10px;
}

.fmfr-help-title-icon {
  width: 44px;
  height: 44px;
}

.fmfr-help-actions {
  gap: 8px;
}

.fmfr-help-button {
  min-height: 42px;
  padding: 9px 14px 9px 12px;
  border-radius: 16px;
}

.fmfr-hero-context .fmfr-context-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fmfr-hero-context .fmfr-context-family,
.fmfr-hero-context .fmfr-context-person {
  min-height: 56px;
  border-width: 1.5px;
}

.fmfr-context-avatar,
.fmfr-context-companion-media {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.fmfr-tabs {
  margin: 12px 0 14px;
  gap: 8px;
}

.fmfr-tab {
  padding: 9px 13px;
  border-width: 1.5px;
}

.fmfr-start-focus {
  margin-bottom: 14px;
  border-color: rgba(121, 155, 120, .36);
  box-shadow: 0 14px 30px rgba(70, 88, 56, .11);
}

.fmfr-start-focus-steps a {
  min-height: 72px;
  border-width: 1.5px;
}

.fmfr-ritual-atmosphere {
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 22px;
  margin: 14px 0 18px;
  padding: 22px;
  border-width: 1.5px;
}

.fmfr-ritual-scene {
  min-height: 190px;
}

.fmfr-ritual-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

.fmfr-ritual-path {
  margin: 16px 0 18px;
  padding: 16px;
  border-width: 1.5px;
}

.fmfr-phase-node {
  min-height: 136px;
  border-width: 1.5px;
}

.fmfr-ritual-path span {
  width: 62px;
  height: 62px;
}

.fmfr-startcards .fmfr-link-card {
  min-height: 230px;
}

.fmfr-startcards .fmfr-template-head {
  gap: 8px;
  padding-right: 48px;
}

.fmfr-startcards .fmfr-icon-bubble {
  width: 96px;
  height: 96px;
}

.fmfr-ritual-card {
  border-width: 1.5px;
}

.fmfr-card {
  padding: 22px;
}

@media (min-width: 761px) and (max-width: 980px) {
  .fmfr-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(230px, .82fr);
  }

  .fmfr-ritual-atmosphere {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  }

  .fmfr-startcards .fmfr-link-card {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .fmfr-hero,
  .fmfr-ritual-atmosphere,
  .fmfr-start-focus {
    padding: 16px;
  }

  .fmfr-ritual-atmosphere,
  .fmfr-start-focus {
    grid-template-columns: 1fr;
  }

  .fmfr-start-focus-steps {
    grid-template-columns: 1fr;
  }
}

/* 1.0.15: Gefuehrte Ritualbibliothek */
.fmfr-library-intro {
  border-color: rgba(38, 126, 113, .34);
  background: linear-gradient(135deg, #f2fbf8 0%, #fffdf8 100%);
}

.fmfr-library-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.fmfr-library-filter {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1.5px solid rgba(45, 91, 83, .2);
  border-radius: 8px;
  color: var(--fmfr-text);
  text-align: left;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 14px rgba(45, 70, 62, .06);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fmfr-library-filter span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.fmfr-library-filter img,
.fmfr-library-filter svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-library-filter strong {
  font-size: .92rem;
  line-height: 1.25;
}

.fmfr-library-filter:hover,
.fmfr-library-filter:focus-visible {
  border-color: #2c8174;
  background: #fff;
  box-shadow: 0 9px 20px rgba(39, 105, 92, .13);
  transform: translateY(-1px);
}

.fmfr-library-filter.is-active {
  border-color: #26796d;
  background: #dff3ed;
  box-shadow: inset 0 0 0 1px rgba(38, 121, 109, .12), 0 8px 18px rgba(39, 105, 92, .12);
}

.fmfr-library-result {
  margin: 12px 0 0;
  color: #46645d;
  font-size: .9rem;
  font-weight: 700;
}

.fmfr-library-grid [data-fmfr-library-card][hidden] {
  display: none !important;
}

.fmfr-template-card {
  align-content: start;
}

.fmfr-preview-trigger {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 1.5px solid rgba(38, 121, 109, .35);
  border-radius: 8px;
  color: #225f56;
  font-weight: 800;
  background: #f1faf7;
  cursor: pointer;
}

.fmfr-preview-trigger:hover,
.fmfr-preview-trigger:focus-visible {
  border-color: #26796d;
  background: #e0f3ed;
}

.fmfr-library-open-active {
  text-align: center;
}

.fmfr-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(22, 36, 34, .42);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.fmfr-preview-layer.is-open {
  display: grid;
}

body.fmfr-preview-open {
  overflow: hidden;
}

.fmfr-preview-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border: 1.5px solid rgba(38, 121, 109, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(17, 38, 34, .3);
}

.fmfr-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(31, 68, 61, .18);
  border-radius: 50%;
  color: #234d46;
  font-size: 1.65rem;
  line-height: 1;
  background: #f4faf8;
  cursor: pointer;
}

.fmfr-preview-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-right: 34px;
}

.fmfr-preview-head > span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 8px;
  border-radius: 8px;
  background: #edf8f4;
}

.fmfr-preview-head img,
.fmfr-preview-head svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-preview-head h2 {
  margin: 2px 0 6px;
}

.fmfr-preview-head p {
  margin: 0 0 9px;
  color: var(--fmfr-muted);
}

.fmfr-preview-effect {
  margin: 20px 0 14px;
  padding: 14px 16px;
  border-left: 5px solid #e5a842;
  border-radius: 6px;
  background: #fff8e8;
}

.fmfr-preview-effect p {
  margin: 3px 0 0;
}

.fmfr-preview-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fmfr-preview-phases article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
  border: 1.5px solid rgba(77, 91, 121, .17);
  border-radius: 8px;
  background: #fafafd;
}

.fmfr-preview-phases article > span {
  width: 46px;
  height: 46px;
}

.fmfr-preview-phases img,
.fmfr-preview-phases svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-preview-phases p {
  margin: 4px 0 0;
  color: var(--fmfr-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.fmfr-preview-done {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .fmfr-library-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fmfr-preview-phases {
    grid-template-columns: 1fr;
  }

  .fmfr-preview-phases article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .fmfr-library-filters {
    grid-template-columns: 1fr;
  }

  .fmfr-preview-layer {
    padding: 0;
  }

  .fmfr-preview-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 22px 16px;
    border: 0;
    border-radius: 0;
  }

  .fmfr-preview-head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-right: 28px;
  }

  .fmfr-preview-head > span {
    width: 74px;
    height: 74px;
  }
}

/* Ritualkarten zeigen die Nutzung zuerst; seltenere Pflegeaktionen bleiben gebuendelt. */
.fmfr-my-card {
  scroll-margin-top: 24px;
}

.fmfr-my-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.fmfr-my-primary-actions > .fmfr-button,
.fmfr-my-primary-actions > .fmfr-manage {
  width: 100%;
}

.fmfr-manage {
  margin: 0;
}

.fmfr-manage summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid rgba(40, 126, 113, .32);
  border-radius: 8px;
  color: #235f56;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  list-style: none;
}

.fmfr-manage summary::-webkit-details-marker {
  display: none;
}

.fmfr-manage summary::after {
  content: "+";
  margin-left: 8px;
  font-size: 1.1rem;
  line-height: 1;
}

.fmfr-manage[open] {
  grid-column: 1 / -1;
}

.fmfr-my-primary-actions:has(.fmfr-manage[open]) > .fmfr-button {
  grid-column: 1 / -1;
}

.fmfr-manage[open] summary {
  width: 100%;
  margin-left: 0;
  background: #eef8f4;
}

.fmfr-manage[open] summary::after {
  content: "−";
}

.fmfr-manage-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1.5px solid rgba(93, 100, 91, .2);
  border-radius: 8px;
  background: #fafbf9;
}

.fmfr-manage-panel > .fmfr-button,
.fmfr-manage-panel .fmfr-remove-action,
.fmfr-manage-panel .fmfr-remove-action .fmfr-button {
  width: 100%;
}

.fmfr-manage-panel .fmfr-inline-status {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(93, 100, 91, .16);
}

.fmfr-manage-panel .fmfr-inline-status label {
  margin: 0;
}

.fmfr-manage-panel .fmfr-inline-status label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--fmfr-muted);
  font-size: .78rem;
  font-weight: 800;
}

.fmfr-remove-action {
  padding-top: 12px;
  border-top: 1px solid rgba(93, 100, 91, .16);
}

.fmfr-remove-action .fmfr-button {
  color: #8a4944 !important;
  border-color: rgba(138, 73, 68, .24);
}

.fmfr-library-open-active {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .fmfr-manage-panel .fmfr-inline-status {
    grid-template-columns: 1fr;
  }
}

/* Wochen- und Monatsanker: erst Orientierung, Formulare nur bei Bedarf. */
.fmfr-anchors {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}

.fmfr-anchors > .fmfr-section-head {
  margin-bottom: 12px;
}

.fmfr-anchors > .fmfr-section-head p:last-child {
  margin: 6px 0 0;
  color: var(--fmfr-muted);
}

.fmfr-anchor-compass-note {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1.5px solid rgba(42, 126, 113, .28);
  border-radius: 8px;
  background: #eef8f5;
}

.fmfr-anchor-compass-note strong {
  color: #246c60;
}

.fmfr-anchor-compass-note p {
  margin: 0;
  color: var(--fmfr-muted);
}

.fmfr-anchors .fmfr-anchor-box {
  padding: 18px;
  border-width: 1.5px;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 10px 24px rgba(76, 63, 46, .07);
}

.fmfr-anchors .fmfr-grid {
  align-items: start;
}

.fmfr-anchors .fmfr-anchor-box:nth-child(2) {
  background: #f6f7fd;
  border-color: rgba(99, 93, 151, .24);
}

.fmfr-anchor-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fmfr-anchor-heading > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
}

.fmfr-anchor-heading img,
.fmfr-anchor-heading svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-anchor-heading small {
  display: block;
  margin-bottom: 2px;
  color: #967247;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fmfr-anchor-box:nth-child(2) .fmfr-anchor-heading small {
  color: #686095;
}

.fmfr-anchor-heading h3 {
  margin: 0;
  color: var(--fmfr-text);
  font-size: 1.22rem;
}

.fmfr-anchors .fmfr-anchor-box > p {
  min-height: 48px;
  margin: 12px 0 4px;
  color: var(--fmfr-muted);
}

.fmfr-anchors .fmfr-current-anchor,
.fmfr-anchors .fmfr-empty-small {
  min-height: 86px;
  margin: 10px 0;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
}

.fmfr-anchors .fmfr-empty-small strong,
.fmfr-anchors .fmfr-empty-small span {
  display: block;
}

.fmfr-anchors .fmfr-empty-small span {
  margin-top: 4px;
  color: var(--fmfr-muted);
}

.fmfr-anchor-start {
  width: 100%;
  margin: 0 0 8px;
}

.fmfr-anchor-editor {
  margin-top: auto;
  padding-top: 8px;
}

.fmfr-anchor-editor summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid rgba(40, 126, 113, .32);
  border-radius: 8px;
  color: #245f56;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  background: #fff;
}

.fmfr-anchor-editor summary::-webkit-details-marker {
  display: none;
}

.fmfr-anchor-editor summary::after {
  content: "+";
  margin-left: 8px;
  font-size: 1.1rem;
}

.fmfr-anchor-editor[open] summary {
  background: #eef8f4;
}

.fmfr-anchor-editor[open] summary::after {
  content: "−";
}

.fmfr-anchor-editor .fmfr-compact-form {
  margin-top: 10px;
  padding: 13px;
  border: 1.5px solid rgba(91, 96, 89, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.fmfr-anchor-editor .fmfr-form label {
  min-height: 0;
  margin-top: 8px;
}

.fmfr-anchor-editor .fmfr-form label small {
  display: inline;
  margin-left: 4px;
}

.fmfr-anchor-editor .fmfr-button[type="submit"] {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .fmfr-anchor-compass-note {
    grid-template-columns: 1fr;
  }

  .fmfr-anchors .fmfr-anchor-box > p {
    min-height: 0;
  }
}

.fmfr-hero .fmfr-help-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 10px 12px;
}

.fmfr-hero .fmfr-help-title {
  min-width: 0;
  margin: 0;
}

.fmfr-hero .fmfr-help-actions {
  flex-wrap: nowrap;
  margin-top: 0;
}

.fmfr-hero .fmfr-help-button {
  white-space: nowrap;
}

.fmfr-hero-main > .fmfr-core-context-select {
  margin-top: 0;
  padding: 8px;
}

.fmfr-core-context-select .fm-context-field label {
  margin-bottom: 2px;
  font-size: 11px;
}

.fmfr-core-context-select select {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.fmfr-hero-context .fmfr-context-family,
.fmfr-hero-context .fmfr-context-person {
  min-height: 54px;
  padding: 9px 12px;
}

@media (max-width: 760px) {
  .fmfr-hero .fmfr-help-box,
  .fmfr-hero .fmfr-help-actions {
    grid-template-columns: 1fr;
  }

  .fmfr-hero .fmfr-help-actions {
    display: grid;
  }
}

/* Kompakter Moduleinstieg: eine Entscheidungsebene statt wiederholter Erklaerkarten. */
.fmfr-home-start {
  margin: 14px 0 18px;
  padding: 24px;
  border: 1.5px solid rgba(37, 120, 111, .3);
  border-radius: 8px;
  background: linear-gradient(135deg, #f1faf7 0%, #fffdfa 58%, #fff7e8 100%);
  box-shadow: 0 16px 34px rgba(58, 86, 72, .11);
}

.fmfr-home-start-copy {
  max-width: 760px;
  margin-bottom: 18px;
}

.fmfr-home-start-copy h2,
.fmfr-home-process-head h2 {
  margin: 2px 0 6px;
  color: var(--fmfr-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
}

.fmfr-home-start-copy > p:last-child {
  margin: 0;
  color: var(--fmfr-muted);
}

.fmfr-home-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fmfr-home-action {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 17px 18px;
  border: 2px solid rgba(37, 120, 111, .28);
  border-radius: 8px;
  color: var(--fmfr-text);
  text-decoration: none;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 9px 22px rgba(55, 77, 66, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fmfr-home-action-library {
  border-color: rgba(218, 151, 49, .38);
  background: rgba(255, 252, 244, .96);
}

.fmfr-home-action:hover,
.fmfr-home-action:focus-visible {
  color: var(--fmfr-text);
  border-color: #287e71;
  box-shadow: 0 13px 28px rgba(45, 101, 88, .15);
  transform: translateY(-2px);
}

.fmfr-home-action-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 7px;
  border-radius: 8px;
  background: #e4f4ee;
}

.fmfr-home-action-library .fmfr-home-action-icon {
  background: #fff0cf;
}

.fmfr-home-action-icon img,
.fmfr-home-action-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-home-action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fmfr-home-action-copy strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.fmfr-home-action-copy small {
  color: var(--fmfr-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.fmfr-home-action-arrow {
  color: #287e71;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.fmfr-home-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.fmfr-home-secondary-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1.5px solid rgba(91, 88, 126, .2);
  border-radius: 8px;
  color: var(--fmfr-text);
  text-decoration: none;
  background: rgba(255, 255, 255, .8);
}

.fmfr-home-secondary-actions a:hover,
.fmfr-home-secondary-actions a:focus-visible {
  color: var(--fmfr-text);
  border-color: rgba(86, 105, 151, .55);
  background: #fff;
}

.fmfr-home-secondary-actions span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.fmfr-home-secondary-actions img,
.fmfr-home-secondary-actions svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-home-process {
  margin: 0 0 14px;
  padding: 18px;
  border: 1.5px solid rgba(102, 97, 135, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(69, 67, 91, .07);
}

.fmfr-home-process-head {
  margin-bottom: 12px;
}

.fmfr-home-process .fmfr-ritual-path {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fmfr-home-process .fmfr-phase-node {
  min-height: 112px;
  border-radius: 8px;
}

.fmfr-home-process .fmfr-ritual-path span {
  width: 54px;
  height: 54px;
}

.fmfr-home-connection {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1.5px solid rgba(44, 126, 151, .26);
  border-radius: 8px;
  background: #eef8f8;
}

.fmfr-home-connection-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.fmfr-home-connection-icon img,
.fmfr-home-connection-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-home-connection strong {
  color: var(--fmfr-text);
}

.fmfr-home-connection p {
  margin: 3px 0 0;
  color: var(--fmfr-muted);
  font-size: .9rem;
}

.fmfr-home-connection > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1.5px solid rgba(40, 126, 113, .34);
  border-radius: 8px;
  color: #235f56;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .fmfr-home-start {
    padding: 17px;
  }

  .fmfr-home-primary-actions,
  .fmfr-home-secondary-actions {
    grid-template-columns: 1fr;
  }

  .fmfr-home-action {
    grid-template-columns: 54px minmax(0, 1fr) 24px;
    min-height: 96px;
    padding: 14px;
  }

  .fmfr-home-action-icon {
    width: 54px;
    height: 54px;
  }

  .fmfr-home-connection {
    grid-template-columns: 46px minmax(0, 1fr);
  }

.fmfr-home-connection > a {
    grid-column: 1 / -1;
    justify-content: center;
    white-space: normal;
  }
}

/* 1.0.16: Ritualdurchfuehrung als fokussierte Buehne */
.fmfr-run-hero {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border: 1.5px solid rgba(61, 117, 104, .2);
  border-radius: 8px;
  text-align: left;
  background: linear-gradient(135deg, #f1faf6 0%, #fffaf0 100%);
}

.fmfr-run-hero .fmfr-run-icon {
  grid-row: 1 / span 3;
  width: 76px;
  height: 76px;
  margin: 0;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.fmfr-run-hero .fmfr-kicker,
.fmfr-run-hero h2,
.fmfr-run-hero p {
  margin: 0;
}

.fmfr-run-card,
.fmfr-shell.fmfr-shell-embed .fmfr-run-card {
  display: grid;
  min-height: 480px;
  padding: 22px;
  border: 1.5px solid rgba(61, 117, 104, .24);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, rgba(238, 249, 244, .96), rgba(255, 253, 248, .98) 62%);
  box-shadow: 0 18px 44px rgba(45, 73, 66, .11);
  transition: background .3s ease;
}

.fmfr-run-progress {
  grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr);
  margin: 0 0 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.fmfr-run-stepmarks {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 2px;
}

.fmfr-run-stepmarks span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #bfd4ce;
  border-radius: 50%;
  color: #678078;
  font-size: .78rem;
  font-weight: 850;
  background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.fmfr-run-stepmarks span + span {
  margin-left: 42px;
}

.fmfr-run-stepmarks span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 44px;
  height: 2px;
  background: #bfd4ce;
}

.fmfr-run-stepmarks span.is-active {
  border-color: #2f8275;
  color: #fff;
  background: #2f8275;
  transform: scale(1.12);
}

.fmfr-run-stepmarks span.is-done {
  border-color: #79ad78;
  color: #2f6840;
  background: #e5f3e3;
}

.fmfr-run-phase,
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase,
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase:not(.is-active) {
  display: none;
}

.fmfr-run-phase.is-active,
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  width: min(820px, 100%);
  min-height: 300px;
  margin: auto;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid rgba(47, 130, 117, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 48px rgba(37, 82, 72, .16);
  animation: fmfr-phase-enter .34s ease both;
}

.fmfr-run-phase.is-active.is-leaving {
  animation: fmfr-phase-leave .18s ease both;
}

.fmfr-run-phase.is-active .fmfr-run-phase-icon,
.fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-run-phase-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #edf8f4;
}

.fmfr-run-phase.is-active .fmfr-run-phase-icon img,
.fmfr-run-phase.is-active .fmfr-run-phase-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmfr-run-phase.is-active h3 {
  margin: 2px 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.fmfr-run-phase.is-active p {
  margin: 0 0 22px;
  color: #405a54;
  font-size: 1.05rem;
  line-height: 1.65;
}

.fmfr-run-phase.is-active .fmfr-phase-button {
  min-height: 48px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2f8275;
  box-shadow: 0 8px 18px rgba(47, 130, 117, .22);
}

.fmfr-run-card.is-complete,
.fmfr-shell.fmfr-shell-embed .fmfr-run-card.is-complete {
  min-height: 0;
  background: #f0f8ee;
}

.fmfr-run-card.is-complete .fmfr-run-progress {
  margin-bottom: 0;
  border-color: rgba(91, 145, 86, .4);
  background: #fff;
}

.fmfr-reflection[hidden] {
  display: none !important;
}

.fmfr-reflection {
  border: 1.5px solid rgba(97, 128, 87, .3);
  border-radius: 8px;
  animation: fmfr-reflection-enter .34s ease both;
}

@keyframes fmfr-phase-enter {
  from { opacity: 0; transform: translateX(26px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fmfr-phase-leave {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(-22px) scale(.985); }
}

@keyframes fmfr-reflection-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .fmfr-run-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
  }

  .fmfr-run-hero .fmfr-run-icon {
    width: 58px;
    height: 58px;
  }

  .fmfr-run-card,
  .fmfr-shell.fmfr-shell-embed .fmfr-run-card {
    min-height: 420px;
    padding: 14px;
  }

  .fmfr-run-progress {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .fmfr-run-phase.is-active,
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 22px 18px;
    text-align: center;
  }

  .fmfr-run-phase.is-active .fmfr-run-phase-icon,
  .fmfr-shell.fmfr-shell-embed .fmfr-run-phase.is-active .fmfr-run-phase-icon {
    width: 104px;
    margin: 0 auto;
  }

  .fmfr-run-phase.is-active .fmfr-phase-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmfr-run-phase.is-active,
  .fmfr-run-phase.is-active.is-leaving,
  .fmfr-reflection {
    animation: none;
  }
}

/* 1.0.17: Vollbild-Ritual mit benanntem Verlauf */
body.fmfr-run-experience-open {
  overflow: hidden;
}

.fmfr-run-experience {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  background: rgba(27, 42, 39, .42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.fmfr-run-experience-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: #f8fbf9;
  box-shadow: 0 30px 80px rgba(15, 32, 28, .34);
}

.fmfr-run-experience-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 4px 10px 10px;
  color: #41615a;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fmfr-run-exit {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid rgba(40, 90, 80, .22);
  border-radius: 50%;
  color: #285e54;
  font-family: Arial, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 5px 14px rgba(38, 73, 65, .1);
  cursor: pointer;
}

.fmfr-run-exit:hover,
.fmfr-run-exit:focus-visible {
  color: #194a42;
  border-color: #398676;
  background: #edf8f4;
}

.fmfr-run-experience .fmfr-run-hero {
  margin: 0 0 12px;
}

.fmfr-run-experience .fmfr-run-card {
  margin: 0;
}

.fmfr-run-experience .fmfr-reflection {
  margin: 14px 0 0;
}

.fmfr-run-stepmarks {
  width: min(650px, 100%);
  margin: 4px auto 0;
}

.fmfr-run-stepmarks span,
.fmfr-run-stepmarks span.is-active,
.fmfr-run-stepmarks span.is-done {
  position: relative;
  display: grid;
  flex: 1 1 0;
  justify-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #6c7e79;
  background: transparent;
  transform: none;
}

.fmfr-run-stepmarks span + span {
  margin-left: 12px;
}

.fmfr-run-stepmarks span + span::before {
  top: 15px;
  right: calc(50% + 15px);
  width: calc(100% - 18px);
  height: 3px;
  border-radius: 3px;
  background: #c7d8d3;
  transition: background .25s ease;
}

.fmfr-run-stepmarks span.is-active::before,
.fmfr-run-stepmarks span.is-done::before {
  background: #5b9d72;
}

.fmfr-run-stepmarks b {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #bfd4ce;
  border-radius: 50%;
  color: #678078;
  font-size: .78rem;
  background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.fmfr-run-stepmarks small {
  color: inherit;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.fmfr-run-stepmarks span.is-active {
  color: #276d61;
}

.fmfr-run-stepmarks span.is-active b {
  border-color: #2f8275;
  color: #fff;
  background: #2f8275;
  transform: scale(1.12);
}

.fmfr-run-stepmarks span.is-done {
  color: #47724d;
}

.fmfr-run-stepmarks span.is-done b {
  border-color: #79ad78;
  color: #2f6840;
  background: #e5f3e3;
}

.fmfr-run-next {
  justify-self: start;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 6px;
  color: #5b5779 !important;
  font-size: .82rem !important;
  font-weight: 800;
  background: #f0eef8;
}

.fmfr-run-next[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .fmfr-run-experience {
    padding: 0;
  }

  .fmfr-run-experience-inner {
    min-height: 100dvh;
    padding: 10px;
    border: 0;
    border-radius: 0;
  }

  .fmfr-run-experience-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 4px 2px 8px 8px;
    background: rgba(248, 251, 249, .96);
  }

  .fmfr-run-stepmarks span + span {
    margin-left: 2px;
  }

  .fmfr-run-stepmarks span + span::before {
    right: calc(50% + 13px);
    width: calc(100% - 14px);
  }

  .fmfr-run-stepmarks b {
    width: 28px;
    height: 28px;
  }

  .fmfr-run-stepmarks small {
    font-size: .65rem;
  }

  .fmfr-run-next {
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }
}

/* One active ritual task at a time, with direct access to the shared context. */
.fmfr-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.fmfr-hero-main {
  grid-template-columns: minmax(0, 1fr);
}

.fmfr-hero .fmfr-help-actions {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
}

.fmfr-hero .fmfr-help-button {
  flex: 1;
  min-width: 0;
}

.fmfr-hero-main > .fmfr-core-context-select {
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
  padding: 12px;
  border: 1.5px solid #a5c9bf;
  border-radius: 8px;
  background: #eef7f3;
}

.fmfr-core-context-select .fm-context-form,
.fmfr-core-context-select .fm-context-selector.is-compact .fm-context-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fmfr-core-context-select .fm-context-field {
  min-width: 0;
}

.fmfr-core-context-select .fm-context-field label {
  margin-bottom: 5px;
  color: #285e56;
  font-size: 13px;
}

.fmfr-core-context-select select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 8px 32px 8px 10px;
  border: 1px solid #a5c9bf;
  border-radius: 6px;
  background-color: #fff;
  font-size: 16px;
  line-height: normal;
}

.fmfr-core-context-select select:focus-visible {
  outline: 2px solid #25786f;
  outline-offset: 2px;
}

.fmfr-tabs {
  scroll-margin-top: 56px;
}

.fmfr-mine-intro {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 20px 0;
}

.fmfr-mine-intro h2 {
  margin: 0;
}

.fmfr-mine-intro p {
  margin: 0 0 8px;
}

.fmfr-create-ritual {
  gap: 9px;
  margin-top: 8px;
}

.fmfr-create-ritual span,
.fmfr-create-ritual img,
.fmfr-create-ritual svg {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.fmfr-help-ritual-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fmfr-help-ritual-path > span {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--fmfr-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.fmfr-help-ritual-path img,
.fmfr-help-ritual-path svg {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .fmfr-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .fmfr-tab {
    width: 100%;
    padding: 9px 4px;
    font-size: .84rem;
    line-height: 1.2;
    text-align: center;
  }

  .fmfr-help-ritual-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .fmfr-hero .fmfr-help-button {
    padding: 8px 4px;
    gap: 4px;
    font-size: 13px;
  }

  .fmfr-library-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmfr-template-card {
    min-width: 0;
  }

  .fmfr-template-card .fmfr-button,
  .fmfr-template-card .fmfr-preview-trigger {
    white-space: normal;
  }

  .fmfr-core-context-select .fm-context-form,
  .fmfr-core-context-select .fm-context-selector.is-compact .fm-context-form {
    grid-template-columns: 1fr;
  }
}

/* Task panels share a calm, stable working surface. */
.fmfr-card.fmfr-create-form {
  --fmfr-ink: #243e48;
  --fmfr-text: #37535c;
  --fmfr-muted: #536d76;
  --fmfr-line: #cbd8dc;
  --fmfr-accent: #317c72;
  background: #fafcfc;
  border-color: #cbd8dc;
  box-shadow: 0 4px 16px rgba(34, 65, 71, .04);
}

.fmfr-create-form,
.fmfr-create-intro,
.fmfr-create-form :is(h3, h4, button, input, textarea, select, label, legend, summary, p, a, strong, span),
.fmfr-create-intro h2 {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  letter-spacing: 0;
}

.fmfr-create-intro h2 {
  font-size: 26px;
  font-weight: 650;
  color: #243e48;
}

.fmfr-create-form .fmfr-form-section-head h3 {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  color: #243e48;
}

.fmfr-create-form label,
.fmfr-create-form legend {
  color: #37535c;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}

.fmfr-create-form :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
  background: #fff;
  color: #243e48;
  border: 1px solid #b9cbd1;
  border-radius: 6px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
}

.fmfr-create-form :is(input, select, textarea):focus-visible {
  outline: 2px solid #427c76;
  outline-offset: 2px;
}

.fmfr-create-form .fmfr-editor-tabs button {
  grid-template-rows: auto;
  align-items: center;
}

.fmfr-create-form .fmfr-editor-tabs button strong {
  align-self: center;
  font-weight: 600;
  font-size: 16px;
}

.fmfr-create-form .fmfr-editor-savebar .fmfr-button {
  background: #317c72;
  border-color: #317c72;
  color: #fff;
  box-shadow: none;
}

.fmfr-create-form .fmfr-editor-savebar .fmfr-button:hover {
  background: #25665f;
}

.fmfr-create-form .fmfr-editor-savebar a.fmfr-button {
  background: transparent;
  border-color: #b9cbd1;
  color: #37535c;
}

.fmfr-create-form .fmfr-editor-savebar a.fmfr-button:hover {
  background: #eaf2ef;
}

.fmfr-create-form .fmfr-child-choice {
  border-radius: 8px;
  border-color: #cbd8dc;
}

.fmfr-create-form .fmfr-child-choice:has(input:checked) {
  background: #e5f0eb;
  border-color: #91b6a8;
  box-shadow: none;
}

.fmfr-create-form .fmfr-child-choice:focus-within {
  outline: 2px solid #427c76;
  outline-offset: 2px;
}

.fmfr-create-form .fmfr-child-choice__visual {
  background: #f1f7f4;
}

.fmfr-create-form .fmfr-assignment-summary {
  background: #e9f3ef;
  border-left: 2px solid #78a797;
  color: #37535c;
}

.fmfr-create-form .fmfr-calendar-link-row {
  background: #f5faf7;
  border-color: #b6cfc3;
}

.fmfr-create-form [data-fmfr-editor-tab="idea"],
.fmfr-create-form [data-fmfr-editor-panel="idea"] {
  --fmfr-task-light: #f2f7fa;
  --fmfr-task-selected: #e2eef4;
  --fmfr-task-line: #adc4d0;
}

.fmfr-create-form [data-fmfr-editor-tab="flow"],
.fmfr-create-form [data-fmfr-editor-panel="flow"] {
  --fmfr-task-light: #fcf5f6;
  --fmfr-task-selected: #f5e6eb;
  --fmfr-task-line: #d3b6c0;
}

.fmfr-create-form [data-fmfr-editor-tab="connect"],
.fmfr-create-form [data-fmfr-editor-panel="connect"] {
  --fmfr-task-light: #f0f7f5;
  --fmfr-task-selected: #e0eee8;
  --fmfr-task-line: #abc8bc;
}

.fmfr-create-form [data-fmfr-editor-tab="reflect"],
.fmfr-create-form [data-fmfr-editor-panel="reflect"] {
  --fmfr-task-light: #f6f5fa;
  --fmfr-task-selected: #ebe7f4;
  --fmfr-task-line: #c3bcd7;
}

.fmfr-create-form .fmfr-editor-tabs button {
  background: var(--fmfr-task-light);
  border: 1px solid #d3dfe2;
  color: #243e48;
  box-shadow: none;
}

.fmfr-create-form .fmfr-editor-tabs button.is-active,
.fmfr-create-form .fmfr-editor-tabs button:hover {
  background: var(--fmfr-task-selected);
  color: #17304a;
  border-color: var(--fmfr-task-line);
}

.fmfr-create-form .fmfr-editor-tabs button.is-active {
  box-shadow: inset 0 -2px 0 #487d79;
}

.fmfr-create-form .fmfr-editor-tabs button > span {
  background: #fff;
  color: #45616b;
  font-weight: 600;
}

.fmfr-create-form .fmfr-form-section {
  background: var(--fmfr-task-light);
  border-color: var(--fmfr-task-line);
  border-width: 1px;
  box-shadow: none;
}

.fmfr-edit-form.fmfr-create-form .fmfr-editor-more,
.fmfr-create-form [data-fmfr-editor-panel="connect"] .fmfr-editor-more {
  background: var(--fmfr-task-light);
  border-color: var(--fmfr-task-line);
}

.fmfr-create-form .fmfr-editor-more > summary {
  background: transparent;
  color: #17304a;
}

.fmfr-create-form .fmfr-phase-tabs button {
  background: #fff;
  border-color: #d3c4ca;
  color: #17304a;
}

.fmfr-create-form .fmfr-phase-tabs button[aria-selected="true"],
.fmfr-create-form .fmfr-phase-tabs button:hover {
  background: #f5e6eb;
  border-color: #bfa2ae;
  color: #17304a;
}

.fmfr-create-form .fmfr-phase-tabs button[aria-selected="true"] {
  box-shadow: inset 0 -2px 0 #8e6277;
}

.fmfr-create-form .fmfr-editor-savebar {
  background: #f7faf9;
  border-top-color: #cbdad6;
}

.fmfr-edit-intro {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fmfr-ritual-card.fmfr-edit-intro:not(.fmfr-difference-card):not(.fmfr-link-card) .fmfr-template-head {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.fmfr-ritual-card.fmfr-edit-intro .fmfr-icon-bubble {
  width: 64px;
  height: 64px;
  margin: 0;
  flex-shrink: 0;
}

.fmfr-edit-intro h2 {
  margin: 0;
}
.fmfr-edit-form [hidden] {
  display: none !important;
}

.fmfr-phase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.fmfr-phase-tabs button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid #a7c9c0;
  border-radius: 6px;
  background: #f2f7f5;
  color: #17304a;
  white-space: normal;
}

.fmfr-phase-tabs button[aria-selected="true"] {
  background: #25786f;
  border-color: #25786f;
  color: #fff;
}

.fmfr-phase-tabs button:hover {
  background: #dcece6;
  color: #17304a;
}

.fmfr-phase-tabs button:focus-visible {
  outline: 2px solid #17304a;
  outline-offset: 2px;
}

.fmfr-edit-form .fmfr-editor-more {
  margin-top: 18px;
  border: 1px solid #a7c9c0;
  border-radius: 6px;
  background: #f0f7f4;
  padding: 14px 18px;
}

.fmfr-assignment {
  grid-column: 1 / -1;
  min-width: 0;
}

.fmfr-assignment-summary {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid #25786f;
  background: #e7f2ed;
  color: #17304a;
}

.fmfr-edit-form .fmfr-form-section-head .fmfr-kicker,
.fmfr-editor-tabs small,
.fmfr-run-progress [data-fmfr-progress-note],
.fmfr-run-progress [data-fmfr-progress-title] {
  display: none;
}

.fmfr-flow-fields textarea {
  min-height: 160px;
}

.fmfr-question-preview {
  margin: 0;
  padding-left: 24px;
}

.fmfr-edit-form input:not([type="checkbox"]):not([type="radio"]),
.fmfr-edit-form select {
  min-height: 48px;
  height: auto;
  line-height: 1.5;
  padding: 10px 36px 10px 12px;
  max-width: 100%;
  min-width: 0;
}

.fmfr-edit-form label,
.fmfr-edit-form .fmfr-form-grid {
  min-width: 0;
}

.fmfr-editor-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #f4f8f6;
  border-top: 2px solid #a7c9c0;
  padding: 16px;
}

.fmfr-run-phase.is-upcoming,
.fmfr-run-phase.is-done {
  display: none;
}

@media (max-width: 600px) {
  .fmfr-edit-form .fmfr-editor-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fmfr-edit-form .fmfr-editor-tabs button {
    min-height: 52px;
    padding: 10px;
    justify-content: center;
    font-size: 14px;
  }
  .fmfr-edit-form .fmfr-editor-tabs button > span {
    display: none;
  }
  .fmfr-edit-form .fmfr-editor-tabs strong {
    overflow-wrap: normal;
    word-break: normal;
  }
  .fmfr-phase-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fmfr-editor-savebar {
    position: static;
  }
}

/* Details stay with their ritual; explanations use a focused dialog. */
.fmfr-ritual-card.fmfr-my-card:not(.fmfr-difference-card):not(.fmfr-link-card) .fmfr-template-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.fmfr-my-card .fmfr-icon-bubble {
  width: 76px;
  height: 76px;
  margin: 0;
}

.fmfr-my-card .fmfr-template-title h3 {
  margin-top: 0;
}

.fmfr-my-card .fmfr-template-title p {
  margin-bottom: 0;
}

.fmfr-grid:has(> .fmfr-my-card) {
  align-items: start;
}

.fmfr-my-card .fmfr-template-head,
.fmfr-template-card .fmfr-template-head {
  padding-right: 0;
}

.fmfr-my-primary-actions {
  grid-template-columns: minmax(0, 1fr);
}

.fmfr-my-card > .fmfr-manage {
  margin-top: 10px;
}

.fmfr-my-card > .fmfr-manage > summary {
  justify-content: flex-start;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #285e56;
}

.fmfr-manage-panel .fmfr-mini-grid {
  margin: 0;
}

.fmfr-run-history h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 12px 0;
  font-size: 16px;
}

.fmfr-run-history h4 small {
  font-size: 12px;
  color: var(--fmfr-muted);
}

body.fmfr-help-open {
  overflow: hidden;
}

.fmfr-help-overlay,
.fmfr-preview-layer {
  z-index: 100001;
  background: rgba(23, 48, 58, .4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fmfr-hero .fmfr-help-button:hover,
.fmfr-hero .fmfr-help-button:focus-visible {
  background: #eef7f3;
  color: #17304a;
}

.fmfr-hero .fmfr-help-button:focus-visible {
  outline: 2px solid #25786f;
  outline-offset: 2px;
}

.fmfr-help-card {
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
}

.fmfr-help-card .fmfr-help-close,
.fmfr-help-card .fmfr-help-close:hover,
.fmfr-help-card .fmfr-help-close:focus {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  border: 1px solid #a5c9bf;
  border-radius: 6px;
  background: #fff;
  color: #17304a;
}

.fmfr-help-card .fmfr-help-close:focus-visible {
  outline: 2px solid #25786f;
  outline-offset: 2px;
}

.fmfr-anchor-box .fmfr-empty-small {
  min-height: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
}

@media (max-width: 600px) {
  .fmfr-ritual-card.fmfr-my-card:not(.fmfr-difference-card):not(.fmfr-link-card) .fmfr-template-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmfr-help-overlay {
    padding: 0;
  }

  .fmfr-help-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 56px 20px 24px;
    border-radius: 0;
  }

  .fmfr-help-overlay.is-open .fmfr-help-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1;
  }
}
.fmfr-edit-form .fmfr-shared-calendar {
  grid-column: 1 / -1;
  min-width: 0;
}

.fmfr-edit-form .fmfr-calendar-note {
  margin: 0 0 16px;
  color: #345a58;
}

.fmfr-edit-form [data-fmfr-calendar-rows] {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.fmfr-edit-form .fmfr-calendar-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) 44px;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: #edf6f3;
  border: 1px solid #97bdb4;
  border-radius: 8px;
}

.fmfr-edit-form .fmfr-calendar-link-row label {
  min-width: 0;
}

.fmfr-edit-form .fmfr-calendar-link-row [hidden] {
  display: none !important;
}

.fmfr-edit-form .fmfr-calendar-link-row select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  height: auto;
  line-height: 1.4;
  padding: 10px 32px 10px 12px;
}

.fmfr-edit-form .fmfr-link-remove {
  width: 44px;
  height: 48px;
  padding: 0;
  border: 1px solid #97bdb4;
  border-radius: 6px;
  background: #fff;
  color: #345a58;
  font-size: 24px;
}

.fmfr-edit-form .fmfr-link-remove:hover,
.fmfr-edit-form .fmfr-link-remove:focus-visible {
  background: #fce9df;
  border-color: #b16d54;
  color: #703a28;
}

@media (max-width: 760px) {
  .fmfr-edit-form .fmfr-assignment {
    padding: 10px 8px;
  }
  .fmfr-edit-form .fmfr-assignment > .fmfr-form-grid {
    padding: 2px 4px 8px;
  }
  .fmfr-edit-form .fmfr-calendar-link-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 10px;
  }
  .fmfr-edit-form .fmfr-link-remove {
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .fmfr-card.fmfr-edit-form {
    padding: 12px;
  }
  .fmfr-edit-form .fmfr-form-section {
    padding: 12px;
  }
  .fmfr-edit-form .fmfr-assignment {
    padding: 10px 4px;
  }
  .fmfr-edit-form .fmfr-assignment > .fmfr-form-grid {
    padding: 2px 0 8px;
  }
  .fmfr-edit-form .fmfr-calendar-link-row {
    padding: 12px 8px;
  }
}
