.microlesson-container {
  background:#ffffff;
  border-radius:40px;
  position:relative;
  box-shadow:var(--shadow);
  margin-right: 4rem;

  .microlesson-title{
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
  }

  .lesson-prompt {
    font-weight:600;
    color:#394155;
    margin:0 0 26px;
  }

  .table{
    background:#fbfbfe;
    border:1px solid #e9eaf2;
    border-radius:16px;
    padding:16px;
    display:grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap:10px 14px;

    .column-label {
      font-weight:700;
      text-align:center;
      background:#2e2f4b;
      color:white;
      padding:10px;
      border-radius:12px;
    }
    .row-label {
      background:#8d2b4a;
      color:white;
      font-weight:600;
      border-radius:12px;
      padding:14px;
    }
    .cell{
      background:white;
      border:1px solid #e9eaf2;
      border-radius:12px;
      padding:14px;
      .label{
        font-weight:700;
        color:#394155;
        margin-bottom:4px;
      }
      .sub{
        color:#6b6f7a;
        font-size:.95rem;
      }
    }
  }

  .callout{
    position:absolute;
    left:52%;
    top:49%;
    transform:translate(-50%,-50%);
    background:#fff;
    border:2px solid #ffa45b;
    border-radius:16px;
    padding:12px 16px 12px 44px;
    color:#333;
    font-weight:650;
    box-shadow:var(--shadow);
    &::before{
      content:'🔔';
      position:absolute;
      left:12px;
      top:50%;
      transform:translateY(-50%);
      font-size:20px;
      line-height:1;
    }
    small{
      display:block;
      color:#6d6d78;
      font-weight:500;
      margin-top:2px;
    }
  }

  /* When the screen isn't wide enough for 3 columns, stack the table into 1 column */
  @media (max-width: 820px){
    .table{ grid-template-columns: 1fr; }
    .callout{ position:relative; left:auto; top:auto; transform:none; margin:16px auto 0; }
  }

  .microlesson-rainbow-segments{
    display: flex;
    .rainbow-segment{
      width: 8rem;
      height: 1rem;
      margin-right: 0.25rem;
    }
  }

  .microlesson-progress-bar{
    margin-top: 1rem;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 4rem;

    .lesson-step{
      width: 4rem;
      height: 4rem;
      padding: 1rem;
      color: white;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;

      &.not-started{
        filter: contrast(0.6);
      }

      &.lesson-step-name{
        border-radius: 5rem;
        font-size: 1rem;
        margin-top: 2rem;
      }
    }
  }

  .lesson-section-list{
    display: flex;
    column-gap: 100px;
    justify-content: space-evenly;

    > *:nth-child(7n+1) {
      --lesson-component-color: var(--bg-rainbow-color-1);
    }

    > *:nth-child(7n+2) {
      --lesson-component-color: var(--bg-rainbow-color-2);
    }

    > *:nth-child(7n+3) {
      --lesson-component-color: var(--bg-rainbow-color-3);
    }

    > *:nth-child(7n+4) {
      --lesson-component-color: var(--bg-rainbow-color-4);
    }

    > *:nth-child(7n+5) {
      --lesson-component-color: var(--bg-rainbow-color-5);
    }

    > *:nth-child(7n+6) {
      --lesson-component-color: var(--bg-rainbow-color-6);
    }

    > *:nth-child(7n+7) {
      --lesson-component-color: var(--bg-rainbow-color-7);
    }

    .lesson-section{
      flex: 1;

      .microlesson-section-label{
        color: white;
      }

      li{
        margin-bottom: 2em;
        width: 100%;
      }

      .lesson-text-component, .microlesson-section-label{
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
        display: block;
        border-radius: 5rem;
        padding: 1rem;
      }

      .lesson-text-component{
        position: relative;
        &.no-icon{
          border-style: solid;
          border-width: 2px;
          border-color: var(--lesson-component-color);
        }
        &.selected{
          outline-color: var(--lesson-component-color);
          outline-style: dashed;
          outline-offset: 0.25rem ;
        }
      }

      .lesson-piechart-component{
        .pie-chart-svg{
          height: auto;
          overflow: visible;
        }

        .pie-segment {
          transform: translate(var(--dx), var(--dy));
          transition: transform 0.5s ease;
        }
      }

      .lesson-list-item-text{
        margin-left: 2rem;
        font-size: 1.25rem;
      }

      .lesson-list-item-header{
        font-weight: 400;
        display: inline-block;
        margin-right: 0.25rem;
        margin: 0;
      }

      .lesson-list-item-text{
        margin-left: 2rem;
        font-size: 1.25rem;
      }

      .lesson-list-item-header{
        font-weight: 400;
        display: inline-block;
        margin-right: 0.25rem;
        margin: 0;
      }

      .lesson-table-component{
        text-align: left;
        .lesson-table-component-table{
          border-collapse: separate;
          border-spacing: 3rem 2rem;
        }

        .lesson-table-header{
          font-weight: 500;
          text-decoration: underline;
        }

        .lesson-table-header, .lesson-table-cell{
          font-weight: 400;
          vertical-align: top;
        }
      }

      .lesson-list-item-text{
        margin-left: 2rem;
        font-size: 1.25rem;
      }

      .lesson-list-item-header{
        font-weight: 400;
        display: inline-block;
        margin-right: 0.25rem;
        margin: 0;
      }

      .lesson-table-component{
        text-align: left;
        .lesson-table-component-table{
          border-collapse: separate;
          border-spacing: 3rem 2rem;
        }

        .lesson-table-header{
          font-weight: 500;
          text-decoration: underline;
        }

        .lesson-table-header, .lesson-table-cell{
          font-weight: 400;
          vertical-align: top;
        }
      }

      .lesson-btn{
        color: white;
        font-size: 1.2rem;
        padding: 0.25rem 2rem;
        border-radius: 25rem;
        cursor: pointer;
      }
    }
  }
}

.microlesson-play-btn{
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  background-color: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 1.25rem;

  img{
    width: min(40%, 260px);
    filter: brightness(0) invert(1);
    opacity: 0.9;
  }

  p{
    font-size: 2rem;
    width: min(60%, 360px);
    text-align: center;
    color: #EFEFEF;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  &:hover img {
    opacity: 1;
  }

  &:hover p {
    color: #FFFFFF;
  }

  background:
  radial-gradient(
    60% 40% at 50% 85%,
    rgba(80, 200, 255, 0.25) 0%,
    rgba(10, 25, 50, 0.15) 40%,
    rgba(5, 10, 20, 0.9) 80%
  ),
  radial-gradient(
    80% 80% at 0% 0%,
    rgba(40, 120, 200, 0.25) 0%,
    transparent 60%
  ),
  linear-gradient(
    180deg,
    #0b1f2e 0%,
    #081420 40%,
    #050a14 100%
  );
  background-color: #050a14;
  background-attachment: fixed;
}

.microlesson-play-btn.demo-play-layout{
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
}

.microlesson-play-btn.demo-play-layout .demo-play-badge{
  display: inline-flex;
  align-items: center;
  background: linear-gradient(#111114, #111114) padding-box, linear-gradient(274.96deg, rgba(69, 231, 222, 0) 4.1%, #45E7DE 50.46%, rgba(69, 231, 222, 0) 96.82%) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #EFEFEF;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  letter-spacing: 0.02em;
}

.microlesson-play-btn.demo-play-layout .demo-play-title{
  margin: 0;
  color: #EFEFEF;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.microlesson-play-btn.demo-play-layout .demo-play-description{
  margin: 0;
  width: min(720px, 92%);
  color: #9DA2B3;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.microlesson-play-btn.demo-play-layout .demo-play-duration{
  margin: 0;
  color: #EDEFF7;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.microlesson-play-btn.demo-play-layout .demo-link-join-pilot{
  background-image: linear-gradient(to top left, #43E1DF, #0968E8);
  color: black;
  margin-left: 2rem;
  text-decoration: none;
}

.microlesson-play-btn.demo-play-layout .demo-play-cta,
.microlesson-play-btn.demo-play-layout .demo-link-join-pilot {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 26px;
border-radius: 999px;
  color: black;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.microlesson-play-btn.demo-play-layout:disabled .demo-play-cta{
  opacity: 0.7;
}

/* Demo page: match try-free-demo background and layout */
body.demo-page {
  background-color: #0C0C0F;
  font-family: "Manrope", "Noto Sans", sans-serif;
}

body.demo-page .demo-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.demo-page .demo-content-demo-page {
  flex: 1;
  padding: 0;
  background: transparent;
}

/* Demo page layout (centered Play button) – only before lesson starts */
body.demo-page:not(.demo-playing) .demo-content-demo-page {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.demo-page:not(.demo-playing) .left-right-columns {
  height: auto;
  min-height: 100vh;
}

body.demo-page:not(.demo-playing) .lesson-content-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.demo-page:not(.demo-playing) .demo-content-demo-page .left-right-columns,
body.demo-page:not(.demo-playing) .demo-content-demo-page .lesson-content-column {
  min-height: 100vh;
}

.lessons-page-return{
  color: white;
  background-color: var(--dark-blue);
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.lesson-feedback-page{
  padding: 2rem;
  .title{
    font-size: 1.125rem;
    font-weight: bold;
  }

  .tags-row{
    display: flex;
    .tag{
      font-size: 0.75rem;
      height: fit-content;
      padding: 0.25rem;
      margin-left: 1rem;
      background-color: var(--rainbow-color4);
      color: white;
      padding: 0.25rem 1rem;
      border-radius: 25rem;
      font-weight: bold;
    }
  }

  .feedback-content{
    display: flex;

    .main-feedback{
      flex: 2;
    }

    .side-feedback{
      flex: 1;
    }

    .card{
      margin: 1rem;
    }

    .overall-summary{

      .score{
        height: fit-content;
        display: flex;
        align-self: center;
        background-color: var(--score-color);
        justify-self: center;
        padding: 0.25rem 1rem;
        border-radius: 25px;
        font-weight: 400;

        &.good-score{
          --score-color: #D0FAE5;
        }

        &.ok-score{
          --score-color: var(--rainbow-color5);
        }

        &.bad-score{
          --score-color: #C0606B;
          color: white;
        }

      }
    }

    .dimension-rating{
      --progress-bar-color: var(--rainbow-color);
      .dimension-name{
        font-weight: 400;
        margin-bottom: 0;
      }

      .dimension-reasoning{
        margin: 0.25rem;
      }
    }

    .strengths-and-weaknesses{
      display: flex;

      .title{
        display: flex;
        align-items: center;
      }

      ul{
        list-style: none;
        padding-left: 0;
        li{
          border-left-style: solid;
          border-left-width: 0.25rem;
          padding-left: 1rem;
          margin-bottom: 0.5rem;
        }
      }
      .pros-list li{
        border-left-color: #00BC7D;
      }

      .icon{
        padding: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 0.5rem;
        &.strengths-icon{
          background-color: #00BC7D;
        }

        &.growth-areas-icon{
          background-color: #ffa45b;
        }
      }

      .growth-areas-list li{
        border-left-color: var(--rainbow-color);
        .growth-area{
          font-weight: 400;
          margin-bottom: 0;
        }

        .growth-area-reasoning{
          margin-top: 0;
        }
      }
    }
    .dimension-profile{
      .dimension-radar-chart{
        min-height: 300px;
        .dimension-grid{
          fill: #C64D6888;
          stroke: var(--rainbow-color4);
          stroke-width: 3;
        }

        .dimension-radial-line{
          fill: none;
          stroke: silver;
          stroke-width: 1;
        }
      }
    }
  }
}

.lessons-list-view{
  padding: 1rem 4rem;

  .lesson-card{
    margin-bottom: 0.5rem;

    .card-title{
      display: flex;
      font-size: 1.25rem;
      align-items: center;
      flex: 1;

      .icon{
        padding: 0.125rem;
        background-color: white;
        border-width: 0.5rem;
        border-style: solid;
        border-radius: 15rem;
        border-color: var(--dark-blue);
        margin-right: 0.5rem;
      }
    }

    .expand-btn{
      background-color: transparent;
      border: none;
    }

    .navigate-lesson-btn{
      background-color: var(--dark-blue);
      padding: 0.5rem 1rem;
      color: white;
      border-radius: 1rem;
      text-decoration: none;
      font-weight: 500;
      display: flex;
      align-items: center;
      img{
        margin-right: 0.25rem;
      }
    }
  }
}

.lesson-sidebar{
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  background: #141414;
  overflow: hidden;
  min-height: 0;
  &:not(.expanded) {
    flex: 0 0 86px;
    cursor: pointer;
  }
  &.expanded {flex: 0 0 383px;}
  max-height: 100vh;
}

.lesson-sidebar:not(.expanded) .chat-collapsed-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.3rem;
}

.lesson-sidebar:not(.expanded) .chat-collapsed-coach-icon{
  width: 48px;
  height: 48px;
  display: block;
  margin: 1rem 0;
}

.lesson-sidebar:not(.expanded) .chat-collapsed-mic-wrap {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 1rem;
}

.lesson-sidebar:not(.expanded) .chat-collapsed-mic-btn {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.lesson-sidebar:not(.expanded) .chat-collapsed-mic-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lesson-sidebar:not(.expanded) .chat-collapsed-mic-btn img {
  width: 24px;
  height: 24px;
  display: block;
  background: transparent;
}

.lesson-sidebar:not(.expanded) .chat-collapsed-label{
  font-family: "Manrope";
  font-weight: 600;
  font-size: 16px;
  color: #EFEFEF;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: 1rem;
}

.lesson-sidebar:not(.expanded) .chat-container{
  flex: 1;
  height: 100%;
}

/* When collapsed: hide entire chat input row (collapsed stack has its own MicToggleButton) */
.lesson-sidebar:not(.expanded) .chat-input {
  display: none !important;
}

.lesson-breadcrumb{
  background: #141414;
  padding: 0.8625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 20;
}

.lesson-breadcrumb .crumb{
  font-family: "Manrope";
  font-weight: 500;
  font-size: 18px;
  color: #EFEFEF;
}

.lesson-breadcrumb .crumb-brand{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  font-weight: 700;
  font-size: 20px;
}

.lesson-breadcrumb .crumb-brand img{
  width: 18px;
  height: 18px;
  display: block;
}

.lesson-breadcrumb .crumb-link{
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #EFEFEF;
  font-family: "Manrope";
}

.lesson-breadcrumb .crumb-sep{
  width: 14px;
  height: 14px;
  display: inline-block;
}

.lesson-sidebar .chat-container{
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lesson-sidebar .content-box{
  background: #000;
  color: #D3D6E0;
  border-color: #21262F;
}

.lesson-sidebar .product-coach-box{
  border: none;
  background: #141414
}

.lesson-sidebar .product-coach-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 15px;
}

.lesson-sidebar .product-coach-header > p{
  font-family: "Manrope";
  font-weight: 600;
  font-size: 20px;
  color: #EFEFEF;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lesson-sidebar .product-coach-header > p img{
  width: 48px;
  height: 48px;
  display: block;
}

.lesson-sidebar .chat-toggle-wrapper{
  display: flex;
  justify-content: flex-end;
  padding-top: 15px;
}

.left-right-columns{
  align-items: stretch;
  overflow: hidden;
  height: calc(100vh - 2.725rem);
  .lesson-sidebar{
    border-right: 1px solid #21262F;
    padding-right: 1rem;
    margin-right: 0;
  }
  .column {
    min-height: 0;
    overflow: hidden;
  }
}

:has(.lesson-sidebar){
  flex-wrap: nowrap;
}

/* Start of UI Schema update style */
.lessonOuterFrame {
  width:100%;
  height:100%;
  position: relative;
  padding:0;
  padding-top: 1.5rem;
  text-align: center;
  z-index: 0;
}
.lessonContentFrame {
  margin:0;
  background:#19191B; /*same as var(--bg-grey)*/
  overflow: hidden;

  display:flex;
  flex-direction: column;

  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  z-index: 1;
  transform-origin:0 0;
  will-change:transform;
}

.lesson-content-column {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.lesson-content-column.pushback-active .lessonContentFrame .header,
.lesson-content-column.pushback-active .lessonContentFrame .body,
.lesson-content-column.pushback-active .lessonContentFrame .footer {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 150ms ease;
}

.ai-thinking-overlay {
  position: absolute;
  right: 1.5rem;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 10;
}

.ai-thinking-capsule {
  background: #2A2A2E;
  color: #9DA2B3;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 250ms ease;
}

.ai-thinking-icon {
  height: 64px;
  width: auto;
  opacity: 0;
  transition: opacity 250ms ease;
  animation: none;
}

.ai-thinking-overlay[data-visible="true"] .ai-thinking-capsule {
  opacity: 1;
}

.ai-thinking-overlay[data-visible="true"] .ai-thinking-icon {
  opacity: 1;
  animation: ai-think-pulse 500ms ease-in-out infinite alternate;
}

@keyframes ai-think-pulse {
  0%   { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.lessonUi {
  --light-blue:#43E1DF;
  --dark-blue:#0968E8;
  --shadow-blue:#174154;
  --bg-black:#0F0F0F;
  --bg-grey:#19191B;
  --border-grey:#21262f;
  --text-grey:#9DA2B3;
  --text-white:#EFEFEF;
  font-family:"Manrope", Arial, Helvetica, sans-serif;
  font-size:1rem;
  color:var(--text-white);
  

  div {box-sizing:border-box;}

  /* Angular checkmark icon - use as <span class="icon-check"></span> */
  .icon-check {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="square"><path d="M4 12 L10 18 L20 6"/></svg>') no-repeat center;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="square"><path d="M4 12 L10 18 L20 6"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .icon-check.gradient {
    background:linear-gradient(to right, var(--light-blue), var(--dark-blue));
  }

  .body {
    flex:1;
    border-radius:10px;
    /* TODO: border left to right light-blue to dark-blue */
    border:5px solid transparent;
    background:
      linear-gradient(var(--bg-black), var(--bg-black)) padding-box,
      linear-gradient(to right, var(--light-blue), var(--dark-blue)) border-box;
    box-sizing: content-box; /* thick border goes outside the body */
    width:1000px;
    height: calc(563px - 2rem);
    padding-top: 2rem;
    overflow: hidden;
  }
  .header, .footer {
    height:125px;
    display:flex;
    align-items:center;
    justify-content: center;
  }
  .header {
    background: radial-gradient(ellipse farthest-side at center bottom, var(--shadow-blue), var(--bg-black) 60%);
  }
  .footer {
    background: radial-gradient(ellipse farthest-side at center top, var(--shadow-blue), var(--bg-black) 60%);
  }
  .body .title {
    background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0;
    margin-bottom: 4rem;
    font-size: 1.5rem;
    text-align: center;
  }
  .use-case-review-title {
    margin-bottom: 1.5rem !important;
  }
  .use-case-review-columns .contextList {
    font-size: 14px;
  }
  .body .darktitle {
    color: var(--text-grey);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 24px;
    text-align: center;
  }
  .body .darktitle {
    color: var(--text-grey);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
  }

  .isolate {
    isolation:isolate;
    padding:0;
  }

  /*
  Wrap "gradientBorder" in parent with isolation:isolate to create a render stack for the :before z-index
  against a parent's background. Include class "on" or "off" to toggle the border.
  */
  .gradientBorder {
    position:relative;
    color:var(--text-white);
    --anim-duration:0.25s;
    background: var(--bg-grey);
    background-clip: padding-box;
    box-sizing: border-box;
    transition:
      background var(--anim-duration) ease-in-out,
      border var(--anim-duration) ease-in-out
      ;
    border:2px solid var(--border-grey);

    &:before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      margin: -2px;
      border-radius: inherit;
      background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
      transition:
        opacity var(--anim-duration) ease-in-out,
        margin var(--anim-duration) ease-in-out;
    }
    &.off:before {opacity:0;}  
    &.on {
      border-color: transparent;
      &:before { opacity: 1; }
    }
  }

  .gradient-bg {
    position:relative;
    color:var(--text-white);
    --anim-duration:0.25s;
    background-image: linear-gradient(to right, var(--light-blue), var(--dark-blue));;
  }

  .progressItem {
    display:inline-block;
    position:relative;
    margin:0 50px;
    isolation: isolate;

    .label {
      width:40px;
      height:40px;
      border-radius:50%;
      position:relative;
      color:var(--text-white);
      font-size: 1rem;
      display:flex;
      justify-content:center;
      align-items:center;
    }

    .name {
      position:absolute;
      top:calc(40px + 14px);
      left:50%;
      transform:translateX(-50%);
      white-space:nowrap;
      font-size: 0.75rem;
      color:var(--text-grey);
    }
    &.complete .gradientBorder {
      border-color:var(--dark-blue);
    }

  }

  
  .minicard {
    width:100px;
    height:100px;
    margin:14px;
    display:inline-block;
    isolation:isolate;
    position:relative;

    .gradientBorder {
      width:100%;
      height:100%;
      padding:16px;
      border-radius: 10px;
    }
    .label { display:block; font-size: 0.75rem; color:var(--text-grey); margin-bottom:10px; }
    .name  { display:block; font-size: 0.75rem; color:var(--text-white); }
    .icon-check {
      position:absolute;
      top:50%;
      right:10px;
      transform:translateY(-50%);
    }
  }
  .footer .minicard {width:144px; height:72px; text-align: start;}
  .body .minicard {
    width:200px;
    height:115px;
    .gradientBorder {
      padding:30px 0;
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items: center;
      text-align: center;
    }
  }
  /* When minicard-list uses CSS grid (has columns), minicards fill their cells */
  .body .minicard-list[style*="grid"] .minicard {
    width: auto;
    height: 50px;
    min-height: 50px;
    min-width: 198px;
    margin: 0;
    display: block;
    .gradientBorder {
      padding: 6px 10px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    .name { font-size: 0.875rem; text-align: center; width: 100%; }
    .label { text-align: center; width: 100%; }
  }

  /* Segment breakpoints: grid minicard overrides */
  .body .minicard-list.minicard--segments[style*="grid"] .minicard {
    width: auto;
    height: 115px;
    min-height: 115px;
    min-width: 198px;
    margin: 0;
    display: block;
    .gradientBorder {
      padding: 6px 10px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    .name { font-size: 0.875rem; text-align: center; width: 200px; }
    .label { text-align: center; width: 200px; }
  }
  /* Segment naming: grid minicard overrides. Use glow for selected (not fill) so text stays readable. */
  .body .minicard-list.minicard--segment-naming[style*="grid"] .minicard {
    width: auto;
    height: 115px;
    min-height: 115px;
    min-width: 198px;
    margin: 0;
    display: block;
    .gradientBorder {
      padding: 6px 10px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    .name { font-size: 0.875rem; text-align: center; width: 200px; }
    .label { text-align: center; width: 200px; }
  }
  /* Selected segment naming card: glow effect instead of gradient fill */
  .body .minicard-list.minicard--segment-naming .minicard .gradientBorder.on {
    border-color: var(--light-blue);
    box-shadow: 0 0 16px 3px rgba(67, 225, 223, 0.5), 0 0 32px 6px rgba(9, 104, 232, 0.3);
  }
  .body .minicard-list.minicard--segment-naming .minicard .gradientBorder.on:before {
    opacity: 0;
  }
  .body .minicard-list[style*="grid"] .minicard:not(.empty) .gradientBorder {
    border-color: transparent;
  }
  .body .minicard-list[style*="grid"] .minicard:not(.empty) .gradientBorder:before {
    opacity: 1;
  }

  /* Empty minicard cells get dashed borders */
  .body .minicard.empty .gradientBorder {
    border: 2px dashed var(--dark-blue);
    background: transparent;
  }

  .contextList {
    font-size: 1.125rem;
    padding:40px 30px;
    height: 100%;
    justify-items: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: auto;

    ul{
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      counter-reset: context-item;
      width: 100%;
    }

    .title {
      background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-top:0;
      margin-bottom:1rem;
      font-size: 1.5rem;
    }

    li.isolate {
      counter-increment: context-item;
    }

    .item {
      border-radius:12px;
      padding:14px 20px;
      display:block;
      margin-bottom:10px;
      background: var(--bg-grey);
      background-image: none;
      border: 1px solid var(--border-grey);
      color: var(--text-white);
      width: 100%;
      box-sizing: border-box;
      text-align: start;

      &:before {
        content: counter(context-item) ".";
        margin-right: 10px;
        opacity: 0.6;
      }

      &.off {
        background: var(--bg-grey);
        border-color: var(--border-grey);
        &:before {
          content: counter(context-item) ".";
        }
      }

      &.on {
        background: var(--bg-grey);
        background-image: none;
        border-color: var(--border-grey);
        &:before {
          content: "\2713";
          color: var(--light-blue);
          opacity: 1;
        }
      }
    }
  }

  /* Segment breakpoints: scoped context list overrides */
  .contextList.context--segments {
    font-size: 1.125rem;
    padding: 24px 24px;
    height: 180px;
    width: 250px;
    justify-items: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: auto;

    ul{
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      counter-reset: context-item;
      width: 100%;
      background: var(--bg-grey);
      border: 1px solid var(--border-grey);
      border-radius: 14px;
      padding: 10px 12px;
      box-sizing: border-box;
      margin-block-end: 10px;
      margin-block-start: 5px;
      padding: 0;
    }

    .item {
      border-radius: 0;
      padding: 6px 4px !important;
      display:block;
      margin-bottom: 0 !important;
      background: transparent;
      background-image: none;
      border: none;
      color: var(--text-white);
      font-size: 0.8125rem !important;
      width: 100%;
      box-sizing: border-box;
      text-align: start;
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
      line-height: 1.2;

      &:before {
        content: counter(context-item) ".";
        margin-right: 10px;
        opacity: 0.6;
      }

      &.off {
        background: transparent;
        &:before {
          content: counter(context-item) ".";
        }
      }
    }
  }

  /* When contextLists are stacked inside a rows container, shrink them to fit */
  .container.rows > .contextList {
    height: auto;
    padding: 0 20px;
    font-size: 1rem;
    flex: 0 0 auto;
    margin: 0;
    max-width: 100%;

    ul { flex: 0 0 auto; }
    .item { padding: 10px 16px; margin-bottom: 6px; font-size: 0.875rem; }
  }

  .container.rows > .contextList.context--segments {
    height: auto;
    font-size: 1rem;
    flex: 0 0 auto;
    margin: 0;
    max-width: 100%;
    min-height: auto;
    width: 250px;
    padding: 0px 16px;

    ul { flex: 0 0 auto; }
    .item { font-size: 0.625rem; }
  }

  /* When rows are inside columns, make the stacked contextLists evenly share height */
  .body .container.columns > .container.rows {
    height: 100%;
    width: 280px;
    flex: 0 0 auto;
  }
  /* Segment naming: override columns > rows container styling */
  .body .container.columns > .container.rows.rows--segment-naming {
    height: 100%;
    width: 100%;
    flex: 0 0 auto;
  }

  .body .container.columns > .container.rows > .contextList.context--segments .title {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
  }
  .body .container.columns > .container.rows > .contextList.context--segments ul {
    flex: 0 0 auto;
    height: auto;
    justify-content: flex-start;
  }

  .body .container.rows .gradient-card{
    margin-top: 0;
    padding-top: 20px;
    background: #45E7DE;
    background: radial-gradient(circle at top left, rgba(69, 231, 222, 1) 0%, rgba(3, 91, 233, 1) 25%, #19191B 75%);
    text-align: start;
    border-radius: 14px;

    .container .title{
      color: var(--text-grey);
      font-size: 1rem;
      margin-bottom: 0;
    }

    .title{
      color: white;
      font-size: 1rem;
    }
  }

  /* Gradient card applied directly on a container (e.g. confirmation card) */
  .body .container.gradient-card {

    background: #45E7DE;
    background: radial-gradient(circle at top left, rgba(69, 231, 222, 1) 0%, rgba(3, 91, 233, 1) 25%, #19191B 75%);
    border-radius: 14px;
    padding: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-blue);
    font-size: 1.5rem;
    font-weight: 600;

    .contextList .title{
      margin-bottom: 0;
    }

    div {
      color: var(--text-white);
    }
  }

  /* Segment breakpoints: override rows container styling */
  .body .container.rows.rows--segments {
    justify-content: flex-start;
    gap: 22px;
    padding-top: 50px;
  }
  .body .container.rows.rows--segments .contextList .item:before {
    content: none;
  }

  .container {
    display:flex;
    height: 100%;
    align-items: center;
    overflow: hidden;
    &.columns { display:flex; flex-direction: row; gap: 16px;}
    &.columns > div { flex: 1 1 0; min-width: 0; min-height: 0; }
    &.rows { display:flex; flex-direction: column; }
    > div { flex:auto; justify-items: center; min-width: 0; min-height: 0;}
  }

  .body .container.rows {
    justify-content: flex-start;
    gap: 16px;
  }
  .body .container.rows.rows--segment-naming {
    justify-content: flex-start;
    gap: 0px;
    padding-top: 60px;
  }
  .body .container.rows > div {
    flex: 0 0 auto;
    height: auto;
  }
  
  .minicard-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: fit-content;
    margin: auto;
    row-gap: 0;
    flex: initial;
    column-gap: 0;
  }
  /* When minicard-list uses CSS grid, override flex constraints */
  .minicard-list[style*="grid"] {
    max-width: 100%;
    flex: 1;
  }
  .popup {
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);

    z-index: 30;
    border-radius: 14px;
    min-width:320px;
    max-width:560px;
    /* padding:1.5rem 1.75rem; removed for pushback dialog. Might have unintended issues (probably with some debugging component*/
    text-align: center;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  .popup .pushback-dialog {
    position: relative;
    isolation: isolate;
    border-radius: 16px;
    background: #19191B;
    border: 2px solid transparent;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
  .popup .pushback-dialog:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    /* background: linear-gradient(to right, var(--light-blue), var(--dark-blue)); */
  }
  .popup .pushback-dialog .title {
    margin-bottom: 0;
  }
  .popup .pushback-dialog.contextList .item {
    border: none !important; 
  }
  .popup .pushback-dialog.contextList .item:before {
    content: none;
    margin-right: 0;
  }

  .decision-artifact-slide {
    font-size: 0.7rem;
    overflow: hidden;

    /* Compact so it fits without scrolling */
    .body {
      overflow: hidden;
      min-height: 0;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    /* Body content must size to content so scroll works; override .container height:100% */
    .body .container.rows {
      height: auto !important;
      overflow: visible !important;
      gap: 8px;
    }
    .body .container {
      overflow: visible !important;
    }
    /* Intro title: same style as other pages (gradient text, centered) */
    .body .title {
      background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 1.5rem;
      font-size: 1.5rem;
      text-align: center;
    }

    /* Grid layout: 2 columns */
    .decision-artifact-grid.container {
      display: grid !important;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      gap: 12px;
      flex: 1 1 auto;
      min-height: min-content;
      align-items: start;
      overflow: visible;
      width: 100%;
    }
    .decision-artifact-grid.container > div {
      overflow: visible;
      min-height: min-content;
      min-width: 0; /* allow grid cells to shrink evenly */
    }
    .decision-artifact-grid.container > div:nth-child(1) { grid-column: 1; grid-row: 1; }
    .decision-artifact-grid.container > div:nth-child(2) { grid-column: 2; grid-row: 1; }
    .decision-artifact-grid.container > div:nth-child(3) { grid-column: 1; grid-row: 2; }
    .decision-artifact-grid.container > div:nth-child(4) { grid-column: 2; grid-row: 2; }
    .decision-artifact-grid.container > div:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }

    /* Context lists in grid: fill cell width, no centering margin, stretch to align */
    .decision-artifact-grid.container .contextList {
      width: 100%;
      min-width: 0;
      margin: 0;
      box-sizing: border-box;
    }
    .decision-artifact-grid.container {
      justify-items: stretch;
    }

    /* Box headings: gradient text (like 9-grid/other pages) */
    .body .contextList .title {
      background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 0.5rem;
      font-size: 1rem;
      font-weight: 600;
      text-align: left;
    }

    /* Cards: shadow, rounded corners, visible border, padding around each */
    .body .contextList {
      background: var(--bg-grey);
      border: 2px solid var(--border-grey);
      border-radius: 12px;
      padding: 1rem 1.25rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .body .contextList .item {
      border: none;
      background: transparent;
      padding: 2px 4px;
      margin-bottom: 0;
      font-size: 0.88em;
      line-height: 1.18;
    }
    .body .contextList ul {
      padding-left: 1.15em;
    }
  }
}

/* Decision artifact loading + feedback section */
.decision-artifact-feedback-section {
  margin-top: 1.5rem;
  padding: 0 1rem;
  text-align: center;
}
.decision-artifact-loading-prompt {
  padding: 1.5rem;
  background: rgba(69, 231, 222, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(69, 231, 222, 0.25);
}
.decision-artifact-loading-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-white, #EFEFEF);
  margin: 0 0 0.5rem 0;
}
.decision-artifact-loading-hint {
  font-size: 0.95rem;
  color: var(--pf-grayscale, #9DA2B3);
  margin: 0;
}
.decision-artifact-ready-prompt-wrap {
  padding: 1.5rem;
  text-align: center;
}
.decision-artifact-ready-prompt {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-white, #EFEFEF);
  margin: 0 0 1rem 0;
}
.decision-artifact-ready-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white, #EFEFEF);
  background: rgba(69, 231, 222, 0.25);
  border: 1px solid rgba(69, 231, 222, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.decision-artifact-ready-btn:hover {
  background: rgba(69, 231, 222, 0.35);
  border-color: rgba(69, 231, 222, 0.7);
}

/* Thumbs feedback prompt (shown below decision artifact) */
.thumbs-feedback-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}
.thumbs-feedback-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-white, #EFEFEF);
  margin-bottom: 1rem;
}
.thumbs-feedback-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
.thumbs-feedback-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.thumbs-feedback-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(69, 231, 222, 0.3);
}
.thumbs-feedback-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.thumbs-feedback-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(69, 231, 222, 0.4));
}

/* Post-lesson feedback form (from feedback-files.zip design tokens) */
.post-feedback-slide,
.post-feedback-thanks {
  --pf-gray: #EFEFEF;
  --pf-dark: #0C0C0F;
  --pf-input-bg: #FFFFFF12;
  --pf-teal: #45E7DE;
  --pf-grayscale: #9DA2B3;
}
.post-feedback {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--pf-gray);
}
.post-feedback-header {
  text-align: center;
  margin-bottom: 2rem;
}
.post-feedback-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.post-feedback-thumb-large {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 2px 12px rgba(69, 231, 222, 0.5));
  margin-bottom: 0.5rem;
}
.post-feedback-contact {
  font-size: 0.875rem;
  color: var(--pf-teal);
  text-decoration: none;
}
.post-feedback-form-section {
  margin-top: 1.5rem;
}
.post-feedback-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.post-feedback-subheading {
  font-size: 0.95rem;
  color: var(--pf-grayscale);
  margin-bottom: 1.25rem;
}
.post-feedback-error {
  color: #f87171;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.post-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
@media (max-width: 600px) {
  .post-feedback-grid {
    grid-template-columns: 1fr;
  }
}
.post-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.post-feedback-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pf-grayscale);
}
.post-feedback-field input,
.post-feedback-field textarea {
  background: var(--pf-input-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--pf-gray);
  font-size: 0.95rem;
}
.post-feedback-field input::placeholder,
.post-feedback-field textarea::placeholder {
  color: var(--pf-grayscale);
  opacity: 0.8;
}
.post-feedback-field textarea {
  resize: vertical;
  min-height: 80px;
}
.post-feedback-upload {
  margin-top: 0.5rem;
}
.post-feedback-dropzone {
  border: 2px dashed rgba(69, 231, 222, 0.4);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--pf-input-bg);
  transition: border-color 0.2s, background 0.2s;
}
.post-feedback-dropzone:hover {
  border-color: var(--pf-teal);
  background: rgba(69, 231, 222, 0.08);
}
.post-feedback-dropzone-text {
  color: var(--pf-grayscale);
  font-size: 0.9rem;
}
.post-feedback-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--pf-grayscale);
  cursor: pointer;
}
.post-feedback-checkbox input {
  width: auto;
}
.post-feedback-submit-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.post-feedback-submit {
  background: linear-gradient(98.6deg, #45E7DE 1.54%, #035BE9 95.46%);
  color: #0F0F0F;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-feedback-submit:hover {
  box-shadow: 0 4px 16px rgba(69, 231, 222, 0.4);
}
.post-feedback-thanks .post-feedback-title {
  font-size: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

/* Join Pilot popup (shown when done with decision artifact) */
.join-pilot-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.join-pilot-popup {
  position: relative;
  max-width: 560px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(45px);
  box-shadow: 3px -10px 34px 0px rgba(69, 231, 223, 0.6);
  border-radius: 16px;
  background: rgba(12, 12, 15, 0.95);
}
.join-pilot-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(98.6deg, #45E7DE 1.54%, #035BE9 95.46%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.join-pilot-popup-icon {
  width: 100px;
  margin-bottom: 24px;
}
.join-pilot-popup-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white, #EFEFEF);
  margin: 0 0 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.join-pilot-popup-text {
  font-size: 1.125rem;
  color: #EDEFF7;
  line-height: 1.6;
  margin: 0;
}
.join-pilot-popup-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.join-pilot-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 176px;
  padding: 0.82rem 1.3rem;
  background: linear-gradient(98.6deg, #45E7DE 1.54%, #035BE9 95.46%);
  color: #0F0F0F;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.join-pilot-popup-btn:hover {
  box-shadow: 0 4px 16px rgba(69, 231, 222, 0.4);
  color: #0F0F0F;
}
.join-pilot-popup-btn.secondary {
  background: #1b1d22;
  border: 1px solid #2e323d;
  color: #EFEFEF;
}
.join-pilot-popup-btn.secondary:hover {
  color: #EFEFEF;
  box-shadow: 0 4px 16px rgba(55, 63, 84, 0.45);
}
.join-pilot-popup-btn-arrow {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
@media (max-width: 520px) {
  .join-pilot-popup {
    padding: 2rem 1.2rem 1.3rem;
  }
  .join-pilot-popup-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Decision artifact feedback modal (thumbs → form → thank you) */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.feedback-modal-container {
  position: relative;
  max-width: 560px;
  width: 100%;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(45px);
  box-shadow: 3px -10px 34px 0px rgba(69, 231, 223, 0.6);
  border-radius: 16px;
  background: rgba(12, 12, 15, 0.95);
}
.feedback-modal-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(98.6deg, #45E7DE 1.54%, #035BE9 95.46%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.feedback-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.7;
}
.feedback-modal-close:hover {
  opacity: 1;
}
.feedback-modal-close img {
  width: 24px;
  height: 24px;
  display: block;
}
.feedback-modal-thumbs {
  text-align: center;
  padding: 0.5rem 0;
}
.feedback-modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white, #EFEFEF);
  margin: 0 0 1.5rem 0;
}
.feedback-modal-thumbs-btns {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
.feedback-modal-thumb-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feedback-modal-thumb-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(69, 231, 222, 0.3);
}
.feedback-modal-thumb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.feedback-modal-thumb-icon {
  width: 64px;
  height: 64px;
  background-color: teal;
  padding: 1.2em;
  border-radius: 20em;
  filter: drop-shadow(0 2px 8px rgba(69, 231, 222, 0.4));
}
.feedback-modal-form-wrap {
  max-height: 70vh;
  overflow-y: auto;
}
.feedback-modal-thanks {
  text-align: center;
  padding: 0.5rem 0;
}
.feedback-modal-thanks-icon {
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
}
.feedback-modal-thanks-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0.5rem 0 1.5rem 0;
  letter-spacing: -0.02em;
}
.feedback-modal-thanks-text {
  font-size: 1.125rem;
  color: #EDEFF7;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}
.feedback-modal-thanks-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(98.6deg, #45E7DE 1.54%, #035BE9 95.46%);
  color: #0F0F0F;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feedback-modal-thanks-btn:hover {
  box-shadow: 0 4px 16px rgba(69, 231, 222, 0.4);
}
.feedback-modal-thanks-btn-arrow {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Thank you view in main content (after modal closed) */
.feedback-thanks-main {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}
.feedback-thanks-main .feedback-modal-thanks-icon {
  width: 120px;
}
.feedback-thanks-main .feedback-modal-thanks-title {
  margin-top: 1rem;
}
.feedback-thanks-main .feedback-modal-thanks-text {
  margin-bottom: 0.5rem;
}
.feedback-thanks-main .feedback-modal-thanks-btn {
  text-decoration: none;
  color: #0F0F0F;
  display: inline-flex;
}
.feedback-thanks-main .feedback-modal-thanks-btn:hover {
  color: #0F0F0F;
}
