/* Figmetric Planner Room — full-screen interactive interview layered over
 * the certified inline year-planner form (year-planner-form.js).
 * Presentation only: all math runs through planner-engine.js. */
.ypr-lock, .ypr-lock body { overflow: hidden !important; }

.ypr-launch {
  --ypr-ink: var(--ink, #0A1628); --ypr-mint: var(--mint, #00E5A0);
  --ypr-mint-deep: var(--mint-deep, #00B57E); --ypr-line: var(--line, #E4E9F1);
  --ypr-muted: var(--muted, #5B6B82); --ypr-card: var(--card, #fff);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  border: 1.5px solid var(--ypr-mint); border-radius: 20px;
  background: linear-gradient(135deg, #06281C 0%, #0A1628 70%);
  color: #fff; padding: 20px 22px; margin: 0 0 16px;
  box-shadow: 0 12px 44px rgba(0, 229, 160, .16), 0 4px 18px rgba(3, 10, 20, .35);
}
.ypr-launch p { margin: 0; font-size: 15px; line-height: 1.5; flex: 1 1 260px; }
.ypr-launch p strong { display: block; font-size: 19px; margin-bottom: 2px; }
.ypr-launch p span { color: #AFC0D8; font-size: 13.5px; }
.ypr-launch p .ypr-launch-steps {
  display: block; margin-top: 9px; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: #8FD8C8;
}
.ypr-launch-btn {
  border: 0; border-radius: 12px; background: var(--ypr-mint); color: #06281C;
  font-size: 16px; font-weight: 800; padding: 14px 20px; cursor: pointer;
  min-height: 52px; white-space: nowrap;
}
.ypr-launch-btn:hover, .ypr-launch-btn:focus-visible { filter: brightness(1.06); }
.ypr-expand {
  display: inline-block; border: 1px solid var(--line, #E4E9F1); background: #fff;
  color: var(--mint-deep, #00B57E); border-radius: 999px; font-size: 13px;
  font-weight: 700; padding: 7px 13px; cursor: pointer; margin: 10px 0 2px;
}
.ypr-expand:hover, .ypr-expand:focus-visible { border-color: var(--mint, #00E5A0); }

.ypr-overlay {
  --ypr-ink: var(--ink, #0A1628); --ypr-mint: var(--mint, #00E5A0);
  --ypr-mint-deep: var(--mint-deep, #00B57E); --ypr-mint-bg: var(--mint-bg, #E6FDF4);
  --ypr-line: var(--line, #E4E9F1); --ypr-muted: var(--muted, #5B6B82);
  --ypr-card: var(--card, #fff); --ypr-amber-bg: #FFFBEB; --ypr-amber-line: #FDE68A;
  position: fixed; inset: 0; z-index: 99990; background: rgba(6, 16, 30, .62);
  display: flex; align-items: center; justify-content: center;
}
.ypr-overlay[hidden] { display: none; }
.ypr-dialog {
  background: #F7FAFC; color: var(--ypr-ink); width: min(940px, 100%);
  height: min(94dvh, 940px); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
@media (max-width: 700px) {
  .ypr-dialog { width: 100%; height: 100dvh; border-radius: 0; }
}
.ypr-dialog * { box-sizing: border-box; }
/* mm.css's dark theme sets GLOBAL element colors for dark surfaces
 * (h1,h2,h3 -> #F4F8FD; label -> #DCE5F2). Element rules beat the
 * color the dialog inherits, which made the room's question headings
 * and field labels render near-white on its light body. Pin every
 * heading and label inside the overlay back to ink. */
.ypr-overlay h1, .ypr-overlay h2, .ypr-overlay h3, .ypr-overlay h4 { color: var(--ypr-ink); }
.ypr-overlay label { color: var(--ypr-ink); }
/* Same leak, form controls: the dark-forms block styles
 * input[type=...]/select globally (0,1,1), which beats the room's
 * class rules (0,1,0) and turned the light modal's fields navy.
 * Re-pin them white with higher-specificity selectors. */
.ypr-overlay input[type="text"], .ypr-overlay input[type="number"],
.ypr-overlay input[type="email"], .ypr-overlay input[type="date"],
.ypr-overlay select {
  background: #fff; color: var(--ypr-ink); border-color: var(--ypr-line);
}
.ypr-overlay input:focus, .ypr-overlay select:focus {
  background: #fff; outline: 2px solid var(--ypr-mint); outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(0, 229, 160, .18);
}

.ypr-top { background: var(--ypr-ink); color: #fff; padding: 12px 18px 10px; }
.ypr-toprow { display: flex; align-items: center; gap: 12px; }
.ypr-title { font-weight: 800; font-size: 17px; letter-spacing: .01em; flex: 1; }
.ypr-title small { display: block; font-weight: 600; font-size: 12px; color: #AFC0D8; letter-spacing: .05em; text-transform: uppercase; }
.ypr-close {
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: none;
}
.ypr-close:hover, .ypr-close:focus-visible { border-color: var(--ypr-mint); color: var(--ypr-mint); }
.ypr-progress { margin-top: 10px; }
.ypr-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ypr-bar i { display: block; height: 100%; background: var(--ypr-mint); border-radius: 999px; transition: width .3s ease; }
.ypr-steplabel { font-size: 12.5px; color: #AFC0D8; margin-top: 5px; }

.ypr-ticker {
  background: #fff; border-bottom: 1px solid var(--ypr-line);
  padding: 10px 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline;
}
.ypr-ticker .t-lab { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ypr-mint-deep); }
.ypr-ticker .t-big { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ypr-ink); }
.ypr-ticker .t-sub { font-size: 13.5px; color: var(--ypr-muted); }
.ypr-ticker .t-chip {
  font-size: 12px; font-weight: 700; color: #065F46; background: var(--ypr-mint-bg);
  border-radius: 8px; padding: 4px 8px;
}
.ypr-ticker .t-chip.warn { color: #92400E; background: var(--ypr-amber-bg); }
.ypr-ticker .t-chip.explore { color: #7C2D12; background: #FFF1E6; }

.ypr-body { flex: 1; overflow-y: auto; padding: 22px 18px 26px; -webkit-overflow-scrolling: touch; }
.ypr-screen { max-width: 640px; margin: 0 auto; }
.ypr-screen.wide { max-width: 860px; }
.ypr-q { font-size: 27px; font-weight: 800; line-height: 1.2; margin: 0 0 6px; color: var(--ypr-ink); }
.ypr-why { color: var(--ypr-muted); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.ypr-err { color: #B91C1C; font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.ypr-err.ypr-err--hint { color: var(--ypr-muted); font-weight: 500; }
.ypr-gatehint { font-size: 14px; color: var(--ypr-muted); margin: 12px 0 0; line-height: 1.5; }
.ypr-note { font-size: 13px; color: var(--ypr-muted); line-height: 1.55; }

.ypr-input {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--ypr-line); border-radius: 12px;
  font-size: 20px; background: #fff; color: var(--ypr-ink); min-height: 56px;
}
.ypr-input:focus, .ypr-select:focus { outline: 2px solid var(--ypr-mint); outline-offset: 1px; }
.ypr-select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--ypr-line); border-radius: 12px;
  font-size: 17px; background: #fff; color: var(--ypr-ink); min-height: 54px;
}
.ypr-echo { margin-top: 10px; font-size: 14.5px; color: var(--ypr-mint-deep); font-weight: 600; min-height: 20px; }
.ypr-field { margin-bottom: 14px; }
.ypr-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.ypr-field .hint { display: block; font-weight: 400; color: var(--ypr-muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.ypr-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .ypr-grid2 { grid-template-columns: 1fr 1fr; } }

.ypr-cards { display: grid; gap: 10px; }
.ypr-cards.cols2 { grid-template-columns: 1fr 1fr; }
.ypr-card-btn {
  display: block; width: 100%; text-align: left; border: 1.5px solid var(--ypr-line);
  background: #fff; border-radius: 14px; padding: 15px 16px; cursor: pointer; min-height: 56px;
}
.ypr-card-btn b { display: block; font-size: 17px; }
.ypr-card-btn span { display: block; font-size: 13.5px; color: var(--ypr-muted); margin-top: 2px; line-height: 1.45; }
.ypr-card-btn:hover { border-color: var(--ypr-mint); }
.ypr-card-btn[aria-pressed="true"] { border-color: var(--ypr-mint-deep); background: var(--ypr-mint-bg); box-shadow: inset 0 0 0 1px var(--ypr-mint-deep); }

.ypr-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ypr-gate button {
  border: 1.5px solid var(--ypr-line); background: #fff; border-radius: 14px;
  font-size: 19px; font-weight: 800; padding: 20px 10px; cursor: pointer; min-height: 68px;
}
.ypr-gate button:hover { border-color: var(--ypr-mint); }
.ypr-gate button[aria-pressed="true"] { border-color: var(--ypr-mint-deep); background: var(--ypr-mint-bg); }

.ypr-seg { display: inline-flex; border: 1px solid var(--ypr-line); border-radius: 12px; overflow: hidden; }
.ypr-seg button { border: 0; background: #fff; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ypr-muted); min-height: 48px; }
.ypr-seg button[aria-pressed="true"] { background: var(--ypr-ink); color: #fff; }

.ypr-state-list { max-height: 300px; overflow-y: auto; border: 1.5px solid var(--ypr-line); border-radius: 14px; background: #fff; margin-top: 10px; }
.ypr-state-list button {
  display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--ypr-line);
  background: #fff; padding: 14px 16px; font-size: 16.5px; font-weight: 600; cursor: pointer; min-height: 52px; text-align: left;
}
.ypr-state-list button:last-child { border-bottom: 0; }
.ypr-state-list button:hover { background: var(--ypr-mint-bg); }
.ypr-state-list button[aria-pressed="true"] { background: var(--ypr-mint-bg); box-shadow: inset 3px 0 0 var(--ypr-mint-deep); }
.ypr-state-list button small { color: var(--ypr-muted); font-weight: 600; }

.ypr-subblock { margin-top: 16px; border: 1px solid var(--ypr-line); border-radius: 14px; background: #fff; padding: 14px 16px 4px; }
.ypr-subblock h4 { margin: 0 0 8px; font-size: 15px; }

.ypr-nav {
  display: flex; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--ypr-line);
}
.ypr-back {
  border: 1.5px solid var(--ypr-line); background: #fff; color: var(--ypr-ink);
  border-radius: 12px; font-size: 16px; font-weight: 700; padding: 13px 20px; cursor: pointer; min-height: 54px;
}
.ypr-next {
  flex: 1; border: 0; border-radius: 12px; background: var(--ypr-mint); color: #06281C;
  font-size: 17px; font-weight: 800; padding: 13px 20px; cursor: pointer; min-height: 54px;
}
.ypr-next[disabled] { opacity: .45; cursor: not-allowed; }
.ypr-back[hidden], .ypr-next[hidden] { display: none; }

/* review */
.ypr-review-line {
  display: flex; gap: 12px; align-items: baseline; background: #fff; border: 1px solid var(--ypr-line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; font-size: 15px; line-height: 1.5;
}
.ypr-review-line p { margin: 0; flex: 1; }
.ypr-edit {
  border: 0; background: none; color: var(--ypr-mint-deep); font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 4px 2px; white-space: nowrap;
}
.ypr-assump-box { background: var(--ypr-amber-bg); border: 1px solid var(--ypr-amber-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; margin: 14px 0; }
.ypr-assump-box h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #92400E; }
.ypr-assump-box ul { margin: 0; padding-left: 18px; }

/* finale */
.ypr-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .ypr-strip { grid-template-columns: repeat(4, 1fr); } }
.ypr-strip .cell { background: #fff; border: 1px solid var(--ypr-line); border-radius: 14px; padding: 12px 14px; }
.ypr-strip .cell span { display: block; font-size: 12.5px; color: var(--ypr-muted); font-weight: 600; }
.ypr-strip .cell b { display: block; font-size: 21px; margin-top: 2px; color: var(--ypr-ink); }
.ypr-strip .cell.hero { border-color: var(--ypr-mint); background: var(--ypr-mint-bg); }
.ypr-strip .cell.hero b { color: #065F46; }

.ypr-chart-wrap { background: #fff; border: 1px solid var(--ypr-line); border-radius: 16px; padding: 16px 14px 10px; margin: 14px 0; }
.ypr-chart { display: flex; align-items: flex-end; gap: 2px; height: 170px; overflow-x: auto; padding-top: 16px; }
.ypr-bar-col { flex: 1 0 12px; min-width: 12px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ypr-bar {
  border: 0; border-radius: 4px 4px 0 0; background: #B9C8DC; cursor: pointer; padding: 0;
  width: 100%; position: relative; min-height: 3px;
}
.ypr-bar:hover { background: #8FA9C7; }
.ypr-bar.regular { background: var(--ypr-mint-deep); }
.ypr-bar.bonus { background: #F59E0B; }
.ypr-bar.selected { box-shadow: 0 0 0 2px var(--ypr-ink); }
.ypr-bar .dot {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  color: #B45309; font-size: 11px; line-height: 1;
}
.ypr-months { display: flex; gap: 2px; border-top: 1px solid var(--ypr-line); padding-top: 5px; }
.ypr-months span { flex: 1 0 12px; min-width: 12px; font-size: 10.5px; color: var(--ypr-muted); text-align: left; white-space: nowrap; overflow: visible; }
.ypr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ypr-muted); margin-top: 8px; }
.ypr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

.ypr-check { background: #fff; border: 1.5px solid var(--ypr-ink); border-radius: 16px; padding: 15px 16px; margin: 12px 0; }
.ypr-check h4 { margin: 0 0 2px; font-size: 17px; }
.ypr-check .why { margin: 8px 0 0; padding: 8px 10px; background: var(--ypr-amber-bg); border-radius: 9px; font-size: 13.5px; line-height: 1.5; }
.ypr-check .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; border-top: 1px dashed var(--ypr-line); }
.ypr-check .row:first-of-type { border-top: 0; }
.ypr-check .row.net { font-weight: 800; font-size: 16.5px; border-top: 1.5px solid var(--ypr-ink); margin-top: 4px; padding-top: 8px; }
.ypr-check .row.sub { color: var(--ypr-muted); font-size: 13.5px; padding-left: 14px; }

.ypr-changes { margin: 12px 0; padding: 0; list-style: none; }
.ypr-changes li { font-size: 14px; line-height: 1.5; padding: 7px 0 7px 22px; position: relative; border-top: 1px dashed var(--ypr-line); }
.ypr-changes li:before { content: "★"; position: absolute; left: 2px; color: var(--ypr-mint-deep); }

/* playground */
.ypr-play { border: 1.5px dashed var(--ypr-mint-deep); border-radius: 16px; background: #fff; padding: 16px; margin: 16px 0; }
.ypr-play h3 { margin: 0 0 4px; font-size: 19px; }
.ypr-play .sub { color: var(--ypr-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.55; }
.ypr-lever { border-top: 1px dashed var(--ypr-line); padding: 12px 0 4px; }
.ypr-lever:first-of-type { border-top: 0; }
.ypr-lever label { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.ypr-lever label output { color: var(--ypr-mint-deep); font-weight: 800; white-space: nowrap; }
.ypr-lever input[type="range"] {
  width: 100%; height: 36px; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; accent-color: var(--ypr-mint-deep);
}
.ypr-lever input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px; background: var(--ypr-mint-deep);
}
.ypr-lever input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--ypr-mint-deep);
  box-shadow: 0 2px 8px rgba(10, 22, 40, .25);
}
.ypr-lever input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px; background: var(--ypr-mint-deep);
}
.ypr-lever input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--ypr-mint-deep);
}
.ypr-lever .row2 { display: grid; grid-template-columns: 1fr 130px; gap: 10px; align-items: end; }
.ypr-lever .hint { font-size: 12.5px; color: var(--ypr-muted); line-height: 1.45; margin-top: 2px; }
.ypr-explore-bar {
  display: none; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #FFF1E6; border: 1px solid #FDBA74; border-radius: 12px; padding: 10px 12px; margin-top: 12px;
}
.ypr-explore-bar.on { display: flex; }
.ypr-explore-bar p { margin: 0; flex: 1 1 220px; font-size: 14px; font-weight: 600; color: #7C2D12; }
.ypr-apply { border: 0; background: var(--ypr-ink); color: #fff; border-radius: 10px; font-weight: 800; font-size: 14.5px; padding: 11px 16px; cursor: pointer; min-height: 46px; }
.ypr-reset { border: 1.5px solid var(--ypr-line); background: #fff; border-radius: 10px; font-weight: 700; font-size: 14.5px; padding: 11px 16px; cursor: pointer; min-height: 46px; }

/* what can move your pay */
.ypr-movers { margin: 16px 0; }
.ypr-movers h3 { font-size: 19px; margin: 0 0 4px; }
.ypr-mover {
  display: flex; gap: 12px; align-items: baseline; background: #fff; border: 1px solid var(--ypr-line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 9px;
}
.ypr-mover .txt { flex: 1; }
.ypr-mover .txt b { display: block; font-size: 15.5px; }
.ypr-mover .txt span { display: block; font-size: 13.5px; color: var(--ypr-muted); line-height: 1.5; margin-top: 2px; }
.ypr-mover .amt { font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.ypr-mover .try {
  border: 0; background: none; color: var(--ypr-mint-deep); font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; padding: 4px 2px;
}
.ypr-finale-note { font-size: 12.5px; color: var(--ypr-muted); line-height: 1.55; margin-top: 10px; }

/* finale next step */
.ypr-nextstep {
  background: #fff; border: 1.5px solid var(--ypr-mint); border-radius: 16px;
  padding: 16px 18px; margin: 16px 0 4px;
}
.ypr-nextstep p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--ypr-ink); }
.ypr-nextstep p:last-child { margin-bottom: 0; }
.ypr-nextstep a { color: var(--ypr-mint-deep); font-weight: 800; text-decoration: none; }
.ypr-nextstep a:hover, .ypr-nextstep a:focus-visible { text-decoration: underline; }

/* narrow viewports: full-bleed dialog is above; tighten the chrome */
@media (max-width: 700px) {
  .ypr-top { padding: 10px 14px 8px; }
  .ypr-ticker { padding: 8px 14px; }
  .ypr-body { padding: 18px 14px 22px; }
  .ypr-nav { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .ypr-q { font-size: 24px; }
  .ypr-chart { height: 150px; }
  .ypr-launch { padding: 16px; }
  .ypr-launch-btn { width: 100%; white-space: normal; }
}
