#parties_index .parties-index__metric .h4 {
    font-weight: 700;
}

#parties_index .parties-index__card {
    transition: transform .12s ease, box-shadow .12s ease;
}

#parties_index .parties-index__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .09) !important;
}

#parties_index .parties-index__description {
    white-space: pre-line;
    word-break: break-word;
}

#parties_index .parties-index__rows th,
#parties_index .parties-index__rows td {
    vertical-align: top;
}

#parties_index .parties-index__rows .parties-index__description {
    max-width: 460px;
}

#parties_index .parties-index__logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
    object-fit: cover;
    flex-shrink: 0;
}

.parties-view__logo {
    width: clamp(52px, 8vw, 68px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    object-fit: cover;
    background: #fff;
}

.parties-view__logo--large {
    width: clamp(64px, 12vw, 84px);
}

.parties-orgchart__item {
    border-left: 3px solid rgba(13, 110, 253, .2);
}

.parties-orgchart__actions {
    min-width: 260px;
}

.parties-chat {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.parties-chat__messages {
    height: min(58vh, 560px);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .5rem;
    background: #f8f9fa;
    padding: .5rem .6rem;
}

.parties-chat__line {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .92rem;
    line-height: 1.35;
    padding: .1rem 0;
    color: #1f2937;
    word-break: break-word;
}

.parties-chat__line.is-self {
    font-weight: 600;
}

.parties-chat__time {
    color: #6c757d;
    margin-right: .45rem;
}

.parties-chat__nick {
    color: #0d6efd;
    margin-right: .35rem;
}

.parties-chat__msg a {
    color: #0d6efd;
    text-decoration: underline;
}

.parties-chat__composer {
    margin-top: .1rem;
}

.parties-chat__members {
    max-height: min(58vh, 560px);
    overflow-y: auto;
}

.parties-primaries-history__scroll {
    max-height: min(58vh, 620px);
    overflow-y: auto;
}

#parties_create .parties-create__header {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding-bottom: 1rem;
}

#parties_create .parties-create__price {
    letter-spacing: .02em;
    white-space: nowrap;
}

#parties_create .card {
    border-radius: .8rem;
}

#parties_create .form-control,
#parties_create .form-select {
    border-radius: .65rem;
}

#parties_create textarea.form-control {
    resize: vertical;
    min-height: 110px;
}
