/* ========================================
   BEM PENSADO.
   COMPONENTS
   ======================================== */


/* ========================================
   GLOBAL UTILITIES
   ======================================== */

[hidden] {
    display: none !important;
}

.bp-sr-only {
    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;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* ========================================
   BUTTONS
   ======================================== */

.bp-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border: var(--bp-border-width) solid var(--bp-border-strong);
    border-radius: 0;

    background: transparent;
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        color var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-button--primary {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-button--primary:hover {
    background: var(--bp-blue);
    color: var(--bp-black);
    border-color: var(--bp-blue);
}

.bp-button--secondary {
    background: var(--bp-white);
    color: var(--bp-black);
}

.bp-button--secondary:hover {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-button--small {
    min-height: 38px;

    padding-inline: 16px;

    font-size: 10px;
}

.bp-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* ========================================
   PAGE HEADER
   ======================================== */

.bp-page-header {
    min-height: 250px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--bp-space-12);

    padding-bottom: 28px;
}

.bp-page-title {
    margin: 0;

    font-family: "Archivo Black", Arial, sans-serif;
    font-size: clamp(4.5rem, 7.5vw, 8rem);
    font-weight: 400;

    line-height: 0.90;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.bp-page-header__description {
    max-width: 720px;

    margin: 22px 0 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}


/* ========================================
   STATS
   ======================================== */

.bp-stats {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: var(--bp-border-width) solid var(--bp-border-strong);
    border-bottom: var(--bp-border-width) solid var(--bp-border-strong);
}

.bp-stat {
    min-width: 0;
    min-height: 160px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 22px 24px 20px;

    border-right: var(--bp-border-width) solid var(--bp-border-strong);
}

.bp-stat:last-child {
    border-right: 0;
}

.bp-stat__value {
    display: block;

    font-family: "Archivo Black", Arial, sans-serif;
    font-size: clamp(2.75rem, 4vw, 4.75rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;

    white-space: nowrap;
}

.bp-stat__label {
    display: block;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* ========================================
   SECTIONS
   ======================================== */

.bp-recent {
    margin-top: var(--bp-space-16);
}

.bp-section-header {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: var(--bp-border-width) solid var(--bp-border-strong);
    border-bottom: var(--bp-border-width) solid var(--bp-border-strong);
}

.bp-section-header h2 {
    margin: 0;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}


/* ========================================
   PROPOSAL ROW
   ======================================== */

.bp-proposal-row {
    width: 100%;
    min-height: 64px;

    display: grid;
    grid-template-columns:
        72px
        minmax(220px, 1fr)
        110px
        150px
        24px;

    align-items: center;
    gap: 20px;

    padding: 0 12px 0 0;

    border-bottom: var(--bp-border-width) solid var(--bp-border);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;

    transition:
        background var(--bp-transition-fast),
        color var(--bp-transition-fast);
}

.bp-proposal-row:hover {
    background: var(--bp-blue);
    color: var(--bp-black);
}

.bp-proposal-row strong {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bp-proposal-row span {
    font-weight: 400;
}

.bp-proposal-row__number {
    color: var(--bp-text-secondary);

    font-size: 11px;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
}

.bp-proposal-row:hover .bp-proposal-row__number {
    color: var(--bp-black);
}

.bp-proposal-row > span:nth-last-child(1) {
    justify-self: end;

    font-size: 16px;
    line-height: 1;
}


/* ========================================
   GENERIC STATUS
   ======================================== */

.bp-status {
    display: inline-flex;
    align-items: center;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* ========================================
   GENERIC DIVIDER
   ======================================== */

.bp-divider {
    width: 100%;
    height: var(--bp-border-width);

    margin: 0;

    border: 0;
    background: var(--bp-border-strong);
}

.bp-breadcrumbs {
    text-transform: uppercase;
}


/* ========================================
   ENTITY SUMMARY
   ======================================== */

.bp-entity-summary {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 22px 24px 20px;

    border-top: 1px solid var(--bp-black);
    border-bottom: 1px solid var(--bp-black);
}

.bp-entity-summary__value {
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.bp-entity-summary__label {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* ========================================
   EMPTY STATE
   ======================================== */

.bp-empty-state {
    min-height: 280px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: var(--bp-space-12);

    padding: var(--bp-space-12) 0;

    border-bottom: 1px solid var(--bp-black);
}

.bp-empty-state__content {
    max-width: 560px;
}

.bp-empty-state h2 {
    margin-bottom: var(--bp-space-4);

    font-family: "Archivo", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.bp-empty-state p {
    max-width: 460px;

    color: var(--bp-text-secondary);

    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
}

.bp-empty-state--search {
    min-height: 220px;
}


/* ========================================
   SEARCH
   ======================================== */

.bp-search {
    width: 100%;

    display: block;

    padding: 28px 0;

    border-bottom: 1px solid var(--bp-black);
}

.bp-search__field {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bp-search__label {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bp-search input {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid var(--bp-border);
    border-radius: 0;

    background: var(--bp-paper);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    outline: 0;

    transition:
        border-color var(--bp-transition-fast),
        background var(--bp-transition-fast);
}

.bp-search input::placeholder {
    color: var(--bp-text-secondary);
    opacity: 1;

    font-weight: 300;
}

.bp-search input:hover {
    border-color: var(--bp-black);
}

.bp-search input:focus {
    background: var(--bp-white);
    border-color: var(--bp-blue);
}

.bp-search input:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   CLIENT LIST TOOLBAR
   ======================================== */

.bp-client-toolbar {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid var(--bp-black);
}

.bp-client-toolbar__count {
    display: flex;
    align-items: center;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bp-client-toolbar__order {
    display: flex;
    align-items: center;
    gap: 12px;

    flex: 0 0 auto;
}

.bp-client-toolbar__label {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bp-client-toolbar select {
    min-width: 170px;
    min-height: 36px;

    padding: 0 34px 0 10px;

    border: 1px solid var(--bp-border);
    border-radius: 0;

    background-color: var(--bp-paper);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;

    cursor: pointer;
    outline: 0;

    transition:
        border-color var(--bp-transition-fast),
        background var(--bp-transition-fast);
}

.bp-client-toolbar select:hover {
    border-color: var(--bp-black);
}

.bp-client-toolbar select:focus {
    background-color: var(--bp-white);
    border-color: var(--bp-blue);
}

.bp-client-toolbar select:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   SEARCH RESULTS
   ======================================== */

.bp-search-result {
    display: contents;
}

.bp-search-result span {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ========================================
   CLIENT LIST
   ======================================== */

.bp-client-list {
    width: 100%;

    border-top: 1px solid var(--bp-black);
}

.bp-client-row {
    min-height: 68px;

    display: grid;
    grid-template-columns:
        72px
        minmax(220px, 1fr)
        140px
        120px
        24px;

    align-items: center;
    gap: 20px;

    border-bottom: 1px solid var(--bp-border);

    color: var(--bp-text);
    text-decoration: none;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;

    transition:
        background-color 160ms ease,
        padding 160ms ease,
        color var(--bp-transition-fast);
}

.bp-client-row:not(.bp-client-row--header):hover {
    padding-inline: 12px;

    background: var(--bp-blue-wash);
    color: var(--bp-black);
}


/* ========================================
   CLIENT LIST HEADER
   ======================================== */

.bp-client-row--header {
    min-height: 42px;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;

    border-bottom-color: var(--bp-black);
}

.bp-client-row--header:hover {
    background: transparent;
    color: var(--bp-text-secondary);
}

.bp-client-row__number {
    color: var(--bp-text-secondary);

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.bp-client-row:not(.bp-client-row--header):hover
.bp-client-row__number {
    color: var(--bp-black);
}

.bp-client-row__name {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
}

.bp-client-row__type,
.bp-client-row__date {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.bp-client-row__arrow {
    justify-self: end;

    font-size: 16px;
    line-height: 1;

    transition:
        transform 160ms ease;
}

.bp-client-row:not(.bp-client-row--header):hover
.bp-client-row__arrow {
    transform: translateX(4px);
}


/* ========================================
   BRAND DOT
   ======================================== */

.bp-brand-dot {
    color: var(--bp-blue);
}


/* ========================================
   FORMS
   ======================================== */

.bp-form {
    width: 100%;
}

.bp-form-section {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--bp-space-12);

    padding: 32px 0;

    border-top: 1px solid var(--bp-black);
}

.bp-form-section:last-of-type {
    border-bottom: 1px solid var(--bp-black);
}

.bp-form-section__header h2 {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
}

.bp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.bp-form-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.bp-field {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bp-field--full {
    grid-column: 1 / -1;
}

.bp-field label {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bp-field input,
.bp-field select,
.bp-field textarea {
    width: 100%;

    border: 1px solid var(--bp-border);
    border-radius: 0;

    padding: 14px 16px;

    background: var(--bp-paper);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;

    outline: 0;

    transition:
        border-color var(--bp-transition-fast),
        background var(--bp-transition-fast);
}

.bp-field input,
.bp-field select {
    min-height: 52px;
}

.bp-field textarea {
    min-height: 140px;
    resize: vertical;
}

.bp-field input[readonly],
.bp-field textarea[readonly] {
    background: var(--bp-gray-100);
    color: var(--bp-text-secondary);

    cursor: default;
}

.bp-field input:hover,
.bp-field select:hover,
.bp-field textarea:hover {
    border-color: var(--bp-black);
}

.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
    background: var(--bp-white);
    border-color: var(--bp-blue);
}

.bp-field input:focus-visible,
.bp-field select:focus-visible,
.bp-field textarea:focus-visible {
    outline: 0;
}

.bp-field__hint {
    display: block;

    margin: 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.bp-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    padding: 28px 0;
}


/* ========================================
   NEW PROPOSAL WIZARD
   ======================================== */

.bp-proposal-wizard-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;

    margin: 0 0 40px;
}

.bp-proposal-wizard-progress__step {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    padding: 0 0 12px;

    border-bottom: 2px solid var(--bp-border);
    color: var(--bp-text-secondary);
}

.bp-proposal-wizard-progress__number {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid currentColor;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;
}

.bp-proposal-wizard-progress__label {
    overflow: hidden;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-proposal-wizard-progress__step.is-current {
    border-color: var(--bp-blue);
    color: var(--bp-blue);
}

.bp-proposal-wizard-progress__step.is-complete {
    border-color: var(--bp-black);
    color: var(--bp-black);
}

.bp-proposal-wizard-progress__step.is-future {
    opacity: 0.45;
}

.bp-proposal-wizard-panel[hidden] {
    display: none;
}

.bp-proposal-wizard-panel__header {
    max-width: 620px;
    margin: 0 0 32px;
}

.bp-proposal-wizard-panel__header > span,
.bp-proposal-wizard-configuration__header h3 {
    color: var(--bp-blue);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.bp-proposal-wizard-panel__header h2,
.bp-proposal-wizard-panel__title {
    margin: 8px 0;

    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}

.bp-proposal-wizard-panel__title {
    font-weight: 700;
}

.bp-proposal-wizard-panel__header p {
    margin: 0;
    color: var(--bp-text-secondary);
}

.bp-proposal-wizard-configuration {
    margin: 0 0 28px;
    padding: 24px;

    border: 1px solid var(--bp-border);
}

.bp-proposal-wizard-configuration__header {
    margin: 0 0 20px;
}

.bp-proposal-wizard-configuration__header h3 {
    margin: 0;
}

.bp-proposal-wizard-configuration .bp-form-section:last-child {
    margin-bottom: 0;
}

.bp-proposal-wizard-actions [data-proposal-wizard-next],
.bp-proposal-wizard-actions [type="submit"] {
    margin-left: auto;
}

.bp-proposal-wizard-review-actions {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bp-border);
}

.bp-proposal-wizard-success {
    display: block;
    padding-top: 0;
}

.bp-proposal-wizard-success .bp-form-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.bp-proposal-wizard-success .bp-button {
    width: auto;
    flex: 0 1 auto;
}

.bp-settings-account {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px;
    border: 1px solid var(--bp-black);
    background: var(--bp-white);
}

.bp-settings-account__content {
    min-width: 0;
}

.bp-settings-account__content h2 {
    margin: 6px 0 24px;
}

@media (max-width: 760px) {
    .bp-proposal-wizard-progress {
        grid-template-columns: repeat(6, minmax(88px, 1fr));
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .bp-proposal-wizard-configuration {
        padding: 18px;
    }
}


/* ========================================
   PROPOSAL SELECTOR
   ======================================== */

.bp-proposal-selector {
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 14px 18px;

    border: 1px solid var(--bp-border);
    border-radius: 0;

    background: var(--bp-paper);
    color: var(--bp-black);

    text-align: left;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-proposal-selector:hover {
    background: var(--bp-white);
    border-color: var(--bp-black);
}

.bp-proposal-selector:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}

.bp-proposal-selector__content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bp-proposal-selector__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.bp-proposal-selector__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.035em;
}

.bp-proposal-selector__arrow {
    flex: 0 0 auto;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 20px;
    line-height: 1;

    transition:
        transform var(--bp-transition-fast);
}

.bp-proposal-selector:hover
.bp-proposal-selector__arrow {
    transform: translateX(4px);
}

.bp-field-error {
    margin: 0;

    color: var(--bp-danger);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ========================================
   MODAL
   ======================================== */

body.bp-modal-open {
    overflow: hidden;
}

.bp-modal {
    position: fixed;
    z-index: 10000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

.bp-modal__backdrop {
    position: absolute;
    z-index: 0;

    inset: 0;

    background: rgba(0, 0, 0, 0.68);
}

.bp-modal__dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 880px);
    max-height: calc(100vh - 64px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--bp-black);
    border-radius: 0;

    background: var(--bp-white);
    color: var(--bp-black);

    box-shadow: none;
}

.bp-modal__dialog--large {
    width: min(100%, 1180px);
}

.bp-modal__header {
    min-height: 94px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    flex: 0 0 auto;

    padding: 22px 24px;

    border-bottom: 1px solid var(--bp-black);
}

.bp-modal__header > div {
    min-width: 0;
}

.bp-modal__eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--bp-blue);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-modal__header h2 {
    margin: 0;

    font-family: "Archivo Black", Arial, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.bp-modal__close {
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    padding: 0;

    border: 1px solid var(--bp-black);
    border-radius: 0;

    background: var(--bp-white);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        color var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-modal__close:hover {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-modal__close:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   MODAL TOOLBAR
   ======================================== */

.bp-modal__toolbar {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 16px;

    flex: 0 0 auto;

    padding: 18px 24px;

    border-bottom: 1px solid var(--bp-black);

    background: var(--bp-paper);
}

.bp-modal__search {
    box-sizing: border-box;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 0 15px;

    border: 1px solid var(--bp-border);
    border-radius: 0;

    appearance: none;
    -webkit-appearance: none;

    background: var(--bp-white);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;

    outline: 0;

    transition:
        border-color var(--bp-transition-fast),
        background var(--bp-transition-fast);
}

.bp-modal__search::-webkit-search-decoration,
.bp-modal__search::-webkit-search-cancel-button,
.bp-modal__search::-webkit-search-results-button,
.bp-modal__search::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.bp-modal__search::placeholder {
    color: var(--bp-text-secondary);
    opacity: 1;

    font-weight: 300;
}

.bp-modal__search:hover {
    border-color: var(--bp-black);
}

.bp-modal__search:focus {
    border-color: var(--bp-blue);
    background: var(--bp-white);
}

.bp-modal__search:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}

/* ========================================
   MODAL BODY
   ======================================== */

.bp-modal__body {
    min-height: 0;

    flex: 1 1 auto;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
}


/* ========================================
   MODAL BODY — FORM
   ======================================== */

.bp-modal__body--form {
    padding: 24px;
}

.bp-modal__body--form > .bp-form {
    width: 100%;

    display: flex;
    flex-direction: column;
}

.bp-modal__body--form .bp-form-section {
    width: 100%;
}

.bp-modal__body--form > .bp-alert {
    width: 100%;

    margin: 0 0 24px;
}


/* ========================================
   MODAL FORM ACTIONS
   ======================================== */

.bp-modal__body--form
.bp-form-actions {
    position: sticky;
    z-index: 5;

    bottom: -24px;

    margin:
        0
        -24px
        -24px;

    padding:
        18px
        24px;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-white);
}


/* ========================================
   LEGACY / DIRECT FORM BODY
   ======================================== */

form.bp-modal__body {
    padding: 24px;
}

form.bp-modal__body > .bp-form-grid + .bp-form-grid {
    margin-top: 28px;
}

.bp-modal__body > .bp-alert {
    width: auto;

    margin: 24px 24px 0;
}

.bp-modal__body--form > .bp-alert {
    width: 100%;

    margin: 0 0 24px;
}

form.bp-modal__body > .bp-alert {
    margin: 0 0 24px;
}

/* ========================================
   MODAL FOOTER
   ======================================== */

.bp-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    flex: 0 0 auto;

    padding: 18px 24px;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-white);
}

.bp-modal__dialog > .bp-form-actions {
    flex: 0 0 auto;

    margin: 0;

    padding: 18px 24px;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-white);
}

.bp-modal__dialog > .bp-form-actions .bp-button {
    min-height: 48px;
}


/* ========================================
   SOLUTION SELECTOR
   ======================================== */

[data-proposal-solution-option]
.bp-modal-list__action,
[data-proposal-edit-solution-option]
.bp-modal-list__action {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;
}

[data-proposal-solution-option]
input[type="checkbox"],
[data-proposal-edit-solution-option]
input[type="checkbox"] {
    width: 17px;
    height: 17px;

    min-height: 0;

    margin: 0;
    padding: 0;

    border: 1px solid var(--bp-black);

    accent-color: var(--bp-blue);

    cursor: pointer;
}

[data-proposal-solution-option]:hover
.bp-modal-list__action,
[data-proposal-edit-solution-option]:hover
.bp-modal-list__action {
    transform: none;
}


/* ========================================
   PROPOSAL SECTION SWITCH
   ======================================== */

.bp-proposal-section-switch {
    position: relative;

    min-height: 92px;

    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 20px;

    border: 1px solid var(--bp-border);

    cursor: pointer;

    background: var(--bp-white);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.bp-proposal-section-switch:hover {
    background: var(--bp-blue-wash);
    border-color: var(--bp-black);
}

.bp-proposal-section-switch input[type="checkbox"] {
    width: 18px;
    height: 18px;

    min-height: 0;

    flex: 0 0 18px;

    margin: 1px 0 0;
    padding: 0;

    accent-color: var(--bp-blue);

    cursor: pointer;
}

.bp-proposal-section-switch > span {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bp-proposal-section-switch strong {
    font-family: "Archivo", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.bp-proposal-section-switch small {
    max-width: 520px;

    font-family: "Archivo", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;

    color: var(--bp-text-secondary);
}

.bp-proposal-section-switch:has(
    input[type="checkbox"]:checked
) {
    background: var(--bp-blue-light);
    border-color: var(--bp-blue);
}

.bp-proposal-section-switch:has(
    input[type="checkbox"]:focus-visible
) {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   MODAL LIST
   ======================================== */

.bp-modal-list {
    width: 100%;
}

.bp-modal-list__item {
    width: 100%;
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 15px 24px;

    border: 0;
    border-bottom: 1px solid var(--bp-border);
    border-radius: 0;

    background: var(--bp-white);
    color: var(--bp-black);

    text-align: left;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        padding var(--bp-transition-fast);
}

.bp-modal-list__item:hover {
    padding-left: 30px;
    padding-right: 18px;

    background: var(--bp-blue-wash);
}

.bp-modal-list__item:focus-visible {
    position: relative;
    z-index: 2;

    outline: 2px solid var(--bp-blue);
    outline-offset: -2px;
}

.bp-modal-list__item.is-selected {
    background: var(--bp-blue-light);
}

.bp-modal-list__item.is-selected::before {
    content: "";

    align-self: stretch;

    width: 4px;

    flex: 0 0 4px;

    margin: -15px 0 -15px -24px;

    background: var(--bp-blue);
}

.bp-modal-list__item.is-selected:hover::before {
    margin-left: -30px;
}

.bp-modal-list__content {
    min-width: 0;

    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
}

.bp-modal-list__content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.bp-modal-list__content span,
.bp-modal-list__content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.035em;
}

.bp-modal-list__action {
    flex: 0 0 auto;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 18px;
    line-height: 1;

    transition:
        transform var(--bp-transition-fast);
}

.bp-modal-list__item:hover
.bp-modal-list__action {
    transform: translateX(4px);
}

.bp-modal-list__empty {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    color: var(--bp-text-secondary);

    text-align: center;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

/* ========================================
   MODAL CLIENT ACTIONS
   ======================================== */

.bp-modal-list__item--client {
    cursor: default;
}

.bp-modal-list__item--client:hover {
    padding-left: 24px;
    padding-right: 24px;
}

.bp-modal-list__item--client.is-selected:hover::before {
    margin-left: -24px;
}

.bp-modal-list__client-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    flex: 0 0 auto;
}

.bp-modal-list__client-actions .bp-button {
    min-height: 38px;
}

@media (max-width: 680px) {

    .bp-modal-list__item--client {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;
    }

    .bp-modal-list__item--client:hover {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bp-modal-list__item--client.is-selected:hover::before {
        margin-left: -20px;
    }

    .bp-modal-list__client-actions {
        width: 100%;

        justify-content: flex-start;
    }
}

@media (max-width: 480px) {

    .bp-modal-list__item--client:hover {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bp-modal-list__item--client.is-selected:hover::before {
        margin-left: -16px;
    }

    .bp-modal-list__client-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bp-modal-list__client-actions
    .bp-button {
        width: 100%;
    }
}

/* ========================================
   GLOBAL FEEDBACK MODAL
   ======================================== */

.bp-feedback-modal {
    position: fixed;
    z-index: 30000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

.bp-feedback-modal__backdrop {
    position: absolute;
    z-index: 0;

    inset: 0;

    background: rgba(0, 0, 0, 0.76);

    animation: bp-feedback-backdrop-in 160ms ease both;
}

.bp-feedback-modal__dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 560px);

    border: 1px solid var(--bp-black);

    background: var(--bp-white);
    color: var(--bp-black);

    animation: bp-feedback-dialog-in 180ms ease both;
}

.bp-feedback-modal__content {
    padding: 30px 30px 28px;
}

.bp-feedback-modal__eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--bp-blue);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.bp-feedback-modal__title {
    margin: 0;

    font-family: "Archivo Black", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.bp-feedback-modal__message {
    max-width: 460px;

    margin: 20px 0 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.bp-feedback-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding: 18px 30px;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-paper);
}

.bp-feedback-modal__actions .bp-button {
    min-width: 120px;
}

.bp-feedback-modal--danger
.bp-feedback-modal__eyebrow {
    color: var(--bp-danger);
}

.bp-feedback-modal--danger
.bp-feedback-modal__dialog {
    border-color: var(--bp-danger);
}

.bp-feedback-modal--danger
[data-bp-confirm-accept] {
    background: var(--bp-danger);
    border-color: var(--bp-danger);
    color: var(--bp-white);
}

.bp-feedback-modal--danger
[data-bp-confirm-accept]:hover {
    background: var(--bp-black);
    border-color: var(--bp-black);
    color: var(--bp-white);
}

.bp-feedback-modal--error
.bp-feedback-modal__eyebrow {
    color: var(--bp-danger);
}

.bp-feedback-modal--error
.bp-feedback-modal__dialog {
    border-color: var(--bp-danger);
}

.bp-feedback-modal--success
.bp-feedback-modal__eyebrow {
    color: var(--bp-success);
}


/* ========================================
   GLOBAL FEEDBACK MODAL — ANIMATIONS
   ======================================== */

@keyframes bp-feedback-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bp-feedback-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ========================================
   TOASTS
   ======================================== */

.bp-toast-container {
    position: fixed;
    z-index: 40000;

    right: 24px;
    bottom: 24px;

    width: min(420px, calc(100vw - 48px));

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    pointer-events: none;
}

.bp-toast {
    position: relative;

    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 17px 20px;

    border: 1px solid var(--bp-black);

    background: var(--bp-black);
    color: var(--bp-white);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    opacity: 0;
    transform: translateY(14px);

    pointer-events: auto;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.bp-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bp-toast.is-leaving {
    opacity: 0;
    transform: translateY(10px);
}

.bp-toast::before {
    content: "";

    width: 5px;

    align-self: stretch;
    flex: 0 0 5px;

    background: var(--bp-blue);
}

.bp-toast--success::before {
    background: var(--bp-success);
}

.bp-toast--error::before {
    background: var(--bp-danger);
}

.bp-toast--warning::before {
    background: var(--bp-warning);
}

.bp-toast--info::before {
    background: var(--bp-blue);
}


/* ========================================
   ALERTS
   ======================================== */

.bp-alert {
    width: 100%;
    margin-bottom: 32px;
    padding: 20px 24px;

    border: 1px solid var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
}

.bp-alert strong {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bp-alert ul {
    margin: 0;
    padding-left: 18px;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.bp-alert--error {
    background: var(--bp-danger-bg);
    border-color: var(--bp-danger);
}

.bp-alert--success {
    background: var(--bp-success-bg);
    border-color: var(--bp-success);
}

.bp-alert p {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}


/* ========================================
   DETAIL VIEW
   ======================================== */

.bp-detail-section {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--bp-space-12);

    padding: 32px 0;

    border-top: 1px solid var(--bp-black);
}

.bp-detail-section:last-child {
    border-bottom: 1px solid var(--bp-black);
}

.bp-detail-section__header h2 {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
}

.bp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}

.bp-detail {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-detail__label {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bp-detail__value {
    overflow-wrap: anywhere;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.bp-detail-content {
    max-width: 760px;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
}

.bp-detail-content p {
    margin: 0;
}

.bp-detail-content--empty {
    color: var(--bp-text-secondary);

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}


/* ========================================
   AUTO-FIT PAGE TITLE
   ======================================== */

.bp-page-title--fit {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-size: 8rem;

    overflow-wrap: normal;
    word-break: normal;
}

.bp-client-view .bp-page-header {
    min-height: 250px;
}

.bp-client-view .bp-page-title--fit {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 220px);
}

.bp-client-view .bp-page-header .bp-button {
    flex: 0 0 auto;
}


/* ========================================
   PAGE ACTIONS
   ======================================== */

.bp-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


/* ========================================
   DELETE BUTTON
   ======================================== */

.bp-button--danger-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--bp-text-secondary);
}

.bp-button--danger-ghost:hover {
    background: transparent;
    border-color: var(--bp-danger);
    color: var(--bp-danger);
}


/* ========================================
   DELETE CONFIRMATION
   ======================================== */

.bp-delete-confirm {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    margin-bottom: 32px;
    padding: 18px 20px;

    background: var(--bp-danger-bg);
    border: 1px solid var(--bp-danger);
}

.bp-delete-confirm__text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.bp-delete-confirm__text strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.bp-delete-confirm__text span {
    color: var(--bp-text);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

.bp-delete-confirm__actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


/* ========================================
   DANGER BUTTON
   ======================================== */

.bp-button--danger {
    background: var(--bp-danger);
    border-color: var(--bp-danger);
    color: var(--bp-white);
}

.bp-button--danger:hover {
    background: var(--bp-black);
    border-color: var(--bp-black);
    color: var(--bp-white);
}


/* ========================================
   REQUIRED
   ======================================== */

.bp-required {
    color: var(--bp-danger);
    font-weight: 700;
}


/* ========================================
   FIELD LABEL
   ======================================== */

.bp-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


/* ========================================
   TOOLTIP
   ======================================== */

.bp-tooltip {
    position: relative;

    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 18px;

    border: 1px solid var(--bp-border);
    border-radius: 50%;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    cursor: help;
}

.bp-tooltip:hover,
.bp-tooltip:focus {
    border-color: var(--bp-blue);
    color: var(--bp-black);
}

.bp-tooltip__content {
    position: absolute;
    z-index: 200;

    right: 0;
    bottom: calc(100% + 10px);

    width: 260px;

    padding: 12px 14px;

    background: var(--bp-black);
    color: var(--bp-white);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.025em;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(4px);

    transition:
        opacity var(--bp-transition-fast),
        transform var(--bp-transition-fast),
        visibility var(--bp-transition-fast);
}

.bp-tooltip:hover .bp-tooltip__content,
.bp-tooltip:focus .bp-tooltip__content,
.bp-tooltip:focus-within .bp-tooltip__content {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ========================================
   PLACEHOLDERS
   ======================================== */

.bp-field input::placeholder,
.bp-field textarea::placeholder {
    color: var(--bp-gray-500);
    opacity: 1;

    font-weight: 300;
}


/* ========================================
   INTERNATIONAL PHONE
   ======================================== */

.bp-field .iti {
    width: 100%;
}

.bp-field .iti input {
    width: 100%;
}

.bp-field .iti__selected-country {
    border-radius: 0;
}

.bp-field .iti__selected-country-primary {
    padding-left: 14px;
    padding-right: 10px;
}

.bp-field .iti__selected-dial-code {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.iti__dropdown-content {
    border: 1px solid var(--bp-black) !important;
    border-radius: 0 !important;

    background: var(--bp-white) !important;

    box-shadow: none !important;

    font-family: "Archivo", Arial, sans-serif;
}

.iti__search-input {
    min-height: 44px;

    border: 0 !important;
    border-bottom: 1px solid var(--bp-black) !important;
    border-radius: 0 !important;

    background: var(--bp-paper) !important;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
}

.iti__country {
    min-height: 42px;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--bp-blue) !important;
}

.iti__dial-code {
    color: var(--bp-text-secondary);
}

.iti .iti__search-input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 64px !important;

    padding-top: 0 !important;
    padding-right: 16px !important;
    padding-bottom: 0 !important;
    padding-left: 48px !important;

    margin: 0 !important;

    border: 0 !important;
    border-bottom: 1px solid var(--bp-black) !important;
    border-radius: 0 !important;

    background: var(--bp-paper) !important;
    color: var(--bp-black) !important;

    font-family: "Archivo", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    outline: 0 !important;
}

.iti .iti__search-input::placeholder {
    color: var(--bp-text-secondary) !important;
    opacity: 1 !important;
}

.iti .iti__search-input:hover {
    border-bottom-color: var(--bp-black) !important;
}

.iti .iti__search-input:focus {
    background: var(--bp-white) !important;
    border-bottom-color: var(--bp-blue) !important;
}

.iti .iti__search-input:focus-visible {
    outline: 2px solid var(--bp-blue) !important;
    outline-offset: -2px !important;
}


/* ========================================
   TEMPLATE BLOCKS
   ======================================== */

.bp-template-blocks {
    border-top: 1px solid var(--bp-black);
}

.bp-template-blocks__header {
    min-height: 140px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    padding: 28px 0;

    border-bottom: 1px solid var(--bp-black);
}

.bp-template-blocks__header > div {
    max-width: 640px;
}

.bp-template-blocks__header h2 {
    margin: 0 0 10px;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bp-template-blocks__header p {
    margin: 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

.bp-template-blocks__header .bp-button {
    flex: 0 0 auto;
}


/* ========================================
   TEMPLATE BLOCK
   ======================================== */

.bp-template-block {
    display: grid;
    grid-template-columns:
        220px
        minmax(0, 1fr);

    gap: var(--bp-space-12);

    padding: 32px 0;

    border-bottom: 1px solid var(--bp-border);
}

.bp-template-block__meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bp-template-block__number {
    flex: 0 0 auto;

    color: var(--bp-blue);

    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.bp-template-block__identity {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-template-block__identity strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.bp-template-block__identity span {
    max-width: 440px;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.45;
}

.bp-template-block__fields {
    min-width: 0;

    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr);

    gap: 24px;
}

.bp-template-block__content {
    grid-column: 1 / -1;
}

.bp-template-block__dynamic {
    grid-column: 1 / -1;

    min-height: 92px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    padding: 18px 20px;

    background: var(--bp-blue-wash);

    border-left: 4px solid var(--bp-blue);
}

.bp-template-block__dynamic span {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
}

.bp-template-block__dynamic p {
    margin: 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.45;
}


/* ========================================
   TEMPLATE BLOCK ORDER
   ======================================== */

.bp-template-block__position {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.bp-template-block__controls {
    display: flex;
    align-items: center;

    border: 1px solid var(--bp-border);
}

.bp-template-block__move {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-right: 1px solid var(--bp-border);
    border-radius: 0;

    background: var(--bp-white);
    color: var(--bp-black);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        color var(--bp-transition-fast);
}

.bp-template-block__move:last-child {
    border-right: 0;
}

.bp-template-block__move:hover:not(:disabled) {
    background: var(--bp-blue);
    color: var(--bp-black);
}

.bp-template-block__move:focus-visible {
    position: relative;
    z-index: 2;

    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}

.bp-template-block__move:disabled {
    color: var(--bp-gray-300);
    background: var(--bp-gray-100);

    cursor: not-allowed;
}


/* ========================================
   TEMPLATE ADD BLOCK
   ======================================== */

.bp-template-add {
    padding: 24px 0 28px;

    border-bottom: 1px solid var(--bp-black);

    background: var(--bp-blue-wash);
}

.bp-template-add__intro {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 0 20px 18px;
}

.bp-template-add__intro strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

.bp-template-add__intro span {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

.bp-template-add__options {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-border);
}

.bp-template-add__option {
    min-height: 110px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    padding: 18px 20px;

    border: 0;
    border-right: 1px solid var(--bp-border);
    border-radius: 0;

    background: var(--bp-white);
    color: var(--bp-black);

    text-align: left;

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        color var(--bp-transition-fast);
}

.bp-template-add__option:nth-child(4n) {
    border-right: 0;
}

.bp-template-add__option:hover:not(:disabled) {
    background: var(--bp-blue);
}

.bp-template-add__option strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

.bp-template-add__option span {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.4;
}

.bp-template-add__option:hover:not(:disabled) span {
    color: var(--bp-black);
}

.bp-template-add__option:focus-visible {
    position: relative;
    z-index: 2;

    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}

.bp-template-add__option:disabled,
.bp-template-add__option.is-disabled {
    background: var(--bp-gray-100);
    color: var(--bp-gray-500);

    cursor: not-allowed;
}

.bp-template-add__option:disabled span,
.bp-template-add__option.is-disabled span {
    color: var(--bp-gray-500);
}


/* ========================================
   TEMPLATE BLOCK ACTIONS
   ======================================== */

.bp-template-block__actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 4px;
}

.bp-template-block__remove {
    min-height: 36px;

    padding: 0;

    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;

    background: transparent;
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;

    cursor: pointer;

    transition:
        color var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-template-block__remove:hover {
    color: var(--bp-danger);
    border-bottom-color: var(--bp-danger);
}

.bp-template-block__remove:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   TEMPLATE EMPTY STRUCTURE
   ======================================== */

.bp-template-blocks__empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;

    padding: 32px 0;

    border-bottom: 1px solid var(--bp-black);
}

.bp-template-blocks__empty strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.bp-template-blocks__empty span {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}


/* ========================================
   LOGIN
   ======================================== */

.bp-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px;
    background: var(--bp-paper);
}

.bp-login__panel {
    width: min(100%, 1180px);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
    background: var(--bp-white);
    border: 1px solid var(--bp-black);
}

.bp-login__brand {
    display: flex;
    align-items: flex-end;
    padding: 48px;
    background: var(--bp-blue);
    border-right: 1px solid var(--bp-black);
}

.bp-login__brand img {
    display: block;
    width: min(100%, 440px);
    height: auto;
}

.bp-login__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}

.bp-login__header {
    margin-bottom: 48px;
}

.bp-login__header h1 {
    margin: 0;
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.bp-login__header .bp-login__password-title {
    max-width: 100%;
    font-size: clamp(44px, 4.25vw, 64px);
    overflow-wrap: normal;
}

.bp-login__header p {
    max-width: 420px;
    margin: 24px 0 0;
    color: var(--bp-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.bp-login__form {
    display: grid;
    gap: 24px;
}

.bp-login__submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
}


/* ========================================
   ERROR PAGE
   ======================================== */

.bp-error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bp-paper);
}

.bp-error-page__content {
    flex: 1;
    min-height: calc(100vh - 88px);

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(520px, 0.72fr);

    border-bottom: 1px solid var(--bp-black);
}

.bp-error-page__code {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    overflow: hidden;

    padding: 64px;

    background: var(--bp-blue);
    border-right: 1px solid var(--bp-black);

    font-family: "Archivo Black", sans-serif;
    font-size: clamp(180px, 20vw, 360px);
    line-height: 0.8;
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.bp-error-page__code .bp-brand-dot {
    color: var(--bp-white);
}

.bp-error-page__message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;

    padding:
        clamp(48px, 5vw, 88px)
        clamp(48px, 5vw, 88px);
}

.bp-error-page__message h1 {
    max-width: 660px;
    margin: 0;

    font-family: "Archivo Black", sans-serif;
    font-size: clamp(48px, 4vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.bp-error-page__message p {
    max-width: 520px;
    margin: 32px 0 36px;

    color: var(--bp-text-secondary);

    font-size: 16px;
    line-height: 1.55;
}

.bp-error-page__message .bp-button {
    min-height: 52px;
    padding-inline: 28px;
}

.bp-error-page__footer {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    padding: 20px 40px;

    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-error-page__footer img {
    display: block;

    width: 150px;
    height: auto;

    filter: invert(1);
}

.bp-error-page__footer span {
    font-family: "Archivo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}


/* ========================================
   PROPOSALS LIST
   ======================================== */

.bp-proposal-list {
    width: 100%;
    border-top: 1px solid var(--bp-black);
}

.bp-proposal-row {
    min-height: 82px;

    display: grid;
    grid-template-columns:
        90px
        minmax(220px, 1.45fr)
        minmax(160px, 1fr)
        140px
        120px
        120px
        24px;

    align-items: center;
    gap: 20px;

    border-bottom: 1px solid var(--bp-border);

    color: var(--bp-text);
    text-decoration: none;

    transition:
        background-color 160ms ease,
        padding 160ms ease;
}

.bp-proposal-row:not(.bp-proposal-row--header):hover {
    padding-inline: 12px;
    background: var(--bp-blue-wash);
}

.bp-proposal-row--header {
    min-height: 42px;

    color: var(--bp-text-secondary);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;

    border-bottom-color: var(--bp-black);
}

.bp-proposal-row__number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bp-proposal-row__title {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 15px;
    font-weight: 700;
}

.bp-proposal-row__client {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--bp-text-secondary);

    font-size: 13px;
}

.bp-proposal-row__value {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.bp-proposal-row__validity {
    color: var(--bp-text-secondary);

    font-size: 12px;
    white-space: nowrap;
}

.bp-proposal-row__arrow {
    font-size: 18px;
    line-height: 1;

    transition:
        transform 160ms ease;
}

.bp-proposal-row:not(.bp-proposal-row--header):hover
.bp-proposal-row__arrow {
    transform: translateX(4px);
}


/* ========================================
   CLIENT DETAIL — PROPOSALS
   ======================================== */

.bp-client-view .bp-detail-section--proposals
.bp-detail-content {
    width: 100%;
    max-width: none;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-list {
    border-top: 0;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row {
    min-height: 64px;

    grid-template-columns:
        118px
        minmax(0, 1fr)
        180px
        150px
        24px;

    gap: 20px;

    padding: 0;

    font-size: 13px;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row:hover {
    padding-inline: 12px;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row__number {
    font-size: 12px;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row__title {
    font-size: 14px;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row__date {
    color: var(--bp-text-secondary);

    font-size: 12px;
    white-space: nowrap;
}

.bp-client-view .bp-detail-section--proposals
.bp-proposal-row__arrow {
    justify-self: end;
}


/* ========================================
   PROPOSAL STATUS
   ======================================== */

.bp-proposal-status {
    width: fit-content;

    padding: 6px 8px;

    border: 1px solid currentColor;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.07em;

    white-space: nowrap;
}

.bp-proposal-status--draft {
    color: var(--bp-text-secondary);
    background: var(--bp-gray-100);
}

.bp-proposal-status--published {
    color: var(--bp-blue);
    background: var(--bp-blue-wash);
}

.bp-proposal-status--sent {
    color: var(--bp-blue);
    background: var(--bp-blue-light);
}

.bp-proposal-status--viewed {
    color: var(--bp-warning);
    background: var(--bp-warning-bg);
}

.bp-proposal-status--accepted {
    color: var(--bp-success);
    background: var(--bp-success-bg);
}

.bp-proposal-status--expired {
    color: var(--bp-danger);
    background: var(--bp-danger-bg);
}


/* ========================================
   PROPOSAL EDITOR V5
   ======================================== */

.bp-proposal-editor {
    width: 100%;
}

.bp-proposal-editor.is-guided-creation
.bp-editor-kicker {
    display: none;
}

.bp-proposal-editor.is-guided-creation
.bp-proposal-editor-section--guided-hidden,
.bp-proposal-editor.is-guided-creation
.bp-proposal-editor-section__button,
.bp-proposal-editor.is-guided-creation
.bp-template-block__controls,
.bp-proposal-editor.is-guided-creation
.bp-template-block__remove {
    display: none;
}

.bp-proposal-editor.is-guided-creation
[data-proposal-edit-update-catalog],
.bp-proposal-editor.is-guided-creation
[data-proposal-edit-add-catalog] {
    display: none !important;
}

.bp-proposal-editor__page-header {
    min-height: 210px;

    padding-bottom: 34px;
}

.bp-proposal-editor__page-header .bp-page-title {
    font-size: clamp(3.8rem, 6.2vw, 6.6rem);
}

.bp-proposal-editor__page-header
.bp-page-header__description {
    max-width: 760px;

    margin-top: 18px;

    font-size: 12px;
}

.bp-proposal-editor__form {
    border-bottom: 1px solid var(--bp-black);
}


/* ========================================
   PROPOSAL EDITOR — SECTION
   ======================================== */

.bp-proposal-editor-section {
    width: 100%;

    display: grid;
    grid-template-columns:
        minmax(190px, 220px)
        minmax(0, 1fr);

    gap: 48px;

    padding: 34px 0 38px;

    border-top: 1px solid var(--bp-black);
}

.bp-proposal-editor-section__intro {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bp-editor-kicker {
    display: block;

    margin-bottom: 10px;

    color: var(--bp-blue);

    font-family: "Archivo", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.09em;
}

.bp-proposal-editor-section__intro h2 {
    margin: 0;

    font-family: "Archivo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.bp-proposal-editor-section__intro p {
    max-width: 205px;

    margin: 11px 0 0;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.5;
}

.bp-proposal-editor-section__button {
    width: 100%;

    margin-top: 22px;

    min-height: 42px;

    padding-inline: 14px;

    font-size: 10px;
}

.bp-proposal-editor-section__content {
    min-width: 0;
}

.bp-proposal-editor-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 24px 20px;
}

.bp-proposal-editor-grid > .bp-field {
    grid-column: span 3;
}

.bp-proposal-editor-grid
.bp-field:has(
    [data-proposal-edit-validity-mode]
) {
    grid-column: span 2;
}

.bp-proposal-editor-grid
[data-proposal-edit-validity-date] {
    grid-column: span 4;
}

.bp-proposal-editor-grid
[data-proposal-edit-validity-days] {
    grid-column: span 2;
}

.bp-proposal-editor-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.bp-proposal-editor-grid--single > .bp-field {
    grid-column: auto;
}

.bp-proposal-editor__template {
    max-width: 620px;

    margin-top: 24px;
}

.bp-proposal-editor-stack {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.bp-proposal-editor-stack textarea {
    min-height: 160px;
}


/* ========================================
   PROPOSAL EDITOR — FIELDS
   ======================================== */

.bp-proposal-editor
.bp-field {
    gap: 8px;
}

.bp-proposal-editor
.bp-field input,
.bp-proposal-editor
.bp-field select {
    min-height: 48px;

    padding: 0 14px;

    font-size: 13px;
}

.bp-proposal-editor
.bp-field textarea {
    min-height: 112px;

    padding: 13px 14px;

    font-size: 13px;
    line-height: 1.5;
}

.bp-proposal-editor
.bp-proposal-selector {
    min-height: 58px;

    padding: 11px 14px;
}

.bp-proposal-editor
.bp-proposal-selector__label {
    font-size: 13px;
}

.bp-proposal-editor
.bp-proposal-selector__meta {
    font-size: 9px;
}


/* ========================================
   PROPOSAL EDITOR — TYPE
   ======================================== */

.bp-proposal-type-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.bp-proposal-type-option {
    position: relative;

    min-height: 112px;

    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 20px;

    border: 1px solid var(--bp-border);

    background: var(--bp-white);

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-proposal-type-option:hover {
    background: var(--bp-blue-wash);
    border-color: var(--bp-black);
}

.bp-proposal-type-option input[type="radio"] {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin: 1px 0 0;

    accent-color: var(--bp-blue);

    cursor: pointer;
}

.bp-proposal-type-option__body {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-proposal-type-option__body strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.bp-proposal-type-option__body small {
    max-width: 380px;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.5;
}

.bp-proposal-type-option:has(
    input[type="radio"]:checked
) {
    background: var(--bp-blue-light);
    border-color: var(--bp-blue);
}

.bp-proposal-type-option:has(
    input[type="radio"]:focus-visible
) {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}


/* ========================================
   PROPOSAL EDITOR — SECTIONS
   ======================================== */

.bp-proposal-sections-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--bp-border);
    border-left: 1px solid var(--bp-border);
}

.bp-proposal-section-option {
    position: relative;

    min-height: 108px;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 18px;

    border-right: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-border);

    background: var(--bp-white);

    cursor: pointer;

    transition:
        background var(--bp-transition-fast),
        border-color var(--bp-transition-fast);
}

.bp-proposal-section-option:hover {
    background: var(--bp-blue-wash);
}

.bp-proposal-section-option input[type="checkbox"] {
    width: 17px;
    height: 17px;

    min-height: 0;

    flex: 0 0 17px;

    margin: 0;
    padding: 0;

    accent-color: var(--bp-blue);

    cursor: pointer;
}

.bp-proposal-section-option > span:not(
    .bp-proposal-section-option__check
) {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bp-proposal-section-option strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.035em;
}

.bp-proposal-section-option small {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.4;
}

.bp-proposal-section-option:has(
    input[type="checkbox"]:checked
) {
    background: var(--bp-blue-light);
}

.bp-proposal-section-option.is-required {
    background: var(--bp-gray-100);

    cursor: default;
}

.bp-proposal-section-option.is-required:hover {
    background: var(--bp-gray-100);
}

.bp-proposal-section-option__check {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;

    background: var(--bp-black);
    color: var(--bp-white);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/* ========================================
   PROPOSAL EDITOR — COVER
   ======================================== */

.bp-proposal-editor-section
[data-proposal-edit-visual-only]
.bp-proposal-editor-grid--single {
    max-width: 620px;
}

.bp-proposal-editor
#proposal-cover-show-date {
    max-width: 280px;
}


/* ========================================
   PROPOSAL EDITOR — SOLUTIONS
   ======================================== */

.bp-proposal-solutions-list {
    width: 100%;

    border-top: 1px solid var(--bp-black);
}

.bp-proposal-solutions-list
.bp-proposal-solution-card {
    min-height: 104px;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 28px;

    padding: 20px 0;

    border-bottom: 1px solid var(--bp-border);
}

.bp-proposal-solutions-list
.bp-proposal-solution-card:hover {
    background: var(--bp-blue-wash);
}

.bp-proposal-solutions-list
.bp-template-block__meta {
    min-width: 0;

    align-items: center;
}

.bp-proposal-solutions-list
.bp-template-block__position {
    align-items: center;
    gap: 9px;
}

.bp-proposal-solutions-list
.bp-template-block__number {
    width: 42px;

    font-size: 24px;
    line-height: 1;
}

.bp-proposal-solutions-list
.bp-template-block__controls {
    border-color: var(--bp-border);
}

.bp-proposal-solutions-list
.bp-template-block__move {
    width: 28px;
    height: 28px;

    font-size: 13px;
}

.bp-proposal-solutions-list
.bp-template-block__identity {
    gap: 6px;
}

.bp-proposal-solutions-list
.bp-template-block__identity strong {
    max-width: 620px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.bp-proposal-solutions-list
.bp-template-block__identity span {
    max-width: 760px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.bp-proposal-solution-card__origin {
    width: fit-content;

    padding: 5px 7px;

    border: 1px solid var(--bp-border);

    background: var(--bp-paper);
    color: var(--bp-text-secondary) !important;

    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.bp-proposal-solutions-list
.bp-template-block__actions {
    grid-column: auto;

    align-items: center;
    justify-content: flex-end;

    padding: 0;
}

.bp-proposal-solutions-list
.bp-template-block__actions .bp-button {
    min-height: 38px;

    padding-inline: 15px;

    font-size: 10px;
}

.bp-proposal-solutions-list
.bp-template-block__remove {
    min-height: 38px;
}

.bp-proposal-solutions-empty {
    min-height: 160px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    padding: 28px 0;

    border-bottom: 1px solid var(--bp-black);
}

.bp-proposal-solutions-empty strong {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.bp-proposal-solutions-empty span {
    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
}


/* ========================================
   PROPOSAL EDITOR — INVESTMENT
   ======================================== */

.bp-proposal-investment {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bp-proposal-investment__values {
    display: grid;
    grid-template-columns:
        1.1fr
        1fr
        1.2fr
        1.15fr;

    gap: 0;

    border-top: 1px solid var(--bp-black);
    border-left: 1px solid var(--bp-border);
}

.bp-proposal-investment__values
.bp-field {
    min-width: 0;

    gap: 10px;

    padding: 18px;

    border-right: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-black);

    background: var(--bp-white);
}

.bp-proposal-investment__values
.bp-field input,
.bp-proposal-investment__values
.bp-field select {
    min-height: 46px;

    padding-inline: 12px;
}

.bp-proposal-investment__values
.bp-field:nth-child(4) {
    background: var(--bp-blue-light);
}

.bp-proposal-investment__values
.bp-field:nth-child(4) input {
    background: var(--bp-white);
    border-color: var(--bp-blue);

    color: var(--bp-black);

    font-weight: 700;
}

.bp-proposal-investment__details {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.bp-proposal-investment__details
.bp-field textarea {
    min-height: 120px;
}

.bp-proposal-deadline-suggestion {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-top: 2px;
}

.bp-proposal-deadline-suggestion
.bp-field__hint {
    flex: 1 1 auto;

    text-transform: none;

    font-size: 10px;
    line-height: 1.45;
}

.bp-proposal-deadline-suggestion
.bp-button {
    min-height: 34px;

    flex: 0 0 auto;

    padding-inline: 12px;

    font-size: 9px;
}


/* ========================================
   PROPOSAL EDITOR — ACTIONS
   ======================================== */

.bp-proposal-editor__actions {
    position: sticky;
    z-index: 20;

    bottom: 0;

    margin: 0;

    padding: 16px 0;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-paper);
}


/* ========================================
   PROPOSAL EDITOR — MODALS
   ======================================== */

[data-proposal-edit-client-create-form],
[data-proposal-edit-solution-create-form],
[data-proposal-edit-solution-edit-form] {
    display: flex;
    flex-direction: column;

    gap: 28px;
}

[data-proposal-edit-client-create-form]
.bp-form-actions,
[data-proposal-edit-solution-create-form]
.bp-form-actions,
[data-proposal-edit-solution-edit-form]
.bp-form-actions {
    position: sticky;
    z-index: 5;

    bottom: -24px;

    margin: 0 -24px -24px;

    padding: 18px 24px;

    border-top: 1px solid var(--bp-black);

    background: var(--bp-white);
}

[data-proposal-edit-solution-edit-form]
.bp-proposal-section-switch,
[data-proposal-edit-solution-create-form]
.bp-proposal-section-switch {
    min-height: 84px;
}


/* ========================================
   PROPOSAL EDITOR TEXTAREAS
   ======================================== */

.bp-proposal-form textarea {
    resize: vertical;
}


/* ========================================
   LOGIN — RESPONSIVE
   ======================================== */

@media (max-width: 900px) {

    .bp-login {
        padding: 20px;
    }

    .bp-login__panel {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .bp-login__brand {
        min-height: 220px;
        padding: 32px;
        border-right: 0;
        border-bottom: 1px solid var(--bp-black);
    }

    .bp-login__brand img {
        width: min(100%, 300px);
    }

    .bp-login__content {
        padding: 40px 32px;
    }

}

@media (max-width: 520px) {

    .bp-login {
        padding: 0;
        background: var(--bp-white);
    }

    .bp-login__panel {
        min-height: 100vh;
        border: 0;
    }

    .bp-login__brand {
        min-height: 170px;
        padding: 24px;
    }

    .bp-login__content {
        padding: 40px 24px;
    }

    .bp-login__header h1 {
        font-size: 48px;
    }

}


/* ========================================
   ERROR PAGE — RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {

    .bp-error-page__content {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(440px, 1fr);
    }

    .bp-error-page__code {
        padding: 40px;
        font-size: clamp(150px, 20vw, 240px);
    }

    .bp-error-page__message {
        padding: 48px;
    }

    .bp-error-page__message h1 {
        font-size: clamp(44px, 5vw, 62px);
    }

}

@media (max-width: 800px) {

    .bp-error-page__content {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .bp-error-page__code {
        min-height: 280px;

        padding: 40px 24px;

        border-right: 0;
        border-bottom: 1px solid var(--bp-black);

        font-size: clamp(150px, 43vw, 280px);
    }

    .bp-error-page__message {
        padding: 56px 32px;
    }

    .bp-error-page__message h1 {
        max-width: 600px;
        font-size: clamp(46px, 10vw, 68px);
    }

    .bp-error-page__footer {
        padding: 20px 32px;
    }

}

@media (max-width: 520px) {

    .bp-error-page__code {
        min-height: 220px;
        padding: 32px 20px;

        font-size: clamp(130px, 42vw, 200px);
    }

    .bp-error-page__message {
        padding: 44px 24px 52px;
    }

    .bp-error-page__message h1 {
        font-size: clamp(42px, 12vw, 56px);
        line-height: 0.92;
    }

    .bp-error-page__message p {
        margin: 28px 0 32px;
        font-size: 15px;
    }

    .bp-error-page__message .bp-button {
        width: 100%;
    }

    .bp-error-page__footer {
        min-height: 78px;
        padding: 18px 24px;
    }

    .bp-error-page__footer img {
        width: 125px;
    }

}


/* ========================================
   CLIENT DETAIL — PROPOSALS RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row {
        grid-template-columns:
            90px
            minmax(0, 1fr)
            140px
            120px
            24px;
    }

}

@media (max-width: 800px) {

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row {
        min-height: 86px;

        grid-template-columns:
            64px
            minmax(0, 1fr)
            24px;

        grid-template-areas:
            "number title arrow"
            "number status arrow"
            "number date arrow";

        gap: 5px 14px;

        padding: 14px 0;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row:hover {
        padding-inline: 10px;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row__number {
        grid-area: number;

        align-self: start;

        padding-top: 3px;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row__title {
        grid-area: title;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-status {
        grid-area: status;

        display: inline-flex;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row__date {
        grid-area: date;
    }

    .bp-client-view .bp-detail-section--proposals
    .bp-proposal-row__arrow {
        grid-area: arrow;

        align-self: center;
    }

}


/* ========================================
   PROPOSALS — RESPONSIVE
   ======================================== */

@media (max-width: 1280px) {

    .bp-proposal-row {
        grid-template-columns:
            80px
            minmax(200px, 1.4fr)
            minmax(150px, 1fr)
            125px
            110px
            24px;
    }

    .bp-proposal-row__validity,
    .bp-proposal-row--header span:nth-child(6) {
        display: none;
    }

}

@media (max-width: 980px) {

    .bp-proposal-row {
        grid-template-columns:
            76px
            minmax(180px, 1fr)
            minmax(140px, 0.8fr)
            110px
            24px;
    }

    .bp-proposal-status,
    .bp-proposal-row--header span:nth-child(5) {
        display: none;
    }

}

@media (max-width: 720px) {

    .bp-proposal-row--header {
        display: none;
    }

    .bp-proposal-row {
        position: relative;

        min-height: 108px;

        grid-template-columns:
            64px
            minmax(0, 1fr)
            24px;

        grid-template-areas:
            "number title arrow"
            "number client arrow"
            "number value arrow";

        gap: 5px 14px;

        padding: 18px 0;
    }

    .bp-proposal-row:not(.bp-proposal-row--header):hover {
        padding-inline: 10px;
    }

    .bp-proposal-row__number {
        grid-area: number;

        align-self: start;

        padding-top: 3px;
    }

    .bp-proposal-row__title {
        grid-area: title;
    }

    .bp-proposal-row__client {
        grid-area: client;
    }

    .bp-proposal-row__value {
        grid-area: value;
    }

    .bp-proposal-row__arrow {
        grid-area: arrow;

        align-self: center;
    }

    .bp-proposal-status,
    .bp-proposal-row__validity {
        display: none;
    }

}


/* ========================================
   CLIENTS — RESPONSIVE
   ======================================== */

@media (max-width: 900px) {

    .bp-client-row {
        grid-template-columns:
            58px
            minmax(0, 1fr)
            110px
            24px;
    }

    .bp-client-row__date,
    .bp-client-row--header span:nth-child(4) {
        display: none;
    }

}

@media (max-width: 680px) {

    .bp-search {
        padding: 22px 0;
    }

    .bp-client-toolbar {
        min-height: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 14px;

        padding: 16px 0;
    }

    .bp-client-toolbar__order {
        width: 100%;

        justify-content: space-between;
    }

    .bp-client-toolbar select {
        min-width: 0;
        width: min(220px, 60%);
    }

    .bp-client-row--header {
        display: none;
    }

    .bp-client-row {
        min-height: 82px;

        grid-template-columns:
            48px
            minmax(0, 1fr)
            24px;

        grid-template-areas:
            "number name arrow"
            "number type arrow";

        gap: 4px 12px;

        padding: 12px 0;
    }

    .bp-client-row__number {
        grid-area: number;
        align-self: start;

        padding-top: 3px;
    }

    .bp-client-row__name {
        grid-area: name;
    }

    .bp-client-row__type {
        grid-area: type;

        color: var(--bp-text-secondary);
    }

    .bp-client-row__date {
        display: none;
    }

    .bp-client-row__arrow {
        grid-area: arrow;

        align-self: center;
    }

    .bp-client-row:not(.bp-client-row--header):hover {
        padding-inline: 10px;
    }

}


/* ========================================
   PROPOSAL EDITOR — RESPONSIVE
   ======================================== */

@media (max-width: 1180px) {

    .bp-proposal-editor-section {
        grid-template-columns:
            180px
            minmax(0, 1fr);

        gap: 32px;
    }

    .bp-proposal-sections-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bp-proposal-investment__values {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bp-proposal-solutions-list
    .bp-proposal-solution-card {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-solutions-list
    .bp-template-block__actions {
        justify-content: flex-start;

        padding-left: 58px;
    }

}

@media (max-width: 900px) {

    .bp-proposal-editor__page-header {
        min-height: 180px;
    }

    .bp-proposal-editor-section {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 24px;

        padding: 28px 0 32px;
    }

    .bp-proposal-editor-section__intro p {
        max-width: 560px;
    }

    .bp-proposal-editor-section__button {
        width: auto;
    }

    .bp-proposal-editor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bp-proposal-editor-grid > .bp-field,
    .bp-proposal-editor-grid
    .bp-field:has(
        [data-proposal-edit-validity-mode]
    ),
    .bp-proposal-editor-grid
    [data-proposal-edit-validity-date],
    .bp-proposal-editor-grid
    [data-proposal-edit-validity-days] {
        grid-column: span 1;
    }

    .bp-proposal-editor-stack {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-investment__details {
        grid-template-columns:
            minmax(0, 1fr);
    }

}

@media (max-width: 680px) {

    .bp-proposal-editor__page-header {
        min-height: 160px;

        padding-bottom: 26px;
    }

    .bp-proposal-editor__page-header .bp-page-title {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .bp-proposal-editor-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-type-options {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-sections-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-investment__values {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-proposal-solutions-list
    .bp-proposal-solution-card {
        padding: 18px 0;
    }

    .bp-proposal-solutions-list
    .bp-template-block__meta {
        align-items: flex-start;
    }

    .bp-proposal-solutions-list
    .bp-template-block__actions {
        padding-left: 0;
    }

    .bp-proposal-solutions-list
    .bp-template-block__identity strong {
        white-space: normal;
    }

    .bp-proposal-deadline-suggestion {
        align-items: stretch;
        flex-direction: column;
    }

    .bp-proposal-deadline-suggestion
    .bp-button {
        width: 100%;
    }

    .bp-proposal-editor__actions {
        position: static;

        align-items: stretch;
        flex-direction: column-reverse;
    }

    .bp-proposal-editor__actions
    .bp-button {
        width: 100%;
    }

}


/* ========================================
   GLOBAL FEEDBACK — RESPONSIVE
   ======================================== */

@media (max-width: 680px) {

    .bp-feedback-modal {
        align-items: flex-end;

        padding: 16px;
    }

    .bp-feedback-modal__dialog {
        width: 100%;
    }

    .bp-feedback-modal__content {
        padding: 26px 22px 24px;
    }

    .bp-feedback-modal__title {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .bp-feedback-modal__actions {
        padding: 16px 22px;
    }

    .bp-toast-container {
        right: 16px;
        bottom: 16px;

        width: calc(100vw - 32px);
    }

}

@media (max-width: 480px) {

    .bp-feedback-modal {
        padding: 0;
    }

    .bp-feedback-modal__dialog {
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .bp-feedback-modal__content {
        padding: 24px 20px 22px;
    }

    .bp-feedback-modal__actions {
        flex-direction: column-reverse;
        align-items: stretch;

        padding: 16px 20px 20px;
    }

    .bp-feedback-modal__actions .bp-button {
        width: 100%;
    }

    .bp-toast-container {
        right: 12px;
        bottom: 12px;

        width: calc(100vw - 24px);
    }

    .bp-toast {
        min-height: 68px;

        padding: 15px 16px;
    }

}


/* ========================================
   MODAL — TABLET
   ======================================== */

@media (max-width: 900px) {

    .bp-modal {
        padding: 20px;
    }

    .bp-modal__dialog {
        max-height: calc(100vh - 40px);
    }

}


/* ========================================
   MODAL — MOBILE
   ======================================== */

@media (max-width: 680px) {

    .bp-modal {
        align-items: stretch;

        padding: 0;
    }

    .bp-modal__dialog,
    .bp-modal__dialog--large {
        width: 100%;
        height: 100%;
        max-height: none;

        border: 0;
    }

    .bp-modal__header {
        min-height: 82px;

        padding: 18px 20px;
    }

    .bp-modal__header h2 {
        font-size: 1.65rem;
    }

    .bp-modal__close {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 24px;
    }

    .bp-modal__toolbar {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 10px;

        padding: 14px 20px;
    }

    .bp-modal__toolbar
    .bp-button {
        width: 100%;
    }

    .bp-modal-list__item {
        min-height: 78px;

        padding: 15px 20px;
    }

    .bp-modal-list__item:hover {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bp-modal-list__item.is-selected::before {
        margin-left: -20px;
    }

    .bp-modal-list__item.is-selected:hover::before {
        margin-left: -20px;
    }

    form.bp-modal__body {
        padding: 20px;
    }

    .bp-modal__body > .bp-alert {
        margin: 20px 20px 0;
    }

    form.bp-modal__body > .bp-alert {
        margin: 0 0 20px;
    }

    .bp-modal__footer {
        padding: 16px 20px;
    }

    [data-proposal-edit-client-create-form]
    .bp-form-grid,
    [data-proposal-edit-solution-create-form]
    .bp-form-grid,
    [data-proposal-edit-solution-edit-form]
    .bp-form-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    [data-proposal-edit-client-create-form]
    .bp-form-actions,
    [data-proposal-edit-solution-create-form]
    .bp-form-actions,
    [data-proposal-edit-solution-edit-form]
    .bp-form-actions {
        bottom: -20px;

        margin:
            0
            -20px
            -20px;

        padding: 16px 20px;
    }

    .bp-proposal-selector {
        min-height: 68px;
    }
    
        .bp-modal__body--form {
        padding: 20px;
    }

    .bp-modal__body--form > .bp-alert {
        margin: 0 0 20px;
    }

    .bp-modal__body--form
    .bp-form-section {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 18px;

        padding: 24px 0;
    }

    .bp-modal__body--form
    .bp-form-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .bp-modal__body--form
    .bp-form-actions {
        bottom: -20px;

        margin:
            0
            -20px
            -20px;

        padding: 16px 20px;
    }

}


/* ========================================
   MODAL — SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {

    .bp-modal__header {
        padding-inline: 16px;
    }

    .bp-modal__toolbar {
        padding-inline: 16px;
    }

    .bp-modal-list__item {
        padding-inline: 16px;
    }

    .bp-modal-list__item:hover {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bp-modal-list__item.is-selected::before {
        margin-left: -16px;
    }

    .bp-modal-list__item.is-selected:hover::before {
        margin-left: -16px;
    }

    form.bp-modal__body {
        padding: 16px;
    }

    .bp-modal__body > .bp-alert {
        margin-left: 16px;
        margin-right: 16px;
    }

    form.bp-modal__body > .bp-alert {
        margin: 0 0 16px;
    }

    .bp-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;

        padding: 16px;
    }

    .bp-modal__footer
    .bp-button {
        width: 100%;
    }

    [data-proposal-edit-client-create-form]
    .bp-form-actions,
    [data-proposal-edit-solution-create-form]
    .bp-form-actions,
    [data-proposal-edit-solution-edit-form]
    .bp-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;

        bottom: -16px;

        margin:
            0
            -16px
            -16px;

        padding: 16px;
    }

    [data-proposal-edit-client-create-form]
    .bp-form-actions
    .bp-button,
    [data-proposal-edit-solution-create-form]
    .bp-form-actions
    .bp-button,
    [data-proposal-edit-solution-edit-form]
    .bp-form-actions
    .bp-button {
        width: 100%;
    }
    
        .bp-modal__body--form {
        padding: 16px;
    }

    .bp-modal__body--form > .bp-alert {
        margin: 0 0 16px;
    }

    .bp-modal__body--form
    .bp-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;

        bottom: -16px;

        margin:
            0
            -16px
            -16px;

        padding: 16px;
    }

    .bp-modal__body--form
    .bp-form-actions
    .bp-button {
        width: 100%;
    }

}


/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .bp-feedback-modal__backdrop,
    .bp-feedback-modal__dialog {
        animation: none;
    }

    .bp-toast {
        transition: none;
    }

}

.bp-login__secondary-link {
    width: fit-content;
    color: var(--bp-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-login__secondary-link:hover,
.bp-login__secondary-link:focus-visible {
    color: var(--bp-black);
}

.bp-login__actions {
    display: grid;
    gap: 16px;
}


/* ========================================
   ADMIN UI POLISH V1.1
   ======================================== */

.bp-page-header {
    min-height: 210px;
    gap: 32px;
    padding-bottom: 24px;
}

.bp-page-header > div:first-child {
    min-width: 0;
}

.bp-page-header__description {
    max-width: 640px;
    margin-top: 16px;
    line-height: 1.55;
}

.bp-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-button:focus-visible {
    outline: 2px solid var(--bp-blue);
    outline-offset: 2px;
}

.bp-button:disabled,
.bp-button[aria-disabled="true"] {
    pointer-events: none;
}

.bp-stat {
    min-height: 140px;
    padding: 20px 22px 18px;
}

.bp-recent {
    margin-top: 48px;
}

.bp-empty-state {
    min-height: 220px;
    padding-block: 36px;
}

.bp-empty-state--search {
    min-height: 180px;
}

.bp-search {
    padding: 22px 0;
}

.bp-search input {
    min-height: 48px;
}

.bp-client-toolbar {
    min-height: 52px;
}

.bp-client-row,
.bp-proposal-row {
    min-height: 62px;
}

.bp-client-row--header,
.bp-proposal-row--header {
    min-height: 40px;
}

.bp-form-section {
    gap: 40px;
    padding: 28px 0;
}

.bp-form-grid {
    gap: 24px 20px;
}

.bp-field {
    gap: 8px;
}

.bp-field input,
.bp-field select {
    min-height: 48px;
    padding: 12px 14px;
}

.bp-field textarea {
    min-height: 128px;
    padding: 12px 14px;
}

.bp-field input:disabled,
.bp-field select:disabled,
.bp-field textarea:disabled {
    border-color: var(--bp-border-light);
    background: var(--bp-gray-100);
    color: var(--bp-text-disabled);
    cursor: not-allowed;
    opacity: 1;
}

.bp-field__hint,
.bp-field__help {
    line-height: 1.5;
}

.bp-field__counter {
    display: block;
    align-self: flex-end;

    color: var(--bp-text-secondary);

    font-family: "Archivo", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.035em;

    text-align: right;
}

.bp-field__counter.is-warning {
    color: var(--bp-warning);
}

.bp-field__counter.is-limit {
    color: var(--bp-black);
    font-weight: 700;
}

.bp-field__counter.is-error {
    align-self: stretch;

    color: var(--bp-danger);
    font-weight: 700;
    text-align: left;
}

.bp-field input.is-editorial-invalid,
.bp-field textarea.is-editorial-invalid {
    border-color: var(--bp-danger);
    outline: 1px solid var(--bp-danger);
    outline-offset: 1px;
}

.bp-form-actions {
    flex-wrap: wrap;
    padding: 24px 0;
}

.bp-proposal-wizard-progress {
    margin-bottom: 32px;
}

.bp-proposal-wizard-progress__step {
    padding-bottom: 10px;
}

.bp-proposal-wizard-panel__header {
    margin-bottom: 28px;
}

.bp-proposal-wizard-configuration {
    margin-bottom: 24px;
    padding: 22px;
}

.bp-alert {
    line-height: 1.5;
}

.bp-modal__dialog,
.bp-feedback-modal__dialog {
    max-height: calc(100dvh - 32px);
}

.bp-modal__body {
    overscroll-behavior: contain;
}

@media (max-width: 1100px) {
    .bp-page-header {
        min-height: 190px;
    }

    .bp-form-section {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .bp-page-header {
        min-height: auto;
        gap: 24px;
        padding: 40px 0 24px;
    }

    .bp-content .bp-page-title {
        max-width: 100%;

        font-size: clamp(2.25rem, 11.25vw, 3rem);
        line-height: 0.94;

        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .bp-page-header .bp-button,
    .bp-page-actions {
        width: 100%;
    }

    .bp-page-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .bp-page-actions .bp-button {
        flex: 1 1 180px;
    }

    .bp-stat {
        min-height: 112px;
        padding: 18px 20px;
    }

    .bp-recent {
        margin-top: 36px;
    }

    .bp-empty-state,
    .bp-empty-state--search {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
    }

    .bp-empty-state .bp-button {
        width: 100%;
    }

    .bp-search {
        padding: 20px 0;
    }

    .bp-client-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
    }

    .bp-client-toolbar__order,
    .bp-client-toolbar select {
        width: 100%;
    }

    .bp-client-toolbar__order {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .bp-form-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 24px 0;
    }

    .bp-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .bp-field--full {
        grid-column: auto;
    }

    .bp-form-actions {
        align-items: stretch;
        padding: 20px 0;
    }

    .bp-form-actions .bp-button {
        flex: 1 1 180px;
    }

    .bp-proposal-wizard-progress {
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .bp-proposal-wizard-progress__step {
        scroll-snap-align: start;
    }

    .bp-proposal-wizard-configuration {
        padding: 18px;
    }

    .bp-modal__dialog,
    .bp-feedback-modal__dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }
}

@media (max-width: 480px) {
    .bp-page-header {
        padding-top: 32px;
    }

    .bp-page-header__description {
        font-size: 12px;
    }

    .bp-page-actions,
    .bp-form-actions {
        flex-direction: column;
    }

    .bp-page-actions .bp-button,
    .bp-form-actions .bp-button {
        width: 100%;
        flex-basis: auto;
    }

    .bp-proposal-wizard-progress {
        grid-template-columns: repeat(6, minmax(76px, 1fr));
        gap: 6px;
    }

    .bp-proposal-wizard-progress__step {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .bp-proposal-wizard-progress__label {
        width: 100%;
        font-size: 10px;
    }

    .bp-modal__header,
    .bp-modal__body,
    .bp-modal__footer,
    .bp-feedback-modal__content,
    .bp-feedback-modal__actions {
        padding-inline: 18px;
    }
}

/* =========================================================
   PROPOSAL EDITOR
   TEMPLATE + INSTITUTIONAL
   ========================================================= */

.bp-proposal-institutional-action {
    display: flex;

    align-items: center;

    margin-top: 18px;
}

.bp-proposal-institutional-action .bp-button {
    width: auto;
}


/* =========================================================
   INSTITUTIONAL BLOCKED MODAL
   ========================================================= */

.bp-proposal-institutional-modal__body {
    padding:
        28px
        30px
        30px;
}

.bp-proposal-institutional-modal__body p {
    max-width: 720px;

    margin: 0;

    color: #444444;

    font-size: 15px;

    line-height: 1.55;
}

.bp-proposal-institutional-modal .bp-form-actions {
    margin-top: 0;

    padding:
        22px
        30px
        28px;

    border-top:
        1px
        solid
        var(--bp-border, #d8d8d8);
}

/* ========================================
   PUBLIC LINK
   ======================================== */

.bp-public-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 24px;
}

.bp-public-link__url {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--bp-black);

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 4px;
}

.bp-public-link__actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex: 0 0 auto;
}


@media (max-width: 780px) {

    .bp-public-link {
        align-items: stretch;
        flex-direction: column;
    }

    .bp-public-link__url {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .bp-public-link__actions {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .bp-public-link {
        padding: 20px;
    }

    .bp-public-link__actions {
        flex-direction: column;
    }

    .bp-public-link__actions
    .bp-button {
        width: 100%;
    }
}

/* ========================================
   DELIVERY FIELDS
   ======================================== */

.bp-delivery-fields {
    display: flex;
    flex-direction: column;

    gap: 28px;

    min-width: 0;
    width: 100%;
}

.bp-delivery-fields .bp-field {
    width: 100%;
    min-width: 0;
}

.bp-delivery-fields input,
.bp-delivery-fields textarea {
    box-sizing: border-box;
    width: 100%;
}

/* ========================================
   DELIVERY VARIABLES
   ======================================== */

.bp-delivery-variables {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    margin-top: 20px;

    background: var(--bp-black);

    border: 1px solid var(--bp-black);
}

.bp-delivery-variable {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6px;

    min-width: 0;

    padding: 18px 20px;

    border: 0;

    background: var(--bp-white);

    color: var(--bp-black);

    text-align: left;

    cursor: pointer;
}

.bp-delivery-variable:hover,
.bp-delivery-variable:focus-visible {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-delivery-variable strong {
    font-size: 14px;
}

.bp-delivery-variable span {
    font-size: 12px;
    line-height: 1.4;

    opacity: .7;
}


/* ========================================
   VARIABLE AUTOCOMPLETE
   ======================================== */

.bp-variable-suggest {
    overflow: hidden;

    max-height: 320px;
    overflow-y: auto;

    border: 1px solid var(--bp-black);

    background: var(--bp-white);

    box-shadow:
        6px 6px 0 var(--bp-black);
}

.bp-variable-suggest__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    width: 100%;

    padding: 14px 16px;

    border: 0;
    border-bottom: 1px solid var(--bp-black);

    background: var(--bp-white);

    color: var(--bp-black);

    text-align: left;

    cursor: pointer;
}

.bp-variable-suggest__item:last-child {
    border-bottom: 0;
}

.bp-variable-suggest__item:hover,
.bp-variable-suggest__item.is-active {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-variable-suggest__item strong {
    font-size: 13px;
}

.bp-variable-suggest__item span {
    font-size: 11px;
    line-height: 1.4;

    opacity: .7;
}


@media (max-width: 680px) {

    .bp-delivery-variables {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PAGE INTRO
   ======================================== */

.bp-page-intro {
    display: grid;

    grid-template-columns:
        minmax(180px, .32fr)
        minmax(0, 1fr);

    margin-bottom: 40px;

    border-top: 1px solid var(--bp-black);
    border-bottom: 1px solid var(--bp-black);
}

.bp-page-intro__label {
    padding: 22px 24px;

    border-right: 1px solid var(--bp-black);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .04em;
}

.bp-page-intro__content {
    max-width: 920px;

    padding: 22px 24px;
}

.bp-page-intro__title {
    display: block;

    margin-bottom: 7px;

    font-size: 18px;
    line-height: 1.2;
}

.bp-page-intro__content p {
    max-width: 760px;

    margin: 0;

    font-size: 14px;
    line-height: 1.6;
}


@media (max-width: 680px) {

    .bp-page-intro {
        grid-template-columns: 1fr;
    }

    .bp-page-intro__label {
        padding: 16px 20px;

        border-right: 0;
        border-bottom: 1px solid var(--bp-black);
    }

    .bp-page-intro__content {
        padding: 20px;
    }
}

/* ========================================
   SETTINGS HUB
   ======================================== */

.bp-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    margin-bottom: 48px;

    border: 1px solid var(--bp-black);

    background: var(--bp-black);
}


.bp-settings-card {
    display: grid;
    grid-template-rows:
        auto 1fr auto;

    min-height: 320px;

    background: var(--bp-white);
}


.bp-settings-card__number {
    padding: 20px 24px;

    border-bottom: 1px solid var(--bp-black);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .04em;
}


.bp-settings-card__content {
    padding: 32px 24px 40px;
}


.bp-settings-card__eyebrow {
    display: block;

    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;
}


.bp-settings-card__content h2 {
    margin: 0 0 18px;

    font-family: var(--bp-font-heading);
    font-size: clamp(24px, 2.3vw, 38px);
    font-weight: 900;

    line-height: 1;
}


.bp-settings-card__content p {
    max-width: 520px;

    margin: 0;

    font-size: 14px;
    line-height: 1.6;
}


.bp-settings-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 64px;

    padding: 16px 24px;

    border-top: 1px solid var(--bp-black);
}


.bp-settings-card__status {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: .06em;
}


@media (max-width: 780px) {

    .bp-settings-grid {
        grid-template-columns: 1fr;
    }

    .bp-settings-card {
        min-height: 280px;
    }
}


@media (max-width: 480px) {

    .bp-settings-card__number,
    .bp-settings-card__content,
    .bp-settings-card__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bp-settings-card__content {
        padding-top: 28px;
        padding-bottom: 32px;
    }
}

/* ========================================
   BRAND COLOR
   ======================================== */

.bp-brand-color {
    display: grid;
    grid-template-columns:
        64px minmax(0, 1fr);

    gap: 10px;

    width: 100%;
}

.bp-brand-color input[type="color"] {
    width: 64px;
    height: 52px;

    padding: 4px;

    border: 1px solid var(--bp-black);

    background: var(--bp-white);

    cursor: pointer;
}


/* ========================================
   BRAND ASSETS
   ======================================== */

.bp-brand-assets-wrap {
    width: 100%;
    min-width: 0;
}

.bp-brand-assets {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    width: 100%;
    min-width: 0;

    margin-top: 24px;

    border: 1px solid var(--bp-black);

    background: var(--bp-black);
}

@media (max-width: 1100px) {

    .bp-brand-assets {
        grid-template-columns: 1fr;
    }
}

.bp-brand-asset {
    display: grid;
    grid-template-rows:
        minmax(220px, 1fr)
        auto
        auto;

    min-width: 0;

    background: var(--bp-white);
}


.bp-brand-asset__preview {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 32px;

    overflow: hidden;

    border-bottom: 1px solid var(--bp-black);

    background: var(--bp-white);
}


.bp-brand-asset__preview--dark {
    background: var(--bp-black);

    color: var(--bp-white);
}


.bp-brand-asset__preview img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 150px;

    object-fit: contain;
}


.bp-brand-asset__preview > span {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    opacity: .55;
}


.bp-brand-asset__content {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 20px 24px;
}


.bp-brand-asset__content strong {
    font-size: 14px;
}


.bp-brand-asset__content span {
    font-size: 12px;
    line-height: 1.5;

    opacity: .65;
}


.bp-brand-asset__actions {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 16px 24px;

    border-top: 1px solid var(--bp-black);
}


.bp-brand-asset__actions label {
    cursor: pointer;
}


@media (max-width: 480px) {

    .bp-brand-color {
        grid-template-columns:
            56px minmax(0, 1fr);
    }

    .bp-brand-color input[type="color"] {
        width: 56px;
    }

    .bp-brand-asset__preview {
        min-height: 180px;

        padding: 24px 20px;
    }

    .bp-brand-asset__content,
    .bp-brand-asset__actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bp-brand-asset__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bp-brand-asset__actions
    .bp-button {
        width: 100%;
    }
}

/* ========================================
   CHECKBOX OPTION
   ======================================== */

.bp-checkbox-option {
    display: grid;
    grid-template-columns:
        18px minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    width: 100%;

    cursor: pointer;
}


.bp-checkbox-option
input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;

    width: 18px;
    height: 18px;
    min-height: 0;

    margin: 2px 0 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    accent-color: var(--bp-black);

    cursor: pointer;
}


.bp-checkbox-option__content {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}


.bp-checkbox-option__content strong {
    font-size: 13px;
    line-height: 1.4;
}


.bp-checkbox-option__content > span {
    max-width: 680px;

    font-size: 13px;
    line-height: 1.55;

    opacity: .7;
}

/* ========================================
   WORKSPACE USERS
   ======================================== */

.bp-user-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    margin-bottom: 40px;

    border: 1px solid var(--bp-black);

    background: var(--bp-black);
}


.bp-user-summary__item {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 24px;

    background: var(--bp-white);
}


.bp-user-summary__item span {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: .06em;
}


.bp-user-summary__item strong {
    font-size: 38px;
    line-height: 1;
}


/* ========================================
   USERS PANEL
   ======================================== */

.bp-users-panel {
    margin-bottom: 40px;

    border: 1px solid var(--bp-black);
}


.bp-users-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    padding: 24px;

    border-bottom: 1px solid var(--bp-black);
}


.bp-users-panel__eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;
}


.bp-users-panel__header h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.1;
}


.bp-users-panel__note {
    max-width: 420px;

    font-size: 11px;
    line-height: 1.5;

    text-align: right;

    opacity: .6;
}


/* ========================================
   USERS LIST
   ======================================== */

.bp-users-list__head,
.bp-users-list__row {
    display: grid;

    grid-template-columns:
        minmax(240px, 2fr)
        minmax(140px, .8fr)
        minmax(110px, .6fr)
        minmax(100px, .6fr)
        minmax(110px, auto);

    align-items: center;
}


.bp-users-list__head {
    min-height: 48px;

    border-bottom: 1px solid var(--bp-black);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
}


.bp-users-list__head > span,
.bp-users-list__row > div {
    min-width: 0;

    padding: 16px 20px;

    border-right: 1px solid var(--bp-black);
}


.bp-users-list__head > span:last-child,
.bp-users-list__row > div:last-child {
    border-right: 0;
}


.bp-users-list__row {
    min-height: 82px;

    border-bottom: 1px solid var(--bp-black);
}


.bp-users-list__row:last-child {
    border-bottom: 0;
}


.bp-users-list__identity {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.bp-users-list__identity strong {
    display: flex;
    align-items: center;

    gap: 8px;

    min-width: 0;

    font-size: 14px;
}


.bp-users-list__identity > span {
    overflow: hidden;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;

    opacity: .65;
}


.bp-user-you {
    display: inline-flex;

    padding: 3px 5px;

    border: 1px solid var(--bp-black);

    font-size: 9px;
    line-height: 1;

    letter-spacing: .06em;
}


.bp-user-role,
.bp-user-status {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 8px;

    border: 1px solid var(--bp-black);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .05em;
}


.bp-user-status.is-inactive {
    opacity: .45;
}


.bp-users-list__date {
    font-size: 12px;
}


/* ========================================
   ACCESS LEVELS
   ======================================== */

.bp-access-levels {
    display: grid;
    grid-template-columns:
        minmax(180px, .32fr)
        minmax(0, 1fr);

    margin-bottom: 40px;

    border-top: 1px solid var(--bp-black);
    border-bottom: 1px solid var(--bp-black);
}


.bp-access-levels__label {
    padding: 22px 24px;

    border-right: 1px solid var(--bp-black);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .04em;
}


.bp-access-levels__content {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


.bp-access-levels__content article {
    padding: 22px 24px;
}


.bp-access-levels__content article + article {
    border-left: 1px solid var(--bp-black);
}


.bp-access-levels__content strong {
    font-size: 13px;
}


.bp-access-levels__content p {
    max-width: 520px;

    margin: 8px 0 0;

    font-size: 13px;
    line-height: 1.55;

    opacity: .7;
}


@media (max-width: 900px) {

    .bp-users-list__head {
        display: none;
    }


    .bp-users-list__row {
        grid-template-columns:
            1fr 1fr;

        align-items: stretch;
    }


    .bp-users-list__row > div {
        border-bottom: 1px solid var(--bp-black);
    }


    .bp-users-list__row > div:nth-child(2) {
        border-right: 0;
    }


    .bp-users-list__row > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}


@media (max-width: 680px) {

    .bp-user-summary {
        grid-template-columns: 1fr;
    }


    .bp-users-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }


    .bp-users-panel__note {
        text-align: left;
    }


    .bp-users-list__row {
        grid-template-columns: 1fr;
    }


    .bp-users-list__row > div {
        border-right: 0;
        border-bottom: 1px solid var(--bp-black);
    }


    .bp-users-list__row > div:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--bp-black);
    }


    .bp-users-list__row > div:last-child {
        border-bottom: 0;
    }


    .bp-access-levels {
        grid-template-columns: 1fr;
    }


    .bp-access-levels__label {
        border-right: 0;
        border-bottom: 1px solid var(--bp-black);
    }


    .bp-access-levels__content {
        grid-template-columns: 1fr;
    }


    .bp-access-levels__content article + article {
        border-top: 1px solid var(--bp-black);
        border-left: 0;
    }
}

.bp-users-list__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bp-users-list__self {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .5;
}

/* ========================================
   ACCESS BLOCKED
   ======================================== */

.bp-access-blocked {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 32px;

    background: var(--bp-white);
}


.bp-access-blocked__card {
    width: min(100%, 880px);

    padding: clamp(32px, 7vw, 80px);

    border: 1px solid var(--bp-black);
}


.bp-access-blocked__code {
    display: block;

    margin-bottom: 32px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;
}


.bp-access-blocked__card h1 {
    margin: 0 0 32px;

    font-family: var(--bp-font-heading);
    font-size: clamp(52px, 9vw, 110px);
    font-weight: 900;

    line-height: .88;
}


.bp-access-blocked__card p {
    max-width: 620px;

    margin: 0 0 40px;

    font-size: 18px;
    line-height: 1.55;
}


@media (max-width: 600px) {

    .bp-access-blocked {
        padding: 20px;
    }


    .bp-access-blocked__card {
        padding: 32px 24px;
    }


    .bp-access-blocked__card p {
        font-size: 16px;
    }
}

/* ========================================
   PUBLIC HOME
   ======================================== */

html {
    scroll-behavior: smooth;
}


.bp-home-page {
    --bp-home-offwhite: #f4f2ec;
    --bp-home-white: #ffffff;
    --bp-home-black: #050505;
    --bp-home-blue: #159fe3;

    width: 100%;

    overflow: hidden;

    background:
        var(--bp-home-offwhite);

    color:
        var(--bp-home-black);
}


.bp-home-page *,
.bp-home-page *::before,
.bp-home-page *::after {
    box-sizing: border-box;
}


.bp-home-page a {
    color: inherit;
}


.bp-home-eyebrow {
    display: block;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.bp-home-white-dot {
    color:
        var(--bp-home-white);
}


/* ========================================
   BUTTONS
   ======================================== */

.bp-home-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 60px;

    padding:
        0 28px;

    border:
        1px solid var(--bp-home-black);

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .035em;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .15s ease,
        color .15s ease;
}


.bp-home-button--ghost {
    background:
        transparent;

    color:
        var(--bp-home-black);
}


.bp-home-button--ghost:hover {
    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-button--dark {
    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-button--dark:hover {
    background:
        var(--bp-home-blue);
}


.bp-home-button--light {
    border-color:
        var(--bp-home-white);

    background:
        var(--bp-home-white);

    color:
        var(--bp-home-black);
}


.bp-home-button--blue {
    border-color:
        var(--bp-home-blue);

    background:
        var(--bp-home-blue);

    color:
        var(--bp-home-black);
}


/* ========================================
   HEADER
   ======================================== */

.bp-home-header {
    position: sticky;

    top: 0;

    z-index: 100;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        auto
        minmax(340px, 1fr);

    min-height: 94px;

    border-bottom:
        1px solid var(--bp-home-black);

    background:
        var(--bp-home-offwhite);
}


.bp-home-header__brand {
    display: flex;

    align-items: center;

    min-width: 0;

    padding:
        18px 32px;

    border-right:
        1px solid var(--bp-home-black);
}


.bp-home-header__brand img {
    display: block;

    width: 185px;

    max-width: 100%;
}


.bp-home-header__nav {
    display: flex;

    align-items: stretch;
}


.bp-home-header__nav a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 125px;

    padding:
        0 28px;

    border-right:
        1px solid var(--bp-home-black);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .07em;

    text-decoration: none;
}


.bp-home-header__nav a:first-child {
    border-left: 0;
}


.bp-home-header__nav a:hover {
    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-header__actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    min-width: 0;

    padding:
        16px 20px;
}


/* ========================================
   HERO
   ======================================== */

.bp-home-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 3fr)
        minmax(330px, 1fr);

    min-height:
        calc(100vh - 94px);

    border-bottom:
        1px solid var(--bp-home-black);
}


.bp-home-hero__main,
.bp-home-hero__impact {
    min-width: 0;
}


.bp-home-hero__main {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        clamp(52px, 6vw, 96px);
}


.bp-home-hero__main h1 {
    max-width: 1050px;

    margin:
        30px 0 0;

    font-family:
        var(--bp-font-heading);

    font-size:
        clamp(76px, 8.2vw, 150px);

    font-weight: 900;

    line-height: .8;

    letter-spacing: -.06em;
}


.bp-home-hero__main p {
    max-width: 700px;

    margin:
        48px 0 0;

    font-size:
        clamp(20px, 1.8vw, 30px);

    line-height: 1.3;
}


.bp-home-hero__actions {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 30px;

    margin-top: 52px;
}


.bp-home-text-link {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: .07em;

    text-decoration: none;
}


.bp-home-text-link:hover {
    text-decoration: underline;
}


.bp-home-hero__impact {
    display: flex;

    align-items: flex-end;

    padding:
        clamp(32px, 4vw, 60px);

    border-left:
        1px solid var(--bp-home-black);

    background:
        var(--bp-home-blue);

    color:
        var(--bp-home-black);
}


.bp-home-hero__impact strong {
    max-width: 100%;

    font-family:
        var(--bp-font-heading);

    font-size:
        clamp(44px, 4vw, 72px);

    font-weight: 900;

    line-height: .86;

    letter-spacing: -.045em;
}


/* ========================================
   BENTO
   ======================================== */

.bp-home-bento {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    border-bottom:
        1px solid var(--bp-home-black);
}


.bp-home-bento__card {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-width: 0;

    min-height: 390px;

    padding:
        clamp(34px, 4vw, 62px);

    border-right:
        1px solid var(--bp-home-black);

    border-bottom:
        1px solid var(--bp-home-black);
}


.bp-home-bento__card h2,
.bp-home-bento__card h3 {
    max-width: 100%;

    margin:
        24px 0 0;

    font-family:
        var(--bp-font-heading);

    font-weight: 900;

    line-height: .88;

    letter-spacing: -.045em;

    overflow-wrap: break-word;
}


.bp-home-bento__card h2 {
    font-size:
        clamp(56px, 6.1vw, 110px);
}


.bp-home-bento__card h3 {
    font-size:
        clamp(44px, 4.3vw, 78px);
}


.bp-home-bento__card p {
    max-width: 560px;

    margin:
        36px 0 0;

    font-size:
        19px;

    line-height: 1.4;
}


.bp-home-bento__card--main {
    grid-column:
        span 7;

    min-height: 640px;
}


.bp-home-bento__card--format {
    grid-column:
        span 5;

    min-height: 640px;

    border-right: 0;
}


.bp-home-bento__card--organization {
    grid-column:
        span 8;

    min-height: 500px;
}


.bp-home-bento__card--delivery {
    grid-column:
        span 4;

    min-height: 500px;

    border-right: 0;
}


.bp-home-bento__card--link {
    grid-column:
        span 5;

    min-height: 470px;
}


.bp-home-bento__card--control {
    grid-column:
        span 7;

    min-height: 470px;

    border-right: 0;
}


.bp-home-bento__card--offwhite {
    background:
        var(--bp-home-offwhite);

    color:
        var(--bp-home-black);
}


.bp-home-bento__card--white {
    background:
        var(--bp-home-white);

    color:
        var(--bp-home-black);
}


.bp-home-bento__card--dark {
    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-bento__card--blue {
    background:
        var(--bp-home-blue);

    color:
        var(--bp-home-black);
}


/* ========================================
   HOW
   ======================================== */

.bp-home-how {
    display: grid;

    grid-template-columns:
        minmax(380px, .8fr)
        minmax(0, 1.5fr);

    border-bottom:
        1px solid var(--bp-home-black);

    background:
        var(--bp-home-offwhite);
}


.bp-home-how__intro {
    min-width: 0;

    padding:
        clamp(48px, 5vw, 84px);

    border-right:
        1px solid var(--bp-home-black);
}


.bp-home-how__intro h2 {
    margin:
        32px 0 0;

    font-family:
        var(--bp-font-heading);

    font-size:
        clamp(78px, 8vw, 142px);

    font-weight: 900;

    line-height: .81;

    letter-spacing: -.06em;
}


.bp-home-how__steps {
    min-width: 0;
}


.bp-home-how__steps article {
    display: grid;

    grid-template-columns:
        minmax(220px, .8fr)
        minmax(0, 1fr);

    gap: 50px;

    align-items: center;

    min-height: 230px;

    padding:
        46px 56px;

    border-bottom:
        1px solid var(--bp-home-black);
}


.bp-home-how__steps article:last-child {
    border-bottom: 0;
}


.bp-home-how__steps strong {
    min-width: 0;

    font-family:
        var(--bp-font-heading);

    font-size:
        clamp(42px, 4vw, 70px);

    font-weight: 900;

    line-height: .9;

    letter-spacing: -.04em;
}


.bp-home-how__steps p {
    max-width: 560px;

    margin: 0;

    font-size: 20px;

    line-height: 1.4;
}


/* ========================================
   FINAL CTA
   ======================================== */

.bp-home-final {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 60px;

    align-items: flex-end;

    padding:
        clamp(56px, 7vw, 110px);

    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-final h2 {
    max-width: 1100px;

    margin:
        32px 0 0;

    font-family:
        var(--bp-font-heading);

    font-size:
        clamp(68px, 7.6vw, 132px);

    font-weight: 900;

    line-height: .82;

    letter-spacing: -.055em;
}


.bp-home-final__actions {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* ========================================
   FOOTER
   ======================================== */

.bp-home-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    min-height: 92px;

    padding:
        24px 32px;

    border-top:
        1px solid rgba(255, 255, 255, .35);

    background:
        var(--bp-home-black);

    color:
        var(--bp-home-white);
}


.bp-home-footer p {
    margin: 0;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .07em;
}


.bp-home-footer__developer {
    display: flex;

    align-items: center;

    gap: 14px;
}


.bp-home-footer__developer > span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .09em;

    white-space: nowrap;
}


.bp-home-footer__developer a {
    display: flex;

    align-items: center;
}


.bp-home-footer__developer img {
    display: block;

    width: auto;
    height: 22px;

    max-width: 150px;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1180px) {

    .bp-home-header {
        grid-template-columns:
            240px
            1fr
            auto;
    }


    .bp-home-header__nav a {
        min-width: auto;

        padding:
            0 20px;
    }


    .bp-home-hero {
        grid-template-columns:
            minmax(0, 2fr)
            minmax(280px, .8fr);
    }


    .bp-home-bento__card--main,
    .bp-home-bento__card--format,
    .bp-home-bento__card--organization,
    .bp-home-bento__card--delivery,
    .bp-home-bento__card--link,
    .bp-home-bento__card--control {
        grid-column:
            span 6;
    }


    .bp-home-how {
        grid-template-columns:
            1fr;
    }


    .bp-home-how__intro {
        border-right: 0;

        border-bottom:
            1px solid var(--bp-home-black);
    }

}


@media (max-width: 900px) {

    .bp-home-header {
        position: relative;

        grid-template-columns:
            1fr
            auto;
    }


    .bp-home-header__brand {
        border-right: 0;
    }


    .bp-home-header__nav {
        grid-column:
            1 / -1;

        grid-row:
            2;

        border-top:
            1px solid var(--bp-home-black);
    }


    .bp-home-header__nav a {
        flex: 1;

        min-height: 58px;

        padding:
            0 14px;
    }


    .bp-home-hero {
        grid-template-columns:
            1fr;
    }


    .bp-home-hero__impact {
        min-height: 300px;

        border-left: 0;

        border-top:
            1px solid var(--bp-home-black);
    }


    .bp-home-final {
        grid-template-columns:
            1fr;
    }


    .bp-home-final__actions {
        flex-direction: row;

        flex-wrap: wrap;
    }

}


@media (max-width: 700px) {

    .bp-home-header {
        grid-template-columns:
            1fr;
    }


    .bp-home-header__brand {
        justify-content: center;

        padding:
            18px 22px;
    }


    .bp-home-header__actions {
        justify-content: stretch;

        border-top:
            1px solid var(--bp-home-black);
    }


    .bp-home-header__actions .bp-home-button {
        flex: 1;
    }


    .bp-home-header__nav {
        display: none;
    }


    .bp-home-hero__main {
        padding:
            52px 24px;
    }


    .bp-home-hero__main h1 {
        font-size:
            clamp(68px, 19vw, 105px);
    }


    .bp-home-hero__impact {
        padding:
            42px 24px;
    }


    .bp-home-bento {
        grid-template-columns:
            1fr;
    }


    .bp-home-bento__card--main,
    .bp-home-bento__card--format,
    .bp-home-bento__card--organization,
    .bp-home-bento__card--delivery,
    .bp-home-bento__card--link,
    .bp-home-bento__card--control {
        grid-column:
            1;
    }


    .bp-home-bento__card {
        min-height: 400px;

        padding:
            40px 24px;

        border-right: 0;
    }


    .bp-home-how__intro {
        padding:
            50px 24px;
    }


    .bp-home-how__intro h2 {
        font-size:
            clamp(72px, 20vw, 108px);
    }


    .bp-home-how__steps article {
        grid-template-columns:
            1fr;

        gap: 20px;

        min-height: auto;

        padding:
            38px 24px;
    }


    .bp-home-final {
        padding:
            56px 24px;
    }


    .bp-home-final__actions {
        flex-direction: column;

        align-items: stretch;
    }


    .bp-home-footer {
        flex-direction: column;

        align-items: flex-start;

        padding:
            28px 24px;
    }

}

/* ========================================
   HOME BUTTON COLORS
   ======================================== */

.bp-home-page .bp-home-button--dark {
    background: var(--bp-home-black);
    color: var(--bp-home-white);
}

.bp-home-page .bp-home-button--dark:hover {
    background: var(--bp-home-blue);
    color: var(--bp-home-black);
}


.bp-home-page .bp-home-button--ghost {
    background: transparent;
    color: var(--bp-home-black);
}

.bp-home-page .bp-home-button--ghost:hover {
    background: var(--bp-home-black);
    color: var(--bp-home-white);
}


.bp-home-page .bp-home-button--light {
    border-color: var(--bp-home-white);
    background: var(--bp-home-white);
    color: var(--bp-home-black);
}


.bp-home-page .bp-home-button--blue {
    border-color: var(--bp-home-blue);
    background: var(--bp-home-blue);
    color: var(--bp-home-black);
}


/* ========================================
   PROPOSAL REVIEW / DELIVERY
   ======================================== */

.bp-proposal-review-item {
    padding: 22px 24px 26px;
    border-inline: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-border);
    background: var(--bp-paper);
}

.bp-proposal-review-item .bp-detail-content {
    margin-top: 22px;
}

.bp-detail-section__edit {
    display: inline-flex;
    margin-top: 14px;
    color: var(--bp-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.bp-detail-section__edit:hover,
.bp-detail-section__edit:focus-visible {
    text-decoration: underline;
}

.bp-proposal-send-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}

.bp-proposal-send-option {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--bp-border);
}

.bp-proposal-send-option .bp-detail__value {
    overflow-wrap: anywhere;
}

.bp-proposal-send-option .bp-button {
    width: 100%;
    min-width: 0;
    margin-top: auto;
    white-space: normal;
}


/* ========================================
   CONTEXTUAL HELP
   ======================================== */

.bp-contextual-help {
    position: fixed;
    z-index: 9000;
    right: 0;
    bottom: 24px;
}

.bp-contextual-help__trigger {
    position: relative;
    right: -12px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--bp-black);
    border-right: 0;
    background: var(--bp-blue);
    color: var(--bp-white);
    cursor: pointer;
    transition: right var(--bp-transition-fast);
}

.bp-contextual-help__symbol {
    font-family: "Archivo", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.bp-contextual-help__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    padding: 7px 9px;
    background: var(--bp-black);
    color: var(--bp-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity var(--bp-transition-fast), transform var(--bp-transition-fast);
}

.bp-contextual-help__trigger:hover,
.bp-contextual-help__trigger:focus-visible {
    right: 0;
}

.bp-contextual-help__trigger:hover .bp-contextual-help__tooltip,
.bp-contextual-help__trigger:focus-visible .bp-contextual-help__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.bp-contextual-help__trigger:focus-visible {
    outline: 2px solid var(--bp-black);
    outline-offset: 3px;
}

.bp-contextual-help__dialog {
    width: min(100%, 620px);
}

.bp-contextual-help__body {
    padding: 28px 24px 32px;
    font-size: 15px;
    line-height: 1.65;
}

.bp-contextual-help__body p {
    margin: 0;
}

.bp-contextual-help__body ul {
    margin: 24px 0 0;
    padding-left: 20px;
}

@media (max-width: 680px) {
    .bp-proposal-send-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .bp-proposal-send-option {
        padding: 20px;
    }

    .bp-contextual-help {
        right: 16px;
        bottom: 16px;
    }

    .bp-contextual-help__trigger {
        right: 0;
        border-right: 1px solid var(--bp-black);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-contextual-help__trigger,
    .bp-contextual-help__tooltip {
        transition: none;
    }
}
