:root {
    --rpns-font-base: "Open Sans", "Segoe UI", sans-serif;
    --rpns-font-ui: "Montserrat", "Segoe UI", sans-serif;
    --rpns-font-brand: "Kaisei Opti", "Times New Roman", serif;
    --rpns-font-footer: "Gotham", "Montserrat", "Segoe UI", sans-serif;

    --rpns-color-canvas: #f3f6fb;
    --rpns-offwhite: #f6f4ef;
    --rpns-color-surface: #ffffff;
    --rpns-color-ink: #111111;
    --rpns-color-muted: #4f5d6e;
    --rpns-color-header: rgba(0, 0, 0, 0.86);
    --rpns-color-maroon: #9f2b26;
    --rpns-color-gold: #ffcc00;
    --rpns-color-border: #d6dce8;
    --rpns-color-success: #0f5132;
    --rpns-color-success-bg: #edf8f2;
    --rpns-color-danger: #8f1414;
    --rpns-color-danger-bg: #fff1f1;
    --rpns-color-warning: #6b4708;
    --rpns-color-warning-bg: #fdf8ea;

    --rpns-shadow-header: 0 4px 3px rgba(178, 178, 178, 0.25);
    --rpns-shadow-panel: 0 10px 26px rgba(22, 30, 43, 0.09);

    --bs-body-font-family: var(--rpns-font-base);
    --bs-body-color: var(--rpns-color-ink);
    --bs-body-bg: var(--rpns-color-canvas);
    --bs-primary: var(--rpns-color-maroon);
    --bs-primary-rgb: 159, 43, 38;
    --bs-secondary-color: var(--rpns-color-muted);
    --bs-border-color: var(--rpns-color-border);
    --bs-link-color: var(--rpns-color-maroon);
    --bs-link-color-rgb: 159, 43, 38;
    --bs-link-hover-color: #7f211d;
    --bs-link-hover-color-rgb: 127, 33, 29;
    --bs-focus-ring-color: rgba(159, 43, 38, 0.75);
    --bs-border-radius: 1rem;
}

.rpns-admin-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.rpns-admin-nav-icon {
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
}

.rpns-admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rpns-admin-page-header h1 {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
}

.rpns-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rpns-panel {
    border: 1px solid var(--rpns-color-border);
    border-radius: 8px;
    background: var(--rpns-color-surface);
    box-shadow: var(--rpns-shadow-panel);
    padding: 1.25rem;
}

.rpns-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rpns-panel__header h2 {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: 1.05rem;
    font-weight: 700;
}

.rpns-admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rpns-admin-stat {
    border-top: 4px solid var(--rpns-color-gold);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--rpns-shadow-panel);
    padding: 1rem;
}

.rpns-admin-stat span {
    display: block;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rpns-admin-stat strong {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--rpns-font-ui);
    font-size: 2rem;
    line-height: 1;
}

.rpns-admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.rpns-admin-grid-panel {
    padding: 0.75rem;
}

.rpns-admin-grid-panel .dx-datagrid {
    font-family: var(--rpns-font-base);
}

.rpns-report-viewer-panel {
    height: calc(100vh - 250px);
    min-height: 620px;
}

.rpns-report-layout {
    transition: grid-template-columns 0.2s ease;
}

.rpns-admin-user-layout.rpns-report-layout--collapsed {
    grid-template-columns: 52px minmax(0, 1fr);
}

.rpns-report-submenu .rpns-report-submenu__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.rpns-report-submenu__summary-text {
    display: grid;
    gap: 0.25rem;
}

.rpns-report-submenu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--rpns-color-border);
    border-radius: 6px;
    background: var(--rpns-color-surface);
    color: var(--rpns-color-muted);
}

.rpns-report-submenu__toggle:hover {
    color: var(--rpns-color-maroon);
    border-color: var(--rpns-color-maroon);
}

.rpns-report-submenu__toggle:focus-visible {
    outline: 2px solid var(--rpns-color-maroon);
    outline-offset: 2px;
}

.rpns-report-layout--collapsed .rpns-report-submenu__summary {
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-bottom: none;
}

.rpns-report-layout--collapsed .rpns-report-submenu__summary-text,
.rpns-report-layout--collapsed .rpns-admin-user-submenu__nav {
    display: none;
}

.rpns-report-layout--collapsed .rpns-report-submenu__toggle .bi {
    transform: rotate(180deg);
}

.rpns-admin-user-submenu__separator {
    margin: 0.5rem 0.75rem;
    border: 0;
    border-top: 1px solid var(--rpns-color-border);
    opacity: 1;
}

/* DevExtreme toolbar items render as table cells, which ignore margins, and the
   theme zeroes the first item's padding — hence padding plus the specificity bump. */
.dx-toolbar .dx-toolbar-item.rpns-grid-toolbar-button {
    padding-left: 0.75rem;
}

.rpns-report-schedule-error {
    color: var(--rpns-color-maroon);
    display: inline-block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.rpns-schedule-parameters {
    border: 1px solid var(--rpns-color-border);
    border-radius: 8px;
    padding: 0.75rem;
    background: var(--rpns-color-surface);
}

.rpns-admin-search-disclosure {
    margin-bottom: 0.75rem;
}

.rpns-admin-search-disclosure__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    width: fit-content;
    padding: 0.35rem 0.25rem;
    font-family: var(--rpns-font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rpns-color-maroon);
    list-style: none;
}

.rpns-admin-search-disclosure__summary::-webkit-details-marker {
    display: none;
}

.rpns-admin-search-disclosure__summary::before {
    content: "\25B8"; /* right-pointing triangle */
    font-size: 0.8em;
    transition: transform 0.15s ease;
}

.rpns-admin-search-disclosure[open] > .rpns-admin-search-disclosure__summary::before {
    transform: rotate(90deg);
}

.rpns-admin-search-disclosure__summary:focus-visible {
    outline: 2px solid var(--rpns-color-maroon);
    outline-offset: 2px;
    border-radius: 4px;
}

.rpns-admin-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.rpns-admin-search__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 12rem;
    flex: 1 1 12rem;
}

.rpns-admin-search__field label {
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rpns-color-muted);
}

.rpns-admin-search__field label span {
    color: var(--rpns-color-maroon);
}

.rpns-admin-search__actions {
    display: flex;
    gap: 0.5rem;
}

.rpns-admin-search__hint {
    flex-basis: 100%;
    margin: 0;
    color: var(--rpns-color-maroon);
    font-size: 0.85rem;
}

.rpns-grid-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rpns-shield-label {
    display: block;
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rpns-color-muted);
    margin-bottom: 0.25rem;
}

.rpns-shield-subhead {
    margin: 1rem 0 0.5rem;
    font-family: var(--rpns-font-ui);
    font-weight: 700;
}

.rpns-shield-parties {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 40vh;
    overflow-y: auto;
}

.rpns-shield-party {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 400;
}

.rpns-shield-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.rpns-unshield-list {
    margin: 0;
    padding-left: 1.2rem;
    max-height: 40vh;
    overflow-y: auto;
}

.rpns-unshield-list li {
    margin-bottom: 0.25rem;
}

.rpns-notification-record-detail {
    padding: 1rem;
}

.rpns-admin-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.rpns-admin-details {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 0.65rem 1rem;
    margin: 0;
}

.rpns-admin-details dt {
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.rpns-admin-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.rpns-admin-details--columns {
    grid-template-columns:
        minmax(110px, max-content) minmax(0, 2.5fr)
        minmax(110px, max-content) minmax(0, 1fr)
        minmax(110px, max-content) minmax(0, 1fr);
    column-gap: 1.5rem;
}

.rpns-error-detail {
    padding: 1rem;
}

.rpns-error-detail__loading {
    padding: 1rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.85rem;
}

.rpns-audit-detail {
    padding: 1rem;
    /* The grid's master-detail cell inherits DevExtreme's white-space: nowrap (wordWrapEnabled
       default); without this, nothing inside the detail template can wrap. */
    white-space: normal;
}

.rpns-audit-detail__loading {
    padding: 1rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.85rem;
}

.rpns-audit-detail__heading {
    margin: 1rem 0 0.5rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.rpns-audit-changes {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

.rpns-audit-changes td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.rpns-audit-changes__col--name {
    width: 20%;
}

.rpns-audit-changes__col--name-wide {
    width: 30%;
}

.rpns-audit-changes__more {
    margin-left: 0.35rem;
    font-family: var(--rpns-font-ui);
    font-size: 0.8rem;
    white-space: nowrap;
}

.rpns-audit-popup__body {
    height: 100%;
    overflow: auto;
}

.rpns-audit-popup__note {
    margin: 0 0 0.75rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.85rem;
}

.rpns-audit-popup__label {
    margin: 0.75rem 0 0.35rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.rpns-audit-popup__value {
    margin: 0;
    font-family: "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rpns-audit-diff {
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rpns-audit-diff del {
    background: rgba(143, 20, 20, 0.14);
    text-decoration: line-through;
}

.rpns-audit-diff ins {
    background: rgba(31, 90, 63, 0.16);
    text-decoration: none;
}

.rpns-error-detail__stack {
    grid-column: 1 / -1;
    margin: 0.25rem 0 0;
    padding: 0.75rem;
    max-height: 320px;
    overflow: auto;
    background: var(--rpns-color-canvas);
    border: 1px solid var(--rpns-color-border);
    border-radius: 8px;
    font-family: "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rpns-error-log-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rpns-error-log-toolbar label {
    margin: 0;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rpns-admin-user-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
}

.rpns-admin-user-content {
    min-width: 0;
}

.rpns-admin-user-submenu {
    border: 1px solid var(--rpns-color-border);
    border-radius: 8px;
    background: var(--rpns-color-surface);
    box-shadow: var(--rpns-shadow-panel);
    overflow: hidden;
}

.rpns-admin-user-submenu__summary {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-bottom: 1px solid var(--rpns-color-border);
}

.rpns-admin-user-submenu__summary span,
.rpns-admin-user-submenu__summary small {
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
}

.rpns-admin-user-submenu__summary span {
    font-weight: 700;
    text-transform: uppercase;
}

.rpns-admin-user-submenu__summary strong {
    font-family: var(--rpns-font-ui);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.rpns-admin-user-submenu__summary small {
    overflow-wrap: anywhere;
}

.rpns-admin-user-submenu__nav {
    display: grid;
    padding: 0.5rem;
}

.rpns-admin-user-submenu__link {
    border-radius: 6px;
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
}

.rpns-admin-user-submenu__link:hover,
.rpns-admin-user-submenu__link:focus-visible {
    background: #f8eef0;
    color: var(--rpns-color-maroon);
}

.rpns-admin-user-submenu__link--active {
    background: var(--rpns-color-maroon);
    color: #ffffff;
}

.rpns-admin-user-submenu__link--active:hover,
.rpns-admin-user-submenu__link--active:focus-visible {
    background: #7f211d;
    color: #ffffff;
}

.rpns-document-detail {
    color: var(--rpns-color-ink);
}

.rpns-document-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--rpns-color-ink);
}

.rpns-document-detail__header h2 {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
}

.rpns-document-detail__status {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(159, 43, 38, 0.24);
    border-radius: 999px;
    background: rgba(159, 43, 38, 0.07);
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
}

/* auto-fit rather than a fixed count: empty tracks collapse, so adding or removing a field cannot
   leave a dead column behind. */
.rpns-document-detail__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border-bottom: 1px solid #8b9ba5;
}

.rpns-document-detail__summary > div {
    min-width: 0;
    padding: 1rem 0.75rem 1rem 0;
}

.rpns-document-detail__summary span,
.rpns-document-detail__fields dt,
.rpns-document-detail__row dt {
    display: block;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rpns-document-detail__summary strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rpns-document-detail__section {
    padding-top: 1.35rem;
}

.rpns-document-detail__section h3 {
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 3px solid var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 1.05rem;
    font-weight: 700;
}

.rpns-document-detail__fields {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border-bottom: 1px solid #8b9ba5;
}

.rpns-document-detail__fields dt,
.rpns-document-detail__fields dd {
    min-width: 0;
    margin: 0;
    padding: 0.7rem 0.75rem 0.7rem 0;
    border-top: 1px solid #c2ccd3;
    overflow-wrap: break-word;
}

.rpns-document-detail__rows {
    border-bottom: 1px solid #8b9ba5;
}

.rpns-document-detail__party-group + .rpns-document-detail__party-group {
    padding-top: 1rem;
}

.rpns-document-detail__party-group h4 {
    margin: 0;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 0.95rem;
    font-weight: 700;
}

.rpns-document-detail__row {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #c2ccd3;
}

.rpns-document-detail__row strong {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rpns-document-detail__row span {
    display: block;
    margin-top: 0.2rem;
    color: var(--rpns-color-muted);
    font-size: 0.88rem;
}

/* Label column sized to its text, value column taking the rest — a flat dt/dd list then reads as
   label-and-value rows instead of both landing in narrow side-by-side columns. */
.rpns-document-detail__row dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.rpns-document-detail__row dd {
    margin: 0;
    overflow-wrap: break-word;
}

.rpns-document-detail__reference {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid #c2ccd3;
    font-weight: 600;
}

.rpns-document-detail__empty {
    margin: 0;
    padding: 0.85rem 0;
    border-top: 1px solid #c2ccd3;
    border-bottom: 1px solid #8b9ba5;
    color: var(--rpns-color-muted);
}

.rpns-notification-detail {
    color: var(--rpns-color-ink);
}

.rpns-notification-detail__header {
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--rpns-color-ink);
}

.rpns-notification-detail__header h2 {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rpns-notification-detail__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin: 0;
    border-bottom: 1px solid #8b9ba5;
}

.rpns-notification-detail__fields > div {
    min-width: 0;
    padding: 1rem 0.75rem 1rem 0;
}

.rpns-notification-detail__fields dt {
    display: block;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rpns-notification-detail__fields dd {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    overflow-wrap: break-word;
}

/* Guidance panel closing the View Notification page. Shares the heavy rule and heading treatment of
   the detail sections above it so the page reads as one document. */
.rpns-next-steps {
    color: var(--rpns-color-ink);
}

.rpns-next-steps__header {
    padding-bottom: 0.55rem;
    border-bottom: 3px solid var(--rpns-color-ink);
}

.rpns-next-steps__title {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: 1.05rem;
    font-weight: 700;
}

.rpns-next-steps__list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.rpns-next-steps__list li + li {
    margin-top: 0.6rem;
}

.rpns-admin-form-panel {
    max-width: 720px;
}

body.rpns-body.rpns-admin-login-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.06) 0%, rgba(159, 43, 38, 0.08) 42%, rgba(255, 204, 0, 0.1) 100%),
        var(--rpns-color-canvas);
}

.rpns-admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.rpns-admin-login__shell {
    width: min(1080px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(214, 220, 232, 0.92);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(22, 30, 43, 0.18);
}

.rpns-admin-login__brand {
    position: relative;
    min-width: 0;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    background: #111111;
    color: #ffffff;
}

.rpns-admin-login__flag,
.rpns-admin-login__flag img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rpns-admin-login__flag img {
    object-fit: cover;
}

.rpns-admin-login__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.74) 54%, rgba(0, 0, 0, 0.58) 100%),
        rgba(0, 0, 0, 0.55);
}

.rpns-admin-login__brand-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(2rem, 5vw, 4rem);
}

.rpns-admin-login__seal {
    width: 98px;
    height: 98px;
    margin-bottom: 1.5rem;
}

.rpns-admin-login__eyebrow {
    color: var(--rpns-color-gold);
}

.rpns-admin-login__brand h1,
.rpns-admin-login__panel h2 {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-weight: 700;
    line-height: 1.08;
}

.rpns-admin-login__brand h1 {
    max-width: 9.5em;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.rpns-admin-login__copy {
    max-width: 31rem;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.55;
}

.rpns-admin-login__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 2.25rem 0 0;
}

.rpns-admin-login__details div {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
}

.rpns-admin-login__details dt {
    margin-bottom: 0.4rem;
    color: var(--rpns-color-gold);
    font-family: var(--rpns-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rpns-admin-login__details dd {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.35;
}

.rpns-admin-login__panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4.5vw, 3.75rem);
}

.rpns-admin-login__panel h2 {
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    color: var(--rpns-color-ink);
}

.rpns-admin-login__intro {
    margin: 1rem 0 0;
    color: var(--rpns-color-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.rpns-admin-login__form {
    margin-top: 2rem;
}

.rpns-admin-login__button {
    width: 100%;
    min-height: 58px;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.rpns-admin-login__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.15rem;
}

.rpns-admin-login__button-arrow {
    font-size: 1.6rem;
    line-height: 1;
}

.rpns-admin-login__notice {
    margin: 1.25rem 0 0;
    padding-left: 0.9rem;
    border-left: 4px solid var(--rpns-color-gold);
    color: var(--rpns-color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.rpns-admin-inline-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.rpns-admin-claim-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin-top: 1rem;
}

.rpns-admin-stacked-form {
    max-width: 32rem;
    margin-top: 1.25rem;
}

.rpns-secret-reveal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rpns-secret-reveal__value {
    padding: 0.4rem 0.6rem;
    background: var(--rpns-offwhite, #f6f4ef);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    word-break: break-all;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .rpns-admin-summary,
    .rpns-admin-dashboard-grid,
    .rpns-admin-claim-form {
        grid-template-columns: 1fr;
    }

    .rpns-admin-details--columns {
        grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    }

    .rpns-admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rpns-admin-details {
        grid-template-columns: 1fr;
    }

    .rpns-admin-user-layout {
        grid-template-columns: 1fr;
    }

    .rpns-admin-user-submenu__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rpns-document-detail__summary,
    .rpns-notification-detail__fields,
    .rpns-document-detail__fields,
    .rpns-document-detail__row,
    .rpns-document-detail__row dl {
        grid-template-columns: 1fr;
    }

    .rpns-document-detail__fields dd {
        padding-top: 0;
        border-top: 0;
    }

    .rpns-admin-inline-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .rpns-admin-login {
        align-items: start;
        padding: 1rem;
    }

    .rpns-admin-login__shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .rpns-admin-login__brand-content {
        min-height: 360px;
        padding: 2rem;
    }

    .rpns-admin-login__brand h1 {
        max-width: 100%;
    }

    .rpns-admin-login__panel {
        padding: 2rem;
    }
}

@media (max-width: 560px) {
    .rpns-admin-user-submenu__nav {
        grid-template-columns: 1fr;
    }

    .rpns-admin-login {
        padding: 0;
    }

    .rpns-admin-login__shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .rpns-admin-login__brand-content {
        min-height: 310px;
        padding: 1.5rem;
    }

    .rpns-admin-login__seal {
        width: 78px;
        height: 78px;
        margin-bottom: 1.1rem;
    }

    .rpns-admin-login__brand h1 {
        font-size: 2rem;
        overflow-wrap: break-word;
    }

    .rpns-admin-login__copy {
        font-size: 0.95rem;
    }

    .rpns-admin-login__details {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }

    .rpns-admin-login__panel {
        padding: 1.5rem;
    }

    .rpns-admin-login__button {
        min-height: 54px;
        font-size: 0.95rem;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.rpns-body {
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-base);
    background: radial-gradient(circle at top right, #eaf0ff 0%, #f3f6fb 50%, #eef2f7 100%);
}

.reg-step-active
{
    font-weight: 600;
}

/* 1.4.3: replaces Bootstrap's .opacity-50 on not-yet-reached steps. At 0.5 the
   label computed to #888 on white (3.54:1); 0.65 gives 5.89:1 and still reads as
   clearly de-emphasised. */
.reg-step-future {
    opacity: 0.65;
}

.rpns-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rpns-color-surface);
}

.rpns-container {
    width: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.rpns-header {
    --rpns-flag-strip-h: 20px;
    --rpns-header-bar-h: 90px;
    position: relative;
    z-index: 5;
    box-shadow: var(--rpns-shadow-header);
}

.rpns-header__flag-strip {
    position: relative;
    overflow: hidden;
    height: var(--rpns-flag-strip-h);
}

.rpns-header__bar {
    position: relative;
    overflow: hidden;
    height: var(--rpns-header-bar-h);
}

.rpns-header__flag {
    margin: 0;
}

.rpns-header__flag img {
    width: 100%;
    height: auto;
    display: block;
}

.rpns-header__flag-strip .rpns-header__flag {
    position: absolute;
    inset: 0;
}

.rpns-header__bar .rpns-header__flag {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--rpns-flag-strip-h));
}

.rpns-header__shade {
    position: absolute;
    inset: 0;
    background: var(--rpns-color-header);
}

.rpns-header__inner {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 2.4rem;
    padding: 0;
}

.rpns-brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.9rem;
    color: #ffffff;
    text-decoration: none;
}

.rpns-brand:hover {
    color: #ffffff;
}

.rpns-brand__seal {
    width: 94px;
    height: 94px;
    flex: 0 0 auto;
    display: block;
    align-self: center;
    margin-top: 2px;
}

.rpns-brand__text {
    margin-top: 0;
    display: grid;
    gap: 0.08rem;
}

.rpns-brand__title {
    font-family: var(--rpns-font-brand);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.448;
    letter-spacing: 0.095em;
}

.rpns-brand__subtitle {
    font-family: var(--rpns-font-ui);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.091em;
}

.rpns-nav {
    justify-content: center;
    gap: 3.6rem;
}

.rpns-nav--signed-out {
    justify-content: flex-start;
    gap: 0;
}

.rpns-nav__link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    display: grid;
    justify-items: center;
    min-height: 60px;
    padding-bottom: 0.45rem;
}

.rpns-nav__link:hover {
    color: #ffffff;
}

.rpns-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    font-size: 38px;
    line-height: 1;
}

.rpns-nav__text {
    margin-top: -1px;
    font-family: var(--rpns-font-ui);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.038em;
    text-align: center;
}

.rpns-nav__link--active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.15rem;
    width: 96px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--rpns-color-gold);
    border-radius: 3px;
}

.rpns-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rpns-header__auth-form,
.rpns-mobile-nav__auth-form {
    margin: 0;
}

.rpns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: var(--rpns-font-ui);
    text-align: center;
    line-height: 1.2;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.rpns-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.rpns-btn--primary {
    color: #ffffff;
    border-color: var(--rpns-color-maroon);
    background: var(--rpns-color-maroon);
}

.rpns-btn--primary:hover,
.rpns-btn--primary:focus,
.rpns-btn--primary:active {
    color: #ffffff;
    border-color: #7f211d;
    background: #7f211d;
}

.rpns-btn--header {
    min-width: 112px;
    min-height: 38px;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.rpns-btn--submit {
    min-width: 214px;
    min-height: 42px;
    padding: 0.65rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rpns-btn--table-action {
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rpns-btn--outline {
    min-width: 76px;
    min-height: 34px;
    border-width: 1.5px;
    border-color: var(--rpns-color-maroon);
    color: var(--rpns-color-maroon);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.088em;
}

.rpns-btn--outline:hover,
.rpns-btn--outline:focus,
.rpns-btn--outline:active {
    border-color: var(--rpns-color-maroon);
    color: #ffffff;
    background: var(--rpns-color-maroon);
}

.rpns-btn--dark {
    min-width: 110px;
    min-height: 38px;
    padding: 0.55rem 1.2rem;
    font-family: var(--rpns-font-base);
    font-size: 0.9375rem;
    font-weight: 700;
}

.rpns-btn--mobile-auth {
    width: 100%;
    max-width: 156px;
    min-height: 37px;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.rpns-btn:focus-visible,
.rpns-nav__link:focus-visible,
.rpns-footer__link:focus-visible,
.rpns-menu-toggle:focus-visible,
.rpns-mobile-nav__link:focus-visible {
    outline: 3px solid var(--rpns-color-gold);
    outline-offset: 2px;
}

.rpns-menu-toggle.navbar-toggler {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.rpns-menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.rpns-menu-toggle::after {
    display: none;
}

.rpns-mobile-nav {
    display: none;
}

.rpns-main {
    flex: 1;
    width: min(1440px, 100%);
    margin-inline: auto;
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 25px 25px 0 0;
    /* Was overflow:hidden, which clipped vertical growth under increased text
       spacing (1.4.12). clip on the x-axis alone keeps the rounded corners. */
    overflow-x: clip;
}

.rpns-page {
    padding-inline: 2rem;
}

.rpns-page--login {
    max-width: 1080px;
    margin-inline: auto;
}

.rpns-page--verify {
    max-width: 860px;
}

.rpns-page--content {
    max-width: 900px;
    margin-inline: auto;
}

.rpns-page--registration {
    max-width: 980px;
}

.rpns-page--profile {
    max-width: 1220px;
    margin-inline: auto;
}

.rpns-page__title {
    margin: 0;
    font-size: clamp(1.7rem, 2.6vw, 2.375rem);
    font-weight: 600;
    line-height: 1.25;
 
}

.rpns-page__lead {
    max-width: 920px;
    color: var(--rpns-color-muted);
    font-size: 0.9375rem;
    line-height: 1.25;
}

.rpns-card {
    border: 0;
    border-radius: 16px;
    background: var(--rpns-color-surface);
    box-shadow: var(--rpns-shadow-panel);
}

.rpns-card__title {
    margin: 0 0 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--rpns-color-border);
    font-family: var(--rpns-font-ui);
    font-weight: 700;
}

.rpns-card__copy {
    margin-bottom: 1.5rem;
}

.rpns-card__terms {
    color: var(--rpns-color-danger);
    font-size: 0.875rem;
    line-height: 1.4;
}

.rpns-form-card {
    width: min(896px, 100%);
    margin-inline: auto;
}

.rpns-page--notifications {
    max-width: 1160px;
    margin-inline: auto;
}

.rpns-page--dashboard {
    max-width: 1200px;
    margin-inline: auto;
}


.rpns-profile-card__readonly {
    background-color: #a6b1b1 !important;
    border-color: #7d8f8f;
    box-shadow: none;
    color: #243137;
    border-radius: 10px 0 0 10px;
}

/* The base rule squares the right edge for the split current-value control. A standalone
   full-width readonly input needs the same radius as .rpns-form-control instead. */
.rpns-profile-card__readonly--standalone {
    border-radius: 32px;
}

.rpns-profile-card__readonly::placeholder {
    /* Opaque: this field's placeholder IS its content when empty, so it must
       clear 4.5:1 against the #a6b1b1 field background (0.72 alpha gave 3.51:1). */
    color: #243137;
    opacity: 1;
}

.rpns-profile-shell {
    display: grid;
    gap: 2rem;
}

.rpns-profile-shell__header {
    padding-bottom: 1.65rem;
    border-bottom: 1px solid var(--rpns-color-border);
}

.rpns-profile-shell__title {
    margin: 0;
    font-family: var(--rpns-font-ui);
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.rpns-profile-shell__subtitle {
    margin-top: 0.55rem;
    font-family: var(--rpns-font-ui);
    font-size: 1.15rem;
    font-weight: 600;
    color: #2b2f36;
}

.rpns-profile-shell__body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.rpns-profile-shell__sidebar {
    position: sticky;
    top: 1.5rem;
}

.rpns-profile-shell__content {
    min-width: 0;
}

.rpns-profile-shell__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--rpns-font-ui);
    font-size: 0.95rem;
    color: var(--rpns-color-muted);
}

.rpns-profile-shell__breadcrumb a {
    color: var(--rpns-color-maroon);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.rpns-profile-nav {
    display: grid;
    gap: 0.65rem;
}

.rpns-profile-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.rpns-profile-nav__link:hover {
    color: #7f211d;
    background: #fbf2f1;
}

.rpns-profile-nav__link--active,
.rpns-profile-nav__link--active:hover {
    color: #ffffff;
    background: #692019;
    border-color: #692019;
}

.rpns-profile-card {
    width: 100%;
}

.rpns-profile-card__title--plain {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.rpns-profile-card__lead {
    margin-bottom: 2rem;
    font-size: 1rem;
}



.rpns-profile-current-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: stretch;
}

.rpns-profile-current-field__input {
    border-right-width: 1px;
}

.rpns-profile-current-field__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3f4b4b;
    border-left: 0;
    border-radius: 0 1rem 1rem 0;
    background: #90a0a0;
    color: var(--rpns-color-success);
}

.rpns-profile-current-field__status svg {
    width: 32px;
    height: 32px;
}

.rpns-profile-terms {
    color: #b32025;
    font-family: var(--rpns-font-base);
    line-height: 1.5;
}

.rpns-profile-terms a {
    color: inherit;
    text-underline-offset: 0.16em;
}

.rpns-profile-action-btn {
    gap: 0.75rem;
    border-radius: 0.7rem;
    padding-inline: 1.35rem;
    font-weight: 700;
    letter-spacing: normal;
}

.rpns-profile-action-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rpns-profile-action-btn__icon svg {
    width: 34px;
    height: 34px;
}

.rpns-profile-toggle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--rpns-color-border);
    border-radius: 1rem;
    background: #fcfcfa;
}

.rpns-profile-toggle-card__title {
    margin: 0 0 0.3rem;
    font-family: var(--rpns-font-ui);
    font-size: 1rem;
    font-weight: 700;
}

.rpns-profile-toggle-card__meta {
    color: var(--rpns-color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.rpns-profile-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 170px;
    margin: 0;
}

.rpns-profile-switch__input {
    width: 3.2rem;
    height: 1.75rem;
    margin-left: 0;
    border-color: rgba(105, 32, 25, 0.35);
}

.rpns-profile-switch__input:checked {
    background-color: #692019;
    border-color: #692019;
}

.rpns-profile-switch__input:focus {
    border-color: #692019;
    box-shadow: 0 0 0 0.25rem rgba(159, 43, 38, 0.18);
}

.rpns-profile-switch__input:disabled {
    opacity: 0.45;
}

.rpns-profile-switch__label {
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 0.9rem;
    font-weight: 600;
}

.rpns-field__label {
    margin-bottom: 0.65rem;
    font-family: var(--rpns-font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--rpns-color-ink);
}

.rpns-field__error {
    display: block;
    margin-top: 0.5rem;
    color: #b31919;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rpns-field__hint {
    margin-top: 0.55rem;
    color: var(--rpns-color-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.rpns-form-control,
.rpns-form-select {
    min-height: 47px;
    border: 2px solid var(--rpns-color-maroon);
    border-radius: 32px;
    background-color: rgba(234, 234, 234, 0.44);
    box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.18);
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 0.875rem;
}

.rpns-form-control {
    padding-inline: 1rem;
}

.rpns-form-select {
    padding-left: 0.9rem;
    padding-right: 2.75rem;
}

.rpns-form-control:focus,
.rpns-form-select:focus {
    border-color: var(--rpns-color-maroon);
    box-shadow: 0 0 0 0.25rem rgba(159, 43, 38, 0.15);
}

.rpns-alert {
    border-radius: 14px;
    font-family: var(--rpns-font-ui);
}

.alert-success.rpns-alert {
    border-color: #1f7a4e;
    background: var(--rpns-color-success-bg);
    color: var(--rpns-color-success);
}

.alert-danger.rpns-alert {
    border-color: #b31919;
    background: var(--rpns-color-danger-bg);
    color: var(--rpns-color-danger);
}

.alert-warning.rpns-alert {
    border-color: var(--rpns-color-gold);
    background: var(--rpns-color-warning-bg);
    color: var(--rpns-color-warning);
}

/* Consequential multi-paragraph disclosures (for example the account merge warning) stay
   readable rather than shrinking to the compact alert size. */
.rpns-alert--notice {
    font-size: 0.95rem;
    line-height: 1.55;
}

.rpns-merge-notice__heading {
    font-family: var(--rpns-font-ui);
    font-weight: 700;
}

.rpns-alert:empty {
    display: none;
}

.rpns-sms-consent {
    padding: 1rem 1.15rem;
    border: 1px solid var(--rpns-color-border);
    border-left: 4px solid var(--rpns-color-gold);
    border-radius: 12px;
    background: #fcfaf5;
}

.rpns-sms-consent__phone {
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-size: 0.95rem;
}

.rpns-sms-consent .rpns-check__label,
.rpns-check--consent .rpns-check__label {
    color: var(--rpns-color-muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.rpns-note {
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--rpns-color-gold);
    border-radius: 12px;
    background: #fbf7e8;
    color: #4f3f18;
}

.rpns-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
}

.rpns-check__input {
    margin-top: 0.25rem;
    border-color: var(--rpns-color-maroon);
}

.rpns-check__input:checked {
    background-color: var(--rpns-color-maroon);
    border-color: var(--rpns-color-maroon);
}

.rpns-check__label {
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-weight: 600;
}

.rpns-btn--secondary {
    color: var(--rpns-color-maroon);
    background: transparent;
    border: 2px solid rgba(159, 43, 38, 0.24);
}

.rpns-btn--secondary:hover {
    color: #7f211d;
    border-color: rgba(159, 43, 38, 0.45);
}

.rpns-btn--danger {
    color: #ffffff;
    background: var(--rpns-color-danger);
    border: 2px solid var(--rpns-color-danger);
}

.rpns-btn--danger:hover,
.rpns-btn--danger:focus,
.rpns-btn--danger:active {
    color: #ffffff;
    background: #751010;
    border-color: #751010;
}

.rpns-btn--grid {
    min-height: 2.4rem;
    padding-inline: 1rem;
    font-size: 0.875rem;
}

.rpns-definition-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin: 0;
}

.rpns-definition-list div {
    padding: 1rem 1.1rem;
    border: 1px solid var(--rpns-color-border);
    border-radius: 14px;
    background: #fafbfd;
}

.rpns-definition-list dt {
    margin: 0 0 0.35rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rpns-definition-list dd {
    margin: 0;
    color: var(--rpns-color-ink);
    font-size: 1rem;
    line-height: 1.45;
}

.rpns-tip-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--rpns-color-ink);
}

.rpns-tip-list li + li {
    margin-top: 0.8rem;
}

.rpns-notification-request-card {
    border: 1px solid rgba(159, 43, 38, 0.08);
}

.rpns-notification-request-card--deleted {
    background: #eef1f5;
    border-color: #c5ccd8;
    box-shadow: none;
}

.rpns-notification-request-card--deleted .rpns-card__title,
.rpns-notification-request-card--deleted .rpns-admin-details dd,
.rpns-notification-request-card--deleted .rpns-notification-request-card__meta dd {
    color: #5b6472;
}

.rpns-notification-request-card--deleted .rpns-notification-request-card__meta div {
    background: #e2e6ed;
    border-color: #c5ccd8;
}

.rpns-notification-request-card__header {
    justify-content: space-between;
    gap: 1rem;
}

.rpns-notification-request-card__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.rpns-notification-request-card__meta div {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #fafbfd;
    border: 1px solid var(--rpns-color-border);
}

.rpns-notification-request-card__meta dt {
    margin: 0 0 0.35rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rpns-notification-request-card__meta dd {
    margin: 0;
    color: var(--rpns-color-ink);
    font-size: 0.98rem;
    line-height: 1.4;
}

.rpns-inline-description-form {
    width: 100%;
}

.rpns-inline-description__card {
    display: grid;
    gap: 0.75rem;
}

.rpns-inline-description__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.rpns-inline-description__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #fafbfd;
    border: 1px solid var(--rpns-color-border);
}

.rpns-inline-description__meta {
    flex: 1 1 auto;
}

.rpns-inline-description__meta > .rpns-inline-description__label {
    margin: 0 0 0.35rem;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rpns-inline-description__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}


.rpns-inline-description__help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    border: 1px solid rgba(79, 93, 110, 0.45);
    border-radius: 999px;
    background: #ffffff;
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.rpns-inline-description__help-btn:hover,
.rpns-inline-description__help-btn:focus,
.rpns-inline-description__help-btn:active {
    color: var(--rpns-color-maroon);
    border-color: rgba(159, 43, 38, 0.45);
}

.rpns-inline-description__help-btn:focus-visible {
    outline: 3px solid var(--rpns-color-gold);
    outline-offset: 2px;
}

.rpns-inline-description__meta > div:not(.rpns-inline-description__label) {
    margin: 0;
    color: var(--rpns-color-ink);
    font-size: 0.98rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.rpns-inline-description__editor {
    display: block;
    width: 100%;
}

.rpns-inline-description__editor[hidden] {
    display: none !important;
}

.rpns-inline-description__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    min-width: 47px;
    height: 47px;
    padding: 0;
    border: 2px solid rgba(159, 43, 38, 0.24);
    border-radius: 32px;
    background: rgba(234, 234, 234, 0.44);
    box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.18);
    color: var(--rpns-color-maroon);
}

.rpns-inline-description__icon-btn:hover,
.rpns-inline-description__icon-btn:focus,
.rpns-inline-description__icon-btn:active {
    color: #7f211d;
    border-color: rgba(159, 43, 38, 0.45);
}

.rpns-inline-description__icon-btn:focus-visible {
    outline: 3px solid var(--rpns-color-gold);
    outline-offset: 2px;
}

.rpns-inline-description__icon-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.rpns-inline-description__save {
    min-width: 110px;
    min-height: 47px;
    padding: 0.65rem 1.1rem;
    border-radius: 32px;
}

.rpns-inline-description__input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-base);
    font-size: 0.98rem;
    line-height: 1.4;
    box-shadow: none;
}

.rpns-inline-description__status {

}

.rpns-dashboard {
    display: grid;
    gap: 2rem;
}

.rpns-dashboard__header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rpns-color-border);
}

.rpns-dashboard__title {
    margin: 0 0 0.75rem;
    font-family: var(--rpns-font-ui);
    font-size: clamp(1.5rem, 2.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
}

.rpns-dashboard__summary {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.rpns-dashboard__summary-status {
    display: grid;
    gap: 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(159, 43, 38, 0.12);
    background: #fcfaf5;
}

.rpns-dashboard__summary-eyebrow {
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rpns-dashboard__summary-copy {
    font-family: var(--rpns-font-ui);
    font-weight: 400;
    line-height: 1.35;
}

.rpns-dashboard__summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
    min-height: 55px;
}

.rpns-dashboard__section {
    display: grid;
    gap: 1rem;
}

.rpns-dashboard__section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.rpns-dashboard__section-title {
    margin: 0 0 0.35rem;
    font-family: var(--rpns-font-ui);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.rpns-dashboard__section-copy {
    color: var(--rpns-color-muted);
    font-size: 1rem;
    line-height: 1.45;
}

.rpns-dashboard__section-status {
    color: var(--rpns-color-muted);
    font-family: var(--rpns-font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.rpns-dashboard__table-card {
    overflow: hidden;
}

.rpns-dashboard__table-responsive {
    overflow: visible;
}

.rpns-dashboard__empty-state {
    border: 1px solid rgba(159, 43, 38, 0.08);
}

.rpns-dashboard__empty-state p {
    color: var(--rpns-color-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.rpns-dashboard-table {
    margin: 0;
    vertical-align: middle;
}

.rpns-dashboard-table thead th {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--rpns-color-border);
    background: #f7f3ea;
    color: #2c241d;
    font-family: var(--rpns-font-ui);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rpns-dashboard-table tbody td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(214, 220, 232, 0.9);
    color: var(--rpns-color-ink);
    font-size: 0.98rem;
    line-height: 1.45;
}

.rpns-dashboard-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.rpns-dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.rpns-dashboard__pager {
    display: flex;
    justify-content: flex-end;
}

.rpns-dashboard__pager .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rpns-dashboard__pager .page-link {
    border-color: rgba(159, 43, 38, 0.18);
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-weight: 600;
}

.rpns-dashboard__pager .page-link:hover,
.rpns-dashboard__pager .page-link:focus {
    background: #f7f3ea;
    color: #6f1f1b;
}

.rpns-dashboard__pager .page-item.active .page-link {
    border-color: var(--rpns-color-maroon);
    background: var(--rpns-color-maroon);
    color: #fff;
}

.rpns-dashboard__pager .page-item.disabled .page-link {
    border-color: rgba(159, 43, 38, 0.12);
    color: rgba(111, 31, 27, 0.5);
    background: #fff;
}

#notification-property-grid .dx-datagrid {
    color: var(--rpns-color-ink);
}

#notification-property-grid .dx-header-row > td {
    color: var(--rpns-color-ink);
    font-family: var(--rpns-font-ui);
    font-weight: 700;
}

#notification-property-grid .dx-row-alt > td {
    background: rgba(243, 246, 251, 0.85);
}

.rpns-verify__lead {
    width: min(560px, 100%);
    margin-inline: auto;
}

.rpns-verify-card {
    width: min(560px, 100%);
    margin-inline: auto;
}

.rpns-page--terms {
    max-width: 1100px;
}

.rpns-terms-card {
    overflow: hidden;
}

.rpns-terms__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.rpns-terms__badge,
.rpns-terms__date {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: var(--rpns-font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.rpns-terms__badge {
    background: rgba(159, 43, 38, 0.1);
    color: var(--rpns-color-maroon);
}

.rpns-terms__date {
    background: #f3f0e7;
    color: #4f3f18;
}

.rpns-terms__body {
    max-height: 58vh;
    overflow: auto;
    padding: 1.5rem;
    border: 1px solid var(--rpns-color-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.rpns-terms__body--natural {
    max-height: none;
    overflow: visible;
}

.rpns-terms__body > :first-child {
    margin-top: 0;
}

.rpns-terms__body > :last-child {
    margin-bottom: 0;
}

.rpns-terms__body h1,
.rpns-terms__body h2,
.rpns-terms__body h3,
.rpns-terms__body h4 {
    font-family: var(--rpns-font-ui);
}

.rpns-terms__body a {
    overflow-wrap: anywhere;
}

.rpns-step-tracker {
    margin: 1.9rem auto 1.45rem;
    width: min(562px, 100%);
}

.rpns-step-tracker__label {
    margin: 0;
    color: var(--rpns-color-maroon);
    font-size: 18px;
    font-weight: 700;
    line-height: 0.91;
    letter-spacing: 0.034em;
}

.rpns-step-tracker__visual {
    position: relative;
    width: 562px;
    max-width: 100%;
    height: 69px;
}

.rpns-step-tracker__bar {
    position: absolute;
    left: 1.6px;
    top: 50px;
    width: 560px;
    height: 4px;
    max-width: calc(100% - 2px);
    margin: 0;
}

.rpns-step-tracker__bar img {
    width: 100%;
    height: auto;
    display: block;
}

.rpns-step-tracker__icon {
    position: absolute;
    left: 48px;
    top: 34px;
    width: 31px;
    height: 31px;
    margin: 0;
}

.rpns-step-tracker__icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.rpns-content__title {
    margin: 0 0 0.9rem;
    font-size: 1.8rem;
}

.rpns-content__text {
    color: var(--rpns-color-muted);
    line-height: 1.6;
}

.rpns-contact-details {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(159, 43, 38, 0.14);
    border-left: 5px solid var(--rpns-color-maroon);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.rpns-contact-details__item {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
}

.rpns-contact-details__value {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--rpns-color-ink);
}

.rpns-contact-details__value a {
    color: var(--rpns-color-maroon);
    font-weight: 600;
}

.rpns-footer {
    background: #000000;
    color: #ffffff;
}

.rpns-footer__accent {
    height: 5px;
    background: var(--rpns-color-gold);
}

.rpns-footer__inner {
    min-height: 130px;
    padding: 5px 0 25px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 1rem;
}

.rpns-footer__logo img {
    width: 272px;
    max-width: 100%;
    height: auto;
    display: block;
}

.rpns-footer__link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--rpns-font-footer);
    font-size: 16px;
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: 0.1em;
}

.rpns-footer__link:hover {
    color: var(--rpns-color-gold);
}

.rpns-footer__link--contact {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rpns-footer__link--contact img {
    width: 19px;
    height: 19px;
}

@media (max-width: 1020px) {
    .rpns-nav {
        gap: 3rem;
    }

    .rpns-brand__seal {
        width: 74px;
        height: 74px;
    }

    .rpns-brand__title {
        font-size: 30px;
    }

    .rpns-footer__link {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rpns-dashboard__table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 767.98px) {
    .rpns-dashboard__section-header {
        align-items: start;
        flex-direction: column;
    }

    .rpns-dashboard__table-responsive {
        overflow: visible;
    }

    .rpns-dashboard-table {
        min-width: 0;
    }

    .rpns-dashboard-table thead {
        border: 0;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .rpns-dashboard-table,
    .rpns-dashboard-table tbody,
    .rpns-dashboard-table tr,
    .rpns-dashboard-table td {
        display: block;
        width: 100%;
    }

    .rpns-dashboard-table tbody {
        padding: 0.9rem;
    }

    .rpns-dashboard-table tbody tr {
        padding: 0.25rem 0;
        border-bottom: 1px solid rgba(214, 220, 232, 0.9);
    }

    .rpns-dashboard-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    .rpns-dashboard-table tbody tr:last-child {
        border-bottom: 0;
    }

    .rpns-dashboard-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        padding: 0.55rem 0;
        border-bottom: 0;
        font-size: 0.9rem;
    }

    .rpns-dashboard-table tbody td::before {
        content: attr(data-label);
        color: var(--rpns-color-maroon);
        font-family: var(--rpns-font-ui);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .rpns-header {
        --rpns-flag-strip-h: 25.57px;
        --rpns-header-bar-h: 111.33px;
    }

    .rpns-container {
        width: min(402px, calc(100% - 1.1rem));
    }

    .rpns-header__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 0;
        column-gap: 0.75rem;
    }

    .rpns-brand {
        align-items: center;
        gap: 0.55rem;
    }

    .rpns-brand__seal {
        width: 62px;
        height: 62px;
        align-self: center;
    }

    .rpns-brand__text {
        margin-top: 0;
        gap: 0;
    }

    .rpns-brand__title {
        font-family: var(--rpns-font-base);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.36;
        letter-spacing: 0.075em;
    }

    .rpns-brand__subtitle {
        font-size: 0.8125rem;
        line-height: 1;
        letter-spacing: 0.055em;
    }

    .rpns-menu-toggle.navbar-toggler {
        display: inline-block;
    }

    .rpns-mobile-nav {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(var(--rpns-flag-strip-h) + var(--rpns-header-bar-h));
        z-index: 20;
    }

    .rpns-mobile-nav.collapse:not(.show) {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .rpns-mobile-nav.collapsing {
        display: block;
        max-height: 380px;
        overflow: hidden;
        opacity: 1;
    }

    /* Once open, drop the cap: a 380px ceiling clipped the last items under
       increased text spacing / larger user font sizes (1.4.10, 1.4.12). The cap
       stays on .collapsing so the open/close transition still animates. */
    .rpns-mobile-nav.collapse.show {
        display: block;
        max-height: none;
        overflow: hidden;
        opacity: 1;
    }

    .rpns-mobile-nav__panel {
        width: min(402px, calc(100% - 1.1rem));
        margin: 0.2rem auto 0;
        padding: 0.7rem 0.9rem 0.9rem;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 0 0 0 22px;
        border-top: 1px solid rgba(255, 204, 0, 0.8);
    }

    .rpns-mobile-nav__link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.48rem 0;
        color: #ffffff;
        text-decoration: none;
        font-family: var(--rpns-font-ui);
        font-size: 0.875rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .rpns-mobile-nav__link:hover {
        color: #ffffff;
    }

    .rpns-mobile-nav__link--active {
        color: var(--rpns-color-gold);
    }

    .rpns-mobile-nav__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        font-size: 18px;
        line-height: 1;
    }

    .rpns-main {
        width: min(402px, 100%);
        border-radius: 0;
    }

    .rpns-page {
        padding-inline: 0.95rem;
    }

    .rpns-page__title {
        font-size: 18px;
        line-height: 1.33;
        letter-spacing: 0.083em;
    }

    .rpns-page__lead {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .rpns-card {
        border-radius: 12px;
    }

    .rpns-card__title {
        font-size: 17px;
    }

    .rpns-card__terms {
        font-size: 0.75rem;
    }

    .rpns-field__label {
        font-size: 0.6875rem;
        line-height: 2;
    }

    .rpns-field__error {
        font-size: 0.625rem;
    }

    .rpns-field__hint {
        font-size: 0.6875rem;
    }

    .rpns-form-control,
    .rpns-form-select {
        min-height: 42px;
        border-width: 1px;
        font-size: 0.6875rem;
    }

    .rpns-definition-list {
        grid-template-columns: 1fr;
    }

    .rpns-notification-request-card__meta {
        grid-template-columns: 1fr;
    }

    .rpns-inline-description__content {
        flex-direction: column;
    }

    .rpns-inline-description__actions {
        width: 100%;
    }

    .rpns-dashboard {
        gap: 1.4rem;
    }

    .rpns-page--dashboard {
        max-width: 100%;
    }

    .rpns-dashboard__header {
        padding-bottom: 1rem;
    }


    .rpns-dashboard__summary {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .rpns-dashboard__summary-status {
        padding: 0.95rem 1rem;
    }

    .rpns-dashboard__summary-copy {
        font-size: 1rem;
    }

    .rpns-dashboard__summary-actions {
        justify-content: stretch;
    }

    .rpns-dashboard__summary-actions .rpns-btn {
        width: 100%;
    }

    .rpns-dashboard__section {
        gap: 0.85rem;
    }

    .rpns-dashboard__section-title {
        font-size: 1.2rem;
    }

    .rpns-dashboard__section-copy {
        font-size: 0.82rem;
    }

    .rpns-dashboard__section-status {
        font-size: 0.8rem;
    }

    .rpns-dashboard-table thead th,
    .rpns-dashboard-table tbody td {
        padding: 0.8rem 0.75rem;
        font-size: 0.78rem;
    }

    .rpns-dashboard__pager {
        justify-content: flex-start;
    }

    .rpns-dashboard__pager .pagination {
        width: 100%;
    }

    .rpns-dashboard__pager .page-item {
        flex: 1 1 auto;
    }

    .rpns-dashboard__pager .page-link {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 42px;
        font-size: 0.84rem;
    }

    .rpns-note {
        padding: 0.9rem 1rem;
        font-size: 0.75rem;
    }

    .rpns-btn--submit {
        min-width: 185px;
        min-height: 36px;
        font-size: 0.6875rem;
    }

    .rpns-page--profile {
        max-width: 100%;
    }

    .rpns-profile-shell {
        gap: 1.4rem;
    }

    .rpns-profile-shell__header {
        padding-bottom: 1rem;
    }

    .rpns-profile-shell__title {
        font-size: 18px;
    }

    .rpns-profile-shell__subtitle {
        font-size: 0.8125rem;
    }

    .rpns-profile-shell__body {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .rpns-profile-shell__sidebar {
        position: static;
    }

    .rpns-profile-shell__breadcrumb {
        flex-wrap: wrap;
        margin-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .rpns-profile-nav {
        gap: 0.45rem;
    }

    .rpns-profile-nav__link {
        min-height: 2.7rem;
        padding: 0.55rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 0.5rem;
    }

    .rpns-profile-card__lead {
        margin-bottom: 1.25rem;
        font-size: 0.75rem;
    }

    .rpns-profile-card__title--plain {
        margin-bottom: 1.2rem;
        font-size: 18px;
    }

    .rpns-profile-current-field {
        grid-template-columns: minmax(0, 1fr) 54px;
    }

    .rpns-profile-current-field__status {
        border-radius: 0 0.75rem 0.75rem 0;
    }

    .rpns-profile-current-field__status svg {
        width: 22px;
        height: 22px;
    }

    .rpns-profile-terms {
        font-size: 0.75rem;
    }

    .rpns-profile-action-btn {
        min-width: 0;
        width: 100%;
        min-height: 42px;
        padding-inline: 1rem;
        font-size: 0.8125rem;
        gap: 0.55rem;
    }

    .rpns-profile-action-btn__icon svg {
        width: 20px;
        height: 20px;
    }

    .rpns-profile-toggle-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.9rem;
    }

    .rpns-profile-toggle-card__title {
        font-size: 0.8125rem;
    }

    .rpns-profile-toggle-card__meta {
        font-size: 0.6875rem;
    }

    .rpns-profile-switch {
        width: 100%;
        align-items: flex-start;
        min-width: 0;
    }

    .rpns-profile-switch__label {
        font-size: 0.6875rem;
    }

    .rpns-btn--outline {
        min-width: 55px;
        min-height: 27px;
        font-size: 0.6875rem;
        letter-spacing: 0.136em;
    }

    .rpns-btn--dark {
        min-width: 93px;
        min-height: 34px;
        font-size: 0.875rem;
    }

    .rpns-alert {
        border-radius: 12px;
        font-size: 0.6875rem;
    }

    .rpns-alert--notice {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .rpns-step-tracker {
        margin: 1rem auto 0.95rem;
        width: min(290px, 100%);
    }

    .rpns-step-tracker__label {
        font-size: 0.625rem;
        line-height: 2;
        letter-spacing: 0.075em;
    }

    .rpns-step-tracker__visual {
        width: 290px;
        max-width: 100%;
        height: 51.86px;
    }

    .rpns-step-tracker__bar {
        left: 0;
        top: 36.64px;
        width: 290px;
        height: 4.31px;
    }

    .rpns-step-tracker__icon {
        left: 33.6px;
        top: 26.68px;
        width: 25.18px;
        height: 25.18px;
    }

    .rpns-footer__inner {
        min-height: 88px;
        padding: 8px 0 12px;
        gap: 0.5rem;
    }

    .rpns-footer__logo img {
        width: 159px;
    }

    .rpns-footer__link {
        font-size: 0.5625rem;
        letter-spacing: 0.055em;
    }

    .rpns-footer__link--contact img {
        width: 13px;
        height: 13px;
    }
}

/* ==========================================================================
   Accessibility — WCAG 2.1 AA
   Appended last so these rules win over the earlier focus declarations they
   are correcting. Public site only; admin selectors are untouched.
   ========================================================================== */

/* 2.4.1 Bypass Blocks — the only visible change is while the link has focus. */
.rpns-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--rpns-color-surface);
    color: var(--rpns-color-maroon);
    font-family: var(--rpns-font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--rpns-color-maroon);
    border-radius: 0 0 12px 0;
}

.rpns-skip-link:focus {
    left: 0;
}

/* The skip target must not draw a focus ring when reached programmatically. */
.rpns-main:focus {
    outline: none;
}

/* 1.4.11 Non-text Contrast — focus indicators.
   Gold (#ffcc00) is 1.51:1 on white and 1.40:1 on the canvas, so a gold ring
   alone fails the 3:1 minimum everywhere it lands on a light surface. Bounding
   it with ink (18.88:1 on white) keeps the brand gold while guaranteeing a
   compliant edge on both sides. On the near-black header the gold already
   carries 10.27:1 and the ink ring is simply invisible, so one rule is safe
   for chrome and content alike. */
.rpns-btn:focus-visible,
.rpns-inline-description__help-btn:focus-visible,
.rpns-inline-description__icon-btn:focus-visible {
    outline: 3px solid var(--rpns-color-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 7px var(--rpns-color-ink);
}

/* Preserve the hover lift when a button is hovered and focused at once. */
.rpns-btn:hover:focus-visible {
    box-shadow: 0 0 0 7px var(--rpns-color-ink), 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* Text inputs, selects and the notification switches had no perceptible focus
   state: their :focus rule set border-color to the maroon they already were,
   leaving only a ~1.09:1 glow. Maroon is 7.37:1 on white. */
.rpns-form-control:focus-visible,
.rpns-form-select:focus-visible,
.rpns-profile-switch__input:focus-visible,
.rpns-check__input:focus-visible,
.rpns-inline-description__input:focus-visible {
    outline: 2px solid var(--rpns-color-maroon);
    outline-offset: 2px;
}

/* Pagination links were absent from every focus group. */
.rpns-dashboard__pager .page-link:focus-visible {
    outline: 2px solid var(--rpns-color-maroon);
    outline-offset: 2px;
    z-index: 1;
}

/* Keyboard-scrollable regions (2.1.1) get the same treatment as controls. */
.rpns-terms__body:focus-visible,
.rpns-dashboard__table-responsive:focus-visible,
.rpns-error-detail__stack:focus-visible {
    outline: 2px solid var(--rpns-color-maroon);
    outline-offset: 2px;
}

/* Registration stepper — replaces the three layout tables. The Bootstrap column
   classes still supply the grid, so the rendered layout is unchanged. */
/* Only the <ol> UA defaults are reset here. A blanket `margin: 0` would also
   cancel Bootstrap's .row negative inline margins and shift every column. */
.rpns-reg-step {
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

/* Reproduces the geometry of the <table>/<tr>/<td> this replaced. The item stays
   block-level so its content sits at the TOP of a stretched column, exactly as the
   <table> did — centring it here would float the shorter column's text when
   neighbouring columns wrap (visible at 375px). */
.rpns-reg-step__row {
    display: flex;
    align-items: center;
    gap: 0;
    /* Stands in for the table's border-spacing: 2px, so the block keeps its
       original height and the label keeps its original baseline. */
    padding-block: 1px;
}

/* 25px cell + the 1px cell padding the label <td> carried, so the label lands on
   its original x-position while the icon keeps its own. */
.rpns-reg-step__icon {
    flex: 0 0 26px;
    width: 26px;
    padding-left: 1px;
}

/* 2.3.3 — no @keyframes exist; this neutralises the transform-based motion and
   the layout-animating transition for users who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .rpns-btn,
    .rpns-profile-nav__link,
    .rpns-report-layout {
        transition: none;
    }

    .rpns-btn:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 4.9 Uppercase via CSS rather than literal caps in markup, so screen readers
   do not spell the label out letter by letter. */
.rpns-btn--caps {
    text-transform: uppercase;
}

/* 4.3 The inline-description live region was hard-coded .text-success, so save
   failures were announced in green. Colour now follows the state the JS sets. */
.rpns-inline-description__status[data-state="success"] {
    color: var(--rpns-color-success);
}

.rpns-inline-description__status[data-state="error"] {
    color: var(--rpns-color-danger);
}
