.cl-page
{
    margin: 1.2rem auto 3rem;
    max-width: 1060px;
}
.cl-block, .cl-list-card strong
{
    display: block;
}
.cl-back, .cl-entry small, .cl-history time
{
    font-size: .86rem;
    color: #526479;
}
.cl-page .page-heading
{
    align-items: center;
    margin-block: .6rem 1rem;
    gap: .7rem;
}
.cl-page h1
{
    overflow-wrap: anywhere;
    margin: 0;
}
.cl-tabs, .cl-search, .cl-toolbar, .cl-inline, .cl-actions
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.cl-inline
{
    align-items: end;
}
.cl-inline label
{
    width: min(100%, 29rem);
}
.cl-toolbar
{
    justify-content: space-between;
}
.cl-search
{
    flex-wrap: nowrap;
}
.cl-tabs
{
    margin-block: .7rem;
}
.cl-tabs a
{
    padding: .35rem .8rem;
    color: #40566c;
    border-radius: 7px;
}
.cl-tabs a[aria-current="page"]
{
    background: #e4f2ed;
    color: #155a44;
    font-weight: 650;
}
.cl-directory, .cl-entries, .cl-history
{
    list-style: none;
    padding: 0;
}
.cl-directory
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
    gap: .85rem;
}
.cl-list-card
{
    display: grid;
    align-content: space-between;
    min-height: 7rem;
    height: 100%;
    padding: 1rem 1.15rem;
    gap: .6rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-inline-start: 4px solid #268569;
    border-radius: 12px;
}
.cl-list-card:hover
{
    border-color: #268569;
    text-decoration: none;
}
.cl-list-card strong, .cl-entries bdi, .cl-history bdi
{
    overflow-wrap: anywhere;
}
.cl-list-card span
{
    color: #516578;
    font-size: .9rem;
}
.cl-list-card b
{
    margin-inline-start: .35rem;
}
.cl-settings
{
    padding: .7rem 1rem;
    margin-block: .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}
.cl-settings summary
{
    cursor: pointer;
    color: #294b68;
    font-weight: 600;
}
.cl-settings .cl-inline
{
    margin-block: .75rem;
}
.cl-entries
{
    margin: .75rem 0 0;
}
.cl-entry, .cl-history li
{
    display: grid;
    align-items: start;
    gap: .75rem;
    padding: .9rem 0;
    border-top: 1px solid var(--line);
}
.cl-entry
{
    grid-template-columns: 1.2fr 1fr 1.1fr auto;
}
.cl-actions
{
    gap: .6rem;
    font-size: .85rem;
}
.cl-actions .text-button
{
    padding: 0;
    font: inherit;
}
.cl-history
{
    padding: .25rem 1.25rem;
}
.cl-history li
{
    grid-template-columns: .65fr 1fr 1.6fr;
}
.cl-history li:first-child
{
    border-top: 0;
}
.cl-pill, .cl-version
{
    color: #39586b;
    font-size: .8rem;
    font-weight: 600;
}
.cl-pill
{
    display: inline-block;
    background: #edf3f7;
    border-radius: 10px;
    padding: .1rem .5rem;
}
.cl-ref
{
    background: #e5f2eb;
    color: #245f46;
}
.cl-empty
{
    padding-block: 1.4rem;
    color: #475a6c;
}
.cl-form
{
    max-width: 920px;
}
.cl-fields
{
    min-width: 0;
    margin: 0;
    padding: .8rem 0 0;
    border: 0;
}
.cl-referral-group summary
{
    cursor: pointer;
}
.cl-fields legend, .cl-referral-group summary
{
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0;
}
.cl-number-fields
{
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr;
    gap: .65rem .85rem;
}
.cl-number-fields label
{
    min-width: 0;
}
.cl-referral
{
    margin-bottom: .65rem;
    border-inline-start: 3px solid #bddad0;
    padding: .6rem .9rem;
    background: #f5f9f7;
    border-radius: 6px;
}
.cl-error
{
    padding: .55rem .85rem;
    color: #7d2118;
    background: #fff2ed;
    border-radius: 8px;
}
.cl-fields [hidden]
{
    display: none !important;
}
@media (max-width: 760px)
{
    .cl-entry, .cl-history li
    {
        grid-template-columns: 1fr 1fr;
    }
    .cl-search
    {
        width: 100%;
    }
    .cl-entries, .cl-fields
    {
        font-size: .94rem;
    }
    .cl-number-fields
    {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 450px)
{
    .cl-entry .cl-actions, .cl-history li > :last-child
    {
        grid-column: 1 / -1;
    }
}
