/* SAALT Hub v0.8.0
   All styling is scoped to .saalt-hub to avoid leaking into the host theme. */

.saalt-hub {
    --saalt-navy: #0b2f3a;
    --saalt-teal: #078b9a;
    --saalt-teal-dark: #056f7a;
    --saalt-mint: #eaf7f7;
    --saalt-bg: #f7fafb;
    --saalt-surface: #ffffff;
    --saalt-text: #17313a;
    --saalt-muted: #6c7f86;
    --saalt-border: #dde8eb;
    --saalt-success: #218a56;
    --saalt-danger: #b44343;
    --saalt-shadow: 0 12px 35px rgba(12, 46, 56, 0.07);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--saalt-text);
}

.saalt-hub-body {
    margin: 0;
    background: #f7fafb;
}

.saalt-hub *,
.saalt-hub *::before,
.saalt-hub *::after {
    box-sizing: border-box;
}

.saalt-hub a { color: inherit; }

.saalt-hub__topbar {
    min-height: 82px;
    display: grid;
    grid-template-columns: 210px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 15px 32px;
    background: var(--saalt-surface);
    border-bottom: 1px solid var(--saalt-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.saalt-hub__brand,
.saalt-hub__brand-logo,
.saalt-hub__brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.saalt-hub__brand-logo .custom-logo {
    width: auto;
    max-width: 175px;
    max-height: 52px;
}

.saalt-hub__brand-text {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--saalt-navy);
}

.saalt-hub__primary-nav {
    justify-self: center;
    display: flex;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--saalt-border);
    border-radius: 999px;
    background: #fff;
}

.saalt-hub__primary-nav a,
.saalt-hub__primary-nav span {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--saalt-muted);
    white-space: nowrap;
}

.saalt-hub__primary-nav .is-active {
    color: var(--saalt-teal-dark);
    background: var(--saalt-mint);
    font-weight: 700;
}

.saalt-hub__account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.saalt-hub__avatar,
.saalt-hub__profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--saalt-mint);
    color: var(--saalt-teal-dark);
    font-weight: 800;
}

.saalt-hub__avatar { width: 36px; height: 36px; }
.saalt-hub__profile-avatar { width: 68px; height: 68px; font-size: 24px; }

.saalt-hub__logout {
    color: var(--saalt-muted) !important;
    text-decoration: none;
}

.saalt-hub__main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 32px 56px;
}

.saalt-hub__page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.saalt-hub__page-heading h1 {
    margin: 5px 0 8px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.05;
    color: var(--saalt-navy);
}

.saalt-hub__page-heading p,
.saalt-hub__card p,
.saalt-hub__hero-card p {
    color: var(--saalt-muted);
    line-height: 1.55;
}

.saalt-hub__eyebrow {
    color: var(--saalt-teal-dark);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.saalt-hub__status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.saalt-hub__status-pill--foundation {
    color: var(--saalt-teal-dark);
    background: var(--saalt-mint);
}

.saalt-hub__hero-card,
.saalt-hub__card,
.saalt-hub__stats article {
    background: var(--saalt-surface);
    border: 1px solid var(--saalt-border);
    border-radius: 18px;
    box-shadow: var(--saalt-shadow);
}

.saalt-hub__hero-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 26px;
    margin-bottom: 24px;
}

.saalt-hub__profile-block {
    display: flex;
    gap: 18px;
    align-items: center;
}

.saalt-hub__profile-block h2 {
    margin: 2px 0 5px;
    font-size: 24px;
    color: var(--saalt-navy);
}

.saalt-hub__profile-block p { margin: 0; }
.saalt-hub__muted { color: var(--saalt-muted); font-size: 13px; }

.saalt-hub__hero-stat {
    min-height: 82px;
    padding-left: 22px;
    border-left: 1px solid var(--saalt-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.saalt-hub__hero-stat span { color: var(--saalt-muted); font-size: 13px; }
.saalt-hub__hero-stat strong { color: var(--saalt-navy); font-size: 16px; }

.saalt-hub__grid { display: grid; gap: 20px; }
.saalt-hub__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saalt-hub__grid--2 { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); }

.saalt-hub__card { padding: 24px; }
.saalt-hub__card h3 { color: var(--saalt-navy); margin: 10px 0 8px; font-size: 19px; }

.saalt-hub__card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--saalt-mint);
    color: var(--saalt-teal-dark);
    font-weight: 800;
}

.saalt-hub__coming-soon {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f4f5;
    color: var(--saalt-muted);
    font-size: 11px;
    font-weight: 700;
}

.saalt-hub__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.saalt-hub__stats article { padding: 20px; }
.saalt-hub__stats span { display: block; color: var(--saalt-muted); font-size: 13px; }
.saalt-hub__stats strong { display: block; color: var(--saalt-navy); font-size: 30px; margin: 6px 0; }
.saalt-hub__stats small { color: var(--saalt-muted); }

.saalt-hub__checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 11px;
}

.saalt-hub__checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--saalt-muted);
}

.saalt-hub__checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--saalt-border);
    border-radius: 999px;
}

.saalt-hub__checklist .is-done { color: var(--saalt-text); }
.saalt-hub__checklist .is-done::before {
    border-color: var(--saalt-teal);
    background: var(--saalt-teal);
    box-shadow: inset 0 0 0 4px #fff;
}

.saalt-hub__footer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 28px;
    display: flex;
    justify-content: space-between;
    color: #8a9aa0;
    font-size: 12px;
}

.saalt-hub-auth-body { min-height: 100vh; }

.saalt-hub-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background: linear-gradient(135deg, #f7fafb 0%, #edf7f7 100%);
}

.saalt-hub-auth__card {
    width: min(100%, 460px);
    padding: 38px;
    background: #fff;
    border: 1px solid var(--saalt-border);
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(12, 46, 56, .10);
}

.saalt-hub-auth__brand { margin-bottom: 30px; }
.saalt-hub-auth__brand .custom-logo { max-width: 190px; max-height: 75px; width: auto; height: auto; }
.saalt-hub-auth__brand strong { font-size: 34px; color: var(--saalt-navy); }
.saalt-hub-auth__card h1 { margin: 7px 0 8px; color: var(--saalt-navy); font-size: 34px; }
.saalt-hub-auth__card > p { color: var(--saalt-muted); margin: 0 0 24px; }

.saalt-hub-form { display: grid; gap: 17px; margin-top: 22px; }
.saalt-hub-form label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--saalt-text); }
.saalt-hub-form input[type="text"],
.saalt-hub-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--saalt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--saalt-text);
    font: inherit;
    outline: none;
}

.saalt-hub-form input:focus {
    border-color: var(--saalt-teal);
    box-shadow: 0 0 0 3px rgba(7, 139, 154, .12);
}

.saalt-hub-form__check { display: flex; align-items: center; gap: 8px; }
.saalt-hub-form__check span { margin: 0 !important; font-weight: 500 !important; color: var(--saalt-muted) !important; }

.saalt-hub__button {
    min-height: 48px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.saalt-hub__button--primary { background: var(--saalt-teal); color: #fff !important; }
.saalt-hub__button--primary:hover { background: var(--saalt-teal-dark); }

.saalt-hub-auth__link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--saalt-teal-dark) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.saalt-hub__notice {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 13px;
}
.saalt-hub__notice--success { background: #eaf7ef; color: #236840; }
.saalt-hub__notice--error { background: #fff0f0; color: #913838; }

@media (max-width: 1050px) {
    .saalt-hub__topbar { grid-template-columns: 1fr auto; }
    .saalt-hub__primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; overflow-x: auto; max-width: 100%; }
    .saalt-hub__hero-card { grid-template-columns: 1fr 1fr; }
    .saalt-hub__profile-block { grid-column: 1 / -1; }
    .saalt-hub__hero-stat:first-of-type { border-left: 0; padding-left: 0; }
    .saalt-hub__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .saalt-hub__topbar { padding: 14px 18px; gap: 12px; }
    .saalt-hub__account-name { display: none; }
    .saalt-hub__main { padding: 28px 18px 42px; }
    .saalt-hub__page-heading { display: block; }
    .saalt-hub__status-pill { margin-top: 10px; }
    .saalt-hub__hero-card,
    .saalt-hub__grid--3,
    .saalt-hub__grid--2,
    .saalt-hub__stats { grid-template-columns: 1fr; }
    .saalt-hub__hero-stat { border-left: 0; border-top: 1px solid var(--saalt-border); padding: 18px 0 0; }
    .saalt-hub__stats { gap: 12px; }
    .saalt-hub__footer { padding: 0 18px 22px; }
    .saalt-hub-auth__card { padding: 28px 22px; }
}


/* v0.2.0 — live shadow migration UI */
.saalt-hub__status-pill--shadow {
    color: #075866;
    background: #dff4f5;
    border: 1px solid #b9e2e5;
}

.saalt-hub__status-pill--success {
    color: #1d6d45;
    background: #e6f6ed;
}

.saalt-hub__status-pill--warning {
    color: #7a5a12;
    background: #fff6d9;
}

.saalt-hub__notice--warning {
    background: #fff8df;
    color: #74580f;
}

.saalt-hub__safety-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px 22px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #bfe1e4;
    border-radius: 14px;
    background: #eef9f9;
}

.saalt-hub__safety-banner strong {
    color: var(--saalt-teal-dark);
    white-space: nowrap;
}

.saalt-hub__safety-banner span {
    color: var(--saalt-muted);
    line-height: 1.5;
}

.saalt-hub__card-heading--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.saalt-hub__mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}

.saalt-hub__mini-stats > div {
    padding: 14px;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: #fbfdfd;
}

.saalt-hub__mini-stats span,
.saalt-hub__sync-meta span {
    display: block;
    color: var(--saalt-muted);
    font-size: 12px;
}

.saalt-hub__mini-stats strong,
.saalt-hub__sync-meta strong {
    display: block;
    margin-top: 5px;
    color: var(--saalt-navy);
    font-size: 18px;
}

.saalt-hub__subheading {
    margin: 20px 0 10px;
    color: var(--saalt-navy);
    font-size: 14px;
}

.saalt-hub__table-wrap {
    width: 100%;
    overflow-x: auto;
}

.saalt-hub__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.saalt-hub__table th,
.saalt-hub__table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--saalt-border);
    text-align: left;
    vertical-align: middle;
}

.saalt-hub__table th {
    color: var(--saalt-navy);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f7fafb;
}

.saalt-hub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.saalt-hub__actions form { margin: 0; }

.saalt-hub__button--secondary {
    color: var(--saalt-teal-dark) !important;
    background: #fff;
    border: 1px solid var(--saalt-teal);
}

.saalt-hub__button--secondary:hover {
    background: var(--saalt-mint);
}

.saalt-hub__checklist--compact {
    gap: 9px;
    font-size: 13px;
}

.saalt-hub__sync-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__card--spaced {
    margin-top: 20px;
}

.saalt-hub__section-gap {
    margin-top: 20px;
}

.saalt-hub__definition-list {
    margin: 18px 0 0;
}

.saalt-hub__definition-list > div {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr);
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__definition-list > div:last-child { border-bottom: 0; }
.saalt-hub__definition-list dt { color: var(--saalt-muted); }
.saalt-hub__definition-list dd { margin: 0; color: var(--saalt-navy); font-weight: 700; }

@media (max-width: 900px) {
    .saalt-hub__mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saalt-hub__safety-banner { display: block; }
    .saalt-hub__safety-banner span { display: block; margin-top: 6px; }
}

@media (max-width: 620px) {
    .saalt-hub__mini-stats { grid-template-columns: 1fr; }
    .saalt-hub__card-heading--split { display: block; }
    .saalt-hub__card-heading--split .saalt-hub__status-pill { margin-top: 10px; }
    .saalt-hub__definition-list > div { grid-template-columns: 1fr; gap: 4px; }
    .saalt-hub__actions { display: grid; }
    .saalt-hub__actions form,
    .saalt-hub__actions .saalt-hub__button { width: 100%; }
}
.saalt-hub__sync-meta small {
    display: block;
    margin-top: 7px;
    color: var(--saalt-muted);
    line-height: 1.45;
}


/* v0.3.0 — operational member profiles + member administration */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.saalt-hub__page-heading--compact {
    align-items: center;
}

.saalt-hub__page-actions,
.saalt-hub__card-actions,
.saalt-hub__form-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.saalt-hub__page-actions form { margin: 0; }
.saalt-hub__card-actions { margin-top: 20px; }

.saalt-hub__grid--2-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saalt-hub__member-identity-card,
.saalt-hub__member-record-hero {
    display: grid;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 24px 28px;
    background: var(--saalt-surface);
    border: 1px solid var(--saalt-border);
    border-radius: 18px;
    box-shadow: var(--saalt-shadow);
}

.saalt-hub__member-identity-card {
    grid-template-columns: minmax(280px, 1.3fr) minmax(0, 1.7fr);
}

.saalt-hub__profile-block--large {
    min-width: 0;
}

.saalt-hub__profile-block--large .saalt-hub__profile-avatar,
.saalt-hub__member-cell--hero .saalt-hub__profile-avatar {
    width: 76px;
    height: 76px;
    font-size: 28px;
}

.saalt-hub__identity-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.saalt-hub__identity-title h2 {
    margin: 0;
    color: var(--saalt-navy);
    font-size: 25px;
}

.saalt-hub__profile-block--large p,
.saalt-hub__member-cell--hero p {
    margin: 5px 0 0;
    color: var(--saalt-muted);
}

.saalt-hub__identity-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--saalt-border);
}

.saalt-hub__identity-metrics > div {
    min-height: 80px;
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.saalt-hub__identity-metrics > div + div {
    border-left: 1px solid var(--saalt-border);
}

.saalt-hub__identity-metrics span,
.saalt-hub__member-record-hero > div > span {
    color: var(--saalt-muted);
    font-size: 12px;
}

.saalt-hub__identity-metrics strong,
.saalt-hub__member-record-hero > div > strong {
    color: var(--saalt-navy);
    font-size: 15px;
}

.saalt-hub__member-record-hero > div > small {
    color: var(--saalt-muted);
    font-size: 11px;
    line-height: 1.35;
}

.saalt-hub__identity-metrics small {
    color: var(--saalt-muted);
    font-size: 11px;
    line-height: 1.35;
}

.saalt-hub__dashboard-layout {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.5fr) minmax(230px, .8fr);
    gap: 20px;
    align-items: start;
}

.saalt-hub__card--profile-details {
    grid-column: span 2;
}

.saalt-hub__card--payments {
    grid-column: span 2;
}

.saalt-hub__quick-actions-card {
    grid-column: span 1;
}

.saalt-hub__card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.saalt-hub__card-title-row h3 {
    margin: 4px 0 4px;
}

.saalt-hub__card-title-row p {
    margin: 0;
    font-size: 13px;
}

.saalt-hub__inline-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}

.saalt-hub__inline-status--success {
    color: #1d6d45;
    background: #e6f6ed;
}

.saalt-hub__inline-status--muted {
    color: #63767d;
    background: #eff3f4;
}

.saalt-hub__definition-list--profile > div {
    grid-template-columns: 130px minmax(0, 1fr);
}

.saalt-hub__definition-list-bio dd {
    line-height: 1.55;
    font-weight: 500 !important;
}

.saalt-hub__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.saalt-hub__tags span {
    padding: 6px 10px;
    border: 1px solid var(--saalt-teal);
    border-radius: 999px;
    color: var(--saalt-teal-dark);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.saalt-hub__availability {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__availability strong {
    display: block;
    color: var(--saalt-navy);
    font-size: 13px;
}

.saalt-hub__availability ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--saalt-muted);
    font-size: 13px;
    line-height: 1.65;
}

.saalt-hub__directory-state {
    margin: 18px 0 8px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--saalt-mint);
    font-size: 12px;
}

.saalt-hub__text-link {
    color: var(--saalt-teal-dark) !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.saalt-hub__quick-actions {
    display: grid;
    margin-top: 12px;
}

.saalt-hub__quick-actions > a,
.saalt-hub__quick-actions > span {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--saalt-border);
    text-decoration: none;
    font-size: 13px;
}

.saalt-hub__quick-actions > :last-child { border-bottom: 0; }
.saalt-hub__quick-actions b { font-size: 22px; font-weight: 400; color: var(--saalt-teal); }
.saalt-hub__quick-actions .is-disabled { color: var(--saalt-muted); }
.saalt-hub__quick-actions .is-disabled small { font-size: 10px; }

.saalt-hub__profile-form input[type="text"],
.saalt-hub__profile-form input[type="email"],
.saalt-hub__profile-form input[type="search"],
.saalt-hub__profile-form select,
.saalt-hub__profile-form textarea,
.saalt-hub__member-filters input,
.saalt-hub__member-filters select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--saalt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--saalt-text);
    font: inherit;
    outline: none;
}

.saalt-hub__profile-form textarea { resize: vertical; }

.saalt-hub__profile-form input:focus,
.saalt-hub__profile-form select:focus,
.saalt-hub__profile-form textarea:focus,
.saalt-hub__member-filters input:focus,
.saalt-hub__member-filters select:focus {
    border-color: var(--saalt-teal);
    box-shadow: 0 0 0 3px rgba(7, 139, 154, .10);
}

.saalt-hub__profile-form input:disabled {
    background: #f4f6f7;
    color: var(--saalt-muted);
}

.saalt-hub__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.saalt-hub__form-grid--single { grid-template-columns: 1fr; }

.saalt-hub__form-grid label > span,
.saalt-hub__fieldset legend {
    display: block;
    margin-bottom: 6px;
    color: var(--saalt-text);
    font-size: 12px;
    font-weight: 800;
}

.saalt-hub__form-grid label > small {
    display: block;
    margin-top: 6px;
    color: var(--saalt-muted);
    font-size: 11px;
    line-height: 1.4;
}

.saalt-hub__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.saalt-hub__checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.saalt-hub__check-option,
.saalt-hub__toggle-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: #fbfdfd;
}

.saalt-hub__check-option input,
.saalt-hub__toggle-option input {
    margin-top: 3px;
}

.saalt-hub__toggle-option span {
    display: grid;
    gap: 4px;
}

.saalt-hub__toggle-option strong {
    color: var(--saalt-navy);
    font-size: 13px;
}

.saalt-hub__toggle-option small {
    color: var(--saalt-muted);
    font-size: 11px;
    line-height: 1.45;
}

.saalt-hub__form-footer {
    justify-content: flex-end;
    margin-top: 18px;
}

.saalt-hub__member-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px minmax(220px, .65fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.saalt-hub__member-filters .saalt-hub__button {
    min-height: 46px;
}

.saalt-hub__member-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
}

.saalt-hub__member-cell strong,
.saalt-hub__member-cell small {
    display: block;
}

.saalt-hub__member-cell small {
    margin-top: 3px;
    color: var(--saalt-muted);
    font-size: 11px;
}

.saalt-hub__avatar--small {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.saalt-hub__table-action {
    text-align: right !important;
    white-space: nowrap;
}

.saalt-hub__empty-cell {
    padding: 28px !important;
    color: var(--saalt-muted);
    text-align: center !important;
}

.saalt-hub__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.saalt-hub__pagination a {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--saalt-border);
    border-radius: 9px;
    text-decoration: none;
    color: var(--saalt-muted);
    font-size: 12px;
    font-weight: 800;
}

.saalt-hub__pagination a.is-current {
    color: #fff;
    border-color: var(--saalt-teal);
    background: var(--saalt-teal);
}

.saalt-hub__member-record-hero {
    grid-template-columns: minmax(300px, 1.55fr) repeat(4, minmax(110px, .5fr));
}

.saalt-hub__member-record-hero > div:not(:first-child) {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-left: 20px;
    border-left: 1px solid var(--saalt-border);
}

.saalt-hub__member-cell--hero {
    min-width: 0;
}

@media (max-width: 1150px) {
    .saalt-hub__member-identity-card { grid-template-columns: 1fr; }
    .saalt-hub__identity-metrics { border-left: 0; border-top: 1px solid var(--saalt-border); padding-top: 16px; }
    .saalt-hub__dashboard-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saalt-hub__card--profile-details,
    .saalt-hub__card--payments { grid-column: span 1; }
    .saalt-hub__member-record-hero { grid-template-columns: 1fr 1fr; }
    .saalt-hub__member-cell--hero { grid-column: 1 / -1; }
    .saalt-hub__member-record-hero > div:nth-child(2) { border-left: 0; padding-left: 0; }
    .saalt-hub__member-filters { grid-template-columns: 1fr 1fr; }
    .saalt-hub__filter-search { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .saalt-hub__grid--2-even,
    .saalt-hub__dashboard-layout,
    .saalt-hub__identity-metrics,
    .saalt-hub__form-grid,
    .saalt-hub__checkbox-grid,
    .saalt-hub__member-record-hero,
    .saalt-hub__member-filters {
        grid-template-columns: 1fr;
    }
    .saalt-hub__card--profile-details,
    .saalt-hub__card--payments,
    .saalt-hub__quick-actions-card,
    .saalt-hub__filter-search {
        grid-column: auto;
    }
    .saalt-hub__identity-metrics > div + div {
        border-left: 0;
        border-top: 1px solid var(--saalt-border);
    }
    .saalt-hub__member-record-hero > div:not(:first-child) {
        border-left: 0;
        border-top: 1px solid var(--saalt-border);
        padding: 14px 0 0;
    }
    .saalt-hub__page-actions,
    .saalt-hub__form-footer {
        width: 100%;
    }
    .saalt-hub__page-actions .saalt-hub__button,
    .saalt-hub__page-actions form,
    .saalt-hub__page-actions form .saalt-hub__button,
    .saalt-hub__form-footer .saalt-hub__button {
        width: 100%;
    }
}

.saalt-hub__reconcile-strip {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: #fbfdfd;
}
.saalt-hub__reconcile-strip span:not(.saalt-hub__status-pill) { display: block; color: var(--saalt-muted); font-size: 11px; }
.saalt-hub__reconcile-strip strong { display: block; margin-top: 3px; color: var(--saalt-navy); font-size: 18px; }
@media (max-width: 620px) {
    .saalt-hub__reconcile-strip { grid-template-columns: 1fr 1fr; }
    .saalt-hub__reconcile-strip .saalt-hub__status-pill { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   v0.4.0 — Native EFT / invoices / protected POP workflow
   ========================================================= */

.saalt-hub__public-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 32px;
    background: var(--saalt-surface);
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__public-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.saalt-hub__main--public {
    max-width: 1120px;
}

.saalt-hub__public-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px 42px;
    color: var(--saalt-muted);
    font-size: 12px;
}

.saalt-hub__public-form-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px;
}

.saalt-hub__public-heading {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.saalt-hub__form-section + .saalt-hub__form-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__form-section-heading {
    margin-bottom: 18px;
}

.saalt-hub__form-section-heading h2 {
    margin: 5px 0 0;
    color: var(--saalt-navy);
    font-size: 22px;
}

.saalt-hub__field--full {
    grid-column: 1 / -1;
}

.saalt-hub__membership-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.saalt-hub__membership-option {
    position: relative;
    cursor: pointer;
}

.saalt-hub__membership-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.saalt-hub__membership-option > span {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 17px 18px;
    border: 1px solid var(--saalt-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.saalt-hub__membership-option strong {
    color: var(--saalt-navy);
    font-size: 14px;
    line-height: 1.35;
}

.saalt-hub__membership-option b {
    color: var(--saalt-teal-dark);
    font-size: 18px;
}

.saalt-hub__membership-option input:checked + span {
    border-color: var(--saalt-teal);
    background: var(--saalt-mint);
    box-shadow: 0 0 0 2px rgba(7, 139, 154, .08);
}

.saalt-hub__membership-option input:focus-visible + span {
    outline: 3px solid rgba(7, 139, 154, .2);
    outline-offset: 2px;
}

.saalt-hub__check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    color: var(--saalt-text);
    font-size: 13px;
}

.saalt-hub__test-email-toggle {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f0dda7;
}

.saalt-hub__public-result {
    max-width: 760px;
    margin: 50px auto;
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--saalt-border);
    border-radius: 20px;
    box-shadow: var(--saalt-shadow);
}

.saalt-hub__public-result--wide {
    max-width: 880px;
}

.saalt-hub__public-result h1 {
    margin: 8px 0 12px;
    color: var(--saalt-navy);
    font-size: clamp(30px, 5vw, 42px);
}

.saalt-hub__public-result > p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--saalt-muted);
    line-height: 1.6;
}

.saalt-hub__result-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #eaf7ef;
    color: var(--saalt-success);
    font-size: 26px;
    font-weight: 900;
}

.saalt-hub__result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.saalt-hub__upload-card {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 24px;
    text-align: left;
}

.saalt-hub__upload-card h2 {
    margin-top: 0;
    color: var(--saalt-navy);
}

.saalt-hub__file-field {
    display: block;
    margin: 20px 0;
}

.saalt-hub__file-field > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--saalt-navy);
}

.saalt-hub__file-field input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--saalt-border);
    border-radius: 12px;
    background: var(--saalt-bg);
}

.saalt-hub__stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.saalt-hub__stats-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.saalt-hub__stat-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--saalt-border);
    border-radius: 16px;
    box-shadow: var(--saalt-shadow);
}

.saalt-hub__stat-card span {
    display: block;
    color: var(--saalt-muted);
    font-size: 12px;
}

.saalt-hub__stat-card strong {
    display: block;
    margin-top: 9px;
    color: var(--saalt-navy);
    font-size: 28px;
}

.saalt-hub__table-subline {
    display: block;
    margin-top: 4px;
    color: var(--saalt-muted);
    font-size: 11px;
}

.saalt-hub__button--danger {
    color: #9c3030 !important;
    background: #fff3f3;
    border-color: #e8b7b7 !important;
}

.saalt-hub__review-form label > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--saalt-navy);
}

.saalt-hub__review-form textarea {
    width: 100%;
}

.saalt-hub__review-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.saalt-hub__settings-list > div,
.saalt-hub__settings-state {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__settings-list span,
.saalt-hub__settings-state span {
    color: var(--saalt-text);
}

.saalt-hub__settings-list strong,
.saalt-hub__settings-state strong {
    color: var(--saalt-navy);
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .saalt-hub__stats-grid--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .saalt-hub__public-topbar {
        padding: 14px 18px;
    }
    .saalt-hub__main--public {
        padding: 28px 18px 44px;
    }
    .saalt-hub__public-footer {
        padding: 0 18px 32px;
    }
    .saalt-hub__membership-options,
    .saalt-hub__stats-grid,
    .saalt-hub__stats-grid--five {
        grid-template-columns: 1fr;
    }
    .saalt-hub__public-form-card,
    .saalt-hub__public-result {
        padding: 22px;
    }
    .saalt-hub__result-actions,
    .saalt-hub__review-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .saalt-hub__result-actions .saalt-hub__button,
    .saalt-hub__review-actions .saalt-hub__button {
        width: 100%;
        justify-content: center;
    }
}
.saalt-hub__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* v0.5.0 payment settings */
.saalt-hub__settings-subheading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--saalt-bg);
}

.saalt-hub__settings-subheading strong {
    color: var(--saalt-navy);
}

.saalt-hub__settings-subheading span,
.saalt-hub__form label small,
.saalt-hub__muted-note {
    color: var(--saalt-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* v0.7.0 live-cutover refinements */
.saalt-hub__payment-options .saalt-hub__membership-option > span {
    min-height: 118px;
}
.saalt-hub__payment-options .saalt-hub__membership-option small {
    display: block;
    color: var(--saalt-muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

/* =========================================================
   v0.7.1 — live UI polish + progressive Join SAALT step form
   ========================================================= */

.saalt-hub__button {
    border-radius: 14px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.saalt-hub__button:focus-visible {
    outline: 3px solid rgba(7, 139, 154, .18);
    outline-offset: 2px;
}

.saalt-hub__button--primary:hover,
.saalt-hub__button--secondary:hover {
    transform: translateY(-1px);
}

.saalt-hub__form-grid input[type="text"],
.saalt-hub__form-grid input[type="email"],
.saalt-hub__form-grid input[type="search"],
.saalt-hub__form-grid input[type="tel"],
.saalt-hub__form-grid input[type="number"],
.saalt-hub__form-grid select,
.saalt-hub__form-grid textarea,
.saalt-hub__filter-bar input[type="text"],
.saalt-hub__filter-bar input[type="search"],
.saalt-hub__filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: #fff;
    color: var(--saalt-text);
    font: inherit;
    outline: none;
}

.saalt-hub__form-grid textarea {
    min-height: 116px;
    resize: vertical;
}

.saalt-hub__form-grid input:focus,
.saalt-hub__form-grid select:focus,
.saalt-hub__form-grid textarea:focus,
.saalt-hub__filter-bar input:focus,
.saalt-hub__filter-bar select:focus {
    border-color: var(--saalt-teal);
    box-shadow: 0 0 0 3px rgba(7, 139, 154, .10);
}

/* Consistent admin filters. Avoid oversized filter buttons when fewer filters exist. */
.saalt-hub__filter-bar,
.saalt-hub__member-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.saalt-hub__filter-bar > input[type="text"],
.saalt-hub__filter-bar > input[type="search"],
.saalt-hub__filter-bar > .saalt-hub__filter-search,
.saalt-hub__member-filters > .saalt-hub__filter-search {
    flex: 1 1 340px;
    min-width: 240px;
}

.saalt-hub__filter-bar > select,
.saalt-hub__filter-bar > label:not(.saalt-hub__filter-search),
.saalt-hub__member-filters > label:not(.saalt-hub__filter-search) {
    flex: 0 1 220px;
    min-width: 180px;
}

.saalt-hub__filter-bar > .saalt-hub__button,
.saalt-hub__member-filters > .saalt-hub__button {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 48px;
}

.saalt-hub__filter-clear,
.saalt-hub__member-filters > .saalt-hub__text-link {
    flex: 0 0 auto;
    padding: 10px 4px;
    white-space: nowrap;
}

/* Join SAALT progressive stepper. */
.saalt-hub__step-form {
    overflow: hidden;
}

.saalt-hub__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 34px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__step-indicator {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    color: var(--saalt-muted);
    font: inherit;
    cursor: default;
}

.saalt-hub__step-indicator:not(:disabled) {
    cursor: pointer;
}

.saalt-hub__step-indicator span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border: 1px solid var(--saalt-border);
    background: #fff;
    color: var(--saalt-muted);
    font-size: 13px;
    font-weight: 800;
}

.saalt-hub__step-indicator b {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.saalt-hub__step-indicator.is-active,
.saalt-hub__step-indicator.is-complete {
    color: var(--saalt-teal-dark);
}

.saalt-hub__step-indicator.is-active span,
.saalt-hub__step-indicator.is-complete span {
    border-color: var(--saalt-teal);
    background: var(--saalt-mint);
    color: var(--saalt-teal-dark);
}

.saalt-hub__step-indicator.is-active span {
    background: var(--saalt-teal);
    color: #fff;
}

.saalt-hub__stepper-line {
    width: clamp(22px, 5vw, 72px);
    height: 1px;
    background: var(--saalt-border);
}

.saalt-hub__step[hidden],
.saalt-hub__renewal-choice[hidden] {
    display: none !important;
}

.saalt-hub__step {
    animation: saalt-step-in .18s ease-out;
}

@keyframes saalt-step-in {
    from { opacity: .35; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.saalt-hub__form-section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--saalt-muted);
    font-size: 13px;
    line-height: 1.55;
}

.saalt-hub__step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__step-actions--end {
    justify-content: flex-end;
}

.saalt-hub__step-actions .saalt-hub__button {
    min-width: 150px;
}

.saalt-hub__renewal-choice {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__renewal-choice .saalt-hub__test-email-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 760px) {
    .saalt-hub__stepper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    .saalt-hub__step-indicator b { display: none; }
    .saalt-hub__stepper-line { min-width: 22px; width: 22px; }
    .saalt-hub__filter-bar,
    .saalt-hub__member-filters { align-items: stretch; }
    .saalt-hub__filter-bar > *,
    .saalt-hub__member-filters > * { flex: 1 1 100% !important; min-width: 0 !important; }
    .saalt-hub__step-actions { flex-direction: column-reverse; align-items: stretch; }
    .saalt-hub__step-actions .saalt-hub__button { width: 100%; }
}

/* =========================================================
   v0.7.2 — self-contained UI hardening
   The host site previously had global `button` / `[type=submit]`
   rules in Customizer CSS. These scoped !important declarations
   deliberately protect SAALT Hub controls from those globals.
   ========================================================= */

.saalt-hub button.saalt-hub__button,
.saalt-hub input.saalt-hub__button,
.saalt-hub a.saalt-hub__button {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.saalt-hub button.saalt-hub__button--primary,
.saalt-hub input.saalt-hub__button--primary,
.saalt-hub a.saalt-hub__button--primary {
    background: var(--saalt-teal) !important;
    border: 1px solid var(--saalt-teal) !important;
    color: #fff !important;
}

.saalt-hub button.saalt-hub__button--primary:hover,
.saalt-hub input.saalt-hub__button--primary:hover,
.saalt-hub a.saalt-hub__button--primary:hover {
    background: var(--saalt-teal-dark) !important;
    border-color: var(--saalt-teal-dark) !important;
}

.saalt-hub button.saalt-hub__button--secondary,
.saalt-hub input.saalt-hub__button--secondary,
.saalt-hub a.saalt-hub__button--secondary {
    background: #fff !important;
    border: 1px solid var(--saalt-teal) !important;
    color: var(--saalt-teal-dark) !important;
}

.saalt-hub button.saalt-hub__button--secondary:hover,
.saalt-hub input.saalt-hub__button--secondary:hover,
.saalt-hub a.saalt-hub__button--secondary:hover {
    background: var(--saalt-mint) !important;
}

.saalt-hub button.saalt-hub__button--danger,
.saalt-hub input.saalt-hub__button--danger,
.saalt-hub a.saalt-hub__button--danger {
    background: #fff3f3 !important;
    border: 1px solid #e8b7b7 !important;
    color: #9c3030 !important;
}

/* Reset step indicator buttons so host button styles can never turn
   the progress tracker into full-width coloured CTA blocks. */
.saalt-hub button.saalt-hub__step-indicator {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--saalt-muted) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.saalt-hub button.saalt-hub__step-indicator.is-active,
.saalt-hub button.saalt-hub__step-indicator.is-complete {
    color: var(--saalt-teal-dark) !important;
}

.saalt-hub__public-form-card {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(24px, 4vw, 38px);
}

.saalt-hub__public-heading {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
}

.saalt-hub__stepper {
    width: min(100%, 720px);
    margin: 0 auto 34px;
    padding: 2px 0 26px;
}

.saalt-hub__step-indicator span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    box-shadow: 0 4px 14px rgba(12, 46, 56, .06);
}

.saalt-hub__step-indicator b {
    color: inherit;
    font-size: 12px;
}

.saalt-hub__stepper-line {
    flex: 1 1 58px;
    max-width: 72px;
    min-width: 28px;
}

.saalt-hub__step-actions {
    margin-top: 28px;
}

.saalt-hub__step-actions .saalt-hub__button {
    min-width: 142px !important;
}

.saalt-hub__checkout-summary {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--saalt-border);
    border-radius: 14px;
    background: var(--saalt-border);
}

.saalt-hub__checkout-summary > div {
    min-width: 0;
    padding: 15px 16px;
    background: #fff;
}

.saalt-hub__checkout-summary span,
.saalt-hub__checkout-summary strong {
    display: block;
}

.saalt-hub__checkout-summary span {
    margin-bottom: 5px;
    color: var(--saalt-muted);
    font-size: 11px;
}

.saalt-hub__checkout-summary strong {
    color: var(--saalt-navy);
    font-size: 13px;
    line-height: 1.35;
}

/* Admin filter controls remain compact even when the host site forces
   submit buttons to width:100%. */
.saalt-hub .saalt-hub__filter-bar > button.saalt-hub__button,
.saalt-hub .saalt-hub__member-filters > button.saalt-hub__button,
.saalt-hub .saalt-hub__filter-bar > input.saalt-hub__button,
.saalt-hub .saalt-hub__member-filters > input.saalt-hub__button {
    width: auto !important;
    min-width: 108px !important;
    margin: 0 !important;
}

.saalt-hub__platform-card .saalt-hub__mini-stats--compact {
    margin-bottom: 0;
}

.saalt-hub__settings-disclosure,
.saalt-hub__legacy-panel {
    overflow: hidden;
}

.saalt-hub__settings-disclosure {
    margin-top: 20px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__settings-disclosure > summary,
.saalt-hub__legacy-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 2px 2px;
    color: var(--saalt-navy);
}

.saalt-hub__settings-disclosure > summary::-webkit-details-marker,
.saalt-hub__legacy-summary::-webkit-details-marker {
    display: none;
}

.saalt-hub__settings-disclosure > summary span:first-child,
.saalt-hub__legacy-summary > span:first-child {
    display: grid;
    gap: 3px;
}

.saalt-hub__settings-disclosure summary small,
.saalt-hub__legacy-summary small {
    color: var(--saalt-muted);
    font-size: 12px;
    font-weight: 400;
}

.saalt-hub__disclosure-chevron {
    font-size: 22px;
    transition: transform .15s ease;
}

.saalt-hub__settings-disclosure[open] .saalt-hub__disclosure-chevron {
    transform: rotate(180deg);
}

.saalt-hub__settings-disclosure-body,
.saalt-hub__legacy-body {
    padding-top: 18px;
}

.saalt-hub__legacy-summary {
    padding: 0;
}

.saalt-hub__legacy-panel[open] .saalt-hub__legacy-summary {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__legacy-body {
    padding-top: 20px;
}

/* Protect native form controls from broad host theme rules. */
.saalt-hub .saalt-hub__form-grid input[type="text"],
.saalt-hub .saalt-hub__form-grid input[type="email"],
.saalt-hub .saalt-hub__form-grid input[type="search"],
.saalt-hub .saalt-hub__form-grid input[type="tel"],
.saalt-hub .saalt-hub__form-grid input[type="number"],
.saalt-hub .saalt-hub__form-grid input[type="password"],
.saalt-hub .saalt-hub__form-grid select,
.saalt-hub .saalt-hub__form-grid textarea,
.saalt-hub .saalt-hub__filter-bar input,
.saalt-hub .saalt-hub__filter-bar select {
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--saalt-text) !important;
}

@media (max-width: 800px) {
    .saalt-hub__checkout-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .saalt-hub button.saalt-hub__button,
    .saalt-hub input.saalt-hub__button,
    .saalt-hub a.saalt-hub__button,
    .saalt-hub__step-actions .saalt-hub__button {
        width: 100% !important;
    }

    .saalt-hub__stepper {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
        overflow: visible;
    }

    .saalt-hub button.saalt-hub__step-indicator {
        flex: 0 0 auto;
    }

    .saalt-hub__stepper-line {
        min-width: 14px;
        max-width: none;
    }

    .saalt-hub__checkout-summary {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v0.7.3 — live UI final polish
   ========================================================= */
.saalt-hub button.saalt-hub__step-indicator {
    gap: 12px !important;
    padding: 5px 6px !important;
}
.saalt-hub button.saalt-hub__step-indicator span {
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 6px !important;
    margin: 0 2px 0 0 !important;
    line-height: 40px !important;
    text-align: center !important;
}
.saalt-hub button.saalt-hub__step-indicator b {
    padding-inline: 1px !important;
}
@media (max-width: 760px) {
    .saalt-hub button.saalt-hub__step-indicator {
        gap: 6px !important;
        padding: 4px !important;
    }
    .saalt-hub button.saalt-hub__step-indicator span {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
        line-height: 38px !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   v0.8.0 — Directory of Expertise + Email Notifications
   ========================================================= */
.saalt-hub .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.saalt-hub__inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.saalt-hub__directory-search-card {
    margin-bottom: 24px;
}

.saalt-hub__directory-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) minmax(180px, .8fr) minmax(190px, .9fr) auto auto;
    gap: 12px;
    align-items: center;
}

.saalt-hub__directory-filters input,
.saalt-hub__directory-filters select {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid var(--saalt-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--saalt-text) !important;
    font: inherit !important;
}

.saalt-hub__directory-filters .saalt-hub__button {
    width: auto !important;
    min-width: 100px !important;
    margin: 0 !important;
}

.saalt-hub__directory-clear {
    white-space: nowrap;
}

.saalt-hub__directory-count {
    margin-top: 16px;
    color: var(--saalt-muted);
    font-size: 13px;
}

.saalt-hub__directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.saalt-hub__directory-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 22px;
    border: 1px solid var(--saalt-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--saalt-shadow);
}

.saalt-hub__directory-card-head,
.saalt-hub__directory-profile-identity {
    display: flex;
    gap: 16px;
    align-items: center;
}

.saalt-hub__directory-card-head h2,
.saalt-hub__directory-profile-identity h2 {
    margin: 0 0 4px;
    color: var(--saalt-navy);
    font-size: 19px;
    line-height: 1.2;
}

.saalt-hub__directory-card-head p,
.saalt-hub__directory-card-head small,
.saalt-hub__directory-profile-identity p,
.saalt-hub__directory-profile-identity small {
    display: block;
    margin: 0;
    color: var(--saalt-muted);
    line-height: 1.45;
}

.saalt-hub__tags--directory {
    margin-top: 18px;
}

.saalt-hub__directory-location {
    margin: 16px 0 0 !important;
    color: var(--saalt-muted);
    font-size: 13px;
}

.saalt-hub__directory-card-actions {
    margin-top: auto;
    padding-top: 20px;
}

.saalt-hub__directory-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr);
    gap: 20px;
}

.saalt-hub__profile-avatar--xl {
    width: 84px;
    height: 84px;
    font-size: 30px;
    flex: 0 0 84px;
}

.saalt-hub__directory-profile-identity {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--saalt-border);
}

.saalt-hub__directory-profile-identity strong {
    display: block;
    margin: 6px 0 3px;
    color: var(--saalt-text);
}

.saalt-hub__directory-section {
    padding-top: 22px;
}

.saalt-hub__directory-section h3,
.saalt-hub__directory-profile-side h3 {
    margin-top: 0;
}

.saalt-hub__directory-availability-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
}

.saalt-hub__directory-availability-list li {
    position: relative;
    padding-left: 24px;
    color: var(--saalt-text);
}

.saalt-hub__directory-availability-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--saalt-success);
    font-weight: 800;
}

.saalt-hub__directory-membership-note {
    display: grid;
    gap: 5px;
    padding-top: 18px;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__directory-membership-note span {
    color: var(--saalt-muted);
    font-size: 12px;
}

.saalt-hub__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.saalt-hub__pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--saalt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--saalt-teal-dark);
    text-decoration: none;
    font-weight: 700;
}

.saalt-hub__pagination a.is-active {
    border-color: var(--saalt-teal);
    background: var(--saalt-teal);
    color: #fff;
}

.saalt-hub__empty-state {
    text-align: center;
    padding: 44px 24px;
}

.saalt-hub__empty-state .saalt-hub__card-icon {
    margin: 0 auto;
}

.saalt-hub__email-template-list {
    display: grid;
}

.saalt-hub__email-template-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--saalt-border);
}

.saalt-hub__email-template-row:first-child {
    border-top: 0;
}

.saalt-hub__email-template-row p,
.saalt-hub__email-template-row small {
    margin: 5px 0 0;
}

.saalt-hub__email-template-row small {
    display: block;
    color: var(--saalt-muted);
}

.saalt-hub__email-template-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.saalt-hub__email-editor-layout {
    align-items: start;
}

.saalt-hub__email-enabled-toggle {
    margin-bottom: 22px;
}

.saalt-hub__placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.saalt-hub__placeholder-list code {
    padding: 7px 9px;
    border: 1px solid var(--saalt-border);
    border-radius: 8px;
    background: var(--saalt-bg);
    color: var(--saalt-teal-dark);
    font-size: 12px;
}

.saalt-hub__email-preview {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: var(--saalt-bg);
}

.saalt-hub__email-preview > strong {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--saalt-border);
    background: #fff;
    color: var(--saalt-navy);
}

.saalt-hub__email-preview pre {
    margin: 0;
    padding: 14px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--saalt-text);
    font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.saalt-hub__reset-template-form {
    margin-top: 14px;
    text-align: right;
}

.saalt-hub button.saalt-hub__text-button {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--saalt-muted) !important;
    font: inherit !important;
    font-size: 12px !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.saalt-hub__form-footer--spread {
    justify-content: space-between;
}

.saalt-hub__status-pill--muted {
    background: #f0f3f4;
    color: var(--saalt-muted);
}

@media (max-width: 1080px) {
    .saalt-hub__directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .saalt-hub__directory-filters {
        grid-template-columns: 1fr 1fr;
    }
    .saalt-hub__directory-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .saalt-hub__directory-grid,
    .saalt-hub__directory-profile-layout,
    .saalt-hub__directory-filters,
    .saalt-hub__email-template-row {
        grid-template-columns: 1fr;
    }
    .saalt-hub__directory-filters .saalt-hub__button,
    .saalt-hub__email-template-row .saalt-hub__button {
        width: 100% !important;
    }
    .saalt-hub__form-footer--spread {
        align-items: stretch;
    }
}

/* v0.8.1 password UX: keep reveal controls fully inside SAALT Hub styling. */
.saalt-hub__password-intro {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--saalt-border);
    border-radius: 12px;
    background: rgba(7, 139, 154, .04);
}
.saalt-hub__password-intro strong { color: var(--saalt-text); }
.saalt-hub__password-intro small { color: var(--saalt-muted); line-height: 1.45; }

.saalt-hub__password-field {
    position: relative;
    display: block;
}
.saalt-hub .saalt-hub__password-field input[type="password"],
.saalt-hub .saalt-hub__password-field input[type="text"] {
    width: 100% !important;
    padding-right: 78px !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--saalt-text) !important;
}
.saalt-hub button.saalt-hub__password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    min-width: 56px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(7, 139, 154, .09) !important;
    color: var(--saalt-teal) !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.saalt-hub button.saalt-hub__password-toggle:hover,
.saalt-hub button.saalt-hub__password-toggle:focus-visible {
    background: rgba(7, 139, 154, .15) !important;
}
