#aboGuide {
  --abo-ink: #112e43;
  --abo-accent: #15384f;
  --abo-fill: #e5edef;
  --abo-paper: #fffcf6;
  --abo-muted: #455b63;
  --abo-line: #d4d9d6;
  --abo-pad: clamp(1rem, 4vw, 1.75rem);
  box-sizing: border-box;
  padding: 0;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(32.5rem, calc(100% - 2rem));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: var(--abo-paper);
  color: var(--abo-ink);
  font: 1rem/1.45 Rubik, system-ui, sans-serif;
  text-align: start;
  box-shadow: 0 16px 60px rgb(12 34 48 / 18%);
}
#aboGuide[data-tier="katze"] {--abo-accent: #6b3c50; --abo-fill: #f1e4e8;}
#aboGuide[open] {display: flex; flex-direction: column;}
#aboGuide:not([open]), #aboGuide [hidden] {display: none !important;}
#aboGuide::backdrop {background: rgb(12 29 41 / 43%);}
html:has(#aboGuide[open]) {overflow: hidden;}
#aboGuide *, #aboGuide *::after {box-sizing: border-box;}
#aboGuide :is(input, select, button) {font: inherit;}
#aboGuide :is(legend, label, span, p, strong, dt, dd, h2) {color: inherit;}
#aboGuide :is(button, select, summary, label:has(input[type="radio"])) {cursor: pointer;}
#aboGuide :focus-visible {outline: 2px solid var(--abo-accent); outline-offset: 2px;}
#aboGuide .abo-guide-head {flex: none; padding: .625rem var(--abo-pad) 0;}
#aboGuide .abo-head-row {display: flex; align-items: center; justify-content: space-between; gap: .5rem;}
#aboGuideStep {margin: 0; font: 600 .875rem/1.3 system-ui, sans-serif !important; color: var(--abo-muted) !important;}
#aboGuide .abo-close {display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -.625rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--abo-ink); font: 400 1.7rem/1 system-ui, sans-serif;}
#aboGuide .abo-progress {display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; margin-top: .125rem;}
#aboGuide .abo-progress i {height: 3px; border-radius: 3px; background: var(--abo-line);}
#aboGuide .abo-progress i:first-child,
#aboGuide:is([data-step="2"],[data-step="3"]) .abo-progress i:nth-child(2),
#aboGuide[data-step="3"] .abo-progress i:nth-child(3) {background: var(--abo-accent);}
#aboGuide .abo-guide-body {flex: 1 1 auto; min-height: 0; padding: 1.25rem var(--abo-pad) 1rem; overflow: auto; overscroll-behavior: contain; scroll-padding: .75rem;}
#aboGuide #aboGuideTitle {margin: 0 0 1.125rem; font: 700 clamp(1.45rem, 4.5vw, 1.85rem)/1.15 Rubik, system-ui, sans-serif; letter-spacing: -.035em; text-wrap: balance;}
#aboGuideTitle:focus {outline: 0;}
#aboGuide .abo-field {border: 0; min-width: 0; padding: 0; margin: 0 0 1rem;}
#aboGuide .abo-field legend, #aboGuide .abo-pack-fields label, #aboGuide .abo-calculator label {padding: 0; font-weight: 600; font-size: .9375rem;}
#aboGuide .abo-field legend {margin-bottom: .4rem;}
#aboGuide .abo-visually-hidden {position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
#aboGuide .abo-animals, #aboGuide .abo-weeks, #aboGuide .abo-recipes {display: grid; gap: .375rem; min-width: 0;}
#aboGuide .abo-animals, #aboGuide .abo-recipes {grid-template-columns: repeat(2,minmax(0,1fr));}
#aboGuide .abo-weeks {grid-template-columns: repeat(4,minmax(0,1fr));}
#aboGuide :is(.abo-animals,.abo-weeks,.abo-recipes) label {min-width: 0; position: relative; display: grid; margin: 0;}
#aboGuide input[type="radio"] {position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;}
#aboGuide input[type="radio"] + span {display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .45rem; border-radius: .625rem; background: #f1eee7; color: var(--abo-ink); font-size: .9375rem; text-align: center;}
#aboGuide input[type="radio"]:checked + span {background: var(--abo-accent); color: white; font-weight: 600;}
#aboGuide input[type="radio"]:focus-visible + span {outline: 2px solid var(--abo-accent); outline-offset: 2px;}
#aboGuide .abo-recipes .abo-recipe-face {justify-content: start; gap: .5rem; padding: .35rem .6rem; min-height: 54px; line-height: 1.2; text-align: start; overflow-wrap: anywhere;}
#aboGuide .abo-recipe-face img {flex: none; width: 35px; height: 39px; object-fit: contain;}
#aboGuide .abo-pack-fields {display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;}
#aboGuide .abo-pack-fields label, #aboGuide .abo-calculator label {display: grid; gap: .375rem;}
#aboGuide :is(input[type="number"], select) {width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--abo-line); border-radius: .625rem; background: #fff; color: var(--abo-ink); padding: .45rem .65rem; font-size: 1rem;}
#aboGuide select {appearance: none; padding-inline-end: 1.875rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23112e43' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right .625rem center / 1rem;}
#aboGuide .abo-selection {display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .75rem; background: var(--abo-fill); padding: .65rem .8rem; margin-bottom: 1rem; border-radius: .875rem;}
#aboGuide .abo-selection img {display: block; object-fit: contain; width: 54px; height: 54px;}
#aboGuide .abo-selection strong {display: block; line-height: 1.25;}
#aboGuide .abo-selection p {margin: .2rem 0 0; color: var(--abo-muted); font-size: .9rem;}
#aboGuide .abo-calculator {margin: -.4rem 0 .5rem;}
#aboGuide .abo-calculator summary, #aboGuide .abo-text-action {min-height: 44px; align-content: center; color: var(--abo-ink); font-size: .9375rem;}
#aboGuide .abo-calculator label {margin: .2rem 0 .375rem;}
#aboGuide .abo-calculator input {max-width: 9rem;}
#aboGuide .abo-calculator output {display: block; margin-top: .375rem; font-size: .9375rem;}
#aboGuide .abo-text-action {background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; padding: 0;}
#aboGuide button:disabled {opacity: .55; cursor: default;}
#aboGuide .abo-list {display: grid; gap: .35rem; margin: 0;}
#aboGuide .abo-list div {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .125rem .5rem;}
#aboGuide .abo-list dt, #aboGuide .abo-list dd {margin: 0; font-size: .9375rem; font-weight: 400;}
#aboGuide .abo-list dt {color: var(--abo-muted);}
#aboGuide .abo-list dd {margin-inline-start: auto; text-align: end; font-variant-numeric: tabular-nums;}
#aboGuide .abo-totals {margin-top: .875rem;}
#aboGuide .abo-total {padding-top: .65rem; margin-top: .25rem; border-top: 1px solid var(--abo-line);}
#aboGuide .abo-total :is(dt,dd) {color: var(--abo-ink); font-size: 1.125rem; font-weight: 700;}
#aboGuide .abo-disclosure, #aboGuide .abo-error {margin: .8rem 0 0; font-size: .875rem; line-height: 1.4;}
#aboGuide .abo-disclosure {color: var(--abo-muted);}
#aboGuide .abo-error:empty {display: none;}
#aboGuide .abo-error {color: #8b3133;}
#aboGuide .abo-guide-actions {flex: none; display: flex; align-items: stretch; gap: .65rem; padding: .8rem var(--abo-pad) 1rem; background: var(--abo-paper); border-top: 1px solid var(--abo-line);}
#aboGuide .abo-guide-actions :is(button,a) {min-height: 46px; padding: .6rem 1.05rem; border: 0; border-radius: .75rem; font-weight: 600;}
#aboGuide .abo-back {background: transparent; color: var(--abo-ink);}
#aboGuide .abo-next {flex: 1; background: var(--abo-accent); color: white;}
#aboGuide .abo-due {padding-top: .25rem;}
#aboGuide .abo-due dd {font-weight: 600;}
#aboGuide #aboGuideManage {display: flex; align-items: center; justify-content: center; text-decoration: none; color: white;}
#aboGuide[data-step="success"] .abo-progress {display: none;}
#aboGuide[data-step="success"] .abo-guide-body {padding-top: .25rem;}
#aboGuide[data-step="success"] #aboGuideTitle::before {
  content: "";
  display: block;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  margin-block-end: .75rem;
  background: var(--abo-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") no-repeat center / 1.5rem;
}
@media (max-width: 600px) {
  #aboGuide {inset: auto 0 0; width: 100%; max-height: calc(100vh - .7rem); max-height: calc(100dvh - max(.7rem, env(safe-area-inset-top))); margin: 0 auto; border-radius: 1.125rem 1.125rem 0 0;}
  #aboGuide .abo-guide-actions {padding-bottom: max(.875rem, env(safe-area-inset-bottom));}
}
@media (max-width: 345px) {
  #aboGuide .abo-weeks {grid-template-columns: repeat(2,minmax(0,1fr));}
  #aboGuide .abo-recipe-face img {width: 28px; height: 33px;}
}
@media (prefers-reduced-motion: no-preference) {
  #aboGuide[open] {animation: abo-guide-in .16s ease-out;}
  @keyframes abo-guide-in {from {opacity: 0; transform: translateY(.5rem);} to {opacity: 1; transform: none;}}
}
@media (forced-colors: active) {
  #aboGuide input[type="radio"]:checked + span {outline: 2px solid Highlight; outline-offset: -3px;}
  #aboGuide .abo-progress i {border-block-start: 2px solid GrayText;}
  #aboGuide .abo-next {border: 1px solid ButtonText;}
}
