﻿/* Multi-stage form header + page navigation — Te Waihanga
   Namespaced: every selector is a descendant of .rfp-root, every class,
   id, keyframe and custom property carries the rfp- / --rfp- prefix.
   No resets, no :root, no bare element selectors, no Bootstrap overrides. */


/* Adjustments */

.rfp-root .rfp-nav.one-row {
    padding: 18px 24px 20px;
    position: relative;
    display: grid;
    grid-template-rows: 64px auto 6px auto;
    column-gap: 26px;
    row-gap: 8px;
    margin: 0 auto
}




.rfp-root {
    --rfp-teal: #007C82;
    --rfp-teal-dark: #0B5A5E;
    --rfp-navy: #1A2D5A;
    --rfp-ink: #20262B;
    --rfp-grey-text: #6B6863;
    --rfp-page-bg: #FFFFFF;
    --rfp-nav-bg: #FBFAF8;
    --rfp-border: #E7E5E4;
    --rfp-border-soft: #ECEAE7;
    --rfp-track: #E3DFDA;
    --rfp-track-locked: #E9E6E2;
    --rfp-line: #DCD8D3;
    --rfp-node-locked: #C6C2BD;
    --rfp-field-border: #C6C2BD;
    --rfp-orange: #E07B1E;
    --rfp-orange-text: #B85C0F;
    --rfp-orange-track: #F0D9BC;
    --rfp-purple: #5E3A96;
    --rfp-restricted-bg: #FBE2E0;
    --rfp-restricted-text: #B3261E;
    /* per-person avatar colours — replace with a deterministic assignment */
    --rfp-user-ac: #BE185D;
    --rfp-user-rl: #0B5A5E;
    --rfp-user-mk: #DB6E13;
    --rfp-user-ah: #5E3A96;
    /* set per avatar; drives ring, badge and halo */
    --rfp-ring: var(--rfp-teal-dark);
    background: var(--rfp-page-bg);
    color: var(--rfp-ink);
    font-family: "Proxima Nova","Segoe UI",-apple-system,Helvetica,Arial,sans-serif;
}

    .rfp-root * {
        box-sizing: border-box
    }

    /* ---------- classification banner (full width, above the card) ---------- */
    .rfp-root .rfp-restricted {
        background: var(--rfp-restricted-bg);
        color: var(--rfp-restricted-text);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 11px 0;
        font-weight: 800;
        font-size: 12.5px;
        line-height: 1;
        letter-spacing: .16em
    }

        .rfp-root .rfp-restricted .rfp-icon {
            width: 14px;
            height: 14px
        }

    .rfp-root .rfp-page {
        /*padding: 28px 24px 60px;*/
        width:100%;
        padding-top:15px;
        display: flex;
        justify-content: center;
        background: var(--rfp-page-bg)
    }

    /* ---------- card ---------- */
    .rfp-root .rfp-card {
        /*width: 900px;*//* Multi-stage form header + page navigation — Te Waihanga
   Namespaced: every selector is a descendant of .rfp-root, every class,
   id, keyframe and custom property carries the rfp- / --rfp- prefix.
   No resets, no :root, no bare element selectors, no Bootstrap overrides. */

.rfp-root{
  --rfp-teal:#007C82;
  --rfp-teal-dark:#0B5A5E;
  --rfp-navy:#1A2D5A;
  --rfp-ink:#20262B;
  --rfp-grey-text:#6B6863;
  --rfp-page-bg:#FFFFFF;
  --rfp-nav-bg:#FBFAF8;
  --rfp-border:#E7E5E4;
  --rfp-border-soft:#ECEAE7;
  --rfp-track:#E3DFDA;
  --rfp-track-locked:#E9E6E2;
  --rfp-line:#DCD8D3;
  --rfp-node-locked:#C6C2BD;
  --rfp-field-border:#C6C2BD;
  --rfp-orange:#E07B1E;
  --rfp-orange-text:#B85C0F;
  --rfp-orange-track:#F0D9BC;
  --rfp-purple:#5E3A96;
  --rfp-restricted-bg:#FBE2E0;
  --rfp-restricted-text:#B3261E;
  /* per-person avatar colours — replace with a deterministic assignment */
  --rfp-user-ac:#BE185D;
  --rfp-user-rl:#0B5A5E;
  --rfp-user-mk:#DB6E13;
  --rfp-user-ah:#5E3A96;
  /* set per avatar; drives ring, badge and halo */
  --rfp-ring:var(--rfp-teal-dark);

  background:var(--rfp-page-bg);
  color:var(--rfp-ink);
  font-family:"Proxima Nova","Segoe UI",-apple-system,Helvetica,Arial,sans-serif;
}
.rfp-root *{box-sizing:border-box}

/* ---------- classification banner (full width, above the card) ---------- */
.rfp-root .rfp-restricted{background:var(--rfp-restricted-bg);color:var(--rfp-restricted-text);
  display:flex;align-items:center;justify-content:center;gap:9px;
  padding:11px 0;font-weight:800;font-size:12.5px;line-height:1;letter-spacing:.16em}
.rfp-root .rfp-restricted .rfp-icon{width:14px;height:14px}
.rfp-root .rfp-page{padding:28px 24px 60px;display:flex;justify-content:center;
  background:var(--rfp-page-bg)}

/* ---------- card ---------- */
.rfp-root .rfp-card {
    width: 100%;    ;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--rfp-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(50,59,66,.06)
}

/* ---------- card header ---------- */
.rfp-root .rfp-card-top{background:var(--rfp-teal);padding:16px 24px 8px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.rfp-root .rfp-tags{display:flex;gap:8px}
.rfp-root .rfp-tag{display:inline-flex;align-items:center;white-space:nowrap;
  font-weight:700;font-size:11px;line-height:1;letter-spacing:.03em;border-radius:5px}
.rfp-root .rfp-tag--solid{background:var(--rfp-purple);color:#fff;padding:6px 10px}
.rfp-root .rfp-tag--outline{background:#fff;color:var(--rfp-purple);
  border:1.5px solid var(--rfp-purple);padding:5px 9px}

.rfp-root .rfp-card-actions{display:flex;align-items:center;gap:12px;flex:none}

/* desktop: "View report" switch. Toggle aria-checked only — CSS keys off it. */
.rfp-root .rfp-switch{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  font:inherit;font-weight:600;font-size:12.5px;line-height:1;color:#fff;
  background:none;border:0;padding:0;cursor:pointer}
.rfp-root .rfp-switch:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}
.rfp-root .rfp-switch-track{position:relative;display:inline-block;width:38px;height:21px;flex:none;
  border-radius:999px;border:1.5px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.22);transition:background .16s ease-out}
.rfp-root .rfp-switch-knob{position:absolute;top:2px;left:2px;width:14px;height:14px;
  border-radius:999px;background:#fff;transform:translateX(0);
  transition:transform .16s ease-out,background .16s ease-out}
.rfp-root .rfp-switch[aria-checked="true"] .rfp-switch-track{background:#fff}
.rfp-root .rfp-switch[aria-checked="true"] .rfp-switch-knob{background:var(--rfp-teal);
  transform:translateX(17px)}

.rfp-root .rfp-kebab{border:0;background:none;padding:0;display:flex;align-items:center;
  justify-content:center;width:26px;height:26px;border-radius:6px;color:#fff;cursor:pointer}
.rfp-root .rfp-kebab:hover{background:rgba(255,255,255,.15)}
.rfp-root .rfp-kebab .rfp-icon{width:17px;height:17px}

.rfp-root .rfp-card-title-row{background:var(--rfp-teal);padding:0 24px 18px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.rfp-root .rfp-identity{display:flex;align-items:center;gap:14px;min-width:0}
.rfp-root .rfp-logo-tile{width:52px;height:52px;border-radius:8px;background:#fff;flex:none;
  display:flex;align-items:center;justify-content:center}
.rfp-root .rfp-logo-tile .rfp-logo{width:28px;height:28px}
.rfp-root .rfp-identity-text{display:block;min-width:0}
.rfp-root .rfp-title{display:block;font-weight:700;font-size:23px;line-height:1.22;color:#fff}
.rfp-root .rfp-org{display:block;font-weight:400;font-size:13px;line-height:1.4;
  color:rgba(255,255,255,.82);margin-top:3px}

/* ---------- page navigation rail ---------- */
.rfp-root .rfp-nav-scroll{background:var(--rfp-nav-bg);
  border-bottom:1px solid var(--rfp-border-soft);overflow-x:auto;overflow-y:hidden}
.rfp-root .rfp-nav{padding:18px 24px 20px;position:relative;display:grid;
  grid-template-rows:64px 32px auto 6px auto;column-gap:26px;row-gap:8px;
  margin:0 auto}
/* page count is dynamic — set --rfp-steps and a min-width per form */
.rfp-root .rfp-nav{grid-template-columns:repeat(var(--rfp-steps,5),1fr);
  min-width:calc(var(--rfp-steps,5) * 168px);
  max-width:calc(var(--rfp-steps,5) * 253px)}

/* phase header: label over due date, assignees right. Spans its pages' columns. */
.rfp-root .rfp-phase{grid-row:1;border-top:2px solid var(--rfp-node-locked);padding-top:8px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;height:48px}
.rfp-root .rfp-phase--current{border-top-color:var(--rfp-teal)}
.rfp-root .rfp-phase-label{white-space:nowrap;font-weight:800;font-size:11px;line-height:1;
  letter-spacing:.09em;color:var(--rfp-grey-text)}
.rfp-root .rfp-phase--current .rfp-phase-label{color:var(--rfp-teal-dark)}
.rfp-root .rfp-phase-due{display:block;font-weight:600;font-size:11px;letter-spacing:0;margin-top:6px}

/* single-state form: the one phase has no name — label it "ASSIGNMENTS",
   centre the block and sit the assignees to the right of a divider. */
.rfp-root .rfp-phase--single{justify-content:center;align-items:center;gap:14px;padding-top:10px}
.rfp-root .rfp-phase--single .rfp-phase-label{text-align:center;font-size:11px}
.rfp-root .rfp-phase-divider{width:1px;height:22px;background:var(--rfp-node-locked);flex:none}
.rfp-root .rfp-phase--single .rfp-assignees{align-items:center}

/* assignees — view-only first, edit-capable grouped at the right of the set */
.rfp-root .rfp-assignees{display:flex;align-items:flex-start;gap:16px;flex:none}
.rfp-root .rfp-avatar{position:relative;width:30px;height:30px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:11px;line-height:1;color:#fff;background:var(--rfp-ring)}
/* signed into the form right now */
.rfp-root .rfp-avatar--online{box-shadow:0 0 0 3px rgba(0,0,0,.001),
  0 0 0 3px color-mix(in srgb, var(--rfp-ring) 26%, transparent)}
/* capability badge: pen = can edit, eye = view only */
.rfp-root .rfp-avatar-badge{position:absolute;bottom:-5px;right:-6px;width:16px;height:16px;
  border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px var(--rfp-ring);
  color:var(--rfp-ring);display:flex;align-items:center;justify-content:center}
.rfp-root .rfp-avatar-badge .rfp-icon{width:9px;height:9px}
.rfp-root .rfp-avatar-badge--view .rfp-icon{width:10px;height:10px}

/* connector line behind the step circles */
.rfp-root .rfp-series {
    grid-column:1 / -1;
    grid-row:2;
    position:relative;
    align-self:center;
    height:2px;
    pointer-events:none

}
.rfp-root .rfp-series-done {position:absolute;top:0;height:2px;background:var(--rfp-teal)}
.rfp-root .rfp-series-todo {position:absolute;top:0;height:2px;background:var(--rfp-line)}

/* step circles */
.rfp-root .rfp-node{grid-row:2;position:relative;justify-self:center;
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:12.5px;line-height:1;
  background:var(--rfp-navy);color:#fff;box-shadow:0 0 0 4px var(--rfp-nav-bg)}
.rfp-root .rfp-node--locked{background:var(--rfp-nav-bg);color:var(--rfp-grey-text);
  border:2px solid var(--rfp-node-locked);box-shadow:none}
/* orange + halo = the page you are on */
.rfp-root .rfp-node--active{background:var(--rfp-orange);color:#fff;
  box-shadow:0 0 0 4px var(--rfp-nav-bg),0 0 0 7px rgba(224,123,30,.3)}

.rfp-root .rfp-page-label{grid-row:3;text-align:center;font-weight:600;font-size:13px;
  line-height:1.3;color:var(--rfp-ink);text-wrap:pretty}
.rfp-root .rfp-page-label--locked{color:var(--rfp-grey-text)}
.rfp-root .rfp-page-label--active{font-weight:700;color:var(--rfp-orange-text)}

.rfp-root .rfp-bar{grid-row:4;width:70%;justify-self:center;height:6px;border-radius:3px;
  background:var(--rfp-track);overflow:hidden}
.rfp-root .rfp-bar--locked{background:var(--rfp-track-locked)}
.rfp-root .rfp-bar--active{background:var(--rfp-orange-track)}
.rfp-root .rfp-bar-fill{display:block;height:100%;background:var(--rfp-navy)}
.rfp-root .rfp-bar--active .rfp-bar-fill{background:var(--rfp-orange)}
.rfp-root .rfp-bar--read .rfp-bar-fill{background:var(--rfp-node-locked)}

.rfp-root .rfp-page-status{grid-row:5;text-align:center;font-size:11px;line-height:1.3;
  color:var(--rfp-grey-text)}
.rfp-root .rfp-page-status--progress{font-weight:600;color:var(--rfp-navy)}
.rfp-root .rfp-page-status--active{font-weight:600;color:var(--rfp-orange-text)}

/* ---------- body ---------- */
.rfp-root .rfp-card-body{padding:24px 26px 32px}
.rfp-root .rfp-section-title{font-weight:700;font-size:17px;line-height:1.3;
  color:var(--rfp-teal-dark);margin:0}
/* body copy runs the full content width — no narrow measure */
.rfp-root .rfp-section-intro{font-weight:400;font-size:13.5px;line-height:1.55;
  color:var(--rfp-ink);margin:10px 0 0;text-wrap:pretty}

.rfp-root .rfp-questions{display:flex;flex-direction:column;gap:18px;margin-top:22px}
.rfp-root .rfp-question{position:relative;border:2px solid var(--rfp-ring);border-radius:8px;
  background:#FDFAF8;padding:20px 22px}
.rfp-root .rfp-question-text{font-weight:700;font-size:14.5px;line-height:1.4;
  color:var(--rfp-ink);text-wrap:pretty;padding-right:64px;margin:0}
.rfp-root .rfp-required{color:var(--rfp-user-ac)}
.rfp-root .rfp-field-label{font-weight:400;font-size:12px;line-height:1;
  color:var(--rfp-grey-text);margin-bottom:8px}
.rfp-root .rfp-field{margin-top:18px}
/* text areas / inputs: full card width, rounded corners */
.rfp-root .rfp-textarea{width:100%;min-height:54px;background:#fff;
  border:1px solid var(--rfp-field-border);border-radius:8px;
  font:inherit;font-size:13px;color:var(--rfp-ink);padding:8px 10px;resize:vertical}
.rfp-root .rfp-textarea:focus-visible{outline:2px solid var(--rfp-teal);outline-offset:1px}

/* who is on this question right now */
.rfp-root .rfp-presence{position:absolute;top:16px;right:16px;display:flex;
  flex-direction:column;align-items:center;gap:5px}
.rfp-root .rfp-presence-caption{font-weight:700;font-size:10px;line-height:1;
  letter-spacing:.02em;color:var(--rfp-ring)}

/* ---------- report view ---------- */
.rfp-root .rfp-report{padding:24px 26px 32px;display:flex;flex-direction:column;gap:14px}
.rfp-root .rfp-report-eyebrow{display:flex;align-items:center;gap:9px;font-weight:800;
  font-size:10.5px;line-height:1;letter-spacing:.09em;color:var(--rfp-grey-text)}
.rfp-root .rfp-report-eyebrow .rfp-icon{width:14px;height:14px}

.rfp-root .rfp-is-hidden{display:none}

/* ---------- mobile: same component, 600px breakpoint ---------- */
.rfp-root .rfp-segmented{display:none;gap:2px;flex:none;align-self:flex-start;
  background:rgba(255,255,255,.18);border-radius:6px;padding:2px}
.rfp-root .rfp-segmented .rfp-segmented-btn{height:22px;padding:0 9px;border:0;border-radius:4px;
  font:inherit;font-weight:700;font-size:10px;letter-spacing:.03em;line-height:1;
  background:none;color:rgba(255,255,255,.9);cursor:pointer;
  display:flex;align-items:center;justify-content:center}
.rfp-root .rfp-segmented .rfp-segmented-btn[aria-selected="true"]{background:#fff;
  color:var(--rfp-teal-dark)}
.rfp-root .rfp-segmented .rfp-segmented-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}

@media (max-width:600px){
  .rfp-root .rfp-page{padding:0}
  .rfp-root .rfp-card{width:100%;border:0;border-radius:0;box-shadow:none;min-height:100vh}
  .rfp-root .rfp-restricted{font-size:11px;padding:10px 0}
  .rfp-root .rfp-restricted .rfp-icon{width:13px;height:13px}

  .rfp-root .rfp-card-top{padding:14px 16px 0;gap:12px}
  .rfp-root .rfp-tags{flex-wrap:wrap;gap:6px}
  .rfp-root .rfp-tag{font-size:10px}
  .rfp-root .rfp-tag--solid{padding:6px 9px}
  .rfp-root .rfp-tag--outline{padding:5px 8px}
  .rfp-root .rfp-card-actions{gap:2px;align-items:flex-start}
  .rfp-root .rfp-switch{display:none}
  .rfp-root .rfp-segmented{display:flex}
  .rfp-root .rfp-kebab{width:44px;height:44px;margin:-10px -10px 0 0}
  .rfp-root .rfp-kebab .rfp-icon{width:18px;height:18px}

  .rfp-root .rfp-card-title-row{padding:16px;align-items:center}
  .rfp-root .rfp-identity{gap:12px}
  .rfp-root .rfp-logo-tile{width:44px;height:44px}
  .rfp-root .rfp-logo-tile .rfp-logo{width:24px;height:24px}
  .rfp-root .rfp-identity-text{display:block;min-width:0}
.rfp-root .rfp-title{font-size:19px;line-height:1.2}
  .rfp-root .rfp-org{font-size:12px}

  .rfp-root .rfp-nav-scroll{padding:14px 16px 4px}
  .rfp-root .rfp-nav{padding:2px 16px 12px;margin:0 -16px;
    grid-template-rows:auto 32px auto 6px auto;column-gap:12px;row-gap:7px;
    min-width:calc(var(--rfp-steps,5) * 132px);max-width:none}
  .rfp-root .rfp-phase{height:46px;margin-bottom:4px}
  .rfp-root .rfp-phase--single{height:52px}
  .rfp-root .rfp-phase-label{font-size:10.5px}
  .rfp-root .rfp-assignees{gap:14px}
  /* avatars scale to 0.8 on mobile */
  .rfp-root .rfp-avatar{width:24px;height:24px;font-size:9px}
  .rfp-root .rfp-avatar--online{box-shadow:0 0 0 2.4px rgba(0,0,0,.001),
    0 0 0 2.4px color-mix(in srgb, var(--rfp-ring) 26%, transparent)}
  .rfp-root .rfp-avatar-badge{bottom:-4px;right:-5px;width:13px;height:13px;
    box-shadow:0 0 0 1.2px var(--rfp-ring)}
  .rfp-root .rfp-avatar-badge .rfp-icon{width:7.5px;height:7.5px}
  .rfp-root .rfp-avatar-badge--view .rfp-icon{width:8px;height:8px}

  .rfp-root .rfp-node{width:30px;height:30px;font-size:12px}
  .rfp-root .rfp-page-label{font-size:12px;line-height:1.25}
  .rfp-root .rfp-page-status{font-size:10.5px}

  .rfp-root .rfp-card-body{padding:18px 16px 26px}
  .rfp-root .rfp-section-title{font-size:15.5px}
  .rfp-root .rfp-section-intro{font-size:12.5px}
  .rfp-root .rfp-question{padding:16px 14px}
  .rfp-root .rfp-question-text{font-size:13.5px;padding-right:52px}
  .rfp-root .rfp-textarea{min-height:62px;font-size:12.5px}
  .rfp-root .rfp-report{padding:18px 16px 24px}
}

@media (prefers-reduced-motion:reduce){
  .rfp-root .rfp-switch-track,
  .rfp-root .rfp-switch-knob{transition:none}
}

        max-width: 100%;
        background: #fff;
        border: 1px solid var(--rfp-border);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(50,59,66,.06)
    }

    /* ---------- card header ---------- */
    .rfp-root .rfp-card-top {
        background: var(--rfp-teal);
        padding: 16px 24px 8px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px
    }

    .rfp-root .rfp-tags {
        display: flex;
        gap: 8px
    }

    .rfp-root .rfp-tag {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        font-weight: 700;
        font-size: 11px;
        line-height: 1;
        letter-spacing: .03em;
        border-radius: 5px
    }

    .rfp-root .rfp-tag--solid {
        background: var(--rfp-purple);
        color: #fff;
        padding: 6px 10px
    }

    .rfp-root .rfp-tag--outline {
        background: #fff;
        color: var(--rfp-purple);
        border: 1.5px solid var(--rfp-purple);
        padding: 5px 9px
    }

    .rfp-root .rfp-card-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: none
    }

    /* desktop: "View report" switch. Toggle aria-checked only — CSS keys off it. */
    .rfp-root .rfp-switch {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
        font: inherit;
        font-weight: 600;
        font-size: 12.5px;
        line-height: 1;
        color: #fff;
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer
    }

        .rfp-root .rfp-switch:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 3px;
            border-radius: 4px
        }

    .rfp-root .rfp-switch-track {
        position: relative;
        display: inline-block;
        width: 38px;
        height: 21px;
        flex: none;
        border-radius: 999px;
        border: 1.5px solid rgba(255,255,255,.75);
        background: rgba(255,255,255,.22);
        transition: background .16s ease-out
    }

    .rfp-root .rfp-switch-knob {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        background: #fff;
        transform: translateX(0);
        transition: transform .16s ease-out,background .16s ease-out
    }

    .rfp-root .rfp-switch[aria-checked="true"] .rfp-switch-track {
        background: #fff
    }

    .rfp-root .rfp-switch[aria-checked="true"] .rfp-switch-knob {
        background: var(--rfp-teal);
        transform: translateX(17px)
    }

    .rfp-root .rfp-kebab {
        border: 0;
        background: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 6px;
        color: #fff;
        cursor: pointer
    }

        .rfp-root .rfp-kebab:hover {
            background: rgba(255,255,255,.15)
        }

        .rfp-root .rfp-kebab .rfp-icon {
            width: 17px;
            height: 17px
        }

    .rfp-root .rfp-card-title-row {
        background: var(--rfp-teal);
        padding: 0 24px 18px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px
    }

    .rfp-root .rfp-identity {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0
    }

    .rfp-root .rfp-logo-tile {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        background: #fff;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center
    }

        .rfp-root .rfp-logo-tile .rfp-logo {
            width: 28px;
            height: 28px
        }

    .rfp-root .rfp-identity-text {
        display: block;
        min-width: 0
    }

    .rfp-root .rfp-title {
        display: block;
        font-weight: 700;
        font-size: 23px;
        line-height: 1.22;
        color: #fff
    }

    .rfp-root .rfp-org {
        display: block;
        font-weight: 400;
        font-size: 13px;
        line-height: 1.4;
        color: rgba(255,255,255,.82);
        margin-top: 3px
    }

    /* ---------- page navigation rail ---------- */
    .rfp-root .rfp-nav-scroll {
        background: var(--rfp-nav-bg);
        border-bottom: 1px solid var(--rfp-border-soft);
        overflow-x: auto;
        overflow-y: hidden
    }

    .rfp-root .rfp-nav {
        padding: 18px 24px 20px;
        position: relative;
        display: grid;
        grid-template-rows: 64px 32px auto 6px auto;
        column-gap: 26px;
        row-gap: 8px;
        margin: 0 auto
    }
    /* page count is dynamic — set --rfp-steps and a min-width per form */
    .rfp-root .rfp-nav {
        grid-template-columns: repeat(var(--rfp-steps,5),1fr);
        min-width: calc(var(--rfp-steps,5) * 168px);
        max-width: calc(var(--rfp-steps,5) * 253px)
    }

    /* phase header: label over due date, assignees right. Spans its pages' columns. */
    .rfp-root .rfp-phase {
        grid-row: 1;
        border-top: 2px solid var(--rfp-node-locked);
        padding-top: 8px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        height: 48px
    }

    .rfp-root .rfp-phase--current {
        border-top-color: var(--rfp-teal)
    }

    .rfp-root .rfp-phase-label {
        white-space: nowrap;
        font-weight: 800;
        font-size: 11px;
        line-height: 1;
        letter-spacing: .09em;
        color: var(--rfp-grey-text)
    }

    .rfp-root .rfp-phase--current .rfp-phase-label {
        color: var(--rfp-teal-dark)
    }

    .rfp-root .rfp-phase-due {
        display: block;
        font-weight: 600;
        font-size: 11px;
        letter-spacing: 0;
        margin-top: 6px
    }

    /* single-state form: the one phase has no name — label it "ASSIGNMENTS",
   centre the block and sit the assignees to the right of a divider. */
    .rfp-root .rfp-phase--single {
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding-top: 10px
    }

        .rfp-root .rfp-phase--single .rfp-phase-label {
            text-align: center;
            font-size: 11px
        }

    .rfp-root .rfp-phase-divider {
        width: 1px;
        height: 22px;
        background: var(--rfp-node-locked);
        flex: none
    }

    .rfp-root .rfp-phase--single .rfp-assignees {
        align-items: center
    }

    /* assignees — view-only first, edit-capable grouped at the right of the set */
    .rfp-root .rfp-assignees {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        flex: none
    }

    .rfp-root .rfp-avatar {
        position: relative;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 11px;
        line-height: 1;
        color: #fff;
        background: var(--rfp-ring)
    }
    /* signed into the form right now */
    .rfp-root .rfp-avatar--online {
        box-shadow: 0 0 0 3px rgba(0,0,0,.001), 0 0 0 3px color-mix(in srgb, var(--rfp-ring) 26%, transparent)
    }
    /* capability badge: pen = can edit, eye = view only */
    .rfp-root .rfp-avatar-badge {
        position: absolute;
        bottom: -5px;
        right: -6px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 0 0 1.5px var(--rfp-ring);
        color: var(--rfp-ring);
        display: flex;
        align-items: center;
        justify-content: center
    }

        .rfp-root .rfp-avatar-badge .rfp-icon {
            width: 9px;
            height: 9px
        }

    .rfp-root .rfp-avatar-badge--view .rfp-icon {
        width: 10px;
        height: 10px
    }

    /* connector line behind the step circles */
    .rfp-root .rfp-series {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        align-self: center;
        height: 2px;
        pointer-events: none
    }

    .rfp-root .rfp-series-done {
        position: absolute;
        top: 0;
        height: 2px;
        background: var(--rfp-teal)
    }

    .rfp-root .rfp-series-todo {
        position: absolute;
        top: 0;
        height: 2px;
        background: var(--rfp-line)
    }

    /* step circles */
    .rfp-root .rfp-node {
        grid-row: 2;
        position: relative;
        justify-self: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 12.5px;
        line-height: 1;
        background: var(--rfp-navy);
        color: #fff;
        box-shadow: 0 0 0 4px var(--rfp-nav-bg)
    }

    .rfp-root .rfp-node--locked {
        background: var(--rfp-nav-bg);
        color: var(--rfp-grey-text);
        border: 2px solid var(--rfp-node-locked);
        box-shadow: none
    }
    /* orange + halo = the page you are on */
    .rfp-root .rfp-node--active {
        background: var(--rfp-orange);
        color: #fff;
        box-shadow: 0 0 0 4px var(--rfp-nav-bg),0 0 0 7px rgba(224,123,30,.3)
    }

    .rfp-root .rfp-page-label {
        grid-row: 3;
        text-align: center;
        font-weight: 600;
        font-size: 13px;
        line-height: 1.3;
        color: var(--rfp-ink);
        text-wrap: pretty
    }

    .rfp-root .rfp-page-label--locked {
        color: var(--rfp-grey-text)
    }

    .rfp-root .rfp-page-label--active {
        font-weight: 700;
        color: var(--rfp-orange-text)
    }

    .rfp-root .rfp-bar {
        grid-row: 4;
        width: 70%;
        justify-self: center;
        height: 6px;
        border-radius: 3px;
        background: var(--rfp-track);
        overflow: hidden
    }

    .rfp-root .rfp-bar--locked {
        background: var(--rfp-track-locked)
    }

    .rfp-root .rfp-bar--active {
        background: var(--rfp-orange-track)
    }

    .rfp-root .rfp-bar-fill {
        display: block;
        height: 100%;
        background: var(--rfp-navy)
    }

    .rfp-root .rfp-bar--active .rfp-bar-fill {
        background: var(--rfp-orange)
    }

    .rfp-root .rfp-bar--read .rfp-bar-fill {
        background: var(--rfp-node-locked)
    }

    .rfp-root .rfp-page-status {
        grid-row: 5;
        text-align: center;
        font-size: 11px;
        line-height: 1.3;
        color: var(--rfp-grey-text)
    }

    .rfp-root .rfp-page-status--progress {
        font-weight: 600;
        color: var(--rfp-navy)
    }

    .rfp-root .rfp-page-status--active {
        font-weight: 600;
        color: var(--rfp-orange-text)
    }

    /* ---------- body ---------- */
    .rfp-root .rfp-card-body {
        padding: 24px 26px 32px
    }

    .rfp-root .rfp-section-title {
        font-weight: 700;
        font-size: 17px;
        line-height: 1.3;
        color: var(--rfp-teal-dark);
        margin: 0
    }
    /* body copy runs the full content width — no narrow measure */
    .rfp-root .rfp-section-intro {
        font-weight: 400;
        font-size: 13.5px;
        line-height: 1.55;
        color: var(--rfp-ink);
        margin: 10px 0 0;
        text-wrap: pretty
    }

    .rfp-root .rfp-questions {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 22px
    }

    .rfp-root .rfp-question {
        position: relative;
        border: 2px solid var(--rfp-ring);
        border-radius: 8px;
        background: #FDFAF8;
        padding: 20px 22px
    }

    .rfp-root .rfp-question-text {
        font-weight: 700;
        font-size: 14.5px;
        line-height: 1.4;
        color: var(--rfp-ink);
        text-wrap: pretty;
        padding-right: 64px;
        margin: 0
    }

    .rfp-root .rfp-required {
        color: var(--rfp-user-ac)
    }

    .rfp-root .rfp-field-label {
        font-weight: 400;
        font-size: 12px;
        line-height: 1;
        color: var(--rfp-grey-text);
        margin-bottom: 8px
    }

    .rfp-root .rfp-field {
        margin-top: 18px
    }
    /* text areas / inputs: full card width, rounded corners */
    .rfp-root .rfp-textarea {
        width: 100%;
        min-height: 54px;
        background: #fff;
        border: 1px solid var(--rfp-field-border);
        border-radius: 8px;
        font: inherit;
        font-size: 13px;
        color: var(--rfp-ink);
        padding: 8px 10px;
        resize: vertical
    }

        .rfp-root .rfp-textarea:focus-visible {
            outline: 2px solid var(--rfp-teal);
            outline-offset: 1px
        }

    /* who is on this question right now */
    .rfp-root .rfp-presence {
        position: absolute;
        top: 16px;
        right: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px
    }

    .rfp-root .rfp-presence-caption {
        font-weight: 700;
        font-size: 10px;
        line-height: 1;
        letter-spacing: .02em;
        color: var(--rfp-ring)
    }

    /* ---------- report view ---------- */
    .rfp-root .rfp-report {
        padding: 24px 26px 32px;
        display: flex;
        flex-direction: column;
        gap: 14px
    }

    .rfp-root .rfp-report-eyebrow {
        display: flex;
        align-items: center;
        gap: 9px;
        font-weight: 800;
        font-size: 10.5px;
        line-height: 1;
        letter-spacing: .09em;
        color: var(--rfp-grey-text)
    }

        .rfp-root .rfp-report-eyebrow .rfp-icon {
            width: 14px;
            height: 14px
        }

    .rfp-root .rfp-is-hidden {
        display: none
    }

    /* ---------- mobile: same component, 600px breakpoint ---------- */
    .rfp-root .rfp-segmented {
        display: none;
        gap: 2px;
        flex: none;
        align-self: flex-start;
        background: rgba(255,255,255,.18);
        border-radius: 6px;
        padding: 2px
    }

        .rfp-root .rfp-segmented .rfp-segmented-btn {
            height: 22px;
            padding: 0 9px;
            border: 0;
            border-radius: 4px;
            font: inherit;
            font-weight: 700;
            font-size: 10px;
            letter-spacing: .03em;
            line-height: 1;
            background: none;
            color: rgba(255,255,255,.9);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center
        }

            .rfp-root .rfp-segmented .rfp-segmented-btn[aria-selected="true"] {
                background: #fff;
                color: var(--rfp-teal-dark)
            }

            .rfp-root .rfp-segmented .rfp-segmented-btn:focus-visible {
                outline: 2px solid #fff;
                outline-offset: 2px
            }

@media (max-width:600px) {
    .rfp-root .rfp-page {
        padding: 0
    }

    .rfp-root .rfp-card {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh
    }

    .rfp-root .rfp-restricted {
        font-size: 11px;
        padding: 10px 0
    }

        .rfp-root .rfp-restricted .rfp-icon {
            width: 13px;
            height: 13px
        }

    .rfp-root .rfp-card-top {
        padding: 14px 16px 0;
        gap: 12px
    }

    .rfp-root .rfp-tags {
        flex-wrap: wrap;
        gap: 6px
    }

    .rfp-root .rfp-tag {
        font-size: 10px
    }

    .rfp-root .rfp-tag--solid {
        padding: 6px 9px
    }

    .rfp-root .rfp-tag--outline {
        padding: 5px 8px
    }

    .rfp-root .rfp-card-actions {
        gap: 2px;
        align-items: flex-start
    }

    .rfp-root .rfp-switch {
        display: none
    }

    .rfp-root .rfp-segmented {
        display: flex
    }

    .rfp-root .rfp-kebab {
        width: 44px;
        height: 44px;
        margin: -10px -10px 0 0
    }

        .rfp-root .rfp-kebab .rfp-icon {
            width: 18px;
            height: 18px
        }

    .rfp-root .rfp-card-title-row {
        padding: 16px;
        align-items: center
    }

    .rfp-root .rfp-identity {
        gap: 12px
    }

    .rfp-root .rfp-logo-tile {
        width: 44px;
        height: 44px
    }

        .rfp-root .rfp-logo-tile .rfp-logo {
            width: 24px;
            height: 24px
        }

    .rfp-root .rfp-identity-text {
        display: block;
        min-width: 0
    }

    .rfp-root .rfp-title {
        font-size: 19px;
        line-height: 1.2
    }

    .rfp-root .rfp-org {
        font-size: 12px
    }

    .rfp-root .rfp-nav-scroll {
        padding: 14px 16px 4px
    }

    .rfp-root .rfp-nav {
        padding: 2px 16px 12px;
        margin: 0 -16px;
        grid-template-rows: auto 32px auto 6px auto;
        column-gap: 12px;
        row-gap: 7px;
        min-width: calc(var(--rfp-steps,5) * 132px);
        max-width: none
    }

    .rfp-root .rfp-phase {
        height: 46px;
        margin-bottom: 4px
    }

    .rfp-root .rfp-phase--single {
        height: 52px
    }

    .rfp-root .rfp-phase-label {
        font-size: 10.5px
    }

    .rfp-root .rfp-assignees {
        gap: 14px
    }
    /* avatars scale to 0.8 on mobile */
    .rfp-root .rfp-avatar {
        width: 24px;
        height: 24px;
        font-size: 9px
    }

    .rfp-root .rfp-avatar--online {
        box-shadow: 0 0 0 2.4px rgba(0,0,0,.001), 0 0 0 2.4px color-mix(in srgb, var(--rfp-ring) 26%, transparent)
    }

    .rfp-root .rfp-avatar-badge {
        bottom: -4px;
        right: -5px;
        width: 13px;
        height: 13px;
        box-shadow: 0 0 0 1.2px var(--rfp-ring)
    }

        .rfp-root .rfp-avatar-badge .rfp-icon {
            width: 7.5px;
            height: 7.5px
        }

    .rfp-root .rfp-avatar-badge--view .rfp-icon {
        width: 8px;
        height: 8px
    }

    .rfp-root .rfp-node {
        width: 30px;
        height: 30px;
        font-size: 12px
    }

    .rfp-root .rfp-page-label {
        font-size: 12px;
        line-height: 1.25
    }

    .rfp-root .rfp-page-status {
        font-size: 10.5px
    }

    .rfp-root .rfp-card-body {
        padding: 18px 16px 26px
    }

    .rfp-root .rfp-section-title {
        font-size: 15.5px
    }

    .rfp-root .rfp-section-intro {
        font-size: 12.5px
    }

    .rfp-root .rfp-question {
        padding: 16px 14px
    }

    .rfp-root .rfp-question-text {
        font-size: 13.5px;
        padding-right: 52px
    }

    .rfp-root .rfp-textarea {
        min-height: 62px;
        font-size: 12.5px
    }

    .rfp-root .rfp-report {
        padding: 18px 16px 24px
    }
}

@media (prefers-reduced-motion:reduce) {
    .rfp-root .rfp-switch-track,
    .rfp-root .rfp-switch-knob {
        transition: none
    }
}
