.spark-project-mode-heading { margin-bottom: 18px; }

.spark-morph-dialog .spark-project-mode-heading {
    min-height: 44px;
    padding-inline-end: 52px;
}

.spark-morph-dialog .spark-project-mode-heading .spark-back-button { align-self: flex-start; }

.spark-project-mode-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 750;
    line-height: 1.18;
}

.spark-project-invite-intro,
.spark-project-invite-status {
    color: var(--lg-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.spark-project-invite-intro { margin: 0 0 16px; }
.spark-project-invite-status { margin: 6px 0 12px; }
.spark-project-invite-status:empty { margin: 0; }
.spark-project-invite-status[data-error] { color: var(--lg-danger); }

.spark-project-invite-link,
.spark-project-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spark-project-modes [hidden] { display: none; }
.spark-project-modes { position: relative; }
.spark-project-modes.is-changing-page { overflow: clip; }
.spark-project-modes > .is-leaving-page {
    position: absolute;
    inset: 0 0 auto;
    pointer-events: none;
}
.spark-project-modes [data-project-back="services"] { margin-inline-end: auto; }
.spark-morph-dialog .spark-project-services-heading { padding-inline-end: 52px; }

.spark-project-invite-link input {
    box-sizing: border-box;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    border-radius: var(--lg-radius-control);
}

.spark-project-invite-actions button {
    min-height: 44px;
    padding: 9px 14px;
    border-radius: var(--lg-radius-control);
    font: inherit;
    font-weight: 700;
}

.spark-project-invite-actions[aria-busy="true"] button { cursor: wait; }

.spark-project-services-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 .75rem;
    margin-block-end: .25rem;
}

.spark-project-quiet-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-block-size: 44px;
    color: var(--lg-link);
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.3;
    text-underline-offset: .2em;
}

.spark-project-quiet-link:hover { text-decoration: underline; }
.spark-project-quiet-link:focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 2px; border-radius: 4px; }
.spark-project-quiet-link svg { flex: none; }

.spark-project-invite-back {
    margin-block-start: -.5rem;
    margin-block-end: .45rem;
}

.spark-project-invite-back svg { inline-size: 1rem; block-size: 1rem; }
.spark-project-invite-step .spark-project-mode-heading { margin-block-end: .5rem; }

.spark-project-invite-step .spark-project-invite-actions {
    justify-content: flex-end;
    gap: .6rem;
    margin-block-start: 1.25rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--lg-content-edge);
}

.spark-project-invite-link {
    flex-wrap: nowrap;
    align-items: stretch;
}

.spark-project-invite-link button {
    display: grid;
    flex: none;
    place-items: center;
    inline-size: 44px;
    min-block-size: 44px;
    padding: 0;
    border-radius: var(--lg-radius-control);
}

@media (max-width: 430px) {
    .spark-project-invite-step .spark-project-invite-actions > button { flex: 1 1 auto; }
}
