/* APR / MYPC evaluation — styles from the "APR / MYPC Redesign" canvas (TOA Global design system).
   Every rule is scoped under .pe so it cannot leak into the rest of Atlas. */

/* Tokens. The self-assessment pop-up (.pe-sa) renders outside .pe, so it declares them too. */
.pe, .pe-sa {
    --pe-plum: #4a0466;
    --pe-violet: #833fec;
    --pe-violet-dark: #6f30d6;
    --pe-mint: #b4eae2;
    --pe-bg: #f7f6f9;
    --pe-line: #dedae3;
    --pe-line-soft: #efedf2;
    --pe-ink: #1a1320;
    --pe-muted: #3f3a48;
    --pe-subtle: #6b6474;
    --pe-tint: #f7f2ff;
    --pe-chip-bg: #ece2fd;
    --pe-chip: #5b21b6;
    --pe-good-bg: #d9fbec;
    --pe-good: #0f6b43;
    --pe-bad-bg: #fde3f0;
    --pe-bad: #a3155f;
    --pe-warn-bg: #fbf0d8;
    --pe-warn: #7a5410;
    --pe-pink: #ec3d98;
}

.pe {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 48px;
    background: var(--pe-bg);
    border-radius: 16px;
    overflow: hidden;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--pe-ink);
    -webkit-font-smoothing: antialiased;
}

/* Neutralise Bootstrap / Atlas element defaults inside the form. */
.pe h2, .pe h3, .pe h4, .pe p, .pe ul, .pe ol, .pe dl, .pe dd, .pe fieldset, .pe figure { margin: 0; padding: 0; }
.pe ul, .pe ol { list-style: none; }
.pe legend { float: none; width: auto; margin: 0 0 12px; padding: 0; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--pe-plum); }
.pe label { margin: 0; }
.pe button { font-family: inherit; }
.pe a { color: var(--pe-violet); text-decoration: none; }
.pe a:hover { color: var(--pe-violet-dark); text-decoration: underline; }
.pe :focus-visible { outline: 2px solid var(--pe-violet); outline-offset: 2px; }
/* site.css hides every radio (opacity: 0) for custom-styled tabs; show the ones on this form. */
.pe input[type=radio], .pe input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; opacity: 1; appearance: auto; -webkit-appearance: auto; accent-color: var(--pe-violet); flex-shrink: 0; }

/* ---------- Top bar ---------- */
.pe-topbar { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 0 48px; background: var(--pe-plum); color: #ffffff; }
.pe-topbar__back { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; }
.pe .pe-topbar .pe-topbar__back,
.pe .pe-topbar .pe-topbar__back:hover,
.pe .pe-topbar .pe-topbar__back:focus,
.pe .pe-topbar .pe-topbar__back:active { color: #ffffff !important; }
.pe-topbar__spacer { flex-grow: 1; }
.pe-topbar__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pe-mint); }
.pe-topbar__exit { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5); background: none; color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-topbar__exit:hover { background: rgba(255,255,255,0.1); }

/* ---------- Team member strip ---------- */
.pe-member { display: flex; align-items: center; gap: 20px; padding: 20px 48px; background: #ffffff; border-bottom: 1px solid var(--pe-line); }
.pe-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--pe-line-soft); color: var(--pe-plum); font-size: 18px; font-weight: 500; }
.pe-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.pe-member__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pe-member__name { font-family: Chewie, Georgia, serif; font-size: 26px; line-height: 1.1; color: var(--pe-plum); }
.pe-member__meta { font-size: 13px; color: var(--pe-muted); }
.pe-member__facts { display: flex; gap: 32px; margin-left: auto; }
.pe-member__facts div { display: flex; flex-direction: column; gap: 4px; }
.pe-member__facts dt { font-size: 12px; font-weight: 400; color: var(--pe-muted); }
.pe-member__facts dd { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }

/* ---------- Notices ---------- */
.pe-notices { display: flex; flex-direction: column; gap: 12px; padding: 24px 48px 0; }
.pe-notice { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.pe-notice--info { background: var(--pe-tint); color: var(--pe-plum); border: 1px solid var(--pe-chip-bg); }
.pe-notice--warn { background: var(--pe-warn-bg); color: var(--pe-warn); }
.pe-notice--bad { background: var(--pe-bad-bg); color: var(--pe-bad); }
.pe-notice--good { background: var(--pe-good-bg); color: var(--pe-good); }
.pe-notice svg { flex-shrink: 0; margin-top: 1px; }

/* ---------- Layout ---------- */
.pe-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 32px; align-items: start; padding: 32px 48px; }

/* Atlas paints every bare <main> white and gives it its own scroll box (site.css,
   AtlasStyle.css). The form's centre column has to sit flat on the grey page. */
.pe-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; margin-left: 0; height: auto; overflow: visible; background: transparent; }
.pe-steps, .pe-rail, .pe-pagehead, .pe-home-grid, .pe-tiles { background: transparent; }

/* Step list */
.pe-steps { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: sticky; top: 16px; }
.pe-steps__label { padding: 0 12px 8px; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-muted); }
.pe-step { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--pe-muted); font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; }
.pe-step__label { flex: 1 1 auto; min-width: 0; text-align: left; }
.pe-step:hover { background: rgba(74,4,102,0.05); }
.pe-step--current { background: #ffffff; color: var(--pe-plum); font-weight: 500; box-shadow: 0 1px 3px rgba(26,19,32,0.08); }
.pe-step--skipped { color: var(--pe-subtle); font-style: italic; cursor: default; }
.pe-step--skipped:hover { background: none; }
.pe-step__dot { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pe-line); background: #ffffff; color: var(--pe-muted); font-size: 12px; font-weight: 500; font-style: normal; }
.pe-step__dot--done { border-color: var(--pe-violet); background: var(--pe-violet); color: #ffffff; }
.pe-step__dot--current { border-color: var(--pe-plum); background: var(--pe-plum); color: #ffffff; }

/* Headings */
.pe-heading { display: flex; flex-direction: column; gap: 8px; }
.pe-eyebrow { font-size: 13px; color: var(--pe-muted); }
.pe-title { font-family: Chewie, Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--pe-plum); }
.pe-lead { max-width: 640px; font-size: 15px; line-height: 1.55; color: var(--pe-muted); }
.pe-lead b { font-weight: 500; color: var(--pe-ink); }
.pe-sample { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--pe-warn-bg); color: var(--pe-warn); font-size: 12px; }

/* Cards */
.pe-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--pe-line); border-radius: 20px; background: #ffffff; }
.pe-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pe-card__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: var(--pe-plum); }
.pe-card__text { font-size: 14px; line-height: 1.55; color: var(--pe-muted); }
.pe-card__text b { font-weight: 500; color: var(--pe-ink); }
.pe-hero { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 20px; background: var(--pe-plum); color: #ffffff; }
.pe-hero__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; background: rgba(180,234,226,0.16); }
.pe-hero__body { display: flex; flex-direction: column; gap: 6px; }
.pe-hero__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pe-mint); }
.pe-hero__title { font-family: Chewie, Georgia, serif; font-size: 28px; line-height: 1.15; }
.pe-hero__text { font-size: 14px; opacity: 0.9; }
.pe-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed #9a95a3; border-radius: 14px; font-size: 14px; color: var(--pe-muted); }

/* Chips */
.pe-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; font-style: normal; }
.pe-chip--violet { background: var(--pe-chip-bg); color: var(--pe-chip); }
.pe-chip--neutral { background: var(--pe-line-soft); color: var(--pe-plum); }
.pe-chip--good { background: var(--pe-good-bg); color: var(--pe-good); }
.pe-chip--bad { background: var(--pe-bad-bg); color: var(--pe-bad); }
.pe-chip--warn { background: var(--pe-warn-bg); color: var(--pe-warn); }

/* Lists, grids */
.pe-bullets { display: flex; flex-direction: column; gap: 6px; padding-left: 20px !important; list-style: disc !important; font-size: 14px; color: var(--pe-muted); }
.pe-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.pe-grid--align { align-items: start; }
.pe-grid--align > .pe-field > .pe-field__label { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.pe-grid-2--title { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.pe-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* Score composition + rating scale (overview) */
.pe-weightbar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; }
.pe-weightbar span { display: block; }
.pe-legend-group { display: flex; flex-direction: column; gap: 8px; }
.pe-legend-group__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-muted); }
.pe-legend-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pe-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.pe-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pe-scale li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--pe-bg); }
.pe-scale li:last-child { background: var(--pe-plum); color: #ffffff; }
.pe-scale__n { font-family: Chewie, Georgia, serif; font-size: 28px; color: var(--pe-plum); }
.pe-scale li:last-child .pe-scale__n { color: #ffffff; }
.pe-scale__label { font-size: 13px; font-weight: 500; }
.pe-scale__hint { font-size: 12px; color: var(--pe-muted); }
.pe-scale li:last-child .pe-scale__hint { color: #ffffff; opacity: 0.85; }

/* Self-assessment quote */
.pe-self { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: var(--pe-bg); }
.pe-self__who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pe-muted); }
.pe-self__who b { font-weight: 500; color: var(--pe-ink); }
.pe-self__quote { font-size: 14px; line-height: 1.55; color: var(--pe-ink); white-space: pre-line; }

/* Rating buttons */
.pe-rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pe-rating__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 72px; padding: 12px 6px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; color: var(--pe-plum); cursor: pointer; }
.pe-rating__btn:hover:not(:disabled) { border-color: var(--pe-violet); }
.pe-rating__btn:disabled { cursor: default; }
.pe-rating__btn--selected { border: 2px solid var(--pe-violet); background: var(--pe-violet); color: #ffffff; }
.pe-rating__n { font-family: Chewie, Georgia, serif; font-size: 22px; line-height: 1; }
.pe-rating__label { font-size: 12px; }

/* Form fields */
.pe-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--pe-ink); }
.pe-field__hint { font-size: 13px; font-weight: 400; color: var(--pe-muted); }
.pe-field__label { font-size: 13px; font-weight: 400; color: var(--pe-muted); }
.pe-textarea, .pe-input, .pe-select { width: 100%; padding: 12px 14px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; font: 400 14px/1.5 Roboto, Arial, sans-serif; color: var(--pe-ink); }
.pe-input, .pe-select { height: 44px; padding: 0 12px; }
.pe-textarea { resize: vertical; min-height: 88px; }
.pe-textarea:read-only, .pe-input:read-only, .pe-select:disabled { background: var(--pe-bg); }
.pe-textarea--error { border: 2px solid var(--pe-bad); }
.pe-readonly { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--pe-bg); font-size: 15px; font-weight: 400; }
.pe-readonly--line { min-width: 0; white-space: nowrap; }
.pe-field .pe-link-btn { white-space: nowrap; text-align: left; }
.pe-readonly--wrap { height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.4; }
.pe-readonly--wrap .pe-chip { flex-shrink: 0; }
.pe-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-readonly--good { background: var(--pe-good-bg); color: var(--pe-good); font-weight: 500; }
.pe-error { font-size: 13px; color: var(--pe-bad); }
.pe-check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.pe-percent { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--pe-line); border-radius: 10px; background: #ffffff; }
.pe-percent input { width: 72px; border: 0; outline: none; font: 15px Roboto, Arial, sans-serif; background: transparent; }
.pe-percent input:disabled, .pe-figure--edit input:disabled { cursor: not-allowed; color: var(--pe-subtle); }
.pe-figure--edit:has(input:disabled) { background: var(--pe-line-soft); }

/* Option cards (radio) */
.pe-options { display: flex; flex-direction: column; gap: 12px; }
.pe-option { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; cursor: pointer; }
.pe-option--selected { border: 2px solid var(--pe-violet); background: var(--pe-tint); }
.pe-option--static { cursor: default; }
.pe-option__head { display: flex; align-items: flex-start; gap: 14px; }
.pe-option__text { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.pe-option__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.pe-option__desc { font-size: 13px; line-height: 1.5; color: var(--pe-muted); }
.pe-option__body { margin-left: 34px; display: flex; flex-direction: column; gap: 18px; }
/* Job level check: member chip, level pathway, re-levelling flag. */
.pe-jl__who { display: flex; flex-direction: column; gap: 12px; }
.pe-jl__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pe-jl__tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 14px; border: 1px solid var(--pe-line); border-radius: 12px; background: var(--pe-bg); }
.pe-jl__tile--suggested { border-color: var(--pe-chip-bg); background: var(--pe-tint); }
.pe-jl__tile-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; color: var(--pe-subtle); }
.pe-jl__tile--suggested .pe-jl__tile-label { color: var(--pe-chip); }
.pe-jl__tile-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pe-jl__tile-value { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; color: var(--pe-ink); }
.pe-jl__tile--suggested .pe-jl__tile-value { color: var(--pe-plum); }
.pe-jl__tile-note { font-size: 12px; color: var(--pe-subtle); }
.pe-jl__gap { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--pe-chip-bg); font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--pe-chip); }
.pe .pe-jl__sa-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; text-align: left; }
.pe-jl__who > .pe-jl__sa-link { align-self: flex-end; }
/* Self-assessment pop-up: built from the survey JSON, styled like the "tm-self-assessment" sample page. */
.pe-sa-dialog { border-radius: 16px !important; overflow: hidden; }
.pe-sa-dialog .mud-dialog-content { padding: 0 !important; margin: 0 !important; }
.pe-sa { position: relative; max-height: 85vh; overflow-y: auto; background: var(--pe-bg); font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.55; color: var(--pe-ink); -webkit-font-smoothing: antialiased; }
.pe-sa :focus-visible { outline: 2px solid var(--pe-violet); outline-offset: 2px; }
/* Sticky bar: keeps the member's name and the close button in view while the survey scrolls. */
.pe-sa__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 10px 24px; border-bottom: 1px solid var(--pe-line); background: #ffffff; }
.pe-sa__bar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--pe-plum); }
.pe-sa__close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--pe-line); border-radius: 50%; background: #ffffff; color: var(--pe-ink); cursor: pointer; }
.pe-sa__close:hover { border-color: var(--pe-violet); background: var(--pe-tint); color: var(--pe-plum); }
.pe-sa__wrap { max-width: 920px; margin: 20px auto; padding: 0 20px; }
.pe-sa__card { margin-bottom: 18px; padding: 28px 32px; border: 1px solid var(--pe-line); border-radius: 14px; background: #ffffff; scroll-margin-top: 72px; }
.pe-sa__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pe-plum); }
.pe-sa__eyebrow::before { content: ""; flex-shrink: 0; width: 16px; height: 2px; background: var(--pe-pink); }
.pe-sa .pe-sa__h1 { margin: 6px 0 10px; font-family: Chewie, Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.25; color: var(--pe-plum); }
.pe-sa .pe-sa__h2 { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--pe-pink); font-family: Chewie, Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--pe-plum); }
.pe-sa__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--pe-subtle); }
.pe-sa__chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--pe-line-soft); font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--pe-plum); }
.pe-sa__chip--level { background: var(--pe-chip-bg); color: var(--pe-chip); }
.pe-sa__chip--suggested { background: var(--pe-plum); color: #ffffff; }
.pe-sa .pe-sa__intro { margin: 14px 0 0; color: var(--pe-muted); }
.pe-sa__jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.pe-sa__jump-label { margin-right: 2px; font-size: 12px; color: var(--pe-subtle); }
.pe-sa__jump-link { padding: 3px 11px; border: 1px solid var(--pe-chip-bg); border-radius: 999px; background: var(--pe-tint); font: 500 12px/1.5 Roboto, Arial, sans-serif; color: var(--pe-chip); cursor: pointer; }
.pe-sa__jump-link:hover { border-color: var(--pe-violet); }
.pe-sa__empty { margin-top: 16px; padding: 14px 16px; border: 1px dashed #9a95a3; border-radius: 12px; color: var(--pe-muted); }
.pe-sa .pe-sa__muted { margin: 8px 0 0; color: var(--pe-subtle); }
.pe-sa .pe-sa__table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13.5px; }
.pe-sa .pe-sa__table th, .pe-sa .pe-sa__table td { padding: 9px 12px; border: 1px solid var(--pe-line); text-align: left; vertical-align: top; }
.pe-sa .pe-sa__table th { background: var(--pe-plum); color: #ffffff; font-size: 12.5px; font-weight: 500; }
.pe-sa .pe-sa__table tbody tr:nth-child(even) td { background: var(--pe-bg); }
.pe-sa .pe-sa__table td.pe-sa__resp { width: 34%; font-weight: 500; color: var(--pe-plum); }
/* Unanswered questions read as empty, not as an answer. */
.pe-sa .pe-sa__table td.pe-sa__none, .pe-sa__ans.pe-sa__none { font-style: italic; font-weight: 400; color: var(--pe-subtle); }
.pe-sa__ans.pe-sa__none { border-left-color: var(--pe-line); }
.pe-sa .pe-sa__table td.pe-sa__notdone { font-weight: 400; color: var(--pe-subtle); }
.pe-sa__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-sa__pill { padding: 4px 12px; border: 1px solid var(--pe-chip-bg); border-radius: 20px; background: var(--pe-tint); font-size: 12.5px; color: var(--pe-plum); }
.pe-sa__qa { margin: 16px 0 0; }
.pe-sa__qh { margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--pe-violet); }
.pe-sa__ans { padding: 10px 14px; border-left: 3px solid var(--pe-pink); border-radius: 0 8px 8px 0; background: var(--pe-bg); color: var(--pe-muted); white-space: pre-line; }
.pe-sa .pe-sa__points { margin: 0 0 8px; padding-left: 20px; font-size: 13px; color: var(--pe-muted); }
.pe-sa .pe-sa__closing { margin-top: 18px; }
.pe-sa__note { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--pe-chip-bg); border-radius: 10px; background: var(--pe-tint); font-size: 13px; color: var(--pe-plum); }
@media (max-width: 600px) {
    .pe-sa__bar { padding-left: 16px; }
    .pe-sa__card { padding: 20px 16px; }
    /* Stack each question above its answer instead of squeezing two columns. */
    .pe-sa .pe-sa__table thead { display: none; }
    .pe-sa .pe-sa__table, .pe-sa .pe-sa__table tbody, .pe-sa .pe-sa__table tr, .pe-sa .pe-sa__table td { display: block; width: auto; }
    .pe-sa .pe-sa__table tr { margin-top: 8px; border: 1px solid var(--pe-line); border-radius: 10px; overflow: hidden; }
    .pe-sa .pe-sa__table td { border: 0; padding: 8px 12px 0; }
    .pe-sa .pe-sa__table td.pe-sa__resp { width: auto; padding: 2px 12px 8px; }
}
.pe-jl__pathway-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pe-jl__eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-muted); }
/* One row: the column count is set inline from the number of levels. */
.pe-jl__pathway { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pe .pe-jl__level { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 84px; margin: 0; padding: 10px 10px 8px; border: 1px solid var(--pe-line); border-top: 4px solid var(--pe-line-soft); border-radius: 12px; background: #ffffff; color: var(--pe-ink); text-align: left; font: inherit; cursor: default; }
.pe .pe-jl__level:disabled { opacity: 1; }
.pe .pe-jl__level--pickable { cursor: pointer; }
.pe .pe-jl__level--pickable:hover { border-color: var(--pe-violet); }
.pe .pe-jl__level--current { border-color: var(--pe-plum); border-top-color: var(--pe-plum); background: var(--pe-plum); color: #ffffff; }
.pe .pe-jl__level--proposed { border-color: var(--pe-violet); border-top-color: var(--pe-violet); background: var(--pe-violet); color: #ffffff; }
.pe-jl__level-name { max-width: 100%; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pe-jl__level-years { font-size: 12px; opacity: 0.8; white-space: nowrap; }
.pe-jl__level-tag { margin-top: auto; padding-top: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pe-jl__level--current .pe-jl__level-tag { color: var(--pe-mint); }
.pe-jl__flag { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; cursor: pointer; }
.pe-jl__flag--on { border-color: var(--pe-violet); background: #faf7ff; }
.pe .pe-jl__flag-box { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid #9a95a3; border-radius: 6px; background: #ffffff; cursor: pointer; flex-shrink: 0; }
.pe .pe-jl__flag-box:checked { border-color: var(--pe-violet); background: var(--pe-violet); }
.pe .pe-jl__flag-box:checked::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid #ffffff; border-bottom: 2px solid #ffffff; transform: rotate(-45deg); }
.pe .pe-jl__flag-box:disabled { cursor: default; }
.pe-jl__flag-text { display: flex; flex-direction: column; gap: 4px; }
.pe-jl__flag-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--pe-ink); }
.pe-jl__flag-desc { max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--pe-muted); }

/* Entered salary (Promotion step and Option B): two fields side by side, then a full-width increase row. */
.pe-salary-entry { display: flex; flex-direction: column; gap: 18px; padding: 20px 22px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; cursor: default; }
.pe-salary-entry__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.pe-salary-entry__result { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px; border-radius: 12px; background: var(--pe-bg); }
.pe-salary-entry__result--good { background: var(--pe-good-bg); }
.pe-salary-entry__result-label { font-size: 13px; color: var(--pe-muted); }
.pe-salary-entry__result-value { font-size: 18px; font-weight: 500; color: var(--pe-ink); }
.pe-salary-entry__result--good .pe-salary-entry__result-value { color: var(--pe-good); }
.pe-salary-entry__result-pct { font-weight: 400; }
.pe-salary-entry__result-sub { font-size: 13px; color: var(--pe-muted); }
@media (max-width: 900px) { .pe-salary-entry__fields { grid-template-columns: minmax(0, 1fr); } }
.pe-figure { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--pe-line-soft); border-radius: 10px; background: #ffffff; }
.pe-figure--muted { background: var(--pe-bg); border-color: var(--pe-bg); }
.pe-figure--edit { border: 2px solid var(--pe-violet); padding: 8px 12px; }
.pe-figure--error { border-color: var(--pe-bad); }
.pe-figure__label { font-size: 12px; color: var(--pe-muted); }
.pe-figure__value { font-size: 16px; font-weight: 500; }
.pe-figure__value--good { color: var(--pe-good); }
.pe-figure__value--plum { color: var(--pe-plum); }
.pe-figure__sub { font-size: 12px; color: var(--pe-muted); }
.pe-figure input { width: 100%; min-height: 28px; padding: 0; border: 0; outline: none; background: transparent; font: 500 16px Roboto, Arial, sans-serif; color: var(--pe-ink); }

/* Switch */
.pe-toggle { display: flex; align-items: center; gap: 20px; }
.pe-toggle__text { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.pe-toggle__title { font-size: 16px; font-weight: 500; color: var(--pe-plum); }
.pe-toggle__state { font-size: 14px; font-weight: 500; color: var(--pe-muted); }
.pe-toggle__state--on { color: var(--pe-plum); }
.pe-switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: #c9c4d0; cursor: pointer; }
.pe-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(26,19,32,0.25); transition: left 0.15s; }
.pe-switch--on { background: var(--pe-violet); }
.pe-switch--on::after { left: 25px; }
.pe-switch:disabled { cursor: not-allowed; opacity: 0.5; }

/* Details / matrix tables */
.pe-details { padding: 18px 22px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; }
.pe-details summary { font-size: 15px; font-weight: 500; color: var(--pe-plum); cursor: pointer; }
.pe-matrix__tag { margin-left: 8px; font-size: 11px; vertical-align: middle; }
.pe-details--dark { border: 0; background: var(--pe-plum); color: #ffffff; }
.pe-details--dark summary { color: #ffffff; }
.pe-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.pe-table th { padding: 8px 0; font-size: 12px; font-weight: 500; text-align: left; color: var(--pe-muted); }
.pe-details--dark .pe-table th { color: var(--pe-mint); }
.pe-table td { padding: 8px 0; border-top: 1px solid var(--pe-line-soft); }
.pe-details--dark .pe-table td { border-top-color: rgba(255,255,255,0.18); }
.pe-table tr.pe-table__match td { background: var(--pe-tint); font-weight: 500; }

/* Learning pills */
.pe-pathway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pe-pathway__item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--pe-bg); }
.pe-pathway__label { font-size: 13px; color: var(--pe-muted); }
.pe-bigscore { display: flex; align-items: center; gap: 16px; }
.pe-bigscore__n { font-family: Chewie, Georgia, serif; font-size: 48px; line-height: 1; color: var(--pe-plum); }
.pe-bigscore__text { display: flex; flex-direction: column; gap: 4px; }
.pe-bigscore__label { font-size: 16px; font-weight: 500; }
.pe-bigscore__label--good { color: var(--pe-good); }
.pe-bigscore__label--warn { color: var(--pe-warn); }
.pe-bigscore__label--bad { color: var(--pe-bad); }
.pe-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.pe-fact { display: flex; flex-direction: column; gap: 4px; }
.pe-fact__label { font-size: 12px; color: var(--pe-muted); }
.pe-fact__value { font-family: Chewie, Georgia, serif; font-size: 28px; line-height: 1; color: var(--pe-plum); }

/* Role calibration */
.pe-calibration__levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-level { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--pe-line); border-radius: 14px; }
.pe-level--recommended { border-color: var(--pe-violet); background: var(--pe-violet); color: #ffffff; }
.pe-level__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-muted); }
.pe-level--recommended .pe-level__label { color: #ffffff; opacity: 0.9; }
.pe-level__value { font-family: Chewie, Georgia, serif; font-size: 24px; color: var(--pe-plum); }
.pe-level--recommended .pe-level__value { color: #ffffff; }
.pe-file { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; color: var(--pe-ink); text-align: left; cursor: pointer; }
.pe-file__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.pe-file__name { font-size: 14px; font-weight: 500; }
.pe-file__meta { font-size: 12px; color: var(--pe-muted); }
.pe-file__action { font-size: 14px; font-weight: 500; color: var(--pe-violet); }

/* Summary (review & submit) */
.pe-alert { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--pe-bad-bg); color: var(--pe-bad); }
.pe-alert__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
.pe-alert__body b { font-weight: 500; }
.pe-alert__link { align-self: flex-start; margin: 0; padding: 0; border: 0; background: none; color: var(--pe-bad); font-size: 14px; text-align: left; text-decoration: underline; cursor: pointer; }
.pe-summary { margin-top: 14px !important; }
.pe-summary li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--pe-line-soft); }
.pe-summary__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--pe-good-bg); color: var(--pe-good); }
.pe-summary__icon--bad { background: var(--pe-bad-bg); color: var(--pe-bad); }
.pe-summary__label { width: 200px; flex-shrink: 0; font-size: 14px; font-weight: 500; }
.pe-summary__value { flex-grow: 1; font-size: 14px; color: var(--pe-muted); }
.pe-link-btn { padding: 0; border: 0; background: none; color: var(--pe-violet); font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-link-btn:hover { color: var(--pe-violet-dark); text-decoration: underline; }
.pe-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pe-next li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--pe-bg); }
.pe-next__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pe-plum); color: #ffffff; font-size: 13px; font-weight: 500; }
.pe-next__title { font-size: 14px; font-weight: 500; }
.pe-next__text { font-size: 13px; color: var(--pe-muted); }

/* ---------- Score rail ---------- */
.pe-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.pe-score { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; }
.pe-score__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-muted); }
.pe-score__value { display: flex; align-items: baseline; gap: 6px; }
.pe-score__n { font-family: Chewie, Georgia, serif; font-size: 48px; line-height: 1; color: var(--pe-plum); }
.pe-score__of { font-size: 14px; color: var(--pe-muted); }
.pe-score__rows { display: flex; flex-direction: column; gap: 10px; }
.pe-score__row { display: flex; flex-direction: column; gap: 4px; }
.pe-score__line { display: flex; justify-content: space-between; font-size: 13px; }
.pe-score__line b { font-weight: 500; }
.pe-score__weight { color: var(--pe-muted); }
.pe-bar { display: block; height: 4px; border-radius: 999px; background: var(--pe-line-soft); }
.pe-bar span { display: block; height: 4px; border-radius: 999px; background: var(--pe-violet); }
.pe-blend { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--pe-bg); font-size: 13px; color: var(--pe-muted); }
.pe-blend__line { display: flex; justify-content: space-between; }
.pe-blend__line b { font-weight: 500; color: var(--pe-ink); }
.pe-blend__total { display: flex; justify-content: space-between; font-size: 14px; color: var(--pe-plum); }
.pe-blend__total b { font-weight: 500; }
.pe-blend__rule { height: 1px; margin: 4px 0; background: var(--pe-line); }
.pe-score__note { font-size: 12px; line-height: 1.45; color: var(--pe-muted); }
.pe-actions { display: flex; flex-direction: column; gap: 10px; }
.pe-help { font-size: 12px; text-align: center; color: var(--pe-muted); }

/* ---------- Confirm dialog (submit) ---------- */
.pe.pe-dialog { width: 100%; max-width: none; margin: 0; border-radius: 0; overflow: visible; background: transparent; }
.pe-dialog .pe-title { margin-bottom: 4px; }
.pe-confirm-facts { display: flex; flex-direction: column; margin: 16px 0 0; border-radius: 14px; background: var(--pe-bg); padding: 4px 18px; }
.pe-confirm-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; }
.pe-confirm-facts > div + div { border-top: 1px solid var(--pe-line); }
.pe-confirm-facts dt { margin: 0; color: var(--pe-muted); }
.pe-confirm-facts dd { margin: 0; font-weight: 500; color: var(--pe-ink); text-align: right; }
.pe-confirm-facts dd small { display: block; font-size: 12px; font-weight: 400; color: var(--pe-muted); }
.pe-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; width: 100%; }

/* Buttons */
.pe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--pe-violet); color: #ffffff; font-size: 15px; font-weight: 500; cursor: pointer; }
.pe-btn:hover { background: var(--pe-violet-dark); }
.pe-btn--ghost { height: 44px; border: 1px solid var(--pe-line); background: #ffffff; color: var(--pe-plum); font-size: 14px; }
.pe-btn--ghost:hover { background: var(--pe-bg); }
.pe-btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* =====================================================================
   Performance home, team evaluations and evaluator settings
   ("1 · Performance home", "2 · Team evaluations", "3 · Evaluator settings")
   ===================================================================== */

/* Page shell + header */
.pe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pe-page { display: flex; flex-direction: column; gap: 24px; padding: 32px 48px; }
.pe-page--home { gap: 28px; padding: 36px 48px; }
.pe-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pe-pagehead__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pe-pagehead__actions { display: flex; flex-shrink: 0; gap: 12px; }
.pe-h1 { font-family: Chewie, Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1.1; color: var(--pe-plum); }
.pe-h1--sm { font-size: 36px; }
.pe-h2 { font-size: 16px; font-weight: 500; color: var(--pe-plum); }
.pe-back { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--pe-violet); font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-back:hover { color: var(--pe-violet-dark); text-decoration: underline; }

/* Extra pill-button variants */
.pe-btn--outline { height: 44px; padding: 0 18px; border: 1px solid var(--pe-violet); background: #ffffff; color: var(--pe-violet); font-size: 14px; }
.pe-btn--outline:hover { background: var(--pe-tint); }
.pe-btn--quiet { height: 44px; padding: 0 18px; border: 1px solid var(--pe-line); background: #ffffff; color: var(--pe-muted); font-size: 14px; }
.pe-btn--quiet:hover { background: var(--pe-bg); }
.pe-btn--white { background: #ffffff; color: var(--pe-plum); }
.pe-btn--white:hover { background: var(--pe-line-soft); }
.pe-btn--onplum { border: 1px solid rgba(255,255,255,0.5); background: transparent; color: #ffffff; height: 44px; font-size: 14px; }
.pe-btn--onplum:hover { background: rgba(255,255,255,0.12); }
.pe-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.pe-iconbtn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--pe-line); border-radius: 50%; background: #ffffff; color: var(--pe-plum); cursor: pointer; }
.pe-iconbtn:hover { border-color: var(--pe-violet); color: var(--pe-violet); }

/* Active review hero (home) */
.pe-home-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.pe-active { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 20px; background: var(--pe-plum); color: #ffffff; }
.pe-active__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pe-active__who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pe-active__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pe-mint); }
.pe-active__title { font-family: Chewie, Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.15; }
.pe .pe-active .pe-active__title { color: #ffffff !important; }
.pe-active__meta { font-size: 14px; opacity: 0.9; }
.pe-active__days { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(180,234,226,0.16); color: var(--pe-mint); font-size: 13px; font-weight: 500; }
.pe-active__days--late { background: rgba(255,179,234,0.18); color: #ffb3ea; }
.pe-progress { display: flex; flex-direction: column; gap: 10px; }
.pe-progress__line { display: flex; justify-content: space-between; font-size: 14px; }
.pe-progress__line b { font-weight: 500; }
.pe-progress__track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.pe-progress__fill { display: block; height: 8px; border-radius: 999px; background: var(--pe-mint); }
.pe-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pe-stages li { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 2px solid rgba(255,255,255,0.3); }
.pe-stages li.pe-stage--done, .pe-stages li.pe-stage--open { border-top-color: var(--pe-mint); }
.pe-stages li.pe-stage--current { border-top-color: #ffffff; }
.pe-stage__when { font-size: 12px; opacity: 0.7; }
.pe-stage--done .pe-stage__when, .pe-stage--open .pe-stage__when { color: var(--pe-mint); opacity: 1; }
.pe-stage--current .pe-stage__when { color: #ffffff; font-weight: 500; opacity: 1; }
.pe-stage__title { font-size: 14px; font-weight: 500; }
.pe-stage__meta { font-size: 12px; opacity: 0.8; }
.pe-active__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pe-active__note { font-size: 13px; opacity: 0.85; }

/* Needs-attention rail (home) */
.pe-panelcard { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--pe-line); border-radius: 20px; background: #ffffff; }
.pe-attention { display: flex; flex-direction: column; gap: 8px; }
.pe-attention__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--pe-line-soft); border-radius: 12px; background: #ffffff; color: var(--pe-ink); text-align: left; cursor: pointer; }
.pe-attention__item:hover { border-color: var(--pe-violet); }
.pe-attention__who { display: flex; flex-direction: column; flex-grow: 1; gap: 2px; min-width: 0; }
.pe-attention__name { font-size: 14px; font-weight: 500; }
.pe-attention__role { font-size: 12px; color: var(--pe-muted); }
.pe-attention__more { margin-top: auto; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--pe-violet); font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-attention__more:hover { color: var(--pe-violet-dark); text-decoration: underline; }
.pe-linkbtn { flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--pe-violet); font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-linkbtn:hover { color: var(--pe-violet-dark); text-decoration: underline; }
.pe-avatar--md { width: 40px; height: 40px; font-size: 14px; }
.pe-avatar--row { width: 38px; height: 38px; font-size: 13px; }

/* Stat tiles (team evaluations, settings) */
.pe-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pe-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pe-donut { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; background: var(--pe-plum); color: #ffffff; }
.pe-donut__text { display: flex; flex-direction: column; gap: 2px; }
.pe-donut__value { font-family: Chewie, Georgia, serif; font-size: 30px; line-height: 1; }
.pe-donut__label { font-size: 13px; opacity: 0.85; }
.pe-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; }
.pe-tile__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pe-muted); }
.pe-tile__value { font-family: Chewie, Georgia, serif; font-size: 32px; line-height: 1; color: var(--pe-plum); }
.pe-tile--warn { background: #fff7fb; border-color: #ffb3ea; }
.pe-tile--warn .pe-tile__label { color: var(--pe-bad); }
.pe-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pe-statcard { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--pe-line); border-radius: 16px; background: #ffffff; }
.pe-statcard__label { font-size: 13px; color: var(--pe-muted); }
.pe-statcard__value { font-family: Chewie, Georgia, serif; font-size: 30px; line-height: 1; color: var(--pe-plum); }
.pe-statcard--warn { flex-direction: row; align-items: center; gap: 12px; background: #fff7fb; border-color: #ffb3ea; }
.pe-statcard--warn .pe-statcard__label { color: var(--pe-bad); }
.pe-statcard__stack { display: flex; flex-direction: column; flex-grow: 1; gap: 6px; }

/* Panel with toolbar + table */
.pe-panel { display: flex; flex-direction: column; border: 1px solid var(--pe-line); border-radius: 20px; background: #ffffff; overflow: hidden; }
.pe-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pe-line-soft); }
.pe-toolbar__spacer { flex-grow: 1; }
.pe-segment { display: inline-flex; flex-shrink: 0; padding: 4px; border-radius: 999px; background: var(--pe-line-soft); }
.pe-segment button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--pe-muted); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pe-segment button.pe-segment--on { background: #ffffff; color: var(--pe-plum); box-shadow: 0 1px 2px rgba(26,19,32,0.1); }
.pe-segment--lg button { height: 40px; padding: 0 18px; font-size: 14px; }
.pe-inline-field { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--pe-line); border-radius: 10px; font-size: 13px; color: var(--pe-muted); }
.pe-inline-field select { height: 40px; border: 0; background: transparent; color: var(--pe-ink); font: 500 13px Roboto, Arial, sans-serif; }
.pe-search { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; width: 280px; height: 44px; padding: 0 14px; border: 1px solid var(--pe-line); border-radius: 10px; color: var(--pe-muted); }
.pe-search--sm { width: 260px; }
.pe-search input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 14px Roboto, Arial, sans-serif; color: var(--pe-ink); }
.pe-switchrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pe-ink); }
.pe-switch--sm { width: 44px; height: 24px; }
.pe-switch--sm::after { top: 2px; left: 2px; width: 20px; height: 20px; }
.pe-switch--sm.pe-switch--on::after { left: 22px; }

/* Data tables */
.pe-dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.pe-dtable thead tr { background: var(--pe-bg); }
.pe-dtable th { padding: 12px; font-size: 12px; font-weight: 500; text-align: left; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pe-muted); }
.pe-dtable th:first-child, .pe-dtable td:first-child { padding-left: 20px; }
.pe-dtable th:last-child, .pe-dtable td:last-child { padding-right: 20px; text-align: right; }
.pe-dtable td { padding: 14px 12px; border-top: 1px solid var(--pe-line-soft); vertical-align: middle; }
.pe-dtable tbody tr:hover { background: #fcfbfd; }
.pe-dtable__muted { color: var(--pe-muted); }
.pe-dtable__strong { font-weight: 500; }
.pe-person { display: flex; align-items: center; gap: 12px; }
.pe-person__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-person__name { font-weight: 500; }
.pe-person__role { font-size: 12px; color: var(--pe-muted); }
.pe-cellstack { display: flex; align-items: center; gap: 8px; }
.pe-cellcol { display: flex; flex-direction: column; gap: 2px; }
/* Team list: the status chip stays level with the other columns; the note under it ("Evaluated by …") hangs below
   without pushing the chip up. */
.pe-cellcol--hang { position: relative; gap: 0; }
.pe-cellcol--hang > :not(:first-child) { position: absolute; top: calc(100% + 2px); left: 0; white-space: nowrap; }
.pe-rowactions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pe-overdue, .pe-lead .pe-overdue { font-weight: 500; color: #a3155f; }
.pe-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--pe-line-soft); font-size: 13px; color: var(--pe-muted); }
.pe-panel__foot svg { vertical-align: text-bottom; }
.pe-panel__note { display: inline-flex; align-items: center; gap: 8px; }

/* Plain table on a card (past reviews) */
.pe-ltable { width: 100%; border-collapse: collapse; font-size: 14px; }
.pe-ltable th { padding: 10px 12px; border-bottom: 1px solid var(--pe-line); font-size: 12px; font-weight: 500; text-align: left; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pe-muted); }
.pe-ltable td { padding: 14px 12px; border-bottom: 1px solid var(--pe-line-soft); }
.pe-ltable th:last-child, .pe-ltable td:last-child { text-align: right; }
.pe-ltable__name { display: flex; flex-direction: column; gap: 2px; }
.pe-ltable__name b { font-weight: 500; }
.pe-ltable__type { font-size: 12px; color: var(--pe-muted); }
.pe-minibar { display: inline-block; width: 96px; height: 6px; border-radius: 999px; background: var(--pe-line-soft); }
.pe-minibar span { display: block; height: 6px; border-radius: 999px; background: var(--pe-violet); }

/* Evaluator settings — assignment rows and save bar */
.pe-evalrow--changed { background: #fffaf0; }
.pe-evalpick { box-sizing: border-box; width: 280px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--pe-line); border-radius: 10px; background: #ffffff; color: var(--pe-ink); font: 400 14px Roboto, Arial, sans-serif; cursor: pointer; }
.pe-evalpick--missing { border: 1px dashed #ec3d98; background: #fff7fb; color: var(--pe-bad); }
.pe-evalpick--changed { border: 2px solid #ebb43e; }
.pe-evalsub { display: block; margin-top: 4px; font-size: 11px; color: var(--pe-muted); }
.pe-changed { font-size: 13px; font-weight: 500; color: var(--pe-warn); }
.pe-notset { font-size: 13px; color: var(--pe-muted); }
.pe-when { font-size: 12px; color: var(--pe-muted); }
.pe-btn--disabled, .pe-btn--disabled:hover { border: 1px solid var(--pe-line-soft); background: #ffffff; color: #9a95a3; cursor: not-allowed; }
.pe-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 16px; background: var(--pe-plum); color: #ffffff; }
.pe-savebar__dot { width: 10px; height: 10px; border-radius: 50%; background: #ebb43e; flex-shrink: 0; }
.pe-savebar__text { flex-grow: 1; font-size: 14px; }
.pe-savebar__text b { font-weight: 500; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1280px) {
    .pe-layout { grid-template-columns: 200px minmax(0, 1fr); padding: 24px; }
    .pe-rail { grid-column: 2; position: static; }
    .pe-topbar, .pe-member { padding-left: 24px; padding-right: 24px; }
    .pe-notices { padding: 24px 24px 0; }
    .pe-page, .pe-page--home { padding: 24px; }
    .pe-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pe-layout { grid-template-columns: minmax(0, 1fr); }
    .pe-rail { grid-column: 1; }
    .pe-steps { position: static; }
    .pe-member { flex-wrap: wrap; }
    .pe-member__facts { margin-left: 0; flex-wrap: wrap; gap: 16px; }
    .pe-grid-2, .pe-grid-3, .pe-pathway, .pe-calibration__levels, .pe-next { grid-template-columns: minmax(0, 1fr); }
    .pe-rating, .pe-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .pe-summary__label { width: 120px; }
    .pe-home-grid { grid-template-columns: minmax(0, 1fr); }
    .pe-tiles, .pe-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pe-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pe-pagehead { flex-direction: column; align-items: stretch; }
    .pe-search, .pe-search--sm { width: 100%; }
    .pe-evalpick { width: 100%; }
}

/* ---------- Saving dialog ("Saving Evaluation Loader" design) ----------
   Rendered by MudBlazor's dialog provider, outside .pe, so these rules are not scoped under it. */
.pe-saving { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 32px 32px; font-family: Roboto, system-ui, sans-serif; text-align: center; }
.pe-saving__indicator { display: flex; align-items: center; justify-content: center; height: 56px; }
.pe-saving__ring { width: 48px; height: 48px; box-sizing: border-box; border: 4px solid #efedf2; border-top-color: #833fec; border-right-color: #833fec; border-radius: 50%; animation: pe-saving-spin 0.9s linear infinite; }
.pe-saving__text { display: flex; flex-direction: column; gap: 6px; }
.pe-saving__title { margin: 0; font-size: 20px; font-weight: 600; color: #4a0466; }
.pe-saving__subtitle { margin: 0; font-size: 14px; line-height: 1.5; color: #3f3a48; text-wrap: pretty; }
.pe-saving-dialog { border-radius: 12px !important; box-shadow: 0 24px 48px -12px rgba(74,4,102,0.28) !important; }
.pe-saving-dialog .mud-dialog-content { padding: 0 !important; margin: 0 !important; }

@keyframes pe-saving-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .pe-saving__ring { animation-duration: 2.4s; }
}

/* One-time bonus: yes/no choice and currency-prefixed amount */
.pe-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.pe-choice__item { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--pe-line); border-radius: 10px; background: #ffffff; font-size: 14px; cursor: pointer; }
.pe-choice__item input[type=radio] { margin: 0; }
.pe-choice__item--selected { border: 2px solid var(--pe-violet); background: var(--pe-tint); }
.pe fieldset:disabled .pe-choice__item { cursor: default; }
.pe-required { color: var(--pe-bad); }
.pe-money { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; overflow: hidden; }
.pe-money--error { border: 2px solid var(--pe-bad); }
.pe-money__code { display: inline-flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--pe-line); background: var(--pe-line-soft); font-size: 14px; font-weight: 500; color: var(--pe-ink); }
.pe-money input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: none; background: transparent; font: 400 14px Roboto, Arial, sans-serif; color: var(--pe-ink); }
.pe-money:focus-within { outline: 2px solid var(--pe-violet); outline-offset: 1px; }
.pe-money:has(input:disabled) { background: var(--pe-line-soft); }
.pe-money input:disabled { cursor: not-allowed; color: var(--pe-subtle); }

/* One-time bonus makeover */
.pe-bonus__head { display: flex; align-items: flex-start; gap: 16px; }
.pe-bonus__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--pe-tint); color: var(--pe-violet); }
.pe-bonus__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-bonus__choice { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--pe-line); border-radius: 14px; background: #ffffff; cursor: pointer; }
.pe-bonus__choice--selected { border: 2px solid var(--pe-violet); background: var(--pe-tint); }
.pe fieldset:disabled .pe-bonus__choice { cursor: default; }
.pe-bonus__body { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 1px solid var(--pe-line-soft); }

@media (max-width: 900px) {
    .pe-bonus__choices { grid-template-columns: minmax(0, 1fr); }
}

/* Promotion effective date callout */
.pe-effective { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 2px solid var(--pe-violet); border-radius: 20px; background: var(--pe-tint); }
.pe-effective--error { border-color: var(--pe-bad); background: var(--pe-bad-bg); }
.pe-effective__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--pe-violet); color: #ffffff; }
.pe-effective--error .pe-effective__icon { background: var(--pe-bad); }
.pe-effective__body { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.pe-effective__eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pe-plum); }
.pe-effective__date { font-family: Chewie, Georgia, serif; font-size: 30px; line-height: 1.15; color: var(--pe-plum); }
.pe-effective__notice { align-self: flex-start; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--pe-warn); border-radius: 10px; background: var(--pe-warn-bg); color: var(--pe-warn); font-size: 13px; line-height: 1.5; }
.pe-effective__hint { font-size: 13px; line-height: 1.5; color: var(--pe-muted); }
.pe-effective__controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex-shrink: 0; width: 200px; }

@media (max-width: 900px) {
    .pe-effective { flex-direction: column; align-items: flex-start; }
    .pe-effective__controls { width: 100%; }
}

/* Evaluation view: one read-only page after submit. */
.pe-view { display: flex; flex-direction: column; gap: 24px; padding: 32px 48px 48px; }
.pe-view__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pe-view__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.pe-view__layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
.pe-view__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pe-view__section:focus { outline: none; }
.pe-view__section:focus-visible { outline: 2px solid var(--pe-violet); outline-offset: 2px; }
.pe-view__summary { display: flex; align-items: flex-start; gap: 24px; }
.pe-view__who { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.pe-view__eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pe-view__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pe-violet); }
.pe .pe-view__name { margin: 0; font-family: Chewie, Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--pe-plum); }
.pe-view__rating { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 220px; flex-shrink: 0; padding: 18px; border-radius: 16px; background: var(--pe-plum); color: #ffffff; }
.pe-view__rating-label { font-size: 13px; color: var(--pe-mint); }
.pe-view__rating-n { font-family: Chewie, Georgia, serif; font-size: 48px; line-height: 1; }
.pe-view__rating-band { padding: 4px 10px; border-radius: 999px; background: var(--pe-mint); color: var(--pe-plum); font-size: 12px; font-weight: 500; }
.pe-view__rating-blend { font-size: 12px; line-height: 1.45; opacity: 0.85; }
.pe .pe-view__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pe .pe-view__facts > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--pe-bg); }
.pe .pe-view__facts dt { font-size: 12px; font-weight: 400; color: var(--pe-muted); }
.pe .pe-view__facts dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--pe-ink); }
.pe .pe-view__facts dd.pe-view__good { color: var(--pe-good); }
.pe .pe-view__facts dd.pe-view__warn { color: var(--pe-warn); }
.pe-view__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pe .pe-view__h2 { margin: 0; font-size: 20px; font-weight: 500; color: var(--pe-plum); }
.pe .pe-view__h2--serif { font-family: Chewie, Georgia, serif; font-size: 26px; }
.pe-view__kpi-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 120px 120px 112px; gap: 12px; align-items: center; font-size: 15px; }
.pe-view__kpi-row b { font-weight: 500; }
.pe-view__kpi-row small { font-size: 12px; color: var(--pe-muted); }
.pe-view__kpi-row--head { padding: 0 0 10px; border-bottom: 1px solid var(--pe-line); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pe-muted); }
.pe-view__kpi { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid var(--pe-line-soft); }
.pe-view__kpi-name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pe-view__muted { font-size: 13px; color: var(--pe-muted); }
.pe-view__plum { color: var(--pe-plum); }
.pe-view__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-view__quote { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--pe-bg); }
.pe-view__quote > span { font-size: 12px; color: var(--pe-muted); }
.pe .pe-view__quote p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.pe-view__quote--you { background: var(--pe-tint); }
.pe-view__quote--you > span { color: var(--pe-chip); }
.pe-view__totals { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--pe-muted); }
.pe-view__totals b { font-weight: 500; color: var(--pe-ink); }
.pe-view__tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--pe-bg); min-width: 0; }
.pe-view__tile-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; }
.pe-view__tile-n { font-family: Chewie, Georgia, serif; font-size: 28px; color: var(--pe-plum); }
.pe-view__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-view__was { font-size: 14px; color: var(--pe-muted); text-decoration: line-through; }
.pe-view__now { font-size: 17px; font-weight: 500; color: var(--pe-plum); }
.pe-view__big { font-family: Chewie, Georgia, serif; font-size: 24px; color: var(--pe-plum); }
.pe-view__note { padding: 14px 16px; border: 1px dashed var(--pe-line); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--pe-muted); }
.pe-view__note b { font-weight: 500; color: var(--pe-ink); }
.pe-view__trp { flex-direction: row; align-items: center; gap: 20px; }
.pe-view__pending { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--pe-bg); font-size: 15px; }
.pe-view__aside { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.pe .pe-view__jump { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 40px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--pe-muted); font: 400 14px Roboto, Arial, sans-serif; text-align: left; cursor: pointer; }
.pe .pe-view__jump:hover { background: #ffffff; color: var(--pe-plum); }
/* Label, links and help line share one left edge (global button/help styles centre them). */
.pe-view__aside .pe-steps__label { padding: 0 12px 8px; text-align: left; }
.pe-view__aside .pe-help { padding: 8px 12px 0; text-align: left; }
.pe-view__rule { height: 1px; margin: 12px 0; background: var(--pe-line); }
@media (max-width: 1100px) { .pe-view__layout { grid-template-columns: minmax(0, 1fr); } .pe-view__aside { position: static; } }
@media (max-width: 900px) {
    .pe-view { padding: 24px 16px; }
    .pe-view__summary { flex-direction: column; }
    .pe-view__rating { width: auto; align-self: stretch; }
    .pe .pe-view__facts, .pe-view__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pe-view__kpi-row { grid-template-columns: minmax(0, 1fr) 72px 72px; }
    .pe-view__kpi-row > :nth-child(2), .pe-view__kpi-row > :nth-child(5) { display: none; }
}

/* Submit evaluation modal: values copied from the "Submit evaluation – with new role and effective date" design. */
.mud-dialog.pe-submit-dialog { width: calc(100% - 48px); max-width: 660px !important; border-radius: 20px !important; background: #ffffff; box-shadow: 0 24px 64px rgba(26,19,32,0.28) !important; overflow: hidden; }
.pe-submit-dialog .mud-dialog-content { padding: 0 !important; margin: 0 !important; }
.pe-submit { font-family: Roboto, system-ui, sans-serif; color: #1a1320; -webkit-font-smoothing: antialiased; }
.pe-submit p, .pe-submit h2 { margin: 0; }
.pe-submit button { font-family: Roboto, sans-serif; }
.pe-submit__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 0; }
.pe-submit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pe-submit__heading { display: flex; flex-direction: column; gap: 6px; }
.pe-submit__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #833fec; }
.pe-submit .pe-submit__title { font-family: Fraunces, Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 600; line-height: 1.15; color: #4a0466; text-wrap: pretty; }
.pe-submit .pe-submit__close { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; margin: -4px 0 0; padding: 0; border: none; border-radius: 50%; background: transparent; color: #3f3a48; cursor: pointer; }
.pe-submit .pe-submit__close:hover { background: #efedf2; }
.pe-submit__member { display: flex; align-items: center; gap: 12px; }
.pe-submit__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ffb3ea; color: #4a0466; font-size: 13px; font-weight: 500; }
.pe-submit__member-text { display: flex; flex-direction: column; gap: 2px; }
.pe-submit__member-name { font-size: 14px; font-weight: 500; }
.pe-submit__member-meta { font-size: 12px; color: #3f3a48; }
.pe-submit__label { font-size: 12px; color: #3f3a48; }
.pe-submit__small { font-size: 11px; color: #3f3a48; }
.pe-submit__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pe-submit__tiles--one { grid-template-columns: minmax(0, 1fr); }
.pe-submit__tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: #f7f6f9; }
.pe-submit__tile-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pe-submit__tile-n { font-size: 18px; font-weight: 700; color: #1a1320; }
.pe-submit__band { padding: 2px 8px; border-radius: 999px; background: #b4eae2; color: #1a1320; font-size: 11px; font-weight: 500; }
/* Current → new (role, then salary). */
.pe-submit__salary { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #dedae3; border-radius: 12px; }
.pe-submit__salary-side { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pe-submit__salary-side--new { align-items: flex-end; text-align: right; }
.pe-submit__salary-now { font-size: 15px; font-weight: 500; color: #1a1320; }
.pe-submit__salary-new { font-size: 15px; font-weight: 700; color: #4a0466; }
.pe-submit__salary-new--same { font-weight: 500; color: #3f3a48; }
.pe-submit__arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #efedf2; color: #833fec; }
/* Effective date. */
.pe-submit__date { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid transparent; border-radius: 12px; background: #f7f6f9; }
.pe-submit__date-main { display: flex; align-items: center; gap: 10px; }
.pe-submit__date-icon { display: flex; color: #833fec; }
.pe-submit__date-text { display: flex; flex-direction: column; gap: 1px; }
.pe-submit__date-label { font-size: 13px; color: #1a1320; }
.pe-submit__date-note { font-size: 11px; font-weight: 500; color: #7a5410; }
.pe-submit__date-value { flex-shrink: 0; font-size: 15px; font-weight: 700; color: #4a0466; text-align: right; }
.pe-submit__bonus { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: #f7f6f9; }
.pe-submit__bonus-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pe-submit__bonus-n { font-size: 15px; font-weight: 700; color: #4a0466; }
/* Promotion notice: plain text with an icon. */
.pe-submit__promo { display: flex; gap: 10px; padding: 0 12px; }
.pe-submit__promo svg { flex: none; margin-top: 2px; color: #1a1320; }
.pe-submit .pe-submit__promo p { font-size: 12px; line-height: 1.4; color: #3f3a48; text-wrap: pretty; }
.pe-submit__promo strong { font-weight: 700; color: #1a1320; }
.pe-submit__lock { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #efedf2; }
.pe-submit__lock svg { flex: none; margin-top: 2px; color: #4a0466; }
.pe-submit .pe-submit__lock p { font-size: 12px; line-height: 1.4; color: #3f3a48; text-wrap: pretty; }
.pe-submit__lock strong { font-weight: 700; color: #1a1320; }
@media (max-width: 600px) {
    .pe-submit .pe-submit__title { font-size: 21px; }
    .pe-submit__tiles { grid-template-columns: minmax(0, 1fr); }
}
.pe-submit__confirm { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0; font-size: 13px; color: #1a1320; cursor: pointer; }
.pe-submit .pe-submit__confirm input { width: 18px; height: 18px; margin: 0; opacity: 1; appearance: auto; -webkit-appearance: auto; accent-color: #833fec; cursor: pointer; }
.pe-submit__error { padding: 12px 14px; border-radius: 12px; background: #fde3f0; color: #a3155f; font-size: 14px; line-height: 1.45; }
.pe-submit__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 10px 20px 16px; }
.pe-submit .pe-submit__back { height: 38px; margin: 0; padding: 0 20px; border: 1px solid #dedae3; border-radius: 999px; background: #ffffff; color: #4a0466; font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-submit .pe-submit__back:hover { border-color: #4a0466; }
.pe-submit .pe-submit__cta { display: flex; align-items: center; gap: 10px; height: 38px; margin: 0; padding: 0 22px; border: none; border-radius: 999px; background: #833fec; color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; }
.pe-submit .pe-submit__cta:hover { filter: brightness(0.92); }
.pe-submit .pe-submit__cta:disabled { cursor: default; }
.pe-submit .pe-submit__cta--blocked, .pe-submit .pe-submit__cta--blocked:hover { background: #dedae3; color: #3f3a48; filter: none; }
.pe-submit .pe-submit__back:disabled, .pe-submit .pe-submit__close:disabled { cursor: default; opacity: 0.6; }
.pe-submit__done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 28px 28px; text-align: center; }
.pe-submit__done-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #b4eae2; color: #4a0466; }
.pe-submit .pe-submit__done-title { font-family: 'Young Serif', Georgia, serif; font-size: 26px; font-weight: 400; color: #4a0466; }
.pe-submit .pe-submit__done-text { max-width: 360px; font-size: 15px; line-height: 1.5; color: #3f3a48; text-wrap: pretty; }
.pe-submit .pe-submit__done-btn { margin-top: 12px; }
.pe-submit .pe-submit__done-btn:hover { filter: none; background: #6f30d6; }
@media (max-width: 520px) { .pe-submit__body { padding: 24px 20px 0; } .pe-submit__footer { padding: 20px; } .pe-submit__tiles, .pe-submit__salary { grid-template-columns: minmax(0, 1fr); } .pe-submit__arrow { transform: rotate(90deg); } .pe-submit__salary-side--new { text-align: left; } }

/* Option not available (e.g. Option B for a team member at or below the salary increase threshold). */
.pe-option--disabled { background: var(--pe-bg); cursor: default; }
.pe-option--disabled .pe-option__title, .pe-option--disabled .pe-option__desc { color: var(--pe-subtle); }
.pe-option--disabled input[type=radio] { cursor: not-allowed; }
.pe-option__note { font-size: 13px; line-height: 1.5; color: var(--pe-muted); }

/* Salary after promotion: increase type, merit + promotion %, minimum total. */
.pe .pe-promo-pay__title { font-family: Chewie, Georgia, serif; font-size: 22px; }
.pe-promo-pay__label { font-size: 13px; font-weight: 500; color: var(--pe-ink); }
.pe-promo-pay__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
/* The long "Annual Performance Review merit rate for promotions" label wraps: every label in the row takes two lines
   (text at the bottom) so the three boxes stay level. */
.pe-promo-pay__row:has(.pe-promo-pay__basic-note) .pe-promo-pay__label { display: flex; align-items: flex-end; min-height: 2.8em; }
.pe-promo-pay__box { justify-content: space-between; gap: 10px; min-width: 0; white-space: nowrap; }
.pe-promo-pay__box b { font-weight: 700; color: var(--pe-plum); }
.pe-promo-pay__box--total { border: 1px solid var(--pe-violet); background: var(--pe-tint); justify-content: flex-start; }
.pe-promo-pay__amount { font-size: 13px; color: var(--pe-muted); overflow: hidden; text-overflow: ellipsis; }
.pe-promo-pay__box--total .pe-promo-pay__amount { color: var(--pe-plum); }
.pe .pe-promo-pay__types { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pe .pe-promo-pay__types legend { margin: 0 0 10px; }
.pe-promo-pay__type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pe-promo-pay__type { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; cursor: pointer; }
.pe-promo-pay__type--on { border: 2px solid var(--pe-violet); background: var(--pe-tint); padding: 15px 17px; }
.pe-promo-pay__type-title { font-size: 15px; font-weight: 500; color: var(--pe-ink); }
.pe-promo-pay__type-desc { font-size: 13px; line-height: 1.45; color: var(--pe-muted); }
.pe-promo-pay__percent { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--pe-line); border-radius: 12px; background: #ffffff; overflow: hidden; }
.pe-promo-pay__percent:focus-within { outline: 2px solid var(--pe-violet); outline-offset: 1px; }
.pe-promo-pay__percent--warn { border: 2px solid var(--pe-warn); }
.pe-promo-pay__percent--total { border-color: var(--pe-violet); background: var(--pe-tint); }
.pe-promo-pay__percent--total input { font-weight: 600; color: var(--pe-plum); }
.pe-promo-pay__percent input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: none; background: transparent; font: 400 15px Roboto, Arial, sans-serif; color: var(--pe-ink); }
.pe-promo-pay__percent input:disabled { cursor: not-allowed; color: var(--pe-subtle); }
.pe-promo-pay__percent:has(input:disabled) { background: var(--pe-line-soft); }
.pe-promo-pay__suffix { display: inline-flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--pe-line); background: var(--pe-bg); font-size: 13px; color: var(--pe-muted); }
.pe-promo-pay__warning { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1px solid var(--pe-warn); border-radius: 14px; background: var(--pe-warn-bg); color: var(--pe-warn); }
.pe-promo-pay__warning svg { flex: none; margin-top: 2px; }
.pe-promo-pay__warning-body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--pe-ink); }
.pe-promo-pay__warning-body > b { font-size: 15px; font-weight: 600; color: var(--pe-ink); }
.pe-promo-pay__warning-body b { font-weight: 600; }
.pe-promo-pay__result { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--pe-line); }
.pe-promo-pay__new { font-size: 22px; font-weight: 700; color: var(--pe-plum); }
/* Light warning highlight: the amount is basic salary only. */
.pe-promo-pay__basic-note { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--pe-warn-bg); color: var(--pe-warn); font-size: 12px; font-weight: 500; }
.pe-promo-pay__next-reason { text-align: left; color: var(--pe-warn); }
@media (max-width: 900px) { .pe-promo-pay__row, .pe-promo-pay__type-grid { grid-template-columns: minmax(0, 1fr); } .pe-promo-pay__row:has(.pe-promo-pay__basic-note) .pe-promo-pay__label { min-height: 0; } .pe-promo-pay__result { flex-direction: column; align-items: flex-start; } }
