:root {
    --portal-ink: #172b24;
    --portal-muted: #718079;
    --portal-line: #e7ede9;
    --portal-green: #067b4b;
    --portal-green-deep: #075b3c;
    --portal-green-soft: #edf7f1;
    --portal-surface: #fff;
    --portal-canvas: #f6f8f7;
    --portal-sidebar: #102a21;
    --portal-sidebar-muted: #a2b4aa;
    --portal-shadow: 0 8px 24px rgba(31, 55, 43, 0.045);
}

[hidden] {
    display: none !important;
}

body.member-portal-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--portal-canvas);
    color: var(--portal-ink);
    font-family: "Inter", "Montserrat", sans-serif;
}

body.member-portal-page .site-header,
body.member-portal-page .site-footer,
body.member-portal-page .mobile-menu-overlay,
body.member-portal-page #wrapwrap > footer {
    display: none !important;
}

body.member-portal-page #wrapwrap,
body.member-portal-page #wrap {
    min-height: 100vh;
}

body.member-portal-page #wrap {
    margin: 0;
    padding: 0;
}

.naccima-member-portal {
    min-height: 100vh;
    font-size: 14px;
}

.naccima-member-portal button,
.naccima-member-portal input,
.naccima-member-portal select,
.naccima-member-portal textarea {
    font: inherit;
}

.naccima-member-portal button {
    color: inherit;
}

.portal-app {
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: 258px;
    flex-direction: column;
    padding: 25px 16px 17px;
    overflow-y: auto;
    background: var(--portal-sidebar);
    color: #fff;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 7px 30px;
    color: #fff;
    text-decoration: none;
}

.portal-brand img {
    width: 39px;
    height: 39px;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.portal-brand > span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.portal-brand strong {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.035em;
}

.portal-brand small {
    margin-top: 4px;
    color: #a8cabb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.portal-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.portal-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d8efe2;
    color: #14593e;
    font-size: 12px;
    font-weight: 700;
}

.portal-member-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.portal-member-info strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-member-info small {
    color: #a6c3b4;
    font-size: 10px;
}

.portal-member-chevron {
    color: #b3c8bd;
    font-size: 17px;
}

.portal-menu-label {
    margin: 0 11px 10px;
    color: #8ca99a;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.15em;
}

.portal-nav {
    display: grid;
    gap: 5px;
}

.portal-nav-link {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c0d0c7 !important;
    cursor: pointer;
    font-size: 12px !important;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}

.portal-nav-link > i {
    width: 18px;
    color: #a4bdb0;
    font-size: 16px;
    text-align: center;
}

.portal-nav-link:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #fff !important;
}

.portal-nav-link.is-active {
    background: #174e37;
    color: #fff !important;
    font-weight: 650;
}

.portal-nav-link.is-active > i {
    color: #90e1b4;
}

.portal-nav-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: #f4bd58;
}

.portal-sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.portal-help-card {
    padding: 15px 13px;
    border: 1px solid rgba(178, 230, 199, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.portal-help-icon {
    display: grid;
    width: 29px;
    height: 29px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 9px;
    background: rgba(123, 213, 160, 0.15);
    color: #9be3b8;
    font-size: 15px;
}

.portal-help-card > strong {
    display: block;
    font-size: 12px;
}

.portal-help-card p {
    margin: 6px 0 11px;
    color: #abc0b5;
    font-size: 10px;
    line-height: 1.5;
}

.portal-help-card > button {
    padding: 0;
    border: 0;
    background: none;
    color: #a7e6bd !important;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 650;
}

.portal-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 16px 2px 0;
    color: #a4b9ae;
    font-size: 9px;
}

.portal-sidebar-footer small {
    margin-left: auto;
    color: #829b8e;
    font-size: 9px;
}

.portal-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65d596;
    box-shadow: 0 0 0 3px rgba(101, 213, 150, 0.12);
}

.portal-main {
    min-height: 100vh;
    margin-left: 258px;
}

.portal-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    border-bottom: 1px solid var(--portal-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.portal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #89968f;
    font-size: 11px;
}

.portal-breadcrumb > i {
    color: #b3beb8;
    font-size: 9px;
}

.portal-breadcrumb strong {
    color: #273a31;
    font-size: 11px;
    font-weight: 650;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-preview-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #f0dfbd;
    border-radius: 20px;
    background: #fffaf0;
    color: #80642d;
    font-size: 9px;
    font-weight: 650;
}

.portal-preview-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eab54c;
}

.portal-icon-button {
    position: relative;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid #e9eeeb;
    border-radius: 10px;
    background: #fff;
    color: #4a5d52 !important;
    cursor: pointer;
    font-size: 16px;
}

.portal-unread-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #e76556;
}

.portal-header-divider {
    width: 1px;
    height: 28px;
    background: #e8eeea;
}

.portal-user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.portal-avatar-small {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.portal-user-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-user-label strong {
    color: #34473d;
    font-size: 10px;
    font-weight: 650;
}

.portal-user-label small {
    color: #8a9890;
    font-size: 9px;
}

.portal-user-menu > i {
    margin-left: 3px;
    color: #87968d;
    font-size: 9px;
}

.portal-mobile-menu {
    display: none;
}

.portal-header-dropdown {
    position: relative;
}

.portal-notification-popover {
    position: absolute;
    z-index: 50;
    top: 47px;
    right: -38px;
    width: 335px;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(21, 41, 31, 0.17);
}

.portal-popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 3px 11px;
    border-bottom: 1px solid #edf1ee;
}

.portal-popover-heading strong {
    font-size: 13px;
}

.portal-popover-heading span {
    color: var(--portal-green);
    font-size: 10px;
    font-weight: 650;
}

.portal-popover-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 3px;
    border: 0;
    border-bottom: 1px solid #f0f3f1;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.portal-popover-item > i {
    margin-top: 2px;
    color: var(--portal-green);
    font-size: 15px;
}

.portal-popover-item > span {
    display: grid;
    flex: 1;
    gap: 4px;
}

.portal-popover-item strong {
    font-size: 10px;
}

.portal-popover-item small {
    color: var(--portal-muted);
    font-size: 9px;
}

.portal-popover-item b {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: #2b9b66;
}

.portal-popover-all {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 0 2px;
    border: 0;
    background: #fff;
    color: var(--portal-green) !important;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 650;
}

.portal-content {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 25px 36px 20px;
}

.portal-preview-banner {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
    padding: 7px 11px;
    border: 1px solid #eadfbe;
    border-radius: 9px;
    background: #fffcf4;
    color: #715d31;
    font-size: 10px;
}

.portal-preview-banner > i {
    color: #b18b3f;
    font-size: 13px;
}

.portal-preview-banner > span {
    flex: 1;
}

.portal-preview-banner strong {
    font-weight: 700;
}

.portal-preview-banner label {
    margin: 0 0 0 8px;
    color: #84724d;
    font-size: 9px;
    font-weight: 650;
}

.portal-preview-banner select {
    height: 27px;
    padding: 0 25px 0 8px;
    border: 1px solid #ebddb7;
    border-radius: 6px;
    background: #fff;
    color: #5f512f;
    font-size: 9px;
}

.portal-view {
    display: none;
}

.portal-view.is-visible {
    display: block;
    animation: portal-fade-in 0.2s ease both;
}

@keyframes portal-fade-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}

.portal-page-heading h1 {
    margin: 0 0 5px;
    color: #1e3128;
    font-size: clamp(24px, 2.5vw, 31px);
    font-weight: 690;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.portal-page-heading h1 > span {
    color: #dda954;
    font-size: 19px;
}

.portal-page-heading > div > p:last-child {
    margin: 0;
    color: #78867e;
    font-size: 11px;
    line-height: 1.5;
}

.portal-eyebrow {
    margin: 0 0 7px;
    color: #819087;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.portal-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.17s ease, transform 0.17s ease, border-color 0.17s ease;
    white-space: nowrap;
}

.portal-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.portal-button-primary {
    background: var(--portal-green) !important;
    color: #fff !important;
}

.portal-button-primary:hover:not(:disabled) {
    background: #05673f !important;
}

.portal-button-secondary {
    border-color: #dfe8e2;
    background: #fff !important;
    color: #42564a !important;
}

.portal-button-secondary:hover:not(:disabled) {
    border-color: #bad4c4;
    background: #f9fcfa !important;
}

.portal-button-light {
    background: #fff !important;
    color: var(--portal-green-deep) !important;
}

.portal-button-danger {
    border-color: #f0d6d2;
    background: #fff !important;
    color: #ac4037 !important;
}

.portal-button:disabled {
    background: #cdd8d1 !important;
    color: #fff !important;
    cursor: not-allowed;
}

.portal-panel,
.portal-stat-card {
    min-width: 0;
    border: 1px solid #e8eeea;
    border-radius: 12px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.portal-panel {
    padding: 19px;
}

.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 14px;
}

.portal-stat-card {
    display: grid;
    min-height: 125px;
    align-content: start;
    justify-items: start;
    padding: 15px 17px;
}

.portal-stat-icon {
    display: inline-grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-size: 15px;
}

.portal-stat-icon.green,
.portal-activity-icon.green,
.portal-file-icon.green {
    background: #edf7f1;
    color: #188352;
}

.portal-stat-icon.blue,
.portal-activity-icon.blue {
    background: #edf4fd;
    color: #457cb6;
}

.portal-stat-icon.amber,
.portal-activity-icon.amber {
    background: #fff7e8;
    color: #be8b26;
}

.portal-stat-icon.red,
.portal-activity-icon.red {
    background: #fff0ee;
    color: #ca574d;
}

.portal-stat-label {
    margin-top: 10px;
    color: #839087;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.portal-stat-card > strong {
    margin-top: 4px;
    color: #283c31;
    font-size: 15px;
    font-weight: 700;
}

.portal-stat-card > small {
    margin-top: 3px;
    color: #819087;
    font-size: 9px;
}

.portal-dashboard-grid,
.portal-two-column,
.portal-doc-grid,
.portal-support-grid,
.portal-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.portal-dashboard-grid > .portal-panel {
    min-height: 205px;
}

.portal-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portal-panel-heading h2,
.portal-panel > h2 {
    margin: 0;
    color: #2a3e33;
    font-size: 14px;
    font-weight: 680;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.portal-panel-copy {
    margin: 9px 0 15px;
    color: #7b8981;
    font-size: 10px;
    line-height: 1.6;
}

.portal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.portal-status-badge > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-approved {
    background: #eaf6ef;
    color: #217c50;
}

.badge-renewal {
    background: #fff6e4;
    color: #a97720;
}

.badge-pending {
    background: #edf4fd;
    color: #4a77a6;
}

.badge-action {
    background: #fff0ed;
    color: #b3493f;
}

.portal-renewal-summary {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid #edf1ee;
}

.portal-renewal-summary > span {
    display: grid;
    gap: 5px;
}

.portal-renewal-summary small,
.portal-payment-detail-grid small,
.portal-reference-strip small,
.portal-answer-grid small {
    color: #89968e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.portal-renewal-summary strong {
    color: #273b30;
    font-size: 12px;
}

.portal-renewal-summary > button {
    margin-left: auto;
}

.portal-sponsor-progress {
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid #edf1ee;
}

.portal-progress-label {
    display: flex;
    justify-content: space-between;
    color: #405349;
    font-size: 9px;
}

.portal-progress-track {
    height: 6px;
    margin: 8px 0 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #eaf0ec;
}

.portal-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #25a06b;
}

.portal-text-button,
.portal-icon-link {
    border: 0;
    background: none;
    color: var(--portal-green) !important;
    cursor: pointer;
    font-size: 9px !important;
    font-weight: 650;
    text-decoration: none;
}

.portal-text-button:hover,
.portal-download-link:hover {
    text-decoration: underline;
}

.portal-action-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #edf1ee;
}

.portal-action-summary > span {
    color: #a7483f;
    font-size: 9px;
}

.portal-summary-emblem {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #edf7f1;
    color: #14814e;
    font-size: 17px;
}

.portal-summary-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 10px;
}

.portal-summary-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.portal-summary-list span {
    color: #849189;
    font-size: 9px;
}

.portal-summary-list strong {
    color: #34483d;
    font-size: 9px;
    font-weight: 650;
    text-align: right;
}

.portal-summary-list .portal-highlight {
    color: #a67a27;
}

.portal-dashboard-bottom > .portal-panel {
    min-height: 262px;
}

.portal-icon-link {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e7ede9;
    border-radius: 8px;
    color: #587063 !important;
    font-size: 12px !important;
}

.portal-journey {
    display: grid;
    gap: 0;
    margin-top: 15px;
}

.journey-step {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: flex-start;
    gap: 10px;
}

.journey-step:not(:last-child)::after {
    position: absolute;
    top: 23px;
    left: 9px;
    width: 1px;
    height: 21px;
    background: #dce6df;
    content: "";
}

.journey-step > span {
    z-index: 1;
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dce6df;
    border-radius: 50%;
    background: #fff;
    color: #98a89d;
    font-size: 9px;
}

.journey-step.is-done > span {
    border-color: #d0ecdc;
    background: #e8f6ee;
    color: #188253;
}

.journey-step.is-current > span {
    border-color: #b9ddc9;
    background: #edf7f1;
    color: #14814e;
}

.journey-step > div {
    display: grid;
    gap: 4px;
    padding-top: 1px;
}

.journey-step strong {
    color: #43564b;
    font-size: 9px;
    font-weight: 650;
}

.journey-step small {
    color: #89968e;
    font-size: 8px;
}

.portal-activity-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.portal-activity-row:last-child {
    border-bottom: 0;
}

.portal-activity-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-size: 13px;
}

.portal-activity-icon.violet {
    background: #f3effb;
    color: #8063aa;
}

.portal-activity-row > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 4px;
}

.portal-activity-row strong {
    color: #34483d;
    font-size: 9px;
}

.portal-activity-row small {
    color: #829087;
    font-size: 8px;
    line-height: 1.4;
}

.portal-activity-row .portal-time {
    color: #a0aaa4;
}

.portal-unread-indicator {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: #369565;
}

.portal-footer {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 17px 1px 4px;
    color: #99a49d;
    font-size: 9px;
}

.portal-footer > span {
    margin-right: auto;
}

.portal-footer a {
    color: #829087;
    text-decoration: none;
}

.portal-footer a:hover {
    color: var(--portal-green);
}

.portal-footer-separator {
    padding: 0 3px;
}

.portal-reference-strip {
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 65px);
    margin-bottom: 14px;
    padding: 15px 19px;
    border: 1px solid #e7ede9;
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--portal-shadow);
}

.portal-reference-strip > div {
    display: grid;
    gap: 5px;
}

.portal-reference-strip > div > strong {
    color: #33473c;
    font-size: 10px;
}

.portal-reference-strip > .portal-status-badge {
    margin-left: auto;
}

.portal-payment-confirmation {
    margin-bottom: 14px;
}

.portal-payment-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf1ee;
}

.portal-payment-detail-grid > div {
    display: grid;
    gap: 6px;
}

.portal-payment-detail-grid strong {
    color: #35493e;
    font-size: 10px;
}

.portal-two-column > .portal-panel {
    min-height: 245px;
}

.portal-timeline {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.portal-timeline-item {
    position: relative;
    display: flex;
    min-height: 48px;
    gap: 11px;
}

.portal-timeline-item:not(:last-child)::after {
    position: absolute;
    top: 23px;
    left: 10px;
    width: 1px;
    height: 26px;
    background: #dce6df;
    content: "";
}

.portal-timeline-item > span {
    z-index: 1;
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dce6df;
    border-radius: 50%;
    background: #fff;
    color: #87988e;
    font-size: 9px;
}

.portal-timeline-item.is-complete > span {
    border-color: #d0ecdc;
    background: #e8f6ee;
    color: #188253;
}

.portal-timeline-item.is-current > span {
    border-color: #d7e7f7;
    background: #edf4fd;
    color: #4a77a6;
}

.portal-timeline-item > div {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 2px 0 12px;
}

.portal-timeline-item strong {
    color: #394d42;
    font-size: 9px;
}

.portal-timeline-item small {
    color: #87948c;
    font-size: 8px;
}

.portal-decision-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
    padding: 11px;
    border: 1px solid #d9eddf;
    border-radius: 9px;
    background: #f4fbf6;
}

.portal-decision-icon {
    color: #228453;
    font-size: 17px;
}

.portal-decision-card > div {
    display: grid;
    gap: 4px;
}

.portal-decision-card strong {
    color: #286344;
    font-size: 9px;
}

.portal-decision-card small {
    color: #71877a;
    font-size: 8px;
    line-height: 1.5;
}

.portal-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 20px;
    background: #f0f5f2;
    color: #557061;
    font-size: 8px;
    font-weight: 650;
    white-space: nowrap;
}

.portal-sponsor-row {
    display: grid;
    grid-template-columns: 34px minmax(100px, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
}

.portal-sponsor-avatar {
    width: 32px;
    height: 32px;
    background: #e9f1fc;
    color: #496d9b;
    font-size: 9px;
}

.portal-sponsor-avatar.avatar-violet {
    background: #f1edfa;
    color: #795aa3;
}

.portal-sponsor-info {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.portal-sponsor-info strong {
    overflow: hidden;
    color: #3c5045;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-sponsor-info small,
.portal-sponsor-date {
    color: #87948c;
    font-size: 8px;
}

.portal-sponsor-row > .portal-sponsor-date {
    grid-column: 2 / 4;
    margin-top: -3px;
}

.portal-sponsor-actions {
    display: flex;
    grid-column: 2 / 4;
    gap: 13px;
    margin-top: -3px;
}

.portal-footnote {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 13px 0 0;
    color: #7d8b82;
    font-size: 9px;
    line-height: 1.5;
}

.portal-footnote i {
    color: #6d9b80;
}

.portal-answers-panel {
    margin: 14px 0;
}

.portal-answers-panel .portal-panel-heading {
    margin-bottom: 14px;
}

.portal-answers-panel .portal-panel-heading .portal-button {
    margin-top: 4px;
}

.portal-answer-group {
    border-top: 1px solid #edf1ee;
}

.portal-answer-group summary {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.portal-answer-group summary::-webkit-details-marker,
.portal-faq summary::-webkit-details-marker {
    display: none;
}

.portal-answer-group summary > span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #405449;
    font-size: 10px;
    font-weight: 650;
}

.portal-answer-group summary > span > i {
    color: #729180;
    font-size: 13px;
}

.portal-answer-group summary > i {
    color: #87958d;
    font-size: 10px;
    transition: transform 0.18s ease;
}

.portal-answer-group[open] summary > i {
    transform: rotate(180deg);
}

.portal-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding: 1px 0 15px 23px;
}

.portal-answer-grid > div {
    display: grid;
    gap: 5px;
}

.portal-answer-grid strong {
    color: #45594d;
    font-size: 9px;
    font-weight: 550;
}

.portal-correction-panel {
    margin: 14px 0;
    border-color: #f0dfcc;
}

.portal-correction-note {
    margin: 15px 0;
    padding: 11px 13px;
    border-left: 3px solid #daa449;
    border-radius: 0 7px 7px 0;
    background: #fffaf2;
    color: #6f5a39;
    font-size: 10px;
    line-height: 1.6;
}

.portal-correction-note small {
    display: block;
    margin-top: 5px;
    color: #9a8666;
    font-size: 8px;
}

.portal-flagged-item {
    display: grid;
    grid-template-columns: 33px minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f1ec;
}

.portal-flag-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 8px;
    background: #fff3e7;
    color: #ae7427;
    font-size: 14px;
}

.portal-flagged-item > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.portal-flagged-item strong {
    color: #465448;
    font-size: 9px;
}

.portal-flagged-item small {
    color: #8a9289;
    font-size: 8px;
}

.portal-flag-done {
    color: #1b8752;
    font-size: 9px;
    white-space: nowrap;
}

.portal-resubmit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
}

.portal-resubmit-footer > span {
    color: #879188;
    font-size: 9px;
}

.portal-membership-locked {
    display: grid;
    min-height: 345px;
    align-content: center;
    justify-items: center;
    padding: 35px;
    text-align: center;
}

.portal-lock-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 19px;
    place-items: center;
    border: 1px solid #e2eee6;
    border-radius: 17px;
    background: #f2f8f4;
    color: #32845b;
    font-size: 23px;
}

.portal-membership-locked h2 {
    max-width: 520px;
    margin: 5px 0 0;
    font-size: 18px;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

.portal-membership-locked > p:not(.portal-eyebrow) {
    max-width: 470px;
    margin: 11px 0 18px;
    color: #7d8982;
    font-size: 10px;
    line-height: 1.6;
}

.portal-membership-locked > .portal-button {
    margin-top: 16px;
}

.portal-membership-hero {
    position: relative;
    display: flex;
    min-height: 215px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 25px 31px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(115deg, #10452f, #0c6843 62%, #178253);
    color: #fff;
}

.portal-membership-hero::after {
    position: absolute;
    top: -95px;
    right: 140px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 70px rgba(255, 255, 255, 0.025);
    content: "";
}

.portal-membership-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.portal-membership-hero .portal-eyebrow {
    color: #b6dcc6;
}

.portal-membership-hero .portal-status-badge {
    margin-bottom: 8px;
}

.portal-membership-hero h2 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: clamp(19px, 2.3vw, 25px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.portal-membership-hero p:not(.portal-eyebrow) {
    max-width: 470px;
    margin: 0 0 15px;
    color: #d5e7dc;
    font-size: 10px;
    line-height: 1.55;
}

.portal-membership-seal {
    position: relative;
    z-index: 1;
    display: grid;
    width: 137px;
    min-height: 144px;
    flex: 0 0 auto;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 70px 70px 18px 18px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-align: center;
}

.portal-membership-seal img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.portal-membership-seal span,
.portal-membership-seal small {
    color: #c5e5d1;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.portal-membership-seal strong {
    font-size: 10px;
}

.portal-membership-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-membership-stats .portal-stat-card {
    min-height: 95px;
}

.portal-membership-stats .portal-stat-label {
    margin-top: 0;
}

.portal-renew-card .portal-panel-copy {
    margin-bottom: 16px;
}

.portal-renew-detail {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-top: 1px solid #edf1ee;
    color: #78877e;
    font-size: 9px;
}

.portal-renew-detail strong {
    color: #354a3e;
    font-size: 10px;
}

.portal-full-button {
    width: 100%;
    margin-top: 12px;
}

.portal-fine-print {
    display: block;
    margin-top: 9px;
    color: #92a097;
    font-size: 8px;
    text-align: center;
}

.portal-certificate-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    padding: 15px;
    border: 1px solid #e2ede6;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9fcfa, #f2f8f4);
}

.portal-cert-logo {
    display: grid;
    width: 41px;
    height: 41px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--portal-green);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.portal-certificate-preview > div {
    display: grid;
    gap: 4px;
}

.portal-certificate-preview strong {
    color: #28704b;
    font-size: 8px;
    letter-spacing: 0.14em;
}

.portal-certificate-preview small {
    color: #86938b;
    font-size: 8px;
}

.portal-certificate-preview b {
    color: #42564a;
    font-size: 9px;
}

.portal-outstanding-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
    padding: 15px 18px;
    border-color: #f0e2c7;
    background: #fffdf8;
}

.portal-outstanding-card > div {
    flex: 1;
}

.portal-outstanding-card h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
}

.portal-outstanding-card p:not(.portal-eyebrow) {
    margin: 4px 0 0;
    color: #847e6b;
    font-size: 9px;
}

.portal-outstanding-card > strong {
    color: #485549;
    font-size: 14px;
}

.portal-payment-table-panel {
    overflow: hidden;
    padding-bottom: 0;
}

.portal-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 14px;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.portal-table th {
    padding: 10px 12px;
    border-top: 1px solid #edf1ee;
    border-bottom: 1px solid #edf1ee;
    background: #fafcfb;
    color: #829087;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-align: left;
}

.portal-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1ee;
    color: #6b7b71;
    font-size: 9px;
}

.portal-table td > strong {
    display: block;
    color: #3a4d42;
    font-size: 9px;
    font-weight: 600;
}

.portal-inline-link,
.portal-download-link {
    display: block;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--portal-green) !important;
    cursor: pointer;
    font-size: 8px !important;
}

.portal-inline-link i {
    margin-left: 3px;
}

.portal-download-link {
    margin-top: 0;
    font-weight: 650;
}

.portal-download-link i {
    margin-left: 3px;
}

.portal-cell-subtext {
    display: block;
    margin-top: 5px;
    color: #8d9992;
    font-size: 8px;
}

.portal-muted {
    color: #a3ada7;
}

.portal-breakdown-row td {
    padding: 0 12px 12px;
    background: #f9fbfa;
}

.portal-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    padding: 11px;
    border-radius: 7px;
    background: #fff;
    color: #7a887f;
    font-size: 8px;
}

.portal-breakdown span {
    display: flex;
    gap: 8px;
}

.portal-breakdown strong {
    color: #4c5e53;
}

.portal-breakdown-total {
    color: #2f4638 !important;
    font-weight: 700;
}

.portal-table-footer {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    color: #929e96;
    font-size: 8px;
}

.portal-table-footer .portal-text-button {
    font-size: 8px !important;
}

.portal-doc-grid {
    align-items: start;
}

.portal-document-row {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 30px 30px;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1ee;
}

.portal-document-row:last-child {
    border-bottom: 0;
}

.portal-file-icon {
    display: grid;
    width: 31px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #fff0ef;
    color: #c75c51;
    font-size: 15px;
}

.portal-file-icon.image {
    background: #edf4fd;
    color: #4c7eb2;
}

.portal-file-icon.warning {
    background: #fff5e7;
    color: #ab762d;
}

.portal-document-row > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.portal-document-row strong {
    overflow: hidden;
    color: #3d5045;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
}

.portal-document-row small {
    color: #89958e;
    font-size: 8px;
}

.portal-empty-note {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #84938a;
    font-size: 10px;
}

.portal-empty-note i {
    color: #a5b6aa;
    font-size: 25px;
}

.portal-banner {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    padding: 12px 14px;
    border: 1px solid #e2eae4;
    border-radius: 10px;
    background: #f4f9f5;
}

.portal-banner > i {
    color: #42835c;
    font-size: 16px;
}

.portal-banner > span {
    display: grid;
    flex: 1;
    gap: 4px;
}

.portal-banner strong {
    color: #42614d;
    font-size: 9px;
}

.portal-banner small {
    color: #7e9184;
    font-size: 8px;
}

.portal-pending-banner {
    border-color: #eaddb8;
    background: #fffaf0;
}

.portal-pending-banner > i {
    color: #a47d32;
}

.portal-pending-banner strong {
    color: #775f2c;
}

.portal-pending-banner small {
    color: #917e56;
}

.portal-pending-banner .portal-text-button {
    color: #8c5b3b !important;
}

.portal-profile-form {
    margin-bottom: 14px;
}

.portal-profile-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #86948b;
    font-size: 8px;
}

.portal-profile-state.is-editing {
    color: #24794b;
}

.portal-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 17px;
}

.portal-profile-grid label,
.portal-support-form > label,
.portal-dialog-fields label {
    display: grid;
    gap: 6px;
    color: #68786e;
    font-size: 8px;
    font-weight: 650;
}

.portal-profile-grid .profile-field-wide {
    grid-column: 1 / -1;
}

.portal-profile-grid input,
.portal-dialog-fields input,
.portal-support-form select,
.portal-support-form textarea {
    width: 100%;
    min-height: 37px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #e4ebe6;
    border-radius: 7px;
    outline: none;
    background: #f9fbfa;
    color: #43564a;
    font-size: 9px;
}

.portal-profile-grid input:not([readonly]),
.portal-dialog-fields input:focus,
.portal-support-form select:focus,
.portal-support-form textarea:focus {
    border-color: #85b99a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 143, 88, 0.08);
}

.portal-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf1ee;
}

.portal-contact-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
}

.portal-contact-row:last-child {
    border-bottom: 0;
}

.portal-contact-row > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 4px;
}

.portal-contact-row strong {
    color: #3c5044;
    font-size: 9px;
}

.portal-contact-row small,
.portal-contact-email {
    color: #86938b;
    font-size: 8px;
}

.portal-contact-email {
    text-align: right;
}

.portal-support-grid {
    align-items: start;
}

.portal-contact-card,
.portal-office-address {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
    color: inherit;
    text-decoration: none;
}

.portal-contact-card > span:nth-child(2),
.portal-office-address > span {
    display: grid;
    flex: 1;
    gap: 5px;
}

.portal-contact-card small,
.portal-office-address small {
    color: #87948c;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portal-contact-card strong,
.portal-office-address strong {
    color: #43574b;
    font-size: 9px;
}

.portal-contact-card > i:last-child,
.portal-office-address > i {
    color: #718d7b;
}

.portal-contact-card:hover strong {
    color: var(--portal-green);
}

.portal-support-form {
    display: grid;
    gap: 13px;
}

.portal-support-form select {
    appearance: auto;
    background-color: #fff;
}

.portal-support-form textarea {
    resize: vertical;
}

.portal-attachment-label {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
}

.portal-attachment-label .portal-button {
    justify-self: start;
}

.portal-attachment-label small {
    color: #89968d;
    font-size: 8px;
    font-weight: 450;
}

.portal-form-success {
    margin: 0;
    padding: 10px;
    border-radius: 7px;
    background: #edf7f1;
    color: #33734e;
    font-size: 9px;
}

.portal-faq-panel {
    margin-bottom: 15px;
}

.portal-faq {
    border-top: 1px solid #edf1ee;
}

.portal-faq summary {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #42564a;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    list-style: none;
}

.portal-faq summary i {
    color: #819087;
    transition: transform 0.18s ease;
}

.portal-faq[open] summary i {
    transform: rotate(180deg);
}

.portal-faq > p {
    margin: 0;
    padding: 0 25px 14px 0;
    color: #78877e;
    font-size: 9px;
    line-height: 1.65;
}

.portal-notifications-page {
    padding-top: 9px;
}

.portal-notification-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 7px;
}

.portal-notification-day > span {
    color: #77877d;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.portal-notification-day small {
    color: #98a29c;
    font-size: 8px;
}

.portal-notification-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 9px;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.portal-notification-row.is-unread {
    background: #f8fcf9;
}

.portal-notification-row > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 5px;
}

.portal-notification-row strong {
    color: #354a3e;
    font-size: 10px;
}

.portal-notification-row small {
    color: #77877e;
    font-size: 9px;
    line-height: 1.5;
}

.portal-notification-row .portal-time {
    color: #9ba59f;
    font-size: 8px;
}

.portal-notification-row > b {
    width: 7px;
    height: 7px;
    margin: 5px 3px 0 0;
    border-radius: 50%;
    background: #359666;
}

.portal-notification-row:not(.is-unread) > b {
    display: none;
}

.portal-settings-grid > .portal-panel {
    min-height: 175px;
}

.portal-setting-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf1ee;
}

.portal-setting-value > span {
    display: grid;
    gap: 6px;
}

.portal-setting-value small {
    color: #849188;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.portal-setting-value strong {
    color: #3e5347;
    font-size: 10px;
}

.portal-signout-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-signout-panel > div {
    display: grid;
    flex: 1;
    gap: 4px;
}

.portal-signout-panel > div > strong {
    color: #42564a;
    font-size: 10px;
}

.portal-signout-panel > div > small {
    color: #849188;
    font-size: 8px;
}

.portal-toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    display: flex;
    max-width: min(390px, calc(100vw - 32px));
    align-items: flex-start;
    gap: 9px;
    padding: 13px 15px;
    border: 1px solid #d9e9de;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(24, 45, 32, 0.18);
    color: #486052;
    font-size: 10px;
    line-height: 1.45;
}

.portal-toast > i {
    color: #278756;
}

.portal-dialog {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    padding: 25px;
    border: 1px solid #e6ede8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(15, 36, 24, 0.25);
    color: var(--portal-ink);
}

.portal-dialog::backdrop {
    background: rgba(15, 32, 23, 0.47);
    backdrop-filter: blur(3px);
}

.portal-dialog form {
    position: relative;
}

.portal-dialog-close {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #e8eeea;
    border-radius: 9px;
    background: #fff;
    color: #718078;
    cursor: pointer;
    font-size: 11px;
}

.portal-dialog-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 11px;
    background: #edf7f1;
    color: #25804f;
    font-size: 17px;
}

.portal-dialog h2 {
    margin: 0;
    color: #293e32;
    font-size: 19px;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.portal-dialog-copy {
    margin: 8px 0 16px;
    color: #78867d;
    font-size: 10px;
    line-height: 1.6;
}

.portal-dialog-fields {
    display: grid;
    gap: 12px;
}

.portal-dialog-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 15px 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: #fff9ed;
    color: #8b7342;
    font-size: 8px;
    line-height: 1.5;
}

.portal-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid #edf1ee;
}

.portal-mobile-scrim {
    display: none;
}

@media (min-width: 1500px) {
    .portal-content {
        padding-right: 48px;
        padding-left: 48px;
    }
}

@media (max-width: 1100px) {
    .portal-sidebar {
        width: 232px;
    }

    .portal-main {
        margin-left: 232px;
    }

    .portal-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .portal-header {
        padding-right: 24px;
        padding-left: 24px;
    }

    .portal-stat-card {
        padding-right: 13px;
        padding-left: 13px;
    }

    .portal-renewal-summary {
        gap: 11px;
    }

    .portal-renewal-summary > button {
        padding: 0 9px;
    }
}

@media (max-width: 820px) {
    .portal-sidebar {
        z-index: 45;
        width: 265px;
        transform: translateX(-103%);
        transition: transform 0.22s ease;
    }

    .portal-sidebar.is-open {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-mobile-menu {
        display: grid;
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid #e5ece7;
        border-radius: 9px;
        background: #fff;
        color: #4b5f52;
        cursor: pointer;
        font-size: 19px;
    }

    .portal-header {
        gap: 12px;
        padding: 0 18px;
    }

    .portal-mobile-scrim:not([hidden]) {
        position: fixed;
        z-index: 40;
        inset: 0;
        display: block;
        background: rgba(10, 29, 19, 0.36);
    }
}

@media (max-width: 650px) {
    .portal-header {
        height: 61px;
        padding: 0 13px;
    }

    .portal-breadcrumb {
        gap: 6px;
        font-size: 9px;
    }

    .portal-breadcrumb strong {
        font-size: 9px;
    }

    .portal-header-actions {
        gap: 8px;
    }

    .portal-preview-indicator {
        padding: 5px 7px;
        font-size: 8px;
    }

    .portal-user-label,
    .portal-user-menu > i,
    .portal-header-divider {
        display: none;
    }

    .portal-icon-button {
        width: 32px;
        height: 32px;
    }

    .portal-notification-popover {
        position: fixed;
        top: 66px;
        right: 10px;
        width: min(335px, calc(100vw - 20px));
    }

    .portal-content {
        padding: 15px 13px 18px;
    }

    .portal-preview-banner {
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 19px;
        font-size: 9px;
    }

    .portal-preview-banner > span {
        flex-basis: calc(100% - 25px);
    }

    .portal-preview-banner label {
        margin-left: 22px;
    }

    .portal-preview-banner select {
        margin-left: auto;
    }

    .portal-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .portal-page-heading h1 {
        font-size: 25px;
    }

    .portal-page-heading .portal-button {
        min-height: 34px;
    }

    .portal-stat-grid,
    .portal-dashboard-grid,
    .portal-two-column,
    .portal-doc-grid,
    .portal-support-grid,
    .portal-settings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .portal-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-stat-card {
        min-height: 115px;
        padding: 13px;
    }

    .portal-dashboard-grid > .portal-panel,
    .portal-dashboard-bottom > .portal-panel {
        min-height: auto;
    }

    .portal-panel {
        padding: 15px;
    }

    .portal-renewal-summary {
        flex-wrap: wrap;
    }

    .portal-renewal-summary > button {
        width: 100%;
        margin: 2px 0 0;
    }

    .portal-reference-strip {
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 13px;
    }

    .portal-reference-strip > .portal-status-badge {
        margin-left: 0;
    }

    .portal-payment-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-payment-detail-grid > .portal-button {
        grid-column: 1 / -1;
    }

    .portal-answer-grid {
        gap: 12px;
        padding-left: 0;
    }

    .portal-flagged-item {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .portal-flagged-item > .portal-button {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .portal-flag-done {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .portal-resubmit-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-resubmit-footer .portal-button {
        width: 100%;
    }

    .portal-membership-locked {
        min-height: 320px;
        padding: 26px 18px;
    }

    .portal-membership-locked h2 {
        font-size: 16px;
    }

    .portal-membership-hero {
        min-height: 215px;
        padding: 22px 19px;
    }

    .portal-membership-seal {
        width: 90px;
        min-height: 110px;
        padding: 7px;
    }

    .portal-membership-seal img {
        width: 33px;
        height: 33px;
    }

    .portal-membership-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-outstanding-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .portal-outstanding-card > div {
        flex-basis: calc(100% - 55px);
    }

    .portal-outstanding-card > strong {
        margin-left: 40px;
    }

    .portal-outstanding-card > .portal-button {
        margin-left: auto;
    }

    .portal-document-row {
        grid-template-columns: 33px minmax(0, 1fr) 28px 28px;
        gap: 6px;
    }

    .portal-contact-email {
        display: none;
    }

    .portal-notification-row {
        gap: 9px;
        padding-right: 3px;
        padding-left: 3px;
    }

    .portal-signout-panel {
        flex-wrap: wrap;
    }

    .portal-signout-panel > a {
        margin-left: 43px;
    }

    .portal-footer {
        flex-wrap: wrap;
        gap: 11px;
        font-size: 8px;
    }

    .portal-footer > span {
        width: 100%;
    }

    .portal-toast {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 420px) {
    .portal-user-menu .portal-avatar-small {
        width: 30px;
        height: 30px;
    }

    .portal-preview-indicator {
        font-size: 0;
    }

    .portal-preview-indicator span {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }

    .portal-stat-card > strong {
        font-size: 13px;
    }

    .portal-membership-seal {
        width: 70px;
        min-height: 91px;
    }

    .portal-membership-seal span,
    .portal-membership-seal small {
        font-size: 6px;
    }

    .portal-membership-hero h2 {
        font-size: 18px;
    }

    .portal-membership-hero p:not(.portal-eyebrow) {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .naccima-member-portal *,
    .naccima-member-portal *::before,
    .naccima-member-portal *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
