.action-plan-widget,
.action-plan-widget * {
  box-sizing: border-box;
}

body.action-plan-panel-open {
  overflow: hidden;
}

.action-plan-bullet {
  position: fixed;
  right: 24px;
  bottom: 74px;
  z-index: 100040;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(8, 149, 143, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 36px rgba(3, 52, 50, .2);
  color: #164f4c;
  font-family: 'DM Sans', 'Montserrat', Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.action-plan-bullet[hidden] {
  display: none;
}

.action-plan-bullet:hover,
.action-plan-bullet:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(8, 149, 143, .5);
  box-shadow: 0 20px 42px rgba(3, 52, 50, .24);
}

.action-plan-bullet:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 149, 143, .18), 0 20px 42px rgba(3, 52, 50, .24);
}

.action-plan-bullet-icon {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0097b2 0%, #7ed957 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 8px 18px rgba(8, 149, 143, .24);
  color: #fff;
  font-size: 18px;
}

.action-plan-bullet-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #033432;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.action-plan-bullet.has-records .action-plan-bullet-icon {
  animation: actionPlanBulletGlow 4.5s ease-in-out infinite;
}

.action-plan-bullet-copy {
  display: grid;
  gap: 1px;
}

.action-plan-bullet-copy strong {
  color: #073f3c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.action-plan-bullet-copy small {
  color: #617776;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.action-plan-overlay[hidden] {
  display: none !important;
}

.action-plan-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100070;
  background: rgba(3, 36, 40, .42);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity .24s ease;
}

.action-plan-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100071;
  display: flex;
  width: min(1080px, calc(100vw - 48px));
  height: min(88vh, 820px);
  max-height: calc(100dvh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(8, 149, 143, .24);
  border-radius: 20px;
  background: #eef4f7;
  box-shadow: 0 24px 70px rgba(3, 52, 50, .26);
  color: #033432;
  font-family: 'DM Sans', 'Montserrat', Arial, sans-serif;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 28px)) scale(.985);
  transition: opacity .2s ease, transform .26s cubic-bezier(.22, .75, .25, 1);
}

.action-plan-overlay.is-open .action-plan-backdrop {
  opacity: 1;
}

.action-plan-overlay.is-open .action-plan-drawer {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.action-plan-drawer-header {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 32px 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(8, 149, 143, .18);
  background:
    radial-gradient(circle at 88% 22%, rgba(126, 217, 87, .2), transparent 25%),
    linear-gradient(125deg, #ffffff 0%, #eff9f7 100%);
}

.action-plan-drawer-header::after {
  position: absolute;
  right: 84px;
  bottom: -54px;
  width: 210px;
  height: 110px;
  border: 1px solid rgba(8, 149, 143, .14);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.action-plan-eyebrow,
.action-plan-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: #078c87;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.action-plan-drawer-header h2 {
  margin: 0;
  color: #033432;
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.action-plan-close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 149, 143, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: #0d5f5a;
  font-size: 18px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.action-plan-close:hover,
.action-plan-close:focus-visible {
  outline: none;
  background: #dff4f1;
  transform: rotate(4deg);
}

.action-plan-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 25px 30px 38px;
  scrollbar-color: rgba(8, 149, 143, .46) transparent;
  scrollbar-width: thin;
}

.action-plan-list-section,
.action-plan-story-shell {
  border: 1px solid rgba(8, 149, 143, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 28px rgba(3, 52, 50, .07);
}

.action-plan-list-section {
  padding: 20px;
}

.action-plan-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.action-plan-section-heading h3,
.action-plan-story-title h3 {
  margin: 0;
  color: #073f3c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.action-plan-list-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf8f6;
  color: #176e69;
  font-size: 10px;
  font-weight: 800;
}

.action-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-plan-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #dce9e8;
  border-radius: 12px;
  background: #fff;
  color: #264e4b;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.action-plan-list-item:hover,
.action-plan-list-item:focus-visible {
  outline: none;
  border-color: rgba(8, 149, 143, .52);
  background: #f7fcfb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(3, 52, 50, .08);
}

.action-plan-list-item.is-selected {
  border-color: #08958f;
  background: linear-gradient(120deg, rgba(8, 149, 143, .1), rgba(126, 217, 87, .08));
  box-shadow: inset 3px 0 0 #08958f;
}

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

.action-plan-list-copy strong {
  overflow: hidden;
  color: #164f4c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-plan-list-copy small {
  overflow: hidden;
  color: #718582;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.action-plan-list-arrow {
  color: #6b9c98;
  font-size: 10px;
}

.action-plan-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.action-plan-status.is-progress {
  border-color: rgba(217, 144, 56, .25);
  background: rgba(217, 144, 56, .12);
  color: #9a5c14;
}

.action-plan-status.is-complete {
  border-color: rgba(8, 149, 143, .25);
  background: rgba(8, 149, 143, .11);
  color: #08716c;
}

.action-plan-status.is-alert {
  border-color: rgba(207, 84, 84, .25);
  background: rgba(207, 84, 84, .1);
  color: #a23f3f;
}

.action-plan-status.is-neutral {
  border-color: rgba(97, 119, 118, .2);
  background: rgba(97, 119, 118, .08);
  color: #617776;
}

.action-plan-feedback {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(8, 149, 143, .3);
  border-radius: 12px;
  background: #f7fbfb;
  color: #5d7774;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.action-plan-feedback[hidden] {
  display: none;
}

.action-plan-feedback.action-plan-error {
  border-color: rgba(207, 84, 84, .34);
  background: rgba(207, 84, 84, .06);
  color: #9b4141;
}

.action-plan-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(8, 149, 143, .18);
  border-top-color: #08958f;
  border-radius: 50%;
  animation: actionPlanSpin .9s linear infinite;
}

.action-plan-story-shell {
  min-height: 188px;
  margin-top: 18px;
  padding: 22px;
}

.action-plan-story-placeholder {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6c8582;
  text-align: center;
}

.action-plan-story-placeholder[hidden],
.action-plan-story[hidden] {
  display: none;
}

.action-plan-story-placeholder i {
  margin-bottom: 4px;
  color: #3fac9f;
  font-size: 22px;
}

.action-plan-story-placeholder strong {
  color: #285c58;
  font-size: 13px;
}

.action-plan-story-placeholder span {
  font-size: 11px;
}

.action-plan-story-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e2eceb;
}

.action-plan-story-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.action-plan-meta-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf5f5;
  color: #526e6b;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.action-plan-meta-pill i {
  color: #08958f;
}

.action-plan-flow {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  grid-template-rows: auto 46px auto;
  align-items: stretch;
}

.action-plan-step[data-action-plan-position="1"] {
  grid-column: 1;
  grid-row: 1;
}

.action-plan-step[data-action-plan-position="2"] {
  grid-column: 3;
  grid-row: 1;
}

.action-plan-step[data-action-plan-position="3"] {
  grid-column: 3;
  grid-row: 3;
}

.action-plan-step[data-action-plan-position="4"] {
  grid-column: 1;
  grid-row: 3;
}

.action-plan-flow.has-1-steps {
  max-width: 420px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

.action-plan-flow.has-2-steps {
  grid-template-rows: auto;
}

.action-plan-connector[data-action-plan-connector="1"] {
  grid-column: 2;
  grid-row: 1;
}

.action-plan-connector[data-action-plan-connector="2"] {
  width: 2px;
  height: 46px;
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
}

.action-plan-connector[data-action-plan-connector="2"]::before {
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(180deg, rgba(8, 149, 143, .56) 0 5px, transparent 5px 9px);
}

.action-plan-connector[data-action-plan-connector="2"] span {
  top: 0;
  left: 50%;
  margin-left: -3px;
  animation-name: actionPlanFlowVertical;
}

.action-plan-connector[data-action-plan-connector="3"] {
  grid-column: 2;
  grid-row: 3;
}

.action-plan-connector[data-action-plan-connector="3"] span {
  right: 0;
  left: auto;
  animation-name: actionPlanFlowReverse;
}

.action-plan-step {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 20px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(8, 149, 143, .24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 249, 248, .96));
  box-shadow: 0 8px 20px rgba(3, 52, 50, .07);
}

.action-plan-step::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 100px;
  height: 74px;
  border: 1px solid rgba(8, 149, 143, .11);
  border-radius: 50%;
  content: '';
}

.action-plan-step.is-empty {
  border-style: dashed;
  background: #f7f9f9;
  box-shadow: none;
}

.action-plan-step-number {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  margin-bottom: 23px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0097b2, #69c66f);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 7px 14px rgba(8, 149, 143, .18);
}

.action-plan-step.is-empty .action-plan-step-number {
  background: #9aabaa;
  box-shadow: none;
}

.action-plan-step-label {
  display: block;
  margin-bottom: 8px;
  color: #078c87;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.action-plan-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #264e4b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.52;
}

.action-plan-step.is-empty p {
  color: #7b8b89;
  font-weight: 500;
}

.action-plan-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-plan-connector::before {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(8, 149, 143, .56) 0 5px, transparent 5px 9px);
  content: '';
}

.action-plan-connector span {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ed957;
  box-shadow: 0 0 0 3px rgba(126, 217, 87, .16);
  animation: actionPlanFlow 3.8s ease-in-out infinite;
}

@keyframes actionPlanFlow {
  0%, 12% { transform: translateX(0); opacity: 0; }
  22% { opacity: .9; }
  78% { opacity: .9; }
  88%, 100% { transform: translateX(35px); opacity: 0; }
}

@keyframes actionPlanFlowReverse {
  0%, 12% { transform: translateX(0); opacity: 0; }
  22% { opacity: .9; }
  78% { opacity: .9; }
  88%, 100% { transform: translateX(-39px); opacity: 0; }
}

@keyframes actionPlanFlowVertical {
  0%, 12% { transform: translateY(0); opacity: 0; }
  22% { opacity: .9; }
  78% { opacity: .9; }
  88%, 100% { transform: translateY(40px); opacity: 0; }
}

@keyframes actionPlanSpin {
  to { transform: rotate(360deg); }
}

@keyframes actionPlanBulletGlow {
  0%, 82%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 8px 18px rgba(8, 149, 143, .24); }
  90% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 22px rgba(8, 149, 143, .44), 0 0 0 7px rgba(8, 149, 143, .08); }
}

@media (max-width: 860px) {
  .action-plan-list {
    grid-template-columns: 1fr;
  }

  .action-plan-flow,
  .action-plan-flow.has-1-steps,
  .action-plan-flow.has-2-steps {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .action-plan-step[data-action-plan-position],
  .action-plan-connector[data-action-plan-connector] {
    grid-column: 1;
    grid-row: auto;
  }

  .action-plan-step {
    min-height: 150px;
  }

  .action-plan-connector,
  .action-plan-connector[data-action-plan-connector] {
    width: 2px;
    height: 30px;
    justify-self: center;
  }

  .action-plan-connector::before,
  .action-plan-connector[data-action-plan-connector]::before {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, rgba(8, 149, 143, .56) 0 5px, transparent 5px 9px);
  }

  .action-plan-connector span,
  .action-plan-connector[data-action-plan-connector] span {
    top: 0;
    left: 50%;
    right: auto;
    margin-left: -3px;
    animation-name: actionPlanFlowVertical;
  }
}

@media (max-width: 620px) {
  .action-plan-bullet {
    right: 14px;
    bottom: 66px;
    min-width: 52px;
    min-height: 52px;
    padding: 3px;
  }

  .action-plan-bullet-icon {
    width: 46px;
    height: 46px;
  }

  .action-plan-bullet-copy {
    display: none;
  }

  .action-plan-drawer {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-left: 0;
    border-radius: 0;
    transform: translateY(104%);
  }

  .action-plan-overlay.is-open .action-plan-drawer {
    transform: translateY(0);
  }

  .action-plan-drawer-header {
    min-height: 114px;
    padding: 22px 19px 19px;
  }

  .action-plan-drawer-body {
    padding: 17px 14px 28px;
  }

  .action-plan-list-section,
  .action-plan-story-shell {
    padding: 16px;
    border-radius: 14px;
  }

  .action-plan-story-header {
    flex-direction: column;
  }

  .action-plan-story-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .action-plan-list-item {
    grid-template-columns: minmax(0, 1fr) 12px;
  }

  .action-plan-list-item .action-plan-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .action-plan-list-arrow {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-plan-bullet,
  .action-plan-bullet-icon,
  .action-plan-backdrop,
  .action-plan-drawer,
  .action-plan-close,
  .action-plan-list-item,
  .action-plan-connector span,
  .action-plan-spinner {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
