.helper-plugin-shell,
.helper-plugin-shell *,
.helper-plugin-shell *::before,
.helper-plugin-shell *::after {
  box-sizing: border-box;
}

html.helper-plugin-modal-open,
body.helper-plugin-modal-open {
  overflow: hidden;
}

.helper-plugin-shell {
  --helper-action: #4e7aa7;
  --helper-action-deep: #315f8d;
  --helper-action-hover: #3c618d;
  --helper-border: rgba(78, 122, 167, 0.24);
  --helper-border-strong: rgba(78, 122, 167, 0.36);
  --helper-card-surface: #ffffff;
  --helper-caution-border: rgba(205, 134, 36, 0.32);
  --helper-caution-ink: #a8610e;
  --helper-caution-surface: rgba(255, 246, 225, 0.86);
  --helper-danger-border: rgba(177, 88, 87, 0.32);
  --helper-danger-ink: #a34747;
  --helper-danger-surface: rgba(177, 88, 87, 0.12);
  --helper-dinner-border: rgba(130, 96, 184, 0.3);
  --helper-dinner-surface: rgba(245, 240, 252, 0.9);
  --helper-focus-ring: rgba(78, 122, 167, 0.42);
  --helper-image-outline: rgba(0, 0, 0, 0.1);
  --helper-info-border: rgba(65, 135, 200, 0.28);
  --helper-info-surface: rgba(232, 242, 251, 0.82);
  --helper-muted: #525252;
  --helper-panel-surface: #f7fafc;
  --helper-primary-color: #315f8d;
  --helper-primary-surface: linear-gradient(135deg, #315f8d, #4e7aa7);
  --helper-primary-text: #ffffff;
  --helper-progress-surface: rgba(247, 251, 255, 0.88);
  --helper-progress-track: #e5ebf2;
  --helper-routine-accent: #e6a33a;
  --helper-routine-border: rgba(226, 163, 62, 0.4);
  --helper-routine-surface: #fffdf8;
  --helper-routine-surface-end: #fff8ec;
  --helper-selected-border: rgba(78, 122, 167, 0.46);
  --helper-selected-surface: #e8f2fb;
  --helper-shell-glow: rgba(78, 122, 167, 0.1);
  --helper-status-surface: #f1f5f9;
  --helper-success-border: rgba(61, 124, 91, 0.32);
  --helper-success-ink: #337a56;
  --helper-success-surface: rgba(61, 124, 91, 0.14);
  --helper-surface: #ffffff;
  --helper-text: #292929;
  --helper-text-strong: #101f33;
  background:
    radial-gradient(circle at 92% 8%, var(--helper-shell-glow), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--helper-border);
  border-radius: 22px;
  box-shadow:
    0 22px 60px rgba(25, 53, 84, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  color: var(--helper-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 1.5rem 0;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.35rem);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .helper-plugin-shell,
  html:not([data-theme]) .helper-plugin-shell {
    --helper-action: #9dc9f0;
    --helper-action-deep: #74aee0;
    --helper-action-hover: #c4dff7;
    --helper-border: rgba(157, 201, 240, 0.2);
    --helper-border-strong: rgba(157, 201, 240, 0.34);
    --helper-card-surface: #111b28;
    --helper-caution-border: rgba(224, 180, 64, 0.38);
    --helper-caution-ink: #f0c66a;
    --helper-caution-surface: rgba(224, 180, 64, 0.13);
    --helper-danger-border: rgba(225, 116, 116, 0.38);
    --helper-danger-ink: #ed9a9a;
    --helper-danger-surface: rgba(225, 116, 116, 0.14);
    --helper-dinner-border: rgba(194, 166, 238, 0.36);
    --helper-dinner-surface: rgba(130, 96, 184, 0.18);
    --helper-focus-ring: rgba(157, 201, 240, 0.48);
    --helper-image-outline: rgba(255, 255, 255, 0.1);
    --helper-info-border: rgba(104, 166, 220, 0.34);
    --helper-info-surface: rgba(65, 135, 200, 0.14);
    --helper-muted: #c5d1dc;
    --helper-panel-surface: #152232;
    --helper-primary-color: #74aee0;
    --helper-primary-surface: linear-gradient(135deg, #4e7aa7, #74aee0);
    --helper-primary-text: #07111d;
    --helper-progress-surface: rgba(13, 23, 36, 0.72);
    --helper-progress-track: #263547;
    --helper-routine-accent: #f2bd62;
    --helper-routine-border: rgba(242, 189, 98, 0.34);
    --helper-routine-surface: #1b2026;
    --helper-routine-surface-end: #211e19;
    --helper-selected-border: rgba(157, 201, 240, 0.44);
    --helper-selected-surface: rgba(78, 122, 167, 0.2);
    --helper-shell-glow: rgba(104, 166, 220, 0.12);
    --helper-status-surface: rgba(157, 201, 240, 0.11);
    --helper-success-border: rgba(102, 166, 129, 0.38);
    --helper-success-ink: #87c7a2;
    --helper-success-surface: rgba(102, 166, 129, 0.16);
    --helper-surface: #0d1724;
    --helper-text: #edf4fb;
    --helper-text-strong: #ffffff;
    background:
      radial-gradient(circle at 90% 7%, var(--helper-shell-glow), transparent 38%),
      linear-gradient(180deg, #111d2b 0%, #0d1724 100%);
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }
}

html[data-theme="dark"] .helper-plugin-shell {
  --helper-action: #9dc9f0;
  --helper-action-deep: #74aee0;
  --helper-action-hover: #c4dff7;
  --helper-border: rgba(157, 201, 240, 0.2);
  --helper-border-strong: rgba(157, 201, 240, 0.34);
  --helper-card-surface: #111b28;
  --helper-caution-border: rgba(224, 180, 64, 0.38);
  --helper-caution-ink: #f0c66a;
  --helper-caution-surface: rgba(224, 180, 64, 0.13);
  --helper-danger-border: rgba(225, 116, 116, 0.38);
  --helper-danger-ink: #ed9a9a;
  --helper-danger-surface: rgba(225, 116, 116, 0.14);
  --helper-dinner-border: rgba(194, 166, 238, 0.36);
  --helper-dinner-surface: rgba(130, 96, 184, 0.18);
  --helper-focus-ring: rgba(157, 201, 240, 0.48);
  --helper-image-outline: rgba(255, 255, 255, 0.1);
  --helper-info-border: rgba(104, 166, 220, 0.34);
  --helper-info-surface: rgba(65, 135, 200, 0.14);
  --helper-muted: #c5d1dc;
  --helper-panel-surface: #152232;
  --helper-primary-color: #74aee0;
  --helper-primary-surface: linear-gradient(135deg, #4e7aa7, #74aee0);
  --helper-primary-text: #07111d;
  --helper-progress-surface: rgba(13, 23, 36, 0.72);
  --helper-progress-track: #263547;
  --helper-routine-accent: #f2bd62;
  --helper-routine-border: rgba(242, 189, 98, 0.34);
  --helper-routine-surface: #1b2026;
  --helper-routine-surface-end: #211e19;
  --helper-selected-border: rgba(157, 201, 240, 0.44);
  --helper-selected-surface: rgba(78, 122, 167, 0.2);
  --helper-shell-glow: rgba(104, 166, 220, 0.12);
  --helper-status-surface: rgba(157, 201, 240, 0.11);
  --helper-success-border: rgba(102, 166, 129, 0.38);
  --helper-success-ink: #87c7a2;
  --helper-success-surface: rgba(102, 166, 129, 0.16);
  --helper-surface: #0d1724;
  --helper-text: #edf4fb;
  --helper-text-strong: #ffffff;
  background:
    radial-gradient(circle at 90% 7%, var(--helper-shell-glow), transparent 38%),
    linear-gradient(180deg, #111d2b 0%, #0d1724 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.helper-plugin-header,
.helper-plugin-actions,
.helper-plugin-card-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.helper-plugin-header-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.35rem;
  padding-top: 1.4rem;
}

.helper-plugin-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: flex-end;
}

.helper-plugin-actions--onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.helper-plugin-actions--onboarding .helper-plugin-bottom-previous {
  justify-self: start;
}

.helper-plugin-actions--onboarding .helper-plugin-bottom-advance {
  justify-self: center;
}

.helper-plugin-actions--onboarding [data-helper-next] {
  justify-self: end;
}

.helper-plugin-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--helper-border);
  display: grid;
  gap: 0.85rem clamp(1rem, 2.8vw, 1.8rem);
  grid-template-areas:
    "guide copy"
    "guide progress";
  grid-template-columns: clamp(108px, 14vw, 152px) minmax(0, 1fr);
  margin-bottom: 1rem;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}

.helper-plugin-header-guide {
  align-self: center;
  filter: drop-shadow(0 14px 18px rgba(28, 69, 121, 0.12));
  grid-area: guide;
  justify-self: center;
  max-width: 152px;
  width: 100%;
}

.helper-plugin-header-guide svg {
  display: block;
  height: auto;
  width: 100%;
}

.helper-plugin-header-copy {
  grid-area: copy;
  min-width: 0;
}

.helper-plugin-header-title-row {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
}

.helper-plugin-header-title-row > div:first-child {
  min-width: 0;
}

.helper-plugin-header-subtitle {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  margin: 0;
}

.helper-plugin-protocol-progress {
  background: var(--helper-progress-surface);
  border: 1px solid var(--helper-border);
  border-radius: 16px;
  grid-area: progress;
  min-width: 0;
  padding: 0.95rem 1.05rem;
}

.helper-plugin-progress-copy,
.helper-plugin-progress-meter-row {
  align-items: center;
  display: flex;
}

.helper-plugin-progress-copy {
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.helper-plugin-progress-copy strong {
  color: var(--helper-text-strong);
  font-size: 0.96rem;
}

.helper-plugin-progress-copy span {
  color: var(--helper-action-deep);
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.helper-plugin-progress-meter-row {
  gap: 0.8rem;
}

.helper-plugin-progress-track {
  background: var(--helper-progress-track);
  border-radius: 999px;
  display: block;
  flex: 1;
  height: 10px;
  min-width: 0;
  overflow: hidden;
}

.helper-plugin-progress-fill {
  background: linear-gradient(90deg, var(--helper-action-deep), #4c98ef);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(76, 152, 239, 0.22);
  display: block;
  height: 100%;
  min-width: 10px;
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.helper-plugin-progress-percent {
  color: var(--helper-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}

html[data-theme="dark"] .helper-plugin-header {
  background: rgba(17, 27, 40, 0.74);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .helper-plugin-header,
  html:not([data-theme]) .helper-plugin-header {
    background: rgba(17, 27, 40, 0.74);
  }
}

.helper-plugin-kicker {
  color: var(--helper-action-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.helper-plugin-shell h2 {
  color: var(--helper-text-strong);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.helper-plugin-header h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.helper-plugin-shell h3,
.helper-plugin-shell h4 {
  color: var(--helper-text-strong);
  margin: 0;
  text-wrap: balance;
}

.helper-plugin-shell p {
  color: var(--helper-muted);
  margin: 0 0 1rem;
  max-width: 65ch;
  text-wrap: pretty;
}

.helper-plugin-status {
  background: var(--helper-status-surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--helper-border);
  padding: 0.875rem 1rem;
}

.helper-plugin-inline-status {
  color: var(--helper-muted);
  font-size: 0.85rem;
  font-style: italic;
  height: 1.4rem;
  line-height: 1.4rem;
  max-width: min(24rem, 65%);
  opacity: 0.72;
  overflow: hidden;
  position: absolute;
  right: 0;
  text-align: right;
  text-overflow: ellipsis;
  top: 0;
  white-space: nowrap;
}

.helper-plugin-inline-status:empty {
  display: block;
  visibility: hidden;
}

.helper-plugin-card {
  display: grid;
  gap: 1.1rem;
}

.helper-plugin-card-head {
  align-items: flex-start;
  background:
    radial-gradient(circle at 88% 20%, rgba(78, 122, 167, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 250, 0.94));
  border-radius: 20px;
  box-shadow:
    0 14px 34px rgba(25, 53, 84, 0.08),
    0 0 0 1px var(--helper-border);
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  padding: clamp(1.15rem, 2.8vw, 1.65rem);
  position: relative;
}

.helper-plugin-card-head::after {
  background-image:
    radial-gradient(circle, rgba(78, 122, 167, 0.16) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  content: "";
  height: 120px;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
  right: clamp(0.5rem, 5vw, 3rem);
  top: 1rem;
  width: 150px;
}

html[data-theme="dark"] .helper-plugin-card-head {
  background:
    radial-gradient(circle at 88% 20%, rgba(157, 201, 240, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(21, 34, 50, 0.94), rgba(17, 27, 40, 0.94));
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .helper-plugin-card-head,
  html:not([data-theme]) .helper-plugin-card-head {
    background:
      radial-gradient(circle at 88% 20%, rgba(157, 201, 240, 0.14), transparent 32%),
      linear-gradient(135deg, rgba(21, 34, 50, 0.94), rgba(17, 27, 40, 0.94));
  }
}

.helper-plugin-card-head--routine {
  align-items: center;
  background:
    radial-gradient(circle at 84% 34%, rgba(230, 163, 58, 0.13), transparent 28%),
    linear-gradient(135deg, var(--helper-routine-surface), var(--helper-routine-surface-end));
  box-shadow:
    0 14px 34px rgba(114, 78, 24, 0.07),
    0 0 0 1px var(--helper-routine-border);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 168px;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.helper-plugin-card-head--routine::after {
  display: none;
}

.helper-plugin-routine-mark {
  align-items: center;
  align-self: start;
  border: 1px solid var(--helper-routine-border);
  border-radius: 50%;
  color: var(--helper-routine-accent);
  display: flex;
  height: clamp(58px, 7vw, 72px);
  justify-content: center;
  position: relative;
  width: clamp(58px, 7vw, 72px);
  z-index: 2;
}

.helper-plugin-routine-mark svg {
  height: 72%;
  width: 72%;
}

.helper-plugin-routine-copy {
  max-width: min(64%, 590px);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.helper-plugin-card-head--routine h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.helper-plugin-card-head--routine .helper-plugin-step-description {
  line-height: 1.55;
}

.helper-plugin-routine-horizon {
  bottom: -2px;
  color: var(--helper-routine-accent);
  pointer-events: none;
  position: absolute;
  right: -8px;
  width: min(39%, 350px);
  z-index: 1;
}

.helper-plugin-routine-horizon svg {
  display: block;
  height: auto;
  width: 100%;
}

html[data-theme="dark"] .helper-plugin-card-head--routine {
  background:
    radial-gradient(circle at 84% 34%, rgba(242, 189, 98, 0.1), transparent 30%),
    linear-gradient(135deg, var(--helper-routine-surface), var(--helper-routine-surface-end));
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .helper-plugin-card-head--routine,
  html:not([data-theme]) .helper-plugin-card-head--routine {
    background:
      radial-gradient(circle at 84% 34%, rgba(242, 189, 98, 0.1), transparent 30%),
      linear-gradient(135deg, var(--helper-routine-surface), var(--helper-routine-surface-end));
  }
}

.helper-plugin-step-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  position: relative;
  z-index: 1;
}

.helper-plugin-step-eyebrow {
  color: var(--helper-action-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.helper-plugin-step-count {
  background: var(--helper-status-surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--helper-border);
  color: var(--helper-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
}

.helper-plugin-card-head h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  position: relative;
  z-index: 1;
}

.helper-plugin-step-description {
  color: var(--helper-muted);
  font-size: clamp(1rem, 1.5vw, 1.06rem);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 68ch;
  position: relative;
  z-index: 1;
}

.helper-plugin-card-body,
.helper-plugin-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.helper-plugin-summary {
  background: var(--helper-panel-surface);
  border: 1px solid var(--helper-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(25, 53, 84, 0.05);
  padding: 1rem;
}

.helper-plugin-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-grid--stacked {
  grid-template-columns: 1fr;
}

.helper-plugin-grid--shake-choice {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.helper-plugin-choice-panel .helper-plugin-grid--shake-choice + .helper-plugin-muted {
  margin: 1rem 0 0;
}

.helper-plugin-option,
.helper-plugin-primary,
.helper-plugin-secondary,
.helper-plugin-link {
  appearance: none;
  background: transparent;
  border: 1px solid var(--helper-border);
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  padding: 0.9rem 1rem;
  text-align: left;
  transition-duration: 150ms;
  transition-property: background-color, border-color, box-shadow, color, scale;
  transition-timing-function: ease-out;
}

.helper-plugin-option:active,
.helper-plugin-primary:active,
.helper-plugin-secondary:active {
  scale: 0.96;
}

.helper-plugin-option--rich {
  display: grid;
  gap: 0.45rem;
  min-height: 110px;
}

.helper-plugin-option {
  background: var(--helper-card-surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.helper-plugin-option:hover {
  background: var(--helper-info-surface);
  border-color: var(--helper-border-strong);
}

.helper-plugin-option--selected {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.08), rgba(255, 255, 255, 0)),
    var(--helper-selected-surface);
  border-color: var(--helper-selected-border);
  box-shadow:
    0 0 0 1px var(--helper-selected-border),
    0 12px 28px rgba(25, 53, 84, 0.08);
}

.helper-plugin-primary {
  background-color: var(--helper-primary-color);
  background-image: var(--helper-primary-surface);
  border-color: transparent;
  box-shadow:
    0 10px 24px rgba(49, 95, 141, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: var(--helper-primary-text);
  font-weight: 600;
  text-align: center;
}

@media (forced-colors: active) {
  .helper-plugin-primary {
    background: ButtonFace;
    border-color: ButtonText;
    box-shadow: none;
    color: ButtonText;
  }
}

.helper-plugin-shell a.helper-plugin-primary,
.helper-plugin-shell a.helper-plugin-primary:visited,
.helper-plugin-shell a.helper-plugin-primary:hover,
.helper-plugin-shell a.helper-plugin-primary:focus {
  color: var(--helper-primary-text);
}

.helper-plugin-secondary,
.helper-plugin-link {
  background: transparent;
}

.helper-plugin-secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--helper-border-strong);
  color: var(--helper-action-deep);
  font-weight: 600;
  text-align: center;
}

html[data-theme="dark"] .helper-plugin-secondary {
  background: rgba(13, 23, 36, 0.48);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .helper-plugin-secondary,
  html:not([data-theme]) .helper-plugin-secondary {
    background: rgba(13, 23, 36, 0.48);
  }
}

.helper-plugin-primary:hover,
.helper-plugin-secondary:hover,
.helper-plugin-more-info-button:hover {
  border-color: var(--helper-action-hover);
  box-shadow:
    0 12px 28px rgba(49, 95, 141, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.helper-plugin-link {
  border: 0;
  color: var(--helper-action-deep);
  padding: 0;
  text-decoration: underline;
}

.helper-plugin-link-inline {
  color: var(--helper-action-deep);
  text-decoration: underline;
}

.helper-plugin-pill-link {
  align-items: center;
  background: var(--helper-selected-surface);
  border: 1px solid var(--helper-selected-border);
  border-radius: 999px;
  color: var(--helper-action-deep);
  display: inline-flex;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.16rem 0.55rem;
  text-decoration: none;
  transition-duration: 150ms;
  transition-property: background-color, border-color, box-shadow, color;
  transition-timing-function: ease-out;
  white-space: nowrap;
}

.helper-plugin-pill-link:hover {
  border-color: var(--helper-action-hover);
  box-shadow: 0 8px 20px rgba(49, 95, 141, 0.16);
  color: var(--helper-action-hover);
}

.helper-plugin-pill-link:focus-visible {
  outline: 3px solid var(--helper-focus-ring);
  outline-offset: 2px;
}

.helper-plugin-more-info-button {
  appearance: none;
  background: var(--helper-status-surface);
  border: 1px solid var(--helper-border);
  border-radius: 999px;
  color: var(--helper-action-deep);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  transition-duration: 150ms;
  transition-property: background-color, border-color, box-shadow, scale;
  transition-timing-function: ease-out;
}

.helper-plugin-more-info-button:active {
  scale: 0.96;
}

.helper-plugin-action-link {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.helper-plugin-icon {
  align-items: center;
  background: var(--helper-info-surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--helper-info-border);
  color: var(--helper-action-deep);
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.helper-plugin-icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.helper-plugin-icon--caution {
  background: var(--helper-caution-surface);
  box-shadow: 0 0 0 1px var(--helper-caution-border);
}

.helper-plugin-icon--success {
  background: var(--helper-success-surface);
  box-shadow: 0 0 0 1px var(--helper-success-border);
}

.helper-plugin-check {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.helper-plugin-check input {
  block-size: 1rem;
  inline-size: 1rem;
}

.helper-plugin-summary-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.helper-plugin-results {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-order-intro {
  background: var(--helper-info-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-info-border);
  padding: 0.95rem 1rem;
}

.helper-plugin-order-intro p:last-child {
  margin-bottom: 0;
}

.helper-plugin-result-block {
  background: var(--helper-card-surface);
  border: 1px solid var(--helper-border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(25, 53, 84, 0.06);
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
}

.helper-plugin-empty-state {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.07), rgba(255, 255, 255, 0)),
    var(--helper-card-surface);
}

.helper-plugin-empty-state p:last-child {
  margin-bottom: 0;
}

.helper-plugin-vendor-group {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.055), rgba(255, 255, 255, 0)),
    var(--helper-card-surface);
  border: 1px solid var(--helper-border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(25, 53, 84, 0.06);
  margin-top: 0.75rem;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
}

.helper-plugin-vendor-group header {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-vendor-group header strong,
.helper-plugin-order-card strong,
.helper-plugin-order-card p,
.helper-plugin-vendor-actions p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.helper-plugin-vendor-group header p {
  margin-bottom: 0;
}

.helper-plugin-vendor-actions {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-vendor-actions--compact {
  margin: 0.65rem 0;
}

.helper-plugin-order-list {
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-resource-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin: 0.85rem 0;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-resource-card {
  background: var(--helper-card-surface);
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(25, 53, 84, 0.06),
    0 0 0 1px var(--helper-border);
  display: grid;
  gap: 0.75rem;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  padding: 1rem;
}

.helper-plugin-resource-card p {
  margin: 0;
}

.helper-plugin-resource-card-head {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.helper-plugin-resource-card .helper-plugin-action-link {
  align-items: center;
  align-self: end;
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.1), rgba(255, 255, 255, 0.64)),
    var(--helper-card-surface);
  border-color: var(--helper-border-strong);
  box-sizing: border-box;
  color: var(--helper-action-deep);
  display: inline-flex;
  height: 64px;
  justify-content: center;
  line-height: 1.25;
  min-height: 64px;
  padding-block: 0.35rem;
  text-align: center;
  width: 100%;
}

.helper-plugin-order-card {
  background: var(--helper-card-surface);
  border: 1px solid var(--helper-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(25, 53, 84, 0.055);
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
}

.helper-plugin-order-card > * {
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-backup-option {
  padding: 0;
}

.helper-plugin-backup-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr);
  list-style: none;
  min-height: 44px;
  min-width: 0;
  padding: 1rem;
}

.helper-plugin-backup-summary::-webkit-details-marker {
  display: none;
}

.helper-plugin-backup-summary::before {
  content: ">";
  display: inline-block;
  font-weight: 700;
  opacity: 0.72;
  transition-duration: 150ms;
  transition-property: transform;
  transition-timing-function: ease-out;
}

.helper-plugin-backup-option[open] .helper-plugin-backup-summary::before {
  transform: rotate(90deg);
}

.helper-plugin-backup-summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.helper-plugin-backup-summary .helper-plugin-order-card-head {
  margin-bottom: 0;
}

.helper-plugin-backup-body {
  border-top: 1px solid var(--helper-border);
  padding: 0.85rem 1rem 1rem 2.7rem;
}

.helper-plugin-order-card p {
  margin-bottom: 0.5rem;
}

.helper-plugin-order-card-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-order-card-actions .helper-plugin-primary,
.helper-plugin-order-card-actions .helper-plugin-secondary,
.helper-plugin-vendor-actions .helper-plugin-primary,
.helper-plugin-vendor-actions .helper-plugin-secondary {
  max-width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  white-space: normal;
}

.helper-plugin-primary:disabled,
.helper-plugin-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.helper-plugin-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-price-line {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.helper-plugin-product-status {
  border-radius: 999px;
  box-shadow: 0 0 0 1px transparent;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.helper-plugin-product-status--not_started {
  background: var(--helper-status-surface);
  color: var(--helper-muted);
}

.helper-plugin-product-status--opened {
  background: var(--helper-caution-surface);
  box-shadow: 0 0 0 1px var(--helper-caution-border);
}

.helper-plugin-product-status--partial {
  background: var(--helper-info-surface);
  box-shadow: 0 0 0 1px var(--helper-info-border);
}

.helper-plugin-product-status--ordered {
  background: var(--helper-success-surface);
  box-shadow: 0 0 0 1px var(--helper-success-border);
}

.helper-plugin-product-status--deprecated {
  background: var(--helper-caution-surface);
  box-shadow: 0 0 0 1px var(--helper-caution-border);
}

.helper-plugin-onboarding-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.helper-plugin-stage-badge {
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.helper-plugin-stage-badge--getting-started {
  background: var(--helper-status-surface);
}

.helper-plugin-stage-badge--stage-1 {
  background: var(--helper-success-surface);
  box-shadow: 0 0 0 1px var(--helper-success-border);
}

.helper-plugin-stage-badge--stage-2 {
  background: var(--helper-info-surface);
  box-shadow: 0 0 0 1px var(--helper-info-border);
}

.helper-plugin-stage-badge--stage-3 {
  background: var(--helper-danger-surface);
  box-shadow: 0 0 0 1px var(--helper-danger-border);
}

.helper-plugin-stage-focus {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.08), rgba(255, 255, 255, 0)),
    var(--helper-panel-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-border);
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
}

.helper-plugin-stage-focus h5 {
  font-size: 1rem;
  margin: 0 0 0.55rem;
  text-wrap: balance;
}

.helper-plugin-stage-focus p {
  margin-bottom: 0.65rem;
}

.helper-plugin-stage-focus p:last-child {
  margin-bottom: 0;
}

.helper-plugin-stage-focus-summary {
  color: inherit;
}

.helper-plugin-stage-focus-details {
  margin-top: 0.7rem;
}

.helper-plugin-stage-focus-details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0.35rem 0;
}

.helper-plugin-stage-focus-details div {
  border-top: 1px solid var(--helper-border);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.helper-plugin-content-block {
  display: grid;
  gap: 0.7rem;
  margin: 0.55rem 0 0.8rem;
}

.helper-plugin-content-block p {
  margin: 0;
}

.helper-plugin-content-block-details {
  display: grid;
  gap: 0.55rem;
}

.helper-plugin-recipe-shortcuts {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.07), rgba(255, 255, 255, 0)),
    var(--helper-panel-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-border);
  margin: 0.85rem 0;
  padding: 0.9rem;
}

.helper-plugin-recipe-shortcuts h5 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  text-wrap: balance;
}

.helper-plugin-stage-change-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 0.85rem 0;
}

.helper-plugin-stage-change-panel {
  --helper-recipe-border: var(--helper-info-border);
  --helper-recipe-surface: var(--helper-info-surface);
  background:
    linear-gradient(135deg, var(--helper-recipe-surface), rgba(255, 255, 255, 0)),
    var(--helper-panel-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-recipe-border);
  padding: 0.85rem 1rem;
}

.helper-plugin-stage-change-panel--sipper {
  --helper-recipe-border: var(--helper-success-border);
  --helper-recipe-surface: var(--helper-success-surface);
}

.helper-plugin-stage-change-panel--shake {
  --helper-recipe-border: var(--helper-caution-border);
  --helper-recipe-surface: var(--helper-caution-surface);
}

.helper-plugin-stage-change-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.helper-plugin-stage-change-details {
  margin-top: 0.65rem;
}

.helper-plugin-stage-change-details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0.35rem 0;
}

.helper-plugin-stage-change-section {
  border-top: 1px solid var(--helper-border);
  padding-top: 0.75rem;
}

.helper-plugin-stage-change-section + .helper-plugin-stage-change-section {
  margin-top: 0.75rem;
}

.helper-plugin-stage-change-list {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.helper-plugin-stage-change-list li + li {
  margin-top: 0.35rem;
}

.helper-plugin-deprecated-toggle {
  background: var(--helper-panel-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-border);
  padding: 0.75rem 0.85rem;
}

.helper-plugin-deprecated-toggle p,
.helper-plugin-deprecated-note {
  margin-bottom: 0;
}

.helper-plugin-deprecated-note {
  background: var(--helper-caution-surface);
  border-left: 3px solid var(--helper-caution-border);
  border-radius: 10px;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
}

.helper-plugin-test-item {
  margin-bottom: 0.8rem;
}

.helper-plugin-test-item:last-child {
  margin-bottom: 0;
}

.helper-plugin-test-item-main p:last-child {
  margin-bottom: 0;
}

.helper-plugin-onboarding-focus {
  background:
    linear-gradient(135deg, rgba(78, 122, 167, 0.12), rgba(255, 255, 255, 0)),
    var(--helper-panel-surface);
  border: 1px solid var(--helper-selected-border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(25, 53, 84, 0.07);
  padding: 1rem;
  scroll-margin-top: 1rem;
}

.helper-plugin-onboarding-focus-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.helper-plugin-onboarding-focus-head h4 {
  margin-top: 0.45rem;
}

.helper-plugin-onboarding-current-additions {
  background: var(--helper-card-surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--helper-border);
  margin: 0.9rem 0;
  padding: 0.85rem 1rem;
}

.helper-plugin-onboarding-current-additions ul {
  margin-top: 0.55rem;
}

.helper-plugin-onboarding-current-additions--checkpoint {
  background:
    linear-gradient(135deg, var(--helper-info-surface), rgba(255, 255, 255, 0)),
    var(--helper-panel-surface);
}

.helper-plugin-onboarding-current-additions--checkpoint p {
  margin-bottom: 0;
}

.helper-plugin-step-image {
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.helper-plugin-step-image a {
  border-radius: 16px;
  display: block;
}

.helper-plugin-step-image img {
  background: var(--helper-panel-surface);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px var(--helper-image-outline, rgba(0, 0, 0, 0.1)),
    0 16px 38px rgba(0, 0, 0, 0.08);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.helper-plugin-step-image figcaption {
  color: var(--helper-muted, currentColor);
  font-size: 0.9rem;
  margin-top: 0.55rem;
  opacity: 0.78;
  text-align: center;
}

.helper-plugin-daily-planner {
  background: var(--helper-card-surface);
  border-radius: 18px;
  box-shadow:
    0 14px 34px rgba(25, 53, 84, 0.07),
    0 0 0 1px var(--helper-border);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.helper-plugin-planner-time-block {
  --helper-time-accent: var(--helper-action);
  --helper-time-border: color-mix(in srgb, var(--helper-time-accent) 34%, transparent);
  --helper-time-icon-surface: color-mix(in srgb, var(--helper-time-accent) 13%, var(--helper-card-surface));
  --helper-time-ink: color-mix(in srgb, var(--helper-time-accent) 78%, var(--helper-text-strong));
  --helper-time-item-surface: color-mix(in srgb, var(--helper-time-surface) 44%, var(--helper-card-surface));
  --helper-time-muted: color-mix(in srgb, var(--helper-time-ink) 56%, var(--helper-text));
  --helper-time-surface: color-mix(in srgb, var(--helper-time-accent) 9%, var(--helper-card-surface));
  background:
    linear-gradient(135deg, var(--helper-time-surface), color-mix(in srgb, var(--helper-time-surface) 45%, transparent)),
    var(--helper-card-surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--helper-time-border);
  padding: 0.85rem;
}

.helper-plugin-planner-time-block + .helper-plugin-planner-time-block {
  margin-top: 0;
}

.helper-plugin-planner-time-block--wake {
  --helper-time-accent: #5b99de;
}

.helper-plugin-planner-time-block--breakfast-before,
.helper-plugin-planner-time-block--breakfast {
  --helper-time-accent: #dd9b36;
}

.helper-plugin-planner-time-block--breakfast-after {
  --helper-time-accent: #dd744d;
}

.helper-plugin-planner-time-block--lunch-before {
  --helper-time-accent: #3f9770;
}

.helper-plugin-planner-time-block--lunch,
.helper-plugin-planner-time-block--lunch-after {
  --helper-time-accent: #34948e;
}

.helper-plugin-planner-time-block--dinner-before {
  --helper-time-accent: #8260b8;
}

.helper-plugin-planner-time-block--dinner,
.helper-plugin-planner-time-block--dinner-after {
  --helper-time-accent: #417dc2;
}

.helper-plugin-planner-time-block--snack {
  --helper-time-accent: #c44b6f;
}

.helper-plugin-planner-time-block--bedtime {
  --helper-time-accent: #5b6bb9;
}

#helper-plugin-daily-planner .helper-plugin-planner-time-block > h5 {
  color: var(--helper-time-ink) !important;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  opacity: 0.82;
  text-transform: uppercase;
}

.helper-plugin-planner-actions {
  display: grid;
  gap: 0.15rem;
}

.helper-plugin-planner-action {
  background: var(--helper-time-item-surface);
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
}

.helper-plugin-planner-action:not(:last-child) {
  border-bottom: 1px solid var(--helper-time-border);
}

.helper-plugin-planner-action--current {
  background: color-mix(in srgb, var(--helper-time-accent) 15%, var(--helper-card-surface));
  box-shadow: 0 0 0 1px var(--helper-time-border);
}

.helper-plugin-planner-action--complete {
  background: var(--helper-success-surface);
  box-shadow: 0 0 0 1px var(--helper-success-border);
}

.helper-plugin-planner-action--complete .helper-plugin-planner-title {
  opacity: 0.72;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.helper-plugin-planner-action-layout {
  align-items: center;
  display: grid;
  gap: 0.55rem 0.7rem;
  grid-template-areas: "icon check identity description meta";
  grid-template-columns: 30px 26px 180px minmax(160px, 1fr) 175px;
}

.helper-plugin-planner-identity,
.helper-plugin-planner-description {
  min-width: 0;
}

.helper-plugin-planner-identity {
  grid-area: identity;
}

.helper-plugin-planner-description {
  color: var(--helper-time-muted);
  grid-area: description;
}

.helper-plugin-planner-description .helper-plugin-muted {
  color: inherit;
}

.helper-plugin-planner-category-icon {
  align-items: center;
  background: var(--helper-time-icon-surface);
  border-radius: 9px;
  color: var(--helper-time-ink);
  display: inline-flex;
  grid-area: icon;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.helper-plugin-planner-category-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.helper-plugin-planner-checkbox {
  align-items: center;
  align-self: center;
  cursor: pointer;
  display: flex;
  grid-area: check;
  height: 26px;
  justify-content: center;
  position: relative;
  width: 26px;
}

.helper-plugin-planner-checkbox input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.helper-plugin-planner-checkbox-box {
  background: var(--helper-card-surface);
  border: 2px solid var(--helper-border-strong);
  border-radius: 7px;
  display: block;
  height: 21px;
  pointer-events: none;
  position: relative;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
  width: 21px;
}

.helper-plugin-planner-checkbox-box::after {
  border-bottom: 2px solid var(--helper-primary-text);
  border-right: 2px solid var(--helper-primary-text);
  content: "";
  height: 9px;
  left: 6px;
  opacity: 0;
  position: absolute;
  top: 3px;
  transform: rotate(45deg) scale(0.7);
  transition:
    opacity 120ms ease,
    transform 140ms ease;
  width: 5px;
}

.helper-plugin-planner-checkbox input:checked + .helper-plugin-planner-checkbox-box {
  background: var(--helper-action-deep);
  border-color: var(--helper-action-deep);
  transform: scale(1.03);
}

.helper-plugin-planner-checkbox input:checked + .helper-plugin-planner-checkbox-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.helper-plugin-planner-checkbox input:focus-visible + .helper-plugin-planner-checkbox-box {
  outline: 3px solid var(--helper-focus-ring);
  outline-offset: 2px;
}

.helper-plugin-planner-title-row {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.helper-plugin-planner-title {
  min-width: 0;
}

.helper-plugin-planner-action-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  grid-area: meta;
  justify-content: flex-end;
}

.helper-plugin-planner-action-meta .helper-plugin-more-info-button {
  padding-inline: 0.75rem;
}

.helper-plugin-planner-dose {
  display: block;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  opacity: 0.78;
}

.helper-plugin-planner-dose-note {
  font-variant-numeric: tabular-nums;
}

.helper-plugin-dose-change-note {
  background: var(--helper-info-surface);
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--helper-info-border);
  font-variant-numeric: tabular-nums;
  padding: 0.42rem 0.55rem;
}

.helper-plugin-planner-action p {
  margin: 0;
}

.helper-plugin-planner-description > * + * {
  margin-top: 0.3rem;
}

.helper-plugin-planner-action .helper-plugin-link-inline {
  display: inline-block;
  margin-top: 0.35rem;
}

.helper-plugin-planner-day-footer {
  align-items: center;
  background: var(--helper-panel-surface);
  border: 1px solid var(--helper-border);
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
}

.helper-plugin-planner-day-footer strong {
  color: var(--helper-text-strong);
}

.helper-plugin-planner-day-footer p {
  margin: 0.2rem 0 0;
}

.helper-plugin-modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  overscroll-behavior: contain;
  z-index: 99999;
}

.helper-plugin-modal {
  background: var(--helper-surface);
  border-radius: 20px;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--helper-border);
  color: inherit;
  max-height: min(80vh, 720px);
  max-width: min(680px, 100%);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.1rem;
  position: relative;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.helper-plugin-modal--recipe {
  max-width: min(960px, 100%);
}

.helper-plugin-modal-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-right: 3rem;
}

.helper-plugin-modal-head h4 {
  margin: 0;
}

.helper-plugin-modal-head-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.helper-plugin-modal-close {
  align-items: center;
  background: var(--helper-card-surface);
  border: 1px solid var(--helper-border-strong);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(25, 53, 84, 0.14);
  color: var(--helper-text-strong);
  display: flex;
  font-size: 1.45rem;
  font-weight: 500;
  height: 40px;
  justify-content: center;
  line-height: 1;
  margin: 0 0 -40px auto;
  padding: 0;
  position: sticky;
  text-decoration: none;
  top: 0;
  width: 40px;
  z-index: 4;
}

.helper-plugin-modal-close:hover {
  background: var(--helper-status-surface);
  color: var(--helper-action-hover);
}

.helper-plugin-modal-close span {
  display: block;
  pointer-events: none;
  transform: translateY(-1px);
}

.helper-plugin-modal-print {
  min-height: 40px;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
}

.helper-plugin-modal-body {
  background: var(--helper-panel-surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--helper-border);
  padding: 0.9rem 1rem;
}

.helper-plugin-modal-body p {
  max-width: 68ch;
}

.helper-plugin-modal-body p:last-child {
  margin-bottom: 0;
}

.helper-plugin-modal--recipe .helper-plugin-modal-body {
  overflow-x: auto;
  padding: 1rem;
}

.helper-plugin-modal--recipe .helper-plugin-modal-body p {
  max-width: none;
}

.helper-plugin-more-info-copy {
  display: grid;
  gap: 0.8rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.helper-plugin-more-info-copy p {
  margin: 0;
}

.helper-plugin-related-links {
  border-top: 1px solid var(--helper-border);
  margin-top: 0.9rem;
  padding-top: 0.85rem;
}

.helper-plugin-related-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.helper-plugin-related-link {
  background: var(--helper-status-surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--helper-border);
  color: var(--helper-action-deep);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.42rem 0.7rem;
  text-decoration: none;
}

.helper-plugin-related-link--primary {
  background: var(--helper-selected-surface);
  box-shadow: 0 0 0 1px var(--helper-selected-border);
}

.helper-plugin-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.helper-plugin-recipe-sheet {
  color: inherit;
}

.helper-plugin-recipe-section {
  background: var(--helper-panel-surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--helper-border);
  margin-top: 0.95rem;
  padding: 0.85rem;
}

.helper-plugin-recipe-section h5 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
  text-wrap: balance;
}

.helper-plugin-recipe-list {
  display: grid;
  gap: 0.55rem;
}

.helper-plugin-recipe-item {
  background: var(--helper-card-surface);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--helper-border);
  padding: 0.7rem 0.8rem;
}

.helper-plugin-recipe-item-main {
  display: grid;
  gap: 0.25rem;
}

.helper-plugin-recipe-item-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
}

.helper-plugin-recipe-item strong,
.helper-plugin-recipe-amount {
  overflow-wrap: anywhere;
}

.helper-plugin-recipe-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: normal;
}

.helper-plugin-recipe-item p {
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.helper-plugin-inline-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.helper-plugin-muted {
  font-size: 0.92rem;
  opacity: 0.78;
}

.helper-plugin-summary-list div {
  display: grid;
  gap: 0.2rem;
}

.helper-plugin-summary-list dt {
  font-size: 0.9rem;
  font-weight: 700;
}

.helper-plugin-summary-list dd {
  margin: 0;
  opacity: 0.88;
}

.helper-plugin-list {
  margin: 0;
  padding-left: 1.1rem;
}

.helper-plugin-option:focus-visible,
.helper-plugin-primary:focus-visible,
.helper-plugin-secondary:focus-visible,
.helper-plugin-link:focus-visible,
.helper-plugin-more-info-button:focus-visible,
.helper-plugin-check input:focus-visible {
  outline: 3px solid var(--helper-focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .helper-plugin-progress-fill,
  .helper-plugin-planner-checkbox-box,
  .helper-plugin-planner-checkbox-box::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .helper-plugin-planner-action-layout {
    align-items: center;
    grid-template-areas:
      "icon check identity"
      "description description description"
      "meta meta meta";
    grid-template-columns: 30px 26px minmax(0, 1fr);
  }

  .helper-plugin-planner-action-meta {
    justify-content: flex-start;
  }

  .helper-plugin-planner-description,
  .helper-plugin-planner-action-meta {
    padding-left: 0.15rem;
  }
}

@media (max-width: 720px) {
  .helper-plugin-header,
  .helper-plugin-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .helper-plugin-header-actions {
    align-items: flex-start;
    padding-top: 0;
    width: 100%;
  }

  .helper-plugin-header-nav {
    justify-content: flex-start;
  }

  .helper-plugin-inline-status {
    max-width: 100%;
    position: static;
    text-align: left;
  }

  .helper-plugin-header {
    align-items: start;
    gap: 1rem;
    grid-template-areas:
      "guide copy"
      "progress progress";
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 1rem;
  }

  .helper-plugin-header-guide {
    align-self: start;
  }

  .helper-plugin-header-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .helper-plugin-header h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .helper-plugin-header-subtitle {
    font-size: 0.96rem;
  }

  .helper-plugin-protocol-progress {
    width: 100%;
  }

  .helper-plugin-card-head--routine {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 155px;
  }

  .helper-plugin-routine-copy {
    max-width: 100%;
  }

  .helper-plugin-routine-horizon {
    opacity: 0.42;
    width: 58%;
  }

  .helper-plugin-actions > * {
    width: 100%;
  }

  .helper-plugin-actions--onboarding {
    display: flex;
  }

  .helper-plugin-grid--shake-choice {
    grid-template-columns: 1fr;
  }

  .helper-plugin-grid--shake-choice .helper-plugin-option {
    min-width: 0;
  }

  .helper-plugin-order-card,
  .helper-plugin-vendor-group header,
  .helper-plugin-inline-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .helper-plugin-order-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .helper-plugin-planner-day-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .helper-plugin-planner-day-footer .helper-plugin-secondary {
    width: 100%;
  }

  .helper-plugin-onboarding-focus-head {
    flex-direction: column;
  }

  .helper-plugin-modal {
    max-height: 86vh;
  }

  .helper-plugin-modal-head,
  .helper-plugin-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .helper-plugin-modal-head-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .helper-plugin-modal-head-actions > * {
    width: 100%;
  }

  .helper-plugin-backup-body {
    padding: 0.85rem 1rem 1rem;
  }

  .helper-plugin-status-row {
    justify-content: flex-start;
  }

  .helper-plugin-order-card-actions .helper-plugin-primary,
  .helper-plugin-order-card-actions .helper-plugin-secondary,
  .helper-plugin-vendor-actions .helper-plugin-primary,
  .helper-plugin-vendor-actions .helper-plugin-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .helper-plugin-shell {
    padding: 0.7rem;
  }

  .helper-plugin-header {
    grid-template-areas:
      "guide"
      "copy"
      "progress";
    grid-template-columns: minmax(0, 1fr);
  }

  .helper-plugin-header-guide {
    justify-self: start;
    width: 82px;
  }

  .helper-plugin-header h2 {
    font-size: 1.75rem;
    line-height: 1.14;
  }

  .helper-plugin-progress-copy {
    justify-content: space-between;
  }

  .helper-plugin-protocol-progress {
    padding: 0.8rem;
  }

  .helper-plugin-card-head--routine {
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.15rem;
  }

  .helper-plugin-routine-mark {
    height: 54px;
    width: 54px;
  }

  .helper-plugin-card-head--routine h3 {
    font-size: 1.55rem;
  }

  .helper-plugin-routine-horizon {
    opacity: 0.28;
    width: 82%;
  }
}
