/* Helpy Project Bank - server-rendered public board */
.helpy-project-bank-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 18px 56px;
}

.helpy-project-bank {
    color: #0f172a;
}

.helpy-project-bank a {
    text-decoration: none;
}

.helpy-project-bank-hero,
.helpy-project-bank-home-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.helpy-project-bank-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.helpy-project-bank-hero h1,
.helpy-project-bank-home-cta h2,
.helpy-project-bank-detail h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.08;
    color: #111827;
}

.helpy-project-bank-hero h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.helpy-project-bank-hero p,
.helpy-project-bank-home-cta p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.55;
    max-width: 660px;
}

.helpy-project-bank-home-cta__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.helpy-project-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.helpy-project-bank-card,
.helpy-project-bank-detail-card,
.helpy-project-bank-response,
.helpy-project-bank-empty {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.helpy-project-bank-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    min-height: 0;
}

.helpy-project-bank-card__top,
.helpy-project-bank-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.helpy-project-bank-card__label {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}


.helpy-project-bank-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.helpy-project-bank-card h2 a {
    color: #111827;
}

.helpy-project-bank-card__excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.5;
    font-size: 14px;
}

.helpy-project-bank-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.helpy-project-bank-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    line-height: 1;
}

.helpy-project-bank-card__link,
.helpy-project-bank-back {
    color: #2563eb;
    font-weight: 700;
}

.helpy-project-bank-card__link {
    margin-top: 2px;
}

.helpy-project-bank-status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #eff6ff;
    color: #1d4ed8;
}

.helpy-project-bank-status--has_interest,
.helpy-project-bank-status--in_discussion,
.helpy-project-bank-status--contact_shared {
    background: #ecfdf5;
    color: #047857;
}

.helpy-project-bank-detail {
    display: grid;
    gap: 18px;
}

.helpy-project-bank-back {
    display: inline-flex;
    width: max-content;
}

.helpy-project-bank-detail-card,
.helpy-project-bank-response,
.helpy-project-bank-empty {
    padding: 22px;
}

.helpy-project-bank-detail-head h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.helpy-project-bank-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.helpy-project-bank-fact {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.helpy-project-bank-fact span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #64748b;
}

.helpy-project-bank-fact strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.helpy-project-bank-description {
    color: #334155;
    line-height: 1.65;
}

.helpy-project-bank-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.helpy-project-bank-attachments img {
    display: block;
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
}

.helpy-project-bank-file {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #2563eb;
    font-weight: 700;
}

.helpy-project-bank-response h2,
.helpy-project-bank-empty h1,
.helpy-project-bank-empty h2 {
    margin: 0 0 8px;
    color: #111827;
}

.helpy-project-bank-response p,
.helpy-project-bank-empty p {
    color: #64748b;
    line-height: 1.55;
}

.helpy-project-bank-response-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.helpy-project-bank-response-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #111827;
}

.helpy-project-bank-response-form label span small,
.helpy-project-bank-response-form label span em {
    color: #64748b;
    font-style: normal;
    font-weight: 500;
}

.helpy-project-bank-response-form input,
.helpy-project-bank-response-form select,
.helpy-project-bank-response-form textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 12px 13px;
    color: #111827;
    background: #fff;
}

.helpy-project-bank-response-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.helpy-project-bank-selected-listing {
    margin: 0;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.helpy-project-bank-responses-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.helpy-project-bank-response-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.helpy-project-bank-response-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.helpy-project-bank-response-card__actions {
    margin-top: 12px;
}

.helpy-project-bank-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.helpy-project-bank-notice--success {
    background: #ecfdf5;
    color: #047857;
}

.helpy-project-bank-notice--error {
    background: #fff1f2;
    color: #be123c;
}

@media (max-width: 920px) {
    .helpy-project-bank-grid,
    .helpy-project-bank-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .helpy-project-bank-shell {
        padding: 22px 14px 42px;
    }

    .helpy-project-bank-hero,
    .helpy-project-bank-home-cta,
    .helpy-project-bank-card__top,
    .helpy-project-bank-detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .helpy-project-bank-grid,
    .helpy-project-bank-facts,
    .helpy-project-bank-response-grid {
        grid-template-columns: 1fr;
    }

    .helpy-project-bank-attachments img {
        width: 120px;
        height: 92px;
    }
}

.helpy-project-bank-review-banner,
.helpy-project-bank-review-actions {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    padding: 22px;
}

.helpy-project-bank-review-banner h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.helpy-project-bank-review-banner p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.55;
    max-width: 760px;
}

.helpy-project-bank-review-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.helpy-project-bank-publish-form {
    margin: 0;
}

.helpy-project-bank-review-muted {
    color: #64748b;
    font-weight: 700;
}

.helpy-project-bank-status--pending_review {
    background: #f5f3ff;
    color: #6d28d9;
}

@media (max-width: 680px) {
    .helpy-project-bank-review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .helpy-project-bank-publish-form,
    .helpy-project-bank-publish-form .helpy-btn,
    .helpy-project-bank-review-actions .helpy-btn {
        width: 100%;
        justify-content: center;
    }
}

.helpy-project-bank-card__category {
    width: max-content;
    max-width: 100%;
    margin: -4px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.helpy-project-bank-detail-card--locked .helpy-project-bank-description {
    color: #475569;
}

.helpy-project-bank-locked-inline {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
}

.helpy-project-bank-locked-inline strong {
    color: #111827;
}

.helpy-project-bank-locked-panel {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.helpy-project-bank-publish-form {
    display: grid;
    gap: 14px;
    flex: 1 1 420px;
    min-width: min(100%, 420px);
}

.helpy-project-bank-review-category {
    display: grid;
    gap: 8px;
    width: 100%;
}

.helpy-project-bank-review-category label {
    display: grid;
    gap: 3px;
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.helpy-project-bank-review-category label em {
    color: #dc2626;
    font-style: normal;
}

.helpy-project-bank-review-category label small,
.helpy-project-bank-category-missing {
    color: #64748b;
    font-weight: 500;
    line-height: 1.45;
}

.helpy-project-bank-category-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 11px 13px;
    background: #fff;
    color: #111827;
    font-weight: 650;
}

/* Project Bank search/filter tools */
.helpy-project-bank-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1fr) minmax(160px, .7fr) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 22px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.helpy-project-bank-tool {
    display: grid;
    gap: 7px;
}

.helpy-project-bank-tool label {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.helpy-project-bank-tools input,
.helpy-project-bank-tools select,
.helpy-project-bank-category-picker input,
.helpy-project-bank-category-picker select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 11px 13px;
    background: #fff;
    color: #111827;
    font-weight: 650;
}

.helpy-project-bank-category-picker {
    display: grid;
    gap: 8px;
}

.helpy-project-bank-category-search {
    font-weight: 500 !important;
}

.helpy-project-bank-tools__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

/* Keep public cards short: non-Pros should only see cards, not project previews. */
.helpy-project-bank-card__excerpt {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.helpy-project-bank-card h2 span {
    color: #111827;
}

.helpy-project-bank-access-gate .helpy-project-bank-locked-panel {
    max-width: 760px;
}

@media (max-width: 920px) {
    .helpy-project-bank-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helpy-project-bank-tools__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .helpy-project-bank-tools {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .helpy-project-bank-tools__actions,
    .helpy-project-bank-tools__actions .helpy-btn {
        width: 100%;
    }

    .helpy-project-bank-tools__actions .helpy-btn {
        justify-content: center;
    }
}

/* 0.3.2 — functional Pro search panel: 3 main controls + Advanced Search */
.helpy-project-bank-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.helpy-project-bank-tools__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "location radius   category"
        "keywords keywords sort";
    gap: 14px 16px;
    align-items: end;
}
.helpy-project-bank-tool--location { grid-area: location; }
.helpy-project-bank-tool--radius   { grid-area: radius; }
.helpy-project-bank-tool--category { grid-area: category; }
.helpy-project-bank-tool--search   { grid-area: keywords; }
.helpy-project-bank-tools__main .helpy-project-bank-tool--sort { grid-area: sort; }

.helpy-project-bank-tools__advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: end;
    padding-top: 14px;
}

.helpy-project-bank-advanced {
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
}

.helpy-project-bank-advanced summary {
    cursor: pointer;
    width: max-content;
    color: #6d28d9;
    font-weight: 800;
}

.helpy-project-bank-tools__actions--advanced {
    justify-content: flex-start;
}

.helpy-project-bank-category-picker--tree {
    position: relative;
    display: block;
}

.helpy-project-bank-category-select--native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

.helpy-project-bank-category-picker__button {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 11px 42px 11px 13px;
    background: #fff;
    color: #111827;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.helpy-project-bank-category-picker.is-open .helpy-project-bank-category-picker__button {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}

.helpy-project-bank-category-picker__value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: left;
}

.helpy-project-bank-category-picker__value.is-placeholder {
    color: #64748b;
    font-weight: 600;
}

.helpy-project-bank-category-picker__text {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helpy-project-bank-category-picker__arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8b93aa;
    border-bottom: 2px solid #8b93aa;
    transform: translateY(-60%) rotate(45deg);
    transition: transform .2s ease;
    pointer-events: none;
}

.helpy-project-bank-category-picker.is-open .helpy-project-bank-category-picker__arrow {
    transform: translateY(-30%) rotate(-135deg);
}

.helpy-project-bank-category-picker__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    background: #fff;
    border: 1px solid #e5e7f0;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(17,24,39,.14);
    padding: 10px;
}

.helpy-project-bank-category-picker__search-wrap {
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f6;
}

.helpy-project-bank-category-picker__search {
    width: 100%;
    min-height: 42px !important;
    border-radius: 14px !important;
    font-weight: 500 !important;
}

.helpy-project-bank-category-picker__list {
    max-height: 320px;
    overflow: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.helpy-project-bank-category-picker__empty {
    padding: 14px 12px;
    color: #64748b;
    font-size: 14px;
}

.helpy-project-bank-category-option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    color: #111827;
}

.helpy-project-bank-category-option:hover,
.helpy-project-bank-category-option.is-selected {
    background: #f7f6ff;
}

.helpy-project-bank-category-option.is-selected {
    color: #5b21b6;
}

.helpy-project-bank-category-option__toggle {
    width: 30px;
    height: 38px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.helpy-project-bank-category-option__toggle[hidden] {
    visibility: hidden;
    display: inline-flex !important;
}

.helpy-project-bank-category-option__toggle span {
    width: 8px;
    height: 8px;
    border-right: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}

.helpy-project-bank-category-option.is-expanded > .helpy-project-bank-category-option__toggle span,
.helpy-project-bank-category-picker.is-searching .helpy-project-bank-category-option.has-children > .helpy-project-bank-category-option__toggle span {
    transform: rotate(45deg);
}

.helpy-project-bank-category-option__select {
    min-width: 0;
    min-height: 38px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    padding: 8px 10px 8px calc(4px + (var(--helpy-level, 0) * 18px));
}

.helpy-project-bank-category-option__media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.helpy-project-bank-category-option__img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.helpy-project-bank-category-option__icon {
    font-size: 18px;
    line-height: 1;
    color: #7c3aed;
}

.helpy-project-bank-category-option__fallback {
    font-size: 22px;
    line-height: 1;
    color: #b8bfd2;
}

.helpy-project-bank-category-option__label {
    display: inline-block;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helpy-project-bank-category-option__count {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 920px) {
    .helpy-project-bank-tools__main,
    .helpy-project-bank-tools__advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .helpy-project-bank-tools__main,
    .helpy-project-bank-tools__advanced-grid {
        grid-template-columns: 1fr;
    }

    .helpy-project-bank-category-picker__panel {
        position: relative;
        top: auto;
        margin-top: 8px;
    }
}

.helpy-project-bank-tool--location {
    position: relative;
}

.helpy-project-bank-location-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #d9e1ee;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.helpy-project-bank-location-suggestion {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
}

.helpy-project-bank-location-suggestion:hover,
.helpy-project-bank-location-suggestion:focus {
    background: #f6f3ff;
}

.helpy-project-bank-location-helper {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #5b6b83;
}

.helpy-project-bank-choose-pro-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.helpy-project-bank-handoff-name,
.helpy-project-bank-handoff-consent {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.helpy-project-bank-handoff-name input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
    font-weight: 600;
}

.helpy-project-bank-handoff-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    line-height: 1.35;
    font-weight: 600;
}

.helpy-project-bank-handoff-consent input {
    margin-top: 2px;
}

/* ─── Back link — matches project-view breadcrumb style ─── */
.helpy-project-bank-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f36b6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s ease;
}
.helpy-project-bank-back:hover,
.helpy-project-bank-back:focus {
    color: #5e2ea0;
    text-decoration: none;
}

/* ─── Notices — aligned with project-view-notice ─── */
.helpy-project-bank-notice {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.helpy-project-bank-notice--success {
    border: 1px solid #b7dfb9;
    background: #eefbf0;
    color: #1f6b24;
}
.helpy-project-bank-notice--error {
    border: 1px solid #e5b4b4;
    background: #fff5f5;
    color: #8a1f1f;
}

/* ─── Facts — aligned with project-view-fact ─── */
.helpy-project-bank-fact {
    padding: 12px 14px;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    background: #fcfcfd;
}
.helpy-project-bank-fact span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
}
.helpy-project-bank-fact strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2430;
    line-height: 1.45;
}

/* ─── Empty state ─── */
.helpy-project-bank-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 24px;
}
.helpy-project-bank-empty h1,
.helpy-project-bank-empty h2 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}
.helpy-project-bank-empty p {
    margin: 0;
}

/* ─── Widen-radius suggestion ─── */
.helpy-project-bank-widen-radius {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.helpy-project-bank-widen-link {
    color: #6d28d9;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.helpy-project-bank-widen-link:hover,
.helpy-project-bank-widen-link:focus {
    color: #5b21b6;
    text-decoration: underline;
}

/* ─── Result count ─── */
.helpy-project-bank-result-count {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* ─── Hero dual-action wrapper (guest view) ─── */
.helpy-project-bank-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

/* ─── Cards — refined meta chips ─── */
.helpy-project-bank-card__meta span {
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 9px;
    gap: 4px;
}
.helpy-project-bank-card__meta span b {
    font-style: normal;
}
.helpy-project-bank-card h2 a:hover,
.helpy-project-bank-card h2 a:focus {
    color: #5b21b6;
    text-decoration: none;
}

/* ─── Status badge — open variant explicit ─── */
.helpy-project-bank-status--open {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ─── Response panel — improved heading and intro ─── */
.helpy-project-bank-response > h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #111827;
}
.helpy-project-bank-response > p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

/* ─── Response form — focus rings matching Helpy style ─── */
.helpy-project-bank-response-form input:focus,
.helpy-project-bank-response-form select:focus,
.helpy-project-bank-response-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

/* ─── Estimate field show/hide transition ─── */
[data-helpy-pb-estimate-wrap] {
    transition: opacity .15s ease;
}
[data-helpy-pb-estimate-wrap][style*="display: none"],
[data-helpy-pb-estimate-wrap][style*="display:none"] {
    opacity: 0;
}

/* ─── Owner responses — quote card improvements ─── */
.helpy-project-bank-response-card {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}
.helpy-project-bank-response-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.helpy-project-bank-response-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
}
.helpy-project-bank-response-card__facts p {
    margin: 0;
}

/* ─── Location helper text ─── */
.helpy-project-bank-location-helper {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6d28d9;
    font-weight: 600;
}

/* ─── Review actions layout ─── */
.helpy-project-bank-review-actions--choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.helpy-project-bank-review-choice {
    display: grid;
    gap: 10px;
}
.helpy-project-bank-review-choice h2 {
    margin: 0;
    font-size: 17px;
    color: #111827;
}
.helpy-project-bank-review-choice p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
@media (max-width: 680px) {
    .helpy-project-bank-review-actions--choice {
        grid-template-columns: 1fr;
    }
    .helpy-project-bank-hero__actions {
        justify-content: flex-start;
    }
}

/* ─────────────────────────────────────────────────────────────
   v0.4 — Project Bank: compact hero chips + collapsible filters
   ───────────────────────────────────────────────────────────── */

/* Hero: tighter heading + chip row instead of duplicated kicker/H1 */
.helpy-project-bank-hero__intro {
    min-width: 0;
}
.helpy-project-bank-hero h1 {
    font-size: clamp(24px, 3vw, 34px);
}
.helpy-project-bank-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.helpy-project-bank-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
}
.helpy-project-bank-hero__chip svg {
    flex: 0 0 auto;
}
.helpy-project-bank-hero__chip--count {
    background: #ede9fe;
    color: #5b21b6;
}
.helpy-project-bank-hero__chip--location {
    background: #f1f5f9;
    color: #475569;
}

/* Toolbar row holding the More-filters toggle + submit */
.helpy-project-bank-tools__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* More filters toggle */
.helpy-project-bank-advanced {
    border-top: 0;
    padding-top: 0;
}
.helpy-project-bank-advanced summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    cursor: pointer;
    color: #6d28d9;
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    user-select: none;
}
.helpy-project-bank-advanced summary::-webkit-details-marker {
    display: none;
}
.helpy-project-bank-advanced summary svg {
    transition: transform .15s ease;
}
.helpy-project-bank-advanced[open] summary svg {
    transform: rotate(180deg);
}
.helpy-project-bank-advanced__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #6d28d9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Budget min–max pair in one cell */
.helpy-project-bank-budget-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}
.helpy-project-bank-budget-pair input {
    flex: 1 1 0;
    min-width: 0;
}
.helpy-project-bank-budget-pair__sep {
    color: #94a3b8;
    flex: 0 0 auto;
}

/* Photos checkbox: align baseline with sibling inputs (no top label) */
.helpy-project-bank-tool--photos {
    align-self: center;
    padding-top: 22px;
}

/* Submit bar: count handled in hero, so only Clear all + Search live here */
.helpy-project-bank-tools__submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}
.helpy-project-bank-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.helpy-project-bank-clear:hover,
.helpy-project-bank-clear:focus {
    color: #334155;
}

/* Mobile: stack everything, full-width submit */
@media (max-width: 920px) {
    .helpy-project-bank-tools__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "location radius"
            "category sort"
            "keywords keywords";
    }
    .helpy-project-bank-tools__advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .helpy-project-bank-tools__main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "location"
            "radius"
            "category"
            "keywords"
            "sort";
    }
    .helpy-project-bank-tools__advanced-grid {
        grid-template-columns: 1fr;
    }
    .helpy-project-bank-tool--photos {
        padding-top: 0;
    }
    .helpy-project-bank-tools__submit {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }
    .helpy-project-bank-tools__submit .helpy-btn {
        width: 100%;
        justify-content: center;
    }
    .helpy-project-bank-clear {
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────
   v0.3.35 — Project Bank: attractive search (icons, chips, panel)
   ───────────────────────────────────────────────────────────── */

/* Label icons in the main row */
.helpy-project-bank-tool > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.helpy-project-bank-label-icon {
    flex: 0 0 auto;
    color: #94a3b8;
}

/* "More filters" panel reads as a distinct, recessed zone */
.helpy-project-bank-tools__bar {
    margin-top: 4px;
}
.helpy-project-bank-advanced[open] {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 16px;
}
.helpy-project-bank-advanced[open] summary {
    margin-bottom: 14px;
}
.helpy-project-bank-advanced:not([open]) {
    border-top: 0;
    padding-top: 0;
}

/* Checkbox sits as one clickable line, baseline-aligned with sibling inputs */
.helpy-project-bank-tool--photos {
    align-self: end;
    padding-top: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.helpy-project-bank-tool--photos .helpy-project-bank-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
}
.helpy-project-bank-tool--photos .helpy-project-bank-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

/* Active-filter chips row */
.helpy-project-bank-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.helpy-project-bank-active-filters__label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 2px;
}
.helpy-project-bank-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px 5px 11px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background .12s ease;
}
.helpy-project-bank-chip:hover,
.helpy-project-bank-chip:focus {
    background: #ddd6fe;
}
.helpy-project-bank-chip svg {
    flex: 0 0 auto;
    opacity: .7;
}
.helpy-project-bank-chip:hover svg {
    opacity: 1;
}
.helpy-project-bank-chip--clear {
    background: transparent;
    color: #64748b;
    padding: 5px 8px;
}
.helpy-project-bank-chip--clear:hover,
.helpy-project-bank-chip--clear:focus {
    background: transparent;
    color: #334155;
    text-decoration: underline;
}

/* Counted submit button */
.helpy-project-bank-tools__submit .helpy-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 920px) {
    .helpy-project-bank-tools__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "location radius"
            "category sort"
            "keywords keywords";
    }
}
@media (max-width: 680px) {
    .helpy-project-bank-tools__main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "location"
            "radius"
            "category"
            "keywords"
            "sort";
    }
    .helpy-project-bank-advanced[open] {
        padding: 14px;
    }
}

/* ─────────────────────────────────────────────────────────────
   v0.3.37 — Project Bank: locked label icons + radius pills
   ───────────────────────────────────────────────────────────── */

/* Hardened label icon: fixed box that theme CSS can't resize.
   (Previous icons inherited a theme rule that stretched <svg>,
   producing different-sized boxes.) */
.helpy-project-bank-tool > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.helpy-project-bank-tool > label .helpy-pb-ico {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    color: #94a3b8;
    line-height: 0;
}
.helpy-project-bank-tool > label .helpy-pb-ico svg {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    display: block !important;
}

/* Radius as segmented pills (reference look): grey track, the
   selected option is a raised white chip. Radios are visually hidden
   but still submit name="radius". No JS required. */
.helpy-project-bank-tool--radius {
    display: flex;
    flex-direction: column;
}
.helpy-pb-radius {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 46px;
    box-sizing: border-box;
    padding: 3px;
    background: var(--color-background-secondary, #f1f0ea);
    border-radius: 12px;
    overflow: hidden;
}
.helpy-pb-radius__input {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); overflow: hidden;
    white-space: nowrap;
}
.helpy-pb-radius__pill {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 6px;
    border-radius: 7px;
    border: 0.5px solid transparent;
    background: transparent;
    color: #5f6977;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.helpy-pb-radius__pill:hover {
    color: #2c2c2a;
}
.helpy-pb-radius__input:checked + .helpy-pb-radius__pill {
    background: #fff;
    color: #1f2430;
    border-color: rgba(16,24,40,.10);
    box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.helpy-pb-radius__input:focus-visible + .helpy-pb-radius__pill {
    outline: 2px solid #7c5cff;
    outline-offset: 1px;
}

/* On narrow widths let the pills wrap instead of squashing labels */
@media (max-width: 680px) {
    .helpy-pb-radius {
        height: auto;
        flex-wrap: wrap;
    }
    .helpy-pb-radius__pill {
        flex: 1 0 auto;
        padding: 7px 12px;
    }
}

/* v0.3.37b — stop row controls from jumping: pin every main-row control
   to the same 46px box, and make focus use outline (no border-width
   reflow, which is what makes inputs nudge on click). */
.helpy-project-bank-tools__main .helpy-project-bank-tool > input,
.helpy-project-bank-tools__main .helpy-project-bank-tool > select,
.helpy-project-bank-tools__main .helpy-project-bank-category-picker__button {
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
}
.helpy-project-bank-tools input:focus,
.helpy-project-bank-tools select:focus,
.helpy-project-bank-category-picker__button:focus {
    outline: 2px solid #7c5cff;
    outline-offset: 1px;
    border-color: #c9bdf7;
}
.helpy-project-bank-tools__main {
    align-items: end;
}

/* ─────────────────────────────────────────────────────────────
   v0.3.39 — Public project page: declutter + modern hierarchy
   ───────────────────────────────────────────────────────────── */

/* Calmer H1 (was clamping up to 42px) */
.helpy-project-bank-detail-head h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Description sits right under the title now — give it room */
.helpy-project-bank-detail-card .helpy-project-bank-description {
    margin: 0 0 20px;
    font-size: 15px;
}

/* Facts adapt to however many are shown (no more 6 padded tiles) */
.helpy-project-bank-facts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 4px 0 20px;
}

/* Urgency badge tones */
.helpy-project-bank-status--active,
.helpy-project-bank-status--open {
    background: #f1ebff;
    color: #6429c4;
}
.helpy-project-bank-status--closing {
    background: #fef3c7;
    color: #92400e;
}

/* Bigger project photo — the thumbnail was too small to judge the job */
.helpy-project-bank-attachments img {
    width: 100%;
    max-width: 360px;
    height: 240px;
}
@media (max-width: 600px) {
    .helpy-project-bank-attachments img {
        max-width: 100%;
        height: 200px;
    }
}

/* Slim, non-boxed empty-offers line for the owner */
.helpy-project-bank-owner-empty {
    margin: 0;
    padding: 12px 0 2px;
    color: #64748b;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────
   v0.3.40 — Offer form: declutter + price unit + site visit
   ───────────────────────────────────────────────────────────── */

.helpy-project-bank-response__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 4px;
}
.helpy-project-bank-response__head h2 {
    margin: 0;
}
.helpy-project-bank-response__as {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1ebff;
    color: #6429c4;
    font-size: 12px;
    font-weight: 500;
}
.helpy-project-bank-response__lead {
    margin: 0 0 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* Site-visit checkbox sits as one clean line */
.helpy-project-bank-response-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}
.helpy-project-bank-response-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

/* Footer: one reassurance line + submit, no stray disclaimers */
.helpy-project-bank-response__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0.5px solid var(--color-border-tertiary, #e5e7eb);
}
.helpy-project-bank-response__foot .helpy-project-bank-response-note {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    max-width: 52ch;
}
.helpy-project-bank-response__foot .helpy-btn--primary {
    flex-shrink: 0;
}
@media (max-width: 560px) {
    .helpy-project-bank-response__foot {
        flex-direction: column;
        align-items: stretch;
    }
    .helpy-project-bank-response__foot .helpy-btn--primary {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────────────────────
   v0.3.41 — Any radius fix UI, clickable card, cleaner back link
   ───────────────────────────────────────────────────────────── */

/* Back link: lock the SVG arrow to a fixed box (theme can't resize it) */
.helpy-project-bank-back__icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    display: block !important;
}

/* Whole card is the click target (stretched link) — no separate
   "View project" CTA needed. Robust, no JS. */
.helpy-project-bank-card--clickable {
    position: relative;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.helpy-project-bank-card--clickable:hover {
    border-color: #c9bdf7;
    box-shadow: 0 6px 20px rgba(91, 33, 182, .08);
}
.helpy-project-bank-card__stretch::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Keep the title readable; the stretch is invisible overlay */
.helpy-project-bank-card__stretch {
    text-decoration: none;
    color: inherit;
}
/* Meta chips stay above the stretch overlay so text remains selectable
   where it matters, but clicks anywhere still navigate. */
.helpy-project-bank-card--clickable .helpy-project-bank-card__label {
    position: relative;
    z-index: 2;
}
