/* ApplicationNew's Figma-aligned CSS is loaded first. This file only holds the
   standalone preview frame and the interactions that do not exist in a static page. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #e7ebf2; text-transform: none; }
.prototype-workbench { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.prototype-inspector { z-index: 4; padding: 36px 24px; color: #edf3ff; background: #102b59; box-shadow: 2px 0 22px rgba(0, 12, 32, .14); }
.prototype-logo { width: 132px; height: auto; filter: brightness(0) invert(1); }
.prototype-kicker { margin: 26px 0 5px; color: #9fb9e9; font-family: modern-era-medium, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.prototype-inspector h1 { margin: 0; font-size: 28px; }
.prototype-copy, .prototype-data { margin: 12px 0 0; color: #c4d2ed; font-size: 13px; line-height: 1.48; }
.prototype-inspector fieldset { margin: 27px 0 0; padding: 0; border: 0; }
.prototype-inspector legend { margin-bottom: 9px; color: #9fb9e9; font-family: modern-era-medium, sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.inspector-option, .prototype-video { display: block; width: 100%; margin: 0 0 7px; padding: 10px 12px; border: 1px solid rgba(205, 222, 255, .18); border-radius: 9px; color: #fff; background: transparent; font-family: modern-era-medium, sans-serif; font-size: 13px; text-align: left; text-transform: none; }
.inspector-option:hover, .inspector-option:focus-visible, .inspector-option.is-active { border-color: #fff; background: #2c61ff; }
.prototype-video { margin-top: 27px; text-align: center; text-decoration: none; background: #00b13c; }
.prototype-stage { min-width: 0; min-height: 100vh; display: grid; place-items: center; padding: 34px; overflow: auto; background: radial-gradient(circle at 50% 15%, #fff 0, #eff2f6 52%, #e0e6ef 100%); }
.prototype-frame { width: 390px; height: 844px; overflow: hidden; background: #f2f2f2; box-shadow: 0 24px 58px rgba(20, 43, 89, .24); }
.goalforce-app { position: relative; width: 390px; min-height: 844px; overflow: hidden; background: #f2f2f2; }
.screen { display: none; min-height: 844px; background: #f2f2f2; }
.screen.active { display: block; }
.screen-scroll { height: 844px; padding-bottom: 68px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }
.goalforce-app .nav-area { position: absolute; right: 0; bottom: 0; left: 0; width: 390px; }
.goalforce-app .ranking-area, .goalforce-app .campain-area, .goalforce-app .contest-area, .goalforce-app .sales-area { min-height: 844px; }
.goalforce-app .ranking-area, .goalforce-app .campain-area, .goalforce-app .contest-area, .goalforce-app .sales-area, .goalforce-app .goal-details-shell { position: relative; z-index: 0; }
.goalforce-app .box-style { overflow: hidden; }
.goalforce-app .goal-blk, .goalforce-app .fais-blk, .goalforce-app .reward-detail-card, .goalforce-app .sales-list-blk, .goalforce-app .feed__list li { cursor: pointer; }
.goalforce-app .home-area .fais-blk { color: #000c20; }
.goalforce-app .header-area { position: relative; z-index: 2; }
.goalforce-app .header-area:not(.bg-white) { color: #fff; background: transparent; }
.goalforce-app .header-area.bg-white { background: #fff; }
.goalforce-app .user-link > img { width: 28px; height: 28px; object-fit: cover; }
.goalforce-app .campaign-readout { margin: 0 15px 18px; padding: 11px 14px; border-radius: 13px; color: #102b59; background: #fff; box-shadow: 0 0 3.5px rgba(29,77,163,.25); font-size: 13px; line-height: 1.35; text-transform: none; }
.goalforce-app .campaign-readout strong { display: block; font-family: modern-era-medium, sans-serif; }
.goalforce-app .campaign-readout span { color: #476597; }
.goalforce-app .goal-ring { position: absolute; top: 39px; left: 43px; width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(#2c61ff var(--progress), #f2f2f2 0); }
.goalforce-app .goal-ring::after { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: #fff; }
.goalforce-app .goal-ring span { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; place-items: center; color: #000c20; font-size: 16px; }
.goalforce-app .goal-ring.done { background: conic-gradient(#00b13c var(--progress), #f2f2f2 0); }
.goalforce-app .segmented-static { position: relative; width: 78px; height: 78px; border: 7px dashed #f18f01; border-radius: 50%; display: grid; place-items: center; color: #000c20; background: conic-gradient(#f18f01 0 60%, #f2f2f2 60%); }
.goalforce-app .segmented-static::after { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.goalforce-app .segmented-static span { position: relative; z-index: 1; }
.goalforce-app .goal-details-shell { min-height: 844px; height: 844px; }
.goalforce-app .goal-details-map { height: 774px; min-height: 774px; max-height: 774px; --map-width: 390px; }
.goalforce-app .goal-detail-return { position: absolute; z-index: 50; top: 36px; left: 28px; color: #353535; background: transparent; font-size: 18px; }
.goalforce-app .sales-filters { margin: 0 19px 14px; padding: 0; }
.goalforce-app .sales-filters button { width: 100%; min-height: 45px; padding: 10px 14px; border-radius: 12px; color: #102b59; background: #fff; box-shadow: 0 0 3.5px rgba(29,77,163,.25); font-family: modern-era-medium, sans-serif; text-align: left; }
.goalforce-app .sales-filters button span { float: right; color: #2c61ff; }
.goalforce-app .filter-sheet { position: absolute; z-index: 950; inset: 0; display: none; padding: 86px 18px 0; background: rgba(0,12,32,.46); }
.goalforce-app .filter-sheet.is-open { display: block; }
.goalforce-app .filter-sheet > div { padding: 19px 17px 18px; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(0,12,32,.25); }
.goalforce-app .filter-sheet h2 { margin: 0 0 16px; font-size: 18px; }
.goalforce-app .filter-sheet label { display: block; margin: 0 0 14px; color: #476597; font-size: 14px; }
.goalforce-app .filter-sheet input { width: 100%; height: 43px; margin-top: 6px; padding: 0 11px; border: 1px solid #b1b9c0; border-radius: 9px; color: #000c20; font-family: inherit; }
.goalforce-app .filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.goalforce-app .filter-actions button { height: 42px; border-radius: 11px; color: #fff; background: #2c61ff; font-family: modern-era-medium, sans-serif; }
.goalforce-app .filter-actions button:first-child { color: #476597; background: #e5e5e5; }
.goalforce-app .reward-detail-overlay { display: none; }
.goalforce-app .reward-detail-overlay.is-open { display: flex; }
.goalforce-app .chart-static { position: relative; width: 170px; height: 170px; margin: 2px auto 18px; border-radius: 50%; background: conic-gradient(#00b13c 0 46%, #2c61ff 46% 72%, #f18f01 72% 100%); }
.goalforce-app .chart-static::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #fff; }
.goalforce-app .chart-static > div { position: relative; z-index: 1; display: grid; height: 100%; place-content: center; text-align: center; }
.goalforce-app .chart-static span { color: #476597; font-size: 14px; }
.goalforce-app .chart-static strong { font-size: 26px; line-height: 1.1; }
.goalforce-app .profile-ranking { padding: 0 20px; }
.goalforce-app .rank-row { display: flex; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid #e5e5e5; color: #000c20; }
.goalforce-app .rank-row b { width: 24px; color: #2c61ff; text-align: center; }
.goalforce-app .rank-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.goalforce-app .rank-row span { flex: 1; font-size: 14px; }
.goalforce-app .rank-row small { color: #476597; font-size: 12px; }
.prototype-frame[data-viewport="tablet"] { width: 768px; height: 844px; display: grid; place-items: center; background: #e9eef6; }
.prototype-frame[data-viewport="tablet"]::before { content: "Tablet preview · production mobile canvas"; position: absolute; align-self: start; margin-top: 18px; color: #476597; font-family: modern-era-medium, sans-serif; font-size: 12px; }
@media (max-width: 699px) {
  .prototype-workbench { display: block; }
  .prototype-inspector { display: none; }
  .prototype-stage { display: block; min-height: 100vh; padding: 0; background: #f2f2f2; }
  .prototype-frame, .prototype-frame[data-viewport="tablet"] { width: 100%; height: 100vh; min-height: 844px; display: block; box-shadow: none; }
  .goalforce-app { width: min(100%, 390px); min-height: 100vh; margin-inline: auto; }
  .screen, .screen-scroll { min-height: 100vh; height: 100vh; }
  .goalforce-app .nav-area { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Application-only static host. The preceding selectors belong to the retired
   standalone frame; the rebuilt prototype does not render any of those classes. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #e8edf5; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #e8edf5; text-transform: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

#prototype-root {
  position: relative;
  width: min(100%, 768px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f2f2f2;
  overflow: hidden;
}

.prototype-screen { display: none; min-height: 100vh; padding-bottom: 92px; background: #f2f2f2; }
.prototype-screen.is-active { display: block; }
.prototype-screen .header-area { position: relative; z-index: 2; }
.prototype-screen .header-area:not(.bg-white) { background: transparent; color: #fff; }
.prototype-screen .header-area.bg-white { background: #fff; }
.prototype-screen .back-link { border: 0; padding: 0; background: transparent; color: #000c20; }
.prototype-screen .user-link { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; }
.prototype-screen .user-link > img { width: 28px; height: 28px; object-fit: cover; }
.prototype-screen .box-style[data-page], .prototype-screen .goal-blk[data-page], .prototype-screen .fais-blk[data-page] { cursor: pointer; }

/* The production navigation is fixed. Keep it within the application-sized host. */
#prototype-root .nav-area { left: 50%; width: min(100%, 768px); transform: translateX(-50%); z-index: 30; }
#prototype-root .nav-area a { text-decoration: none; }

.prototype-screen .campain-nav button {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .53);
  font-family: var(--fw500, modern-era-medium, sans-serif);
  font-size: var(--f18, 18px);
}
.prototype-screen .campain-nav button.active { color: #fff; }
.prototype-screen .campain-nav button::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 95%;
  height: 2px;
  content: "";
  background: #fff;
  opacity: 0;
  transform: translateX(-50%);
}
.prototype-screen .campain-nav button.active::after { opacity: 1; }

.goal-badge { min-width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 1px 3px; border-radius: 27px; background: #e5e5e5; color: #fff; font-size: 12px; font-weight: 700; }
.goal-badge--current { background: var(--BlueColor, #2c61ff); }
.goal-badge--done { background: var(--greenColor, #00b13c); }
.goal-badge img { width: 10px; height: 10px; filter: brightness(0) invert(1); }
.goal-rings { width: 86px; height: 86px; }
.goal-rings .circle { overflow: visible; }
.goal-rings .percentage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.segmented-circle-container { position: relative; display: flex; align-items: center; justify-content: center; }
.segmented-circle-container .circle-center-text { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.home-contest-count, .contest-count { position: absolute; font-size: 14px; }

.reward-detail-overlay[hidden], .filter-overlay[hidden], .sale-details-overlay[hidden] { display: none; }
.filter-overlay, .sale-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 12, 32, .35);
}
.filter-overlay .box-style, .sale-details-overlay .box-style { width: min(100%, 540px); max-height: min(86vh, 760px); overflow: auto; }
.filter-overlay .type-sales-card { padding: 20px; }
.filter-overlay .type-sales-opt { display: flex; align-items: center; justify-content: space-between; }
.filter-overlay .type-sales-opt button, .filter-overlay .type-sales-opt a { border: 0; background: transparent; color: #102b59; }
.filter-overlay .filter-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.filter-overlay .filter-calendar-grid span, .filter-overlay .filter-calendar-grid button { min-height: 31px; border: 0; border-radius: 8px; background: transparent; }
.filter-overlay .filter-calendar-grid .is-selected { background: #1d4da3; color: #fff; }
.filter-overlay input[type="range"] { width: 100%; }
.filter-overlay .type-sales-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-overlay .thm_btn { border: 0; text-align: center; }

.sale-details-overlay { align-items: center; }
.sale-details-overlay .Sales-details-blk { padding: 22px; }
.sale-details-overlay .Sales-details-blk ul { margin: 0; padding: 0; list-style: none; }
.sale-details-overlay .Sales-details-blk li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.sale-details-overlay .Sales-details-blk li:last-child { border: 0; }

.reward-chart-fallback { width: min(230px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.reward-chart-fallback canvas { width: 100%; height: 100%; }
.chart-tab { position: relative; }
.chart-tab h3 { pointer-events: none; }

.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.assistant-suggestions button { border: 1px solid #cbd8ff; border-radius: 999px; background: #f5f7ff; color: #263b72; padding: 9px 13px; font-size: 13px; }
.assistant-chat-form { display: flex; gap: 8px; margin-top: 18px; }
.assistant-chat-form .chat-input { min-width: 0; }
.assistant-chat-form button { width: 54px; border: 0; }
.assistant-response { white-space: pre-line; }

@media (min-width: 769px) {
  body { padding: 20px; }
  #prototype-root { min-height: calc(100vh - 40px); box-shadow: 0 18px 50px rgba(16, 43, 89, .18); }
}

@media (max-width: 550px) { #prototype-root { width: 100%; } }
