:root {
  --canvas: #f7f8f5;
  --ink: #071c24;
  --lime: #cafa4b;
  --line: #e7ebe8;
  --muted: #65727a;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  min-height: 100vh;
  overflow-x: hidden;
}
.desktop-context {
  padding: 7vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--canvas);
}
.context-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px #efffc2;
}
.context-copy {
  max-width: 650px;
}
.context-copy small {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.context-copy h1 {
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.07em;
  line-height: 0.94;
  margin: 14px 0 20px;
}
.context-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
}
.context-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.context-flow span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.context-flow i {
  font-style: normal;
  color: #9aa5a4;
}
.stage {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 70px;
  background: #eef0ee;
  overflow: auto;
}
.phone-canvas {
  position: relative;
  width: min(477px, 100%);
  background: var(--canvas);
  box-shadow: 0 24px 65px rgba(7, 28, 36, 0.14);
  line-height: 0;
  overflow: hidden;
  min-height: 800px;
}
.phone-canvas img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 5;
  border-radius: 16px;
}
.hotspot:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  background: rgba(202, 250, 75, 0.12);
}
.hotspot.debug:hover {
  background: rgba(202, 250, 75, 0.08);
  box-shadow: inset 0 0 0 1px rgba(7, 28, 36, 0.08);
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.prototype-toolbar {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(7, 28, 36, 0.12);
  backdrop-filter: blur(12px);
}
.prototype-toolbar button {
  border: 0;
  background: var(--ink);
  color: #fff;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  font:
    600 11px Inter,
    Arial,
    sans-serif;
  cursor: pointer;
  padding: 0 11px;
}
.prototype-toolbar button:last-child {
  background: var(--lime);
  color: var(--ink);
}
.prototype-toolbar span {
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  body {
    display: block;
  }
  .desktop-context {
    display: none;
  }
  .stage {
    padding: 0;
    background: var(--canvas);
    min-height: 100vh;
  }
  .phone-canvas {
    width: min(477px, 100%);
    box-shadow: none;
    min-height: 100vh;
  }
  .prototype-toolbar {
    right: 10px;
    bottom: 10px;
    opacity: 0.14;
    transition: 0.2s;
  }
  .prototype-toolbar:hover,
  .prototype-toolbar:focus-within {
    opacity: 1;
  }
}
@media (min-width: 901px) {
  .phone-canvas {
    border-radius: 26px;
  }
  .phone-canvas img {
    border-radius: 26px;
  }
}
.custom-screen {
  width: 100%;
  min-height: 100vh;
  background: #f7f8f5;
  line-height: 1.3;
  padding: 22px 18px 90px;
}
.custom-screen[hidden] {
  display: none;
}
.custom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.custom-back {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #071c24;
  font-size: 16px;
}
.custom-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.report-cover {
  background: #071c24;
  color: #fff;
  border-radius: 24px;
  padding: 24px 20px;
}
.report-cover small {
  font-size: 8px;
  color: #cafa4b;
  font-weight: 800;
}
.report-cover h1 {
  font-size: 33px;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 12px 0 10px;
}
.report-cover p {
  font-size: 9px;
  color: #c9d4d1;
  line-height: 1.5;
}
.lime-card {
  background: #cafa4b;
  border-radius: 22px;
  padding: 20px;
  margin-top: 12px;
}
.lime-card small,
.white-card small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.lime-card h2 {
  font-size: 22px;
  line-height: 1.03;
  margin: 8px 0 0;
}
.report-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.white-card {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 18px;
  padding: 15px;
}
.white-card b {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}
.quote-card {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 20px;
  padding: 18px;
  margin-top: 10px;
}
.quote-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 8px 0 0;
}
.next-card {
  background: #eff9e1;
  border-radius: 20px;
  padding: 18px;
  margin-top: 10px;
}
.next-card b {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}

/* V2.9 — derived screens and single-login workspace chooser. Existing SVG screens stay untouched. */
.role-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 36, 0.42);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  backdrop-filter: blur(5px);
}
.role-sheet {
  width: min(477px, 100%);
  background: #f7f8f5;
  border-radius: 28px 28px 20px 20px;
  padding: 12px 16px 18px;
  box-shadow: 0 20px 70px rgba(7, 28, 36, 0.22);
}
.role-sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #d6dbd7;
  margin: 0 auto 16px;
}
.role-sheet > small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #65727a;
}
.role-sheet h2 {
  font-size: 28px;
  letter-spacing: -0.05em;
  margin: 6px 0;
}
.role-sheet p {
  font-size: 11px;
  line-height: 1.45;
  color: #65727a;
  margin: 0 0 12px;
}
.role-sheet button {
  width: 100%;
  border: 1px solid #e7ebe8;
  background: #fff;
  color: #071c24;
  border-radius: 18px;
  padding: 13px 14px;
  margin: 7px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}
.role-sheet button b {
  font-size: 12px;
}
.role-sheet button span {
  font-size: 9px;
  color: #65727a;
}
.role-sheet button:first-of-type {
  background: #cafa4b;
  border-color: #cafa4b;
}
.role-sheet .role-sheet-cancel {
  align-items: center;
  background: transparent;
  border: 0;
  color: #65727a;
}
.locked-cta {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #071c24;
  color: #fff;
  padding: 14px 16px;
  font:
    800 10px Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.growth-score-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.growth-score-list article {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 18px;
  padding: 14px;
}
.growth-score-list article > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.growth-score-list small {
  font-size: 8px;
  font-weight: 800;
}
.growth-score-list b {
  font-size: 19px;
}
.growth-score-list em {
  font-size: 8px;
  font-style: normal;
  color: #65727a;
  margin-left: 2px;
}
.growth-bar {
  height: 7px;
  background: #eef0ee;
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.growth-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #cafa4b;
}
.badge-grid-locked {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.badge-grid-locked article {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}
.badge-medal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cafa4b;
  margin: 0 auto 10px;
  font-size: 22px;
}
.badge-grid-locked b {
  display: block;
  font-size: 12px;
}
.badge-grid-locked small {
  display: block;
  font-size: 8px;
  line-height: 1.45;
  color: #65727a;
  margin-top: 6px;
}
.privacy-note {
  font-size: 9px;
  line-height: 1.5;
  color: #65727a;
  background: #eef0ee;
  border-radius: 16px;
  padding: 13px;
  margin-top: 10px;
}
.achievement-lock {
  background: #071c24;
  color: #fff;
  border-radius: 26px;
  padding: 24px;
}
.achievement-lock > small,
.year-hero > small {
  font-size: 8px;
  font-weight: 800;
  color: #cafa4b;
  letter-spacing: 0.1em;
}
.achievement-lock h1 {
  font-size: 34px;
  letter-spacing: -0.06em;
  margin: 10px 0 8px;
}
.achievement-lock p {
  font-size: 10px;
  line-height: 1.55;
  color: #cad4d1;
}
.achievement-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.achievement-numbers div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
}
.achievement-numbers b {
  display: block;
  font-size: 22px;
  color: #cafa4b;
}
.achievement-numbers span {
  font-size: 7px;
  color: #d7e0dd;
}
.year-hero {
  background: #071c24;
  color: #fff;
  border-radius: 26px;
  padding: 24px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.year-hero h1 {
  font-size: 46px;
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin: 12px 0;
}
.year-hero p {
  font-size: 9px;
  color: #d7e0dd;
}
.year-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.year-grid article {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 18px;
  padding: 15px;
}
.year-grid small {
  display: block;
  font-size: 7px;
  font-weight: 800;
  color: #65727a;
}
.year-grid b {
  display: block;
  font-size: 18px;
  margin-top: 7px;
}
