    :root {
      --bg: #ececf1;
      --card: #ffffff;
      --text: #1f2430;
      --muted: #7f8796;
      --line: #d9dbe3;
      --green: #61c12c;
      --green-dark: #46a91d;
      --yellow: #f3b400;
      --yellow-dark: #d89d00;
      --grey: #b8bdc8;
      --grey-dark: #8f97a5;
      --shadow: 0 6px 18px rgba(21, 28, 45, 0.08);
      --radius-xl: 28px;
      --radius-lg: 18px;
      --radius-md: 12px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    a {
      color: black;
    }
    .sa-project-portal {
      width: 100%;
      overflow: visible;
    }

    .page {
      max-width: 1180px;
      margin: 32px auto;
      padding: 0 18px 40px;
      overflow: visible;
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
      padding: 0 8px;
    }

    .page-header h1 {
      margin: 0;
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 14px 24px;
      background: var(--green);
      color: #fff;
      border-radius: 16px;
      font-size: 1.1rem;
      font-weight: 700;
      box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
      white-space: nowrap;
    }

    .status-pill .icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(255,255,255,0.95);
      color: var(--green-dark);
      display: grid;
      place-items: center;
      font-size: 1rem;
      font-weight: 900;
    }

    .mobile-hint {
      display: none;
      color: var(--muted);
      font-size: 0.92rem;
      margin: 0 0 12px 4px;
      padding: 0 8px;
    }

    .milestone-scroll-wrap {
      width: 100%;
      overflow: visible;
    }

    .milestone-carousel {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      width: 100%;
    }

    .milestone-card {
      background: var(--card);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      padding: 30px 22px 18px;
      min-width: 0;
      overflow: hidden;
    }

    .milestone-card.green .percent,
    .milestone-card.green .card-title,
    .milestone-card.green .footer-value {
      color: var(--green-dark);
    }

    .milestone-card.yellow .percent,
    .milestone-card.yellow .card-title,
    .milestone-card.yellow .footer-value {
      color: var(--yellow-dark);
    }

    .milestone-card.grey .percent,
    .milestone-card.grey .card-title,
    .milestone-card.grey .footer-value {
      color: var(--grey-dark);
    }

    .card-head {
      text-align: center;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .percent {
      font-size: clamp(2.8rem, 4vw, 4.1rem);
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.04em;
      margin-bottom: 8px;
    }

    .card-title {
      font-size: clamp(1.35rem, 2vw, 2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .track-wrap {
      position: relative;
      margin: 26px 0 14px;
      padding: 12px 0;
    }

    .track-bar {
      width: 100%;
      height: 36px;
      border-radius: 18px;
      background: #dfe2ea;
      overflow: hidden;
      border: 1px solid rgba(31,36,48,0.05);
      --milestone-progress: 0%;
    }

    .track-bar > span {
      display: block;
      width: var(--milestone-progress);
      height: 100%;
    }

    .track-bar.green > span {
      background: linear-gradient(90deg, var(--green-dark), #88d137 80%);
    }

    .track-bar.yellow > span {
      background: linear-gradient(90deg, var(--yellow), #ffc600);
    }

    .track-bar.grey > span {
      background: linear-gradient(90deg, #9ca3af, #b9c0cb);
    }

    .milestone-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 92px;
      height: 92px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 3rem;
      font-weight: 800;
      background: #fff;
      border: 10px solid #fff;
      box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
      z-index: 2;
    }

    .milestone-icon.green {
      background: var(--green);
      color: #fff;
    }

    .milestone-icon.yellow {
      background: var(--yellow);
      color: #fff;
    }

    .milestone-icon.grey {
      background: var(--grey);
      color: #fff;
    }

    .footer-value {
      text-align: center;
      font-size: 3rem;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.04em;
      margin: 10px 0 18px;
    }

    .state-pill {
      width: 100%;
      height: 58px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      padding: 0 18px;
      font-size: 1.05rem;
      font-weight: 750;
      color: #fff;
      box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
      margin-bottom: 18px;
    }

    .state-pill.green {
      background: linear-gradient(90deg, var(--green-dark), var(--green));
    }

    .state-pill.yellow {
      background: linear-gradient(90deg, #f1ab00, #ffc400);
    }

    .state-pill.grey {
      background: linear-gradient(90deg, #bcc1cb, #cfd3dc);
      color: #5f6775;
    }

    .details-col {
      padding: 24px 6px 10px;
      min-height: 360px;
      border-top: 1px solid var(--line);
    }

    .details-col h2 {
      margin: 0 0 22px;
      font-size: 1.85rem;
      letter-spacing: -0.03em;
    }

    .stage-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 18px;
    }

    .stage-item {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 1.4rem;
      color: var(--text);
    }

    .stage-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      flex: 0 0 28px;
      display: grid;
      place-items: center;
      font-size: 0.95rem;
      font-weight: 800;
      border: 2px solid currentColor;
      background: #fff;
    }

    .stage-item.done .stage-icon {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .stage-item.current .stage-icon {
      background: var(--yellow);
      border-color: var(--yellow);
      color: #fff;
    }

    .stage-item.none {
      border-color: #b6bcc7;
      color: transparent;
      background: transparent;
      display: none;
    }

    .stage-item.pending .stage-icon {
      border-color: #b6bcc7;
      color: transparent;
      background: transparent;
    }

  .progress-mini {
  margin: 16px 0 6px 42px;
  height: 28px;
  max-width: 260px;
  border-radius: 8px;
  overflow: hidden;
  background: #cfd4df;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  --progress: 0%;
}

.progress-mini span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, #f0ae00, #ffc400);
}

.progress-mini b {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #2b3342;
}

    .warning {
      margin-left: 42px;
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 1rem;
      color: #5a6070;
    }

    .warning .triangle {
      color: #e4a900;
      font-size: 1.2rem;
    }

    .bottom-track {
      margin-top: 10px;
      padding: 18px 4px 8px;
    }

    .bottom-track .line {
      height: 16px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--green-dark) 0%, #97d545 34%, #dbd719 50%, #e7c973 62%, #cfd4dc 100%);
      opacity: 0.85;
    }

    @media (max-width: 980px) {
      .page {
        margin: 24px auto;
        padding: 0 14px 28px;
      }

      .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2px;
      }

      .milestone-carousel {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      body {
        overflow-x: hidden;
      }

      .page {
        margin: 16px auto;
        padding: 0 0 22px;
      }

      .page-header {
        padding: 0 14px;
        margin-bottom: 14px;
      }

      .page-header h1 {
        font-size: 2rem;
      }

      .status-pill {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 10px 14px;
        border-radius: 12px;
      }

      .status-pill .icon,
      .stage-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 0.8rem;
      }

      .mobile-hint {
        display: block;
        padding: 0 14px;
      }

      .milestone-scroll-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 14px 8px;
      }

      .milestone-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        width: auto;
        min-width: max-content;
      }

      .milestone-card {
        flex: 0 0 calc(100vw - 40px);
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        min-height: calc(100vh - 120px);
        scroll-snap-align: start;
        border-radius: 20px;
        padding: 18px 12px 12px;
      }

      .card-head {
        padding-bottom: 14px;
      }

      .percent {
        font-size: 2.6rem;
        margin-bottom: 6px;
      }

      .card-title {
        font-size: 1.25rem;
      }

      .track-wrap {
        margin: 16px 0 8px;
      }

      .track-bar {
        height: 22px;
        border-radius: 999px;
      }

      .milestone-icon {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
        border-width: 6px;
      }

      .footer-value {
        font-size: 2.4rem;
        margin: 6px 0 12px;
      }

      .state-pill {
        height: 46px;
        font-size: 0.95rem;
        padding: 0 14px;
        border-radius: 12px;
        margin-bottom: 12px;
      }

      .details-col {
        min-height: auto;
        padding: 18px 2px 10px;
      }

      .details-col h2 {
        font-size: 1.45rem;
        margin-bottom: 16px;
      }

      .stage-list {
        gap: 14px;
      }

      .stage-item {
        gap: 10px;
        font-size: 1rem;
        align-items: flex-start;
      }

      .progress-mini {
        margin: 14px 0 4px 34px;
        height: 22px;
        max-width: 100%;
      }

      .progress-mini b {
        right: 8px;
        font-size: 0.8rem;
      }

      .warning {
        margin-left: 34px;
        font-size: 0.95rem;
      }

      .bottom-track {
        padding: 12px 0 4px;
      }

      .bottom-track .line {
        height: 12px;
      }
    }
