/*--------------------------------------------------------------
# Public Account Pages
--------------------------------------------------------------*/
.auth-page .main-menu__nav-sidebar-icon,
.auth-page .chat-icon {
    display: none !important;
}

.auth-page-content {
    position: relative;
    display: block;
    padding: 100px 0 110px;
    background: var(--ews-primary);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.auth-layout--login {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 100%;
    padding: 46px;
    color: var(--ews-white);
    background: var(--ews-black);
    border-radius: var(--ews-bdr-radius);
}

.auth-aside::before {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(var(--ews-base-rgb), .22);
    border-radius: 50%;
    content: "";
}

.auth-aside__kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--ews-base);
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-aside__kicker::before {
    width: 26px;
    height: 2px;
    background: var(--ews-base);
    content: "";
}

.auth-aside h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 37px;
    line-height: 47px;
    font-weight: 700;
}

.auth-aside p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: rgba(var(--ews-white-rgb), .72);
    font-size: 15px;
    line-height: 27px;
}

.auth-aside__list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-aside__list li {
    position: relative;
    margin-top: 12px;
    padding-left: 22px;
    color: rgba(var(--ews-white-rgb), .82);
    font-size: 14px;
    line-height: 24px;
}

.auth-aside__list li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--ews-base);
    border-radius: 50%;
    content: "";
}

.auth-card {
    padding: 42px 42px 38px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 18px 44px rgba(var(--ews-black-rgb), .06);
}

.auth-card__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--ews-base);
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0 0 12px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 33px;
    line-height: 43px;
    font-weight: 700;
}

.auth-card__intro {
    margin: 0 0 28px;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 25px;
}

.auth-alert {
    margin: 0 0 22px;
    padding: 15px 17px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 22px;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert li + li {
    margin-top: 4px;
}

.auth-alert--error {
    color: #842029;
    background: #fff1f0;
    border: 1px solid #f5c2c7;
}

.auth-alert--success {
    color: #0f5132;
    background: #f0fbf4;
    border: 1px solid #badbcc;
}

.auth-alert--info {
    color: #45505b;
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
}

.auth-form {
    margin: 0;
}

.auth-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.auth-field {
    min-width: 0;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .03em;
}

.auth-field input,
.auth-field textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    line-height: 24px;
    -webkit-transition: border-color .2s ease, box-shadow .2s ease;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field textarea {
    min-height: 112px;
    resize: vertical;
}

.auth-field input:focus,
.auth-field textarea:focus {
    border-color: var(--ews-base);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .16);
}

.auth-field__hint {
    display: block;
    margin-top: 6px;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 19px;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.auth-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--ews-base);
}

.auth-check a {
    color: var(--ews-base);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    color: var(--ews-white);
    background: var(--ews-black);
    border: 1px solid var(--ews-black);
    border-radius: 30px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: background .3s ease, border-color .3s ease, color .3s ease;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.auth-submit:hover {
    color: var(--ews-black);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 20px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.auth-links a {
    color: var(--ews-base);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-links a:hover {
    color: var(--ews-black);
}

.auth-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.auth-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin: 26px 0 0;
}

.auth-detail {
    padding: 15px 17px;
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
}

.auth-detail span {
    display: block;
    margin-bottom: 4px;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-detail strong,
.auth-detail p {
    display: block;
    margin: 0;
    color: var(--ews-black);
    font-size: 14px;
    line-height: 23px;
    font-weight: 600;
}

.auth-detail--full {
    grid-column: 1 / -1;
}

.auth-detail p {
    font-weight: 400;
    overflow-wrap: anywhere;
}

.auth-side-card {
    padding: 30px;
    color: var(--ews-white);
    background: var(--ews-black);
    border-radius: var(--ews-bdr-radius);
}

.auth-side-card h2 {
    margin: 0 0 12px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 25px;
    line-height: 34px;
    font-weight: 700;
}

.auth-side-card p {
    margin: 0 0 20px;
    color: rgba(var(--ews-white-rgb), .7);
    font-size: 13px;
    line-height: 24px;
}

.auth-side-card .auth-submit {
    color: var(--ews-black);
    background: var(--ews-white);
    border-color: var(--ews-white);
}

.auth-side-card .auth-submit:hover {
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.auth-resend {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ews-bdr-color);
}

.auth-resend h3 {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 19px;
    line-height: 28px;
    font-weight: 700;
}

.auth-resend p {
    margin: 0 0 14px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.auth-resend__row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.auth-resend__row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    outline: none;
}

.auth-resend__row button {
    flex: 0 0 auto;
    padding: 0 15px;
    color: var(--ews-white);
    background: var(--ews-black);
    border: 1px solid var(--ews-black);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .auth-layout,
    .auth-layout--login {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .auth-aside {
        padding: 36px;
    }

    .auth-card {
        padding: 34px 30px 30px;
    }

    .auth-aside h2 {
        font-size: 32px;
        line-height: 42px;
    }
}

@media (max-width: 991px) {
    .auth-page-content {
        padding: 78px 0 88px;
    }

    .auth-layout,
    .auth-layout--login,
    .auth-account {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .auth-page-content {
        padding: 64px 0 74px;
    }

    .auth-aside {
        padding: 30px 24px;
    }

    .auth-aside h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .auth-card {
        padding: 28px 22px 25px;
    }

    .auth-card h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .auth-grid,
    .auth-details {
        grid-template-columns: 1fr;
    }

    .auth-field--full,
    .auth-detail--full {
        grid-column: auto;
    }

    .auth-resend__row {
        flex-direction: column;
    }

    .auth-resend__row button {
        min-height: 42px;
    }
}

/*--------------------------------------------------------------
# Forgot Password Modal
--------------------------------------------------------------*/
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.auth-label-row label {
    margin: 0;
}

.auth-forgot-link {
    padding: 0;
    color: var(--ews-base);
    background: none;
    border: 0;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.auth-forgot-link:hover {
    color: var(--ews-black);
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 14, .68);
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    padding: 36px 36px 34px;
    overflow-y: auto;
    background: var(--ews-white);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 24px 70px rgba(var(--ews-black-rgb), .26);
}

.auth-modal__close {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--ews-gray);
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__close:hover {
    color: var(--ews-black);
}

.auth-modal__dialog h2 {
    margin: 0 0 10px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.auth-modal__status {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 22px;
}

.auth-modal__status.is-error {
    color: #842029;
}

.auth-modal__status.is-success {
    margin-bottom: 0;
    padding: 14px 16px;
    color: #0f5132;
    background: #f0fbf4;
    border: 1px solid #badbcc;
    border-radius: 5px;
}

.auth-captcha-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 10px;
}

.auth-captcha-row img {
    display: block;
    width: 180px;
    height: 60px;
    background: #f4efe6;
    border: 1px solid var(--ews-bdr-color);
    border-radius: 4px;
}

.auth-captcha-refresh {
    padding: 8px 12px;
    color: var(--ews-black);
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 4px;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-captcha-refresh:hover {
    color: var(--ews-white);
    background: var(--ews-black);
    border-color: var(--ews-black);
}

@media (max-width: 575px) {
    .auth-modal {
        padding: 12px;
    }

    .auth-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 24px;
    }

    .auth-modal__dialog h2 {
        padding-right: 24px;
        font-size: 26px;
        line-height: 36px;
    }
}

/*--------------------------------------------------------------
# Forgot Password Success State
--------------------------------------------------------------*/
.auth-modal__success[hidden] {
    display: none !important;
}

.auth-modal__success h2 {
    margin: 0 0 14px;
    padding-right: 24px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.auth-modal__success p {
    margin: 0 0 13px;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 25px;
}

.auth-modal__success .auth-submit {
    margin-top: 10px;
}

@media (max-width: 575px) {
    .auth-modal__success h2 {
        font-size: 26px;
        line-height: 36px;
    }
}


.auth-field select {
    width: 100%;
    padding: 13px 38px 13px 15px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
    -webkit-transition: border-color .2s ease, box-shadow .2s ease;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field select:focus {
    border-color: var(--ews-base);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .16);
}

.auth-field input[type="date"] {
    cursor: pointer;
}


/*--------------------------------------------------------------
# Account Credits Ledger
--------------------------------------------------------------*/
.auth-credits {
    margin-top: 28px;
    scroll-margin-top: 110px;
}

.auth-credit-table-wrap {
    overflow-x: auto;
}

.auth-credit-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.auth-credit-table th {
    padding: 10px 12px;
    color: var(--ews-gray);
    border-bottom: 1px solid var(--ews-bdr-color);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.auth-credit-table td {
    padding: 12px;
    color: var(--ews-black);
    border-bottom: 1px solid var(--ews-bdr-color);
    font-size: 13px;
    line-height: 22px;
    vertical-align: top;
}

.auth-credit-table tbody tr:last-child td {
    border-bottom: 0;
}

.auth-credit-table__received {
    color: #0f5132 !important;
    font-weight: 700;
    white-space: nowrap;
}

.auth-credit-table__spent {
    color: #842029 !important;
    font-weight: 700;
    white-space: nowrap;
}

.auth-credit-table__empty {
    padding: 24px 12px !important;
    color: var(--ews-gray) !important;
    text-align: center;
}

@media (max-width: 767px) {
    .auth-credits {
        margin-top: 22px;
    }

    .auth-credit-balance {
        padding: 18px 20px;
    }

    .auth-credit-balance strong {
        font-size: 38px;
    }
}

/*--------------------------------------------------------------
# Account Hero Credit Balance
--------------------------------------------------------------*/
.auth-hero-balance {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-top: 28px;
    padding: 16px 22px;
    background: rgba(var(--ews-white-rgb), .06);
    border: 1px solid rgba(var(--ews-white-rgb), .16);
    border-radius: var(--ews-bdr-radius);
}

.auth-hero-balance__value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 13px;
}

.auth-hero-balance__value span {
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-hero-balance__value strong {
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
}

.auth-hero-balance__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--ews-white);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: color .3s ease;
    transition: color .3s ease;
}

.auth-hero-balance__link i {
    color: var(--ews-base);
    font-size: 10px;
    -webkit-transition: transform .3s ease;
    transition: transform .3s ease;
}

.auth-hero-balance__link:hover {
    color: var(--ews-base);
}

.auth-hero-balance__link:hover i {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

@media (max-width: 575px) {
    .auth-hero-balance {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }

    .auth-hero-balance__value strong {
        font-size: 36px;
    }
}

.page-header__inner--balance-only .auth-hero-balance {
    margin-top: 0;
}

/*--------------------------------------------------------------
# Credit Plans
--------------------------------------------------------------*/
body.credits-modal-open {
    overflow: hidden;
}

.auth-current-plan {
    margin: 20px 0 16px;
    padding: 18px 20px;
    background: var(--ews-primary);
    border-left: 3px solid var(--ews-base);
    border-radius: var(--ews-bdr-radius);
}

.auth-current-plan__label {
    display: block;
    margin-bottom: 5px;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-current-plan strong {
    display: block;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 21px;
    line-height: 30px;
    font-weight: 700;
}

.auth-current-plan p {
    margin: 5px 0 0;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.credits-plans-modal .auth-modal__dialog {
    max-width: 980px;
}

.credits-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.credit-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 22px 22px;
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
}

.credit-plan-card__type {
    display: block;
    margin-bottom: 8px;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.credit-plan-card h3 {
    margin: 0 0 12px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 24px;
    line-height: 33px;
    font-weight: 700;
}

.credit-plan-card__price {
    margin-bottom: 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 35px;
    line-height: 40px;
    font-weight: 700;
}

.credit-plan-card__price span {
    color: var(--ews-gray);
    font-family: var(--ews-font);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.credit-plan-card__credits {
    margin: 0 0 12px;
    color: var(--ews-black);
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
}

.credit-plan-card > p:not(.credit-plan-card__credits) {
    margin: 0 0 12px;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 23px;
}

.credit-plan-card__notes {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.credit-plan-card__notes li {
    position: relative;
    margin-top: 7px;
    padding-left: 17px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.credit-plan-card__notes li::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--ews-base);
    border-radius: 50%;
    content: "";
}

.credit-plan-card .auth-submit {
    margin-top: auto;
}

.credit-plan-card .auth-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .credits-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .credits-plans-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Checkout
--------------------------------------------------------------*/
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 28px;
    align-items: start;
}

.checkout-layout > .auth-card {
    grid-column: 1;
    grid-row: 1;
}

.checkout-summary {
    grid-column: 2;
    grid-row: 1;
}

.checkout-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-actions .auth-submit {
    flex: 1 1 180px;
}

.checkout-secondary {
    color: var(--ews-black);
    background: var(--ews-primary);
    border-color: var(--ews-bdr-color);
}

.checkout-secondary:hover {
    color: var(--ews-white);
    background: var(--ews-black);
    border-color: var(--ews-black);
}

.checkout-note {
    margin: 18px 0 0;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 20px;
}

.checkout-summary {
    padding: 32px;
    color: var(--ews-white);
    background: var(--ews-black);
    border-radius: var(--ews-bdr-radius);
}

.checkout-summary .auth-card__eyebrow {
    color: var(--ews-base);
}

.checkout-summary h2 {
    margin: 0 0 8px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.checkout-summary__type {
    margin: 0 0 24px;
    color: rgba(var(--ews-white-rgb), .6);
    font-size: 12px;
    line-height: 21px;
}

.checkout-totals {
    padding: 18px 0;
    border-top: 1px solid rgba(var(--ews-white-rgb), .14);
    border-bottom: 1px solid rgba(var(--ews-white-rgb), .14);
}

.checkout-totals__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0;
    color: rgba(var(--ews-white-rgb), .65);
    font-size: 13px;
    line-height: 22px;
}

.checkout-totals__row strong {
    color: var(--ews-white);
    font-weight: 700;
    white-space: nowrap;
}

.checkout-totals__row--discount strong {
    color: var(--ews-base);
}

.checkout-totals__row--total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--ews-white-rgb), .14);
    color: var(--ews-white);
    font-size: 15px;
    font-weight: 700;
}

.checkout-totals__row--total strong {
    color: var(--ews-base);
    font-family: var(--ews-font-two);
    font-size: 25px;
    line-height: 30px;
}

.checkout-billing {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--ews-white-rgb), .14);
}

.checkout-billing__label {
    display: block;
    margin-bottom: 6px;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.checkout-billing p {
    margin: 0;
    color: rgba(var(--ews-white-rgb), .72);
    font-size: 13px;
    line-height: 23px;
    overflow-wrap: anywhere;
}

.checkout-summary__note {
    margin: 20px 0 0;
    color: rgba(var(--ews-white-rgb), .5);
    font-size: 11px;
    line-height: 20px;
}

@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout > .auth-card,
    .checkout-summary {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 575px) {
    .checkout-summary {
        padding: 26px 22px;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .checkout-actions .auth-submit {
        flex-basis: auto;
    }
}

/*--------------------------------------------------------------
# Checkout Hero
--------------------------------------------------------------*/
.checkout-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 74px;
    color: var(--ews-white);
    background-color: var(--ews-black);
    background-image: radial-gradient(circle at 84% 18%, rgba(var(--ews-base-rgb), .17), transparent 32%);
}

.checkout-hero::before {
    position: absolute;
    top: -170px;
    right: -100px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(var(--ews-white-rgb), .07);
    border-radius: 50%;
    content: "";
}

.checkout-hero::after {
    position: absolute;
    bottom: -240px;
    left: -150px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(var(--ews-base-rgb), .12);
    border-radius: 50%;
    content: "";
}

.checkout-hero .container {
    position: relative;
    z-index: 1;
}

.checkout-hero__inner {
    max-width: 820px;
}

.checkout-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--ews-base);
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.checkout-hero__kicker::before {
    width: 27px;
    height: 2px;
    background: var(--ews-base);
    content: "";
}

.checkout-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 52px;
    line-height: 62px;
    font-weight: 700;
}

.checkout-hero__text {
    max-width: 710px;
    margin: 0;
    color: rgba(var(--ews-white-rgb), .7);
    font-size: 16px;
    line-height: 29px;
}

.checkout-hero__trust {
    margin: 24px 0 0;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 19px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.checkout-hero__note {
    margin: 9px 0 0;
    color: rgba(var(--ews-white-rgb), .43);
    font-size: 11px;
    line-height: 19px;
}

@media (max-width: 991px) {
    .checkout-hero {
        padding: 64px 0 60px;
    }

    .checkout-hero h1 {
        font-size: 44px;
        line-height: 54px;
    }
}

@media (max-width: 575px) {
    .checkout-hero {
        padding: 56px 0 54px;
    }

    .checkout-hero h1 {
        font-size: 34px;
        line-height: 44px;
    }
}

/*--------------------------------------------------------------
# My Matters
--------------------------------------------------------------*/
.matters-dashboard {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "summary summary"
        "main quick"
        "main sidebar";
    gap: 18px 28px;
    align-items: start;
}

.matters-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 70px;
    color: var(--ews-white);
    background-color: var(--ews-black);
    background-image: radial-gradient(circle at 84% 18%, rgba(var(--ews-base-rgb), .17), transparent 32%);
}

.matters-hero::before {
    position: absolute;
    top: -170px;
    right: -100px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(var(--ews-white-rgb), .07);
    border-radius: 50%;
    content: "";
}

.matters-hero::after {
    position: absolute;
    bottom: -240px;
    left: -150px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(var(--ews-base-rgb), .12);
    border-radius: 50%;
    content: "";
}

.matters-hero .container {
    position: relative;
    z-index: 1;
}

.matters-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: center;
}

.matters-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--ews-base);
    font-family: var(--ews-font);
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.matters-hero__kicker::before {
    width: 27px;
    height: 2px;
    background: var(--ews-base);
    content: "";
}

.matters-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 52px;
    line-height: 62px;
    font-weight: 700;
}

.matters-hero__copy > p {
    max-width: 690px;
    margin: 0;
    color: rgba(var(--ews-white-rgb), .7);
    font-size: 16px;
    line-height: 29px;
}

.matters-hero__card {
    padding: 24px;
    background: rgba(var(--ews-white-rgb), .06);
    border: 1px solid rgba(var(--ews-white-rgb), .12);
    border-radius: var(--ews-bdr-radius);
}

.matters-hero__label {
    display: block;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.matters-hero__card strong {
    display: block;
    margin: 5px 0 12px;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.matters-hero__credits {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.matters-hero__credits span {
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matters-hero__credits strong {
    margin: 0;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
}

.matters-hero__stats {
    display: flex;
    gap: 28px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--ews-white-rgb), .12);
}

.matters-hero__stats span {
    display: block;
    color: var(--ews-white);
    font-family: var(--ews-font-two);
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
}

.matters-hero__stats small {
    display: block;
    margin-top: 2px;
    color: rgba(var(--ews-white-rgb), .5);
    font-size: 9px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .matters-hero {
        padding: 64px 0 60px;
    }

    .matters-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .matters-hero h1 {
        font-size: 44px;
        line-height: 54px;
    }

    .matters-hero__card {
        max-width: 420px;
    }
}

@media (max-width: 575px) {
    .matters-hero {
        padding: 56px 0 54px;
    }

    .matters-hero h1 {
        font-size: 34px;
        line-height: 44px;
    }
}

.matters-summary {
    grid-area: summary;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.matters-stat {
    padding: 20px 22px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
}

.matters-stat span {
    display: block;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matters-stat strong {
    display: block;
    margin: 6px 0 2px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
}

.matters-stat small {
    display: block;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 18px;
}

.matters-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.matters-main {
    grid-area: main;
    min-width: 0;
}

.matters-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.matters-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
}

.matters-search i {
    color: var(--ews-base);
    font-size: 13px;
}

.matters-search input {
    width: 100%;
    min-width: 0;
    color: var(--ews-black);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 13px;
}

.matters-search input::placeholder {
    color: var(--ews-gray);
}

.matters-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.matters-filter {
    padding: 8px 13px;
    color: var(--ews-gray);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 30px;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: color .2s ease, background .2s ease, border-color .2s ease;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.matters-filter:hover {
    color: var(--ews-black);
    border-color: rgba(var(--ews-base-rgb), .6);
}

.matters-filter.is-active {
    color: var(--ews-black);
    background: rgba(var(--ews-base-rgb), .18);
    border-color: rgba(var(--ews-base-rgb), .45);
}

.matters-list {
    display: grid;
    gap: 16px;
}

.matter-card {
    padding: 24px 26px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-left: 3px solid var(--ews-base);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 10px 30px rgba(var(--ews-black-rgb), .04);
}

.matter-card--action {
    border-left-color: #b45309;
}

.matter-card--review {
    border-left-color: #2563eb;
}

.matter-card--draft {
    border-left-color: #0f766e;
}

.matter-card--open {
    border-left-color: #6b7280;
}

.matter-card--closed {
    border-left-color: #9ca3af;
}

.matter-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.matter-card__identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.matter-card__ref {
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-card__type {
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 18px;
}

.matter-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.matter-status--action {
    color: #92400e;
    background: #fffbeb;
}

.matter-status--review {
    color: #1e40af;
    background: #eff6ff;
}

.matter-status--draft {
    color: #115e59;
    background: #f0fdfa;
}

.matter-status--open {
    color: #374151;
    background: #f3f4f6;
}

.matter-status--closed {
    color: #6b7280;
    background: #f9fafb;
}

.matter-card__title {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
}

.matter-card__description {
    margin: 0 0 14px;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 24px;
}

.matter-card__next {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.matter-card__next span {
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-card__next strong {
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.matter-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--ews-bdr-color);
}

.matter-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.matter-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-card__meta i {
    color: var(--ews-base);
    font-size: 10px;
}

.matter-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.matters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: color .2s ease, background .2s ease, border-color .2s ease;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.matters-btn--primary {
    color: var(--ews-white);
    background: var(--ews-black);
    border-color: var(--ews-black);
}

.matters-btn--primary:hover {
    color: var(--ews-black);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matters-btn--ghost {
    color: var(--ews-black);
    background: var(--ews-white);
    border-color: var(--ews-bdr-color);
}

.matters-btn--ghost:hover {
    border-color: rgba(var(--ews-base-rgb), .65);
}

.matters-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.matters-dashboard > .matters-sidebar {
    grid-area: sidebar;
    position: static;
}

.matters-quick-panel {
    grid-area: quick;
}

.matters-sidebar__card {
    padding: 24px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
}

.matters-sidebar__card h3 {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 21px;
    line-height: 30px;
    font-weight: 700;
}

.matters-quick-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.matters-quick-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    color: var(--ews-black);
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    -webkit-transition: background .2s ease, border-color .2s ease;
    transition: background .2s ease, border-color .2s ease;
}

.matters-quick-action span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.matters-quick-action i {
    color: var(--ews-base);
}

.matters-quick-action > i {
    font-size: 10px;
}

.matters-quick-action:hover {
    background: var(--ews-white);
    border-color: rgba(var(--ews-base-rgb), .6);
}

.matters-sidebar__card--dark {
    color: var(--ews-white);
    background: var(--ews-black);
    border-color: var(--ews-black);
}

.matters-sidebar__card--dark .auth-card__eyebrow {
    color: var(--ews-base);
}

.matters-sidebar__card--dark h3 {
    color: var(--ews-white);
}

.matters-sidebar__card--dark p {
    margin: 0;
    color: rgba(var(--ews-white-rgb), .7);
    font-size: 13px;
    line-height: 24px;
}

.matters-sidebar__links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.matters-sidebar__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ews-white);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.matters-sidebar__links a i {
    color: var(--ews-base);
}

@media (max-width: 1199px) {
    .matters-dashboard {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .matters-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matters-sidebar {
        position: static;
    }
}

@media (max-width: 991px) {
    .matters-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "quick"
            "summary"
            "main"
            "sidebar";
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .matters-hero__card {
        display: none;
    }

    .matters-toolbar {
        display: block;
    }

    .matters-filters {
        margin-top: 10px;
    }

    .matter-card {
        padding: 22px 20px;
    }

    .matter-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .matters-summary {
        grid-template-columns: 1fr;
    }

    .matter-card__title {
        font-size: 21px;
        line-height: 31px;
    }

    .matters-btn {
        flex: 1 1 auto;
    }
}

/*--------------------------------------------------------------
# New Matter
--------------------------------------------------------------*/
.matters-hero__inner--single {
    grid-template-columns: minmax(0, 1fr);
}

.matters-new__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.matters-new__main {
    min-width: 0;
}

.matters-form-card {
    padding: 32px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 18px 44px rgba(var(--ews-black-rgb), .05);
}

.matters-form-card__head {
    margin-bottom: 26px;
}

.matters-form-card__head h2 {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.matters-form-card__head p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 25px;
}

.matters-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.matters-field {
    min-width: 0;
}

.matters-field--full {
    grid-column: 1 / -1;
}

.matters-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.matters-field label span {
    color: var(--ews-gray);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.matters-field input,
.matters-field select,
.matters-field textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    line-height: 22px;
}

.matters-field input,
.matters-field select {
    height: 46px;
    padding-top: 0;
    padding-bottom: 0;
}

.matters-field textarea {
    min-height: 130px;
    resize: vertical;
}

.matters-field input:focus,
.matters-field select:focus,
.matters-field textarea:focus {
    border-color: rgba(var(--ews-base-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .12);
}

.matters-field input::placeholder,
.matters-field textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matters-field input::-webkit-input-placeholder,
.matters-field textarea::-webkit-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matters-field input::-moz-placeholder,
.matters-field textarea::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matters-field input:-ms-input-placeholder,
.matters-field textarea:-ms-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matters-field input::-ms-input-placeholder,
.matters-field textarea::-ms-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matters-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: var(--ews-primary);
    border: 1px dashed rgba(var(--ews-base-rgb), .65);
    border-radius: 5px;
    text-align: center;
}

.matters-upload i {
    margin-bottom: 8px;
    color: var(--ews-base);
    font-size: 24px;
}

.matters-upload strong {
    display: block;
    color: var(--ews-black);
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
}

.matters-upload span {
    display: block;
    margin-top: 3px;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 19px;
}

.matters-ai-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-left: 3px solid var(--ews-base);
    border-radius: var(--ews-bdr-radius);
}

.matters-ai-note__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .14);
    border-radius: 50%;
    font-size: 16px;
}

.matters-ai-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ews-black);
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
}

.matters-ai-note p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.matters-ai-note p + p {
    margin-top: 7px;
}

.matters-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--ews-bdr-color);
}

.matters-form__actions .matters-btn--ghost {
    text-decoration: none;
}

.matters-steps {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.matters-steps li {
    display: flex;
    gap: 12px;
}

.matters-steps > li > span {
    flex: 0 0 auto;
    color: var(--ews-base);
    font-family: var(--ews-font-two);
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.matters-steps strong {
    display: block;
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
}

.matters-steps p {
    margin: 2px 0 0;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 19px;
}

.matters-quick-action {
    text-decoration: none;
}

@media (max-width: 1199px) {
    .matters-new__layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

@media (max-width: 991px) {
    .matters-new__layout {
        grid-template-columns: 1fr;
    }

    .matters-form-card {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .matters-form__grid {
        grid-template-columns: 1fr;
    }

    .matters-form-card {
        padding: 24px 20px;
    }
}

@media (max-width: 575px) {
    .matters-form__actions .matters-btn {
        flex: 1 1 auto;
    }

    .matters-ai-note {
        flex-direction: column;
    }
}

/* Match the Nice Select control to the matter form inputs */
.matters-field .nice-select {
    width: 100%;
    height: 46px;
    padding: 0 38px 0 14px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    font-size: 14px;
    line-height: 44px;
    font-weight: 400;
}

.matters-field .nice-select:hover,
.matters-field .nice-select:focus,
.matters-field .nice-select.open {
    border-color: rgba(var(--ews-base-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .12);
}

.matters-field .nice-select:after {
    right: 14px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-bottom: 1.5px solid var(--ews-gray);
    border-right: 1.5px solid var(--ews-gray);
}

.matters-field .nice-select .list {
    width: 100%;
    margin-top: 4px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(var(--ews-black-rgb), .1);
}

.matters-field .nice-select .option {
    padding: 10px 14px;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 22px;
}

.matters-field .nice-select .option:hover,
.matters-field .nice-select .option.focus,
.matters-field .nice-select .option.selected.focus {
    color: var(--ews-black);
    background: var(--ews-primary);
}

.matters-field .nice-select .option.selected {
    color: var(--ews-black);
    font-weight: 600;
}

/*--------------------------------------------------------------
# Matter Interaction
--------------------------------------------------------------*/
.matter-back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ews-base);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.matter-back-link:hover {
    color: var(--ews-white);
}

.matter-back-link i {
    font-size: 9px;
}

.matter-workspace {
    position: relative;
    display: block;
}

.matter-workspace__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.matter-workspace__main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.matter-detail-card {
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
}

.matter-chat-card {
    position: relative;
    overflow: hidden;
    background: var(--ews-white);
    border: 1px solid rgba(var(--ews-base-rgb), .42);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 20px 50px rgba(var(--ews-black-rgb), .08);
}

.matter-chat-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ews-base), rgba(var(--ews-base-rgb), .08));
    content: "";
    z-index: 2;
}

.matter-chat-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 20px;
    background-color: #27251f;
    background-image: radial-gradient(circle at 100% 0, rgba(var(--ews-base-rgb), .2), transparent 44%);
    border-bottom: 1px solid rgba(var(--ews-base-rgb), .22);
}

.matter-chat-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.matter-chat-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(var(--ews-base-rgb), .32);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .06);
}

.matter-chat-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.matter-chat-card__head h2 {
    margin: 4px 0 7px;
    color: #f7f1e4;
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 39px;
    font-weight: 700;
}

.matter-chat-card__intro {
    max-width: 620px;
    margin: 0;
    color: rgba(247, 241, 228, .66);
    font-size: 13px;
    line-height: 22px;
}

.matter-chat-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #a7e8bd;
    background: rgba(34, 197, 94, .11);
    border: 1px solid rgba(134, 239, 172, .2);
    border-radius: 30px;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-chat-card__status > span {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
}

.matter-chat {
    display: grid;
    gap: 18px;
    padding: 28px;
    background: #fbfaf7;
}

.matter-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 88%;
}

.matter-message--user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.matter-message__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .16);
    border-radius: 50%;
    font-size: 12px;
}

.matter-message--user .matter-message__avatar {
    color: var(--ews-white);
    background: var(--ews-black);
}

.matter-message--assistant .matter-message__avatar {
    overflow: hidden;
    border: 1px solid rgba(var(--ews-base-rgb), .26);
}

.matter-message__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.matter-message__bubble {
    padding: 14px 16px;
    background: var(--ews-white);
    border: 1px solid #e9e4d9;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 4px 12px rgba(var(--ews-black-rgb), .03);
}

.matter-message--user .matter-message__bubble {
    background: #27251f;
    border-color: #27251f;
    border-radius: 8px 0 8px 8px;
}

.matter-message__name {
    display: block;
    margin-bottom: 4px;
    color: #7a5f2f;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-message--user .matter-message__name {
    color: rgba(var(--ews-white-rgb), .55);
}

.matter-message__name--trigger {
    padding: 0;
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.matter-message__name--trigger:hover,
.matter-message__name--trigger:focus-visible {
    color: var(--ews-black);
    outline: none;
}

.matter-message p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 23px;
}

.matter-message--user p {
    color: rgba(var(--ews-white-rgb), .82);
}

.matter-composer {
    padding: 22px 28px 24px;
    background: var(--ews-white);
    border-top: 1px solid #ece7dc;
}

.matter-composer textarea {
    width: 100%;
    min-height: 104px;
    padding: 12px 14px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 5px;
    outline: none;
    font-size: 13px;
    line-height: 22px;
    resize: vertical;
}

.matter-composer textarea:focus {
    border-color: rgba(var(--ews-base-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .12);
}

.matter-composer textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matter-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.matter-composer__attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ews-gray);
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: color .2s ease, border-color .2s ease;
    transition: color .2s ease, border-color .2s ease;
}

.matter-composer__attach:hover {
    color: var(--ews-black);
    border-color: rgba(var(--ews-base-rgb), .7);
}

.matter-composer__note {
    margin: 10px 0 0;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-chat-card .matter-composer .matters-btn--primary {
    color: var(--ews-white);
    background: var(--ews-black);
    border-color: var(--ews-black);
}

.matter-chat-card .matter-composer .matters-btn--primary:hover {
    color: var(--ews-black);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matter-workspace__sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.matter-detail-card {
    padding: 22px;
}

.matter-detail-card h2 {
    margin: 2px 0 14px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 21px;
    line-height: 30px;
    font-weight: 700;
}

.matter-detail-card--dark {
    background: var(--ews-black);
    border-color: var(--ews-black);
}

.matter-detail-card--dark .auth-card__eyebrow {
    color: var(--ews-base);
}

.matter-detail-card--dark h2 {
    color: var(--ews-white);
}

.matter-detail-card--dark p {
    margin: 0;
    color: rgba(var(--ews-white-rgb), .7);
    font-size: 12px;
    line-height: 22px;
}

.matter-detail-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.matters-btn {
    text-decoration: none;
}

.matters-btn--light {
    color: var(--ews-black);
    background: var(--ews-white);
    border-color: var(--ews-white);
}

.matters-btn--light:hover {
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matters-btn--ghost-dark {
    color: var(--ews-white);
    background: transparent;
    border-color: rgba(var(--ews-white-rgb), .28);
}

.matters-btn--ghost-dark:hover {
    background: rgba(var(--ews-white-rgb), .1);
    border-color: rgba(var(--ews-white-rgb), .45);
}

.matter-workspace-hero .matters-hero__card strong {
    font-size: 22px;
    line-height: 30px;
}

@media (max-width: 1199px) {
    .matter-workspace__layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .matter-workspace__sidebar {
        position: static;
    }
}

@media (max-width: 991px) {
    .matter-workspace__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .matter-chat-card__head {
        padding: 22px 20px 18px;
    }

    .matter-chat {
        padding: 18px;
    }

    .matter-message {
        max-width: 100%;
    }

    .matter-composer {
        padding: 18px;
    }

    .matter-detail-card {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .matter-chat-card__head {
        flex-direction: column;
    }

    .matter-chat-card__head h2 {
        font-size: 27px;
        line-height: 36px;
    }

    .matter-message__avatar {
        width: 30px;
        height: 30px;
    }

    .matter-message__bubble {
        padding: 12px 14px;
    }

    .matter-composer__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .matter-composer__attach {
        width: 100%;
        border-radius: 5px;
    }
}

/*--------------------------------------------------------------
# Learned AI Modal
--------------------------------------------------------------*/
.learned-ai-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 0;
    color: var(--ews-base);
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.learned-ai-trigger i {
    color: var(--ews-base);
    font-size: 10px;
    opacity: .8;
}

.learned-ai-trigger:hover,
.learned-ai-trigger:focus-visible {
    color: #f7f1e4;
    outline: none;
}

.learned-ai-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: visibility .3s ease, opacity .3s ease;
    transition: visibility .3s ease, opacity .3s ease;
}

.learned-ai-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.learned-ai-modal__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 10, 10, .65);
}

.learned-ai-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    overflow: hidden auto;
    padding: 0;
    background: var(--ews-white);
    border: 1px solid rgba(var(--ews-base-rgb), .42);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    -webkit-transform: translateY(20px) scale(.98);
    transform: translateY(20px) scale(.98);
    -webkit-transition: transform .3s ease;
    transition: transform .3s ease;
}

.learned-ai-modal.is-open .learned-ai-modal__dialog {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
}

.learned-ai-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid #e7e1d5;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: background .2s ease, color .2s ease, border-color .2s ease;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.learned-ai-modal__close:hover {
    color: var(--ews-white);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.learned-ai-modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 64px 24px 32px;
    background-color: #f7f5ef;
    background-image: radial-gradient(circle at 100% 0, rgba(var(--ews-base-rgb), .18), transparent 46%);
    border-bottom: 1px solid #ece7dc;
}

.learned-ai-modal__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(var(--ews-base-rgb), .32);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .07);
}

.learned-ai-modal__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.learned-ai-modal__kicker {
    display: block;
    margin-bottom: 4px;
    color: #8a8274;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.learned-ai-modal__body {
    padding: 26px 32px 30px;
}

.learned-ai-modal__dialog h2 {
    margin: 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 39px;
    font-weight: 700;
}

.learned-ai-modal__text {
    margin: 0 0 12px;
    color: var(--ews-black);
    font-size: 15px;
    line-height: 26px;
    font-weight: 600;
}

.learned-ai-modal__support {
    margin: 0 0 20px;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 24px;
}

.learned-ai-modal__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 14px 16px;
    color: #5f5a50;
    background: #f7f5ef;
    border-left: 3px solid var(--ews-base);
    border-radius: var(--ews-bdr-radius);
    font-size: 12px;
    line-height: 21px;
    font-weight: 600;
}

.learned-ai-modal__note i {
    margin-top: 3px;
    color: var(--ews-base);
    font-size: 12px;
}

body.learned-ai-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .learned-ai-modal__head {
        gap: 13px;
        padding: 24px 54px 20px 20px;
    }

    .learned-ai-modal__avatar {
        width: 46px;
        height: 46px;
    }

    .learned-ai-modal__body {
        padding: 22px 20px 24px;
    }

    .learned-ai-modal__dialog h2 {
        font-size: 26px;
        line-height: 34px;
    }
}

/*--------------------------------------------------------------
# Matter Documents Modal
--------------------------------------------------------------*/
.matter-docs-modal .learned-ai-modal__dialog {
    max-width: 760px;
}

.matter-docs-modal__head {
    padding: 30px 64px 24px 32px;
    background-color: #f7f5ef;
    background-image: radial-gradient(circle at 100% 0, rgba(var(--ews-base-rgb), .18), transparent 46%);
    border-bottom: 1px solid #ece7dc;
}

.matter-docs-modal__kicker {
    display: block;
    margin-bottom: 4px;
    color: #8a8274;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.matter-docs-modal__head h2 {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 39px;
    font-weight: 700;
}

.matter-docs-modal__head p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 22px;
}

.matter-docs-modal__body {
    padding: 24px 32px 30px;
    background: var(--ews-white);
}

.matter-doc-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.matter-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--ews-white);
    border: 1px solid #e9e4d9;
    border-radius: var(--ews-bdr-radius);
}

.matter-doc-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .12);
    border-radius: 8px;
    font-size: 16px;
}

.matter-doc-item__content {
    flex: 1;
    min-width: 0;
}

.matter-doc-item__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
}

.matter-doc-item__top strong {
    color: var(--ews-black);
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.matter-doc-item__top span {
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-doc-item__details {
    display: grid;
    gap: 8px;
    margin: 0;
}

.matter-doc-item__details > div {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
}

.matter-doc-item__details dt {
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.matter-doc-item__details dd {
    margin: 0;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 19px;
}

body.matter-docs-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .matter-docs-modal__head {
        padding: 24px 54px 20px 20px;
    }

    .matter-docs-modal__body {
        padding: 20px;
    }

    .matter-doc-item {
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .matter-docs-modal__head h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .matter-doc-item__details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

.matter-doc-item__aside {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.matter-doc-item__download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--ews-gray);
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: color .2s ease, background .2s ease, border-color .2s ease;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.matter-doc-item__download:hover {
    color: var(--ews-black);
    background: rgba(var(--ews-base-rgb), .16);
    border-color: rgba(var(--ews-base-rgb), .55);
}

.matter-doc-item__download i {
    font-size: 11px;
}

.matter-doc-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #b91c1c;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: color .2s ease, background .2s ease, border-color .2s ease;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.matter-doc-item__remove:hover {
    color: var(--ews-white);
    background: #b91c1c;
    border-color: #b91c1c;
}

.matter-doc-item__remove i {
    font-size: 11px;
}

/*--------------------------------------------------------------
# Matter Conversation Launcher
--------------------------------------------------------------*/
.matter-conversation-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 22px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: var(--ews-bdr-radius);
    box-shadow: 0 12px 30px rgba(var(--ews-black-rgb), .05);
    text-align: left;
    cursor: pointer;
    -webkit-transition: border-color .2s ease, box-shadow .2s ease;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.matter-conversation-toggle:hover {
    border-color: rgba(var(--ews-base-rgb), .6);
    box-shadow: 0 14px 34px rgba(var(--ews-black-rgb), .07);
}

.matter-conversation-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .14);
    border-radius: 50%;
    font-size: 17px;
}

.matter-conversation-toggle__text {
    flex: 1;
    min-width: 0;
}

.matter-conversation-toggle__text strong {
    display: block;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 20px;
    line-height: 29px;
    font-weight: 700;
}

.matter-conversation-toggle__text small {
    display: block;
    margin-top: 2px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.matter-conversation-toggle > i {
    flex: 0 0 auto;
    color: var(--ews-base);
    font-size: 11px;
    -webkit-transition: transform .25s ease;
    transition: transform .25s ease;
}

.matter-conversation-toggle[aria-expanded="true"] > i {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

#matter-conversation {
    scroll-margin-top: 110px;
}

@media (max-width: 575px) {
    .matter-conversation-toggle {
        align-items: flex-start;
        padding: 18px;
    }

    .matter-conversation-toggle__icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .matter-conversation-toggle__text strong {
        font-size: 18px;
        line-height: 26px;
    }

    .matter-conversation-toggle__text small {
        font-size: 11px;
        line-height: 19px;
    }
}

/*--------------------------------------------------------------
# Matter Dossier
--------------------------------------------------------------*/
.matter-dossier {
    margin-bottom: 28px;
}

.matter-dossier__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(var(--ews-black-rgb), .05);
}

.matter-dossier__head h2 {
    margin: 4px 0 7px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 32px;
    line-height: 42px;
    font-weight: 700;
}

.matter-dossier__identity {
    margin: 0;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.matter-dossier__badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.matter-priority {
    display: inline-block;
    padding: 5px 10px;
    color: #7a5f2f;
    background: rgba(var(--ews-base-rgb), .16);
    border: 1px solid rgba(var(--ews-base-rgb), .32);
    border-radius: 20px;
    font-size: 9px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.matter-dossier__spotlight {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
    padding: 20px 24px;
    background: #fbfaf7;
    border: 1px solid rgba(var(--ews-base-rgb), .42);
    border-left: 3px solid var(--ews-base);
    border-radius: 8px;
}

.matter-dossier__spotlight > div {
    min-width: 0;
}

.matter-dossier__spotlight span {
    display: block;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-dossier__spotlight strong {
    display: block;
    margin-top: 4px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 18px;
    line-height: 27px;
    font-weight: 700;
}

.matter-dossier__spotlight-main strong {
    font-size: 20px;
    line-height: 29px;
}

.matter-dossier__spotlight small {
    display: block;
    margin-top: 2px;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
}

.matter-dossier__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.matter-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 22px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(var(--ews-black-rgb), .04);
}

.matter-info-card--wide {
    grid-column: 1 / -1;
}

.matter-info-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.matter-info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .13);
    border-radius: 50%;
    font-size: 13px;
}

.matter-info-card__kicker {
    display: block;
    margin-bottom: 1px;
    color: var(--ews-gray);
    font-size: 8px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matter-info-card__head h3 {
    margin: 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

.matter-fact-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: matter-fact;
}

.matter-fact-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
    counter-increment: matter-fact;
}

.matter-fact-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--ews-base);
    font-family: var(--ews-font-two);
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
    content: counter(matter-fact, decimal-leading-zero);
}

.matter-issue-list {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
}

.matter-issue-list li {
    position: relative;
    padding-left: 17px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 21px;
}

.matter-issue-list li::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--ews-base);
    border-radius: 50%;
    content: "";
}

.matter-info-card__note {
    margin: 12px 0 0;
    padding-top: 10px;
    color: var(--ews-gray);
    border-top: 1px dashed #e9e4d9;
    font-size: 10px;
    line-height: 18px;
}

.matter-date-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.matter-date-list li {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.matter-date-list li::before {
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: #e6e0d4;
    content: "";
}

.matter-date-list li:last-child {
    padding-bottom: 0;
}

.matter-date-list li:last-child::before {
    display: none;
}

.matter-date-list__dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    background: #cfc7b6;
    border-radius: 50%;
}

.matter-date-list li.is-upcoming .matter-date-list__dot {
    background: var(--ews-base);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .16);
}

.matter-date-list strong {
    display: block;
    color: var(--ews-black);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.matter-date-list div > span {
    display: block;
    margin-top: 2px;
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.matter-date-list small {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
}

.matter-law-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}

.matter-law-list li {
    padding: 12px;
    background: #fbfaf7;
    border: 1px solid #ece7dc;
    border-radius: 6px;
}

.matter-law-list__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.matter-law-list__top strong {
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 700;
}

.matter-law-section {
    flex: 0 0 auto;
    padding: 2px 6px;
    color: #7a5f2f;
    background: rgba(var(--ews-base-rgb), .16);
    border-radius: 3px;
    font-size: 8px;
    line-height: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.matter-law-list p {
    margin: 5px 0 0;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-argument-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.matter-argument-group {
    padding: 13px 15px;
    background: #fbfaf7;
    border: 1px solid #ece7dc;
    border-radius: 6px;
}

.matter-argument-group--risk {
    background: #fffaf3;
    border-color: #f0e3d0;
}

.matter-argument-group__label {
    display: block;
    margin-bottom: 7px;
    color: #7a5f2f;
    font-size: 8px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-argument-group li + li {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #ece7dc;
}

.matter-argument-group strong {
    display: block;
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 700;
}

.matter-argument-group p {
    margin: 2px 0 0;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-action-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.matter-action-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid #ece7dc;
}

.matter-action-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.matter-action-list > li > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--ews-base);
    font-size: 12px;
}

.matter-action-list li.is-done > i {
    color: #0f766e;
}

.matter-action-list strong {
    display: block;
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 600;
}

.matter-action-list span {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
}

.matter-doc-mini-list {
    display: grid;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
}

.matter-doc-mini-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-top: 1px solid #ece7dc;
}

.matter-doc-mini-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.matter-doc-mini-list > li > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--ews-base);
    font-size: 12px;
}

.matter-doc-mini-list strong {
    display: block;
    color: var(--ews-black);
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.matter-doc-mini-list span {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
}

.matter-info-card__button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-top: auto;
    padding: 7px 11px;
    color: var(--ews-black);
    background: var(--ews-primary);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 30px;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: background .2s ease, border-color .2s ease;
    transition: background .2s ease, border-color .2s ease;
}

.matter-info-card__button:hover {
    background: rgba(var(--ews-base-rgb), .12);
    border-color: rgba(var(--ews-base-rgb), .55);
}

.matter-info-card__button i {
    color: var(--ews-base);
    font-size: 8px;
}

.matter-discussion-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.matter-discussion-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #ece7dc;
}

.matter-discussion-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.matter-discussion-list strong {
    display: block;
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 600;
}

.matter-discussion-list span {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 17px;
}

.matter-discussion-list > li > i {
    flex: 0 0 auto;
    color: var(--ews-base);
    font-size: 9px;
}

.matter-people-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.matter-people-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #ece7dc;
}

.matter-people-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.matter-people-list span {
    color: var(--ews-gray);
    font-size: 8px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-people-list strong {
    color: var(--ews-black);
    font-size: 11px;
    line-height: 19px;
    font-weight: 600;
    text-align: right;
}

.matter-risk-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.matter-risk-list li {
    padding: 10px 12px;
    background: #fffaf3;
    border-left: 2px solid #d6a75f;
    border-radius: 4px;
}

.matter-risk-list span {
    display: block;
    margin-bottom: 2px;
    color: #7a5f2f;
    font-size: 8px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-risk-list p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
}

.matter-research-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.matter-research-list li {
    position: relative;
    padding-left: 15px;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 20px;
}

.matter-research-list li::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--ews-base);
    border-radius: 50%;
    content: "";
}

@media (max-width: 991px) {
    .matter-dossier__spotlight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matter-dossier__grid {
        grid-template-columns: 1fr;
    }

    .matter-info-card--wide {
        grid-column: auto;
    }

    .matter-law-list,
    .matter-argument-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .matter-dossier__head {
        flex-direction: column;
        padding: 22px 20px;
    }

    .matter-dossier__badges {
        justify-content: flex-start;
    }

    .matter-dossier__head h2 {
        font-size: 27px;
        line-height: 36px;
    }

    .matter-dossier__spotlight {
        padding: 18px 20px;
    }

    .matter-info-card {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .matter-dossier__spotlight {
        grid-template-columns: 1fr;
    }

    .matter-dossier__spotlight-main strong {
        font-size: 18px;
    }
}

/*--------------------------------------------------------------
# Matter Workspace Typography
--------------------------------------------------------------*/
.matters-hero,
.matters-dashboard,
.matters-new,
.matter-workspace,
.matter-workspace-hero,
.learned-ai-modal {
    --ews-font-two: "Legal Serif", "Liberation Serif", "Times New Roman", Times, serif;
}

/*--------------------------------------------------------------
# Matter Workspace Editorial Type Scale
--------------------------------------------------------------*/
.matter-workspace-hero h1 {
    font-size: 42px;
    line-height: 50px;
}

.matter-workspace-hero .matter-back-link {
    font-size: 11px;
    line-height: 20px;
}

.matter-workspace-hero .matter-back-link i {
    font-size: 10px;
}

.matter-workspace-hero .matters-hero__card strong {
    font-size: 25px;
    line-height: 35px;
}

.matter-workspace-hero .matters-hero__stats span {
    font-size: 24px;
    line-height: 30px;
}

.matter-workspace-hero .matters-hero__stats small {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-dossier__head h2 {
    font-size: 34px;
    line-height: 44px;
}

.matter-workspace .matter-dossier__identity {
    font-size: 14px;
    line-height: 24px;
}

.matter-workspace .matter-status,
.matter-workspace .matter-priority {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-dossier__spotlight {
    gap: 20px;
    padding: 24px 28px;
}

.matter-workspace .matter-dossier__spotlight span {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-dossier__spotlight strong {
    font-size: 20px;
    line-height: 28px;
}

.matter-workspace .matter-dossier__spotlight-main strong {
    font-size: 24px;
    line-height: 32px;
}

.matter-workspace .matter-dossier__spotlight small {
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-dossier__grid {
    gap: 24px;
    margin-top: 24px;
}

.matter-workspace .matter-info-card {
    padding: 28px;
    border-radius: 10px;
}

.matter-workspace .matter-info-card__head {
    gap: 13px;
    margin-bottom: 18px;
}

.matter-workspace .matter-info-card__icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.matter-workspace .matter-info-card__kicker {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-info-card__head h3 {
    font-size: 25px;
    line-height: 35px;
}

.matter-workspace .matter-fact-list {
    gap: 14px;
}

.matter-workspace .matter-fact-list li {
    padding-left: 32px;
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-fact-list li::before {
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-issue-list {
    gap: 10px;
    margin-bottom: 16px;
}

.matter-workspace .matter-issue-list li {
    padding-left: 20px;
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-issue-list li::before {
    top: 10px;
    width: 7px;
    height: 7px;
}

.matter-workspace .matter-info-card__note {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 13px;
    line-height: 22px;
}

.matter-workspace .matter-date-list li {
    gap: 14px;
    padding-bottom: 20px;
}

.matter-workspace .matter-date-list li::before {
    top: 12px;
    left: 6px;
}

.matter-workspace .matter-date-list__dot {
    width: 13px;
    height: 13px;
    margin-top: 4px;
}

.matter-workspace .matter-date-list strong {
    font-size: 11px;
    line-height: 18px;
}

.matter-workspace .matter-date-list div > span {
    margin-top: 3px;
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-date-list small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-date-list li:last-child {
    padding-bottom: 0;
}

.matter-workspace .matter-date-list li:last-child::before {
    display: none;
}

.matter-workspace .matter-law-list {
    gap: 14px;
}

.matter-workspace .matter-law-list li {
    padding: 16px;
}

.matter-workspace .matter-law-list__top strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-law-section {
    padding: 3px 8px;
    font-size: 10px;
    line-height: 16px;
}

.matter-workspace .matter-law-list p {
    margin-top: 7px;
    font-size: 13px;
    line-height: 22px;
}

.matter-workspace .matter-argument-columns {
    gap: 20px;
}

.matter-workspace .matter-argument-group {
    padding: 16px 18px;
}

.matter-workspace .matter-argument-group__label {
    margin-bottom: 9px;
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-argument-group li + li {
    margin-top: 12px;
    padding-top: 12px;
}

.matter-workspace .matter-argument-group strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-argument-group p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 22px;
}

.matter-workspace .matter-action-list li {
    gap: 11px;
    padding: 12px 0;
}

.matter-workspace .matter-action-list li:first-child {
    padding-top: 0;
}

.matter-workspace .matter-action-list > li > i {
    margin-top: 4px;
    font-size: 14px;
}

.matter-workspace .matter-action-list strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-action-list span {
    margin-top: 2px;
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-doc-mini-list {
    margin-bottom: 18px;
}

.matter-workspace .matter-doc-mini-list li {
    gap: 11px;
    padding: 11px 0;
}

.matter-workspace .matter-doc-mini-list li:first-child {
    padding-top: 0;
}

.matter-workspace .matter-doc-mini-list > li > i {
    margin-top: 3px;
    font-size: 14px;
}

.matter-workspace .matter-doc-mini-list strong {
    font-size: 14px;
    line-height: 22px;
}

.matter-workspace .matter-doc-mini-list span {
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-info-card__button {
    gap: 8px;
    padding: 10px 15px;
    font-size: 11px;
    line-height: 20px;
}

.matter-workspace .matter-info-card__button i {
    font-size: 10px;
}

.matter-workspace .matter-discussion-list li {
    gap: 12px;
    padding: 12px 0;
}

.matter-workspace .matter-discussion-list li:first-child {
    padding-top: 0;
}

.matter-workspace .matter-discussion-list strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-discussion-list span {
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-discussion-list > li > i {
    font-size: 11px;
}

.matter-workspace .matter-people-list li {
    gap: 14px;
    padding: 12px 0;
}

.matter-workspace .matter-people-list li:first-child {
    padding-top: 0;
}

.matter-workspace .matter-people-list span {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-people-list strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-workspace .matter-risk-list {
    gap: 12px;
}

.matter-workspace .matter-risk-list li {
    padding: 12px 14px;
}

.matter-workspace .matter-risk-list span {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-risk-list p {
    font-size: 13px;
    line-height: 22px;
}

.matter-workspace .matter-research-list {
    gap: 10px;
}

.matter-workspace .matter-research-list li {
    padding-left: 18px;
    font-size: 14px;
    line-height: 24px;
}

.matter-workspace .matter-research-list li::before {
    top: 10px;
    width: 6px;
    height: 6px;
}

.matter-workspace .matter-chat-card__head h2 {
    font-size: 34px;
    line-height: 44px;
}

.matter-workspace .matter-chat-card__intro {
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-chat-card__status {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-message__name {
    font-size: 10px;
    line-height: 18px;
}

.matter-workspace .matter-message p {
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-composer textarea {
    font-size: 15px;
    line-height: 26px;
}

.matter-workspace .matter-composer__note {
    font-size: 12px;
    line-height: 20px;
}

.matter-workspace .matter-conversation-toggle__text strong {
    font-size: 25px;
    line-height: 35px;
}

.matter-workspace .matter-conversation-toggle__text small {
    font-size: 14px;
    line-height: 24px;
}

.matter-workspace .matter-conversation-toggle__icon {
    font-size: 18px;
}

.learned-ai-modal .learned-ai-modal__kicker {
    font-size: 10px;
    line-height: 18px;
}

.learned-ai-modal .learned-ai-modal__dialog h2 {
    font-size: 34px;
    line-height: 44px;
}

.learned-ai-modal .learned-ai-modal__text {
    font-size: 16px;
    line-height: 28px;
}

.learned-ai-modal .learned-ai-modal__support {
    font-size: 15px;
    line-height: 26px;
}

.learned-ai-modal .learned-ai-modal__note {
    font-size: 13px;
    line-height: 22px;
}

.learned-ai-modal .learned-ai-modal__note i {
    font-size: 13px;
}

.matter-docs-modal .matter-docs-modal__kicker {
    font-size: 10px;
    line-height: 18px;
}

.matter-docs-modal .matter-docs-modal__head h2 {
    font-size: 34px;
    line-height: 44px;
}

.matter-docs-modal .matter-docs-modal__head p {
    font-size: 15px;
    line-height: 26px;
}

.matter-docs-modal .matter-doc-item__top strong {
    font-size: 15px;
    line-height: 24px;
}

.matter-docs-modal .matter-doc-item__top span {
    font-size: 12px;
    line-height: 20px;
}

.matter-docs-modal .matter-doc-item__details dt {
    font-size: 10px;
    line-height: 18px;
}

.matter-docs-modal .matter-doc-item__details dd {
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 1199px) {
    .matter-workspace .matter-info-card__head h3 {
        font-size: 23px;
        line-height: 33px;
    }
}

@media (max-width: 991px) {
    .matter-workspace-hero h1 {
        font-size: 38px;
        line-height: 48px;
    }
}

@media (max-width: 767px) {
    .matter-workspace-hero h1 {
        font-size: 34px;
        line-height: 44px;
    }

    .matter-workspace .matter-dossier__head {
        padding: 24px 22px;
    }

    .matter-workspace .matter-dossier__head h2 {
        font-size: 30px;
        line-height: 39px;
    }

    .matter-workspace .matter-dossier__spotlight {
        padding: 22px 24px;
    }

    .matter-workspace .matter-info-card {
        padding: 24px;
    }

    .matter-workspace .matter-info-card__head h3 {
        font-size: 22px;
        line-height: 32px;
    }
}

@media (max-width: 575px) {
    .matter-workspace-hero h1 {
        font-size: 30px;
        line-height: 39px;
    }

    .matter-workspace-hero .matters-hero__card strong {
        font-size: 22px;
        line-height: 30px;
    }

    .matter-workspace .matter-dossier__head {
        padding: 22px 20px;
    }

    .matter-workspace .matter-dossier__head h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .matter-workspace .matter-dossier__spotlight {
        padding: 20px 22px;
    }

    .matter-workspace .matter-dossier__spotlight-main strong {
        font-size: 22px;
        line-height: 30px;
    }

    .matter-workspace .matter-info-card {
        padding: 23px 21px 22px;
    }

    .matter-workspace .matter-info-card__head h3 {
        font-size: 21px;
        line-height: 31px;
    }

    .matter-workspace .matter-fact-list li,
    .matter-workspace .matter-issue-list li,
    .matter-workspace .matter-date-list div > span,
    .matter-workspace .matter-law-list__top strong,
    .matter-workspace .matter-argument-group strong,
    .matter-workspace .matter-action-list strong,
    .matter-workspace .matter-discussion-list strong,
    .matter-workspace .matter-people-list strong,
    .matter-workspace .matter-research-list li,
    .matter-workspace .matter-message p,
    .matter-workspace .matter-composer textarea,
    .matter-docs-modal .matter-doc-item__details dd {
        font-size: 14px;
        line-height: 25px;
    }

    .matter-workspace .matter-chat-card__head h2 {
        font-size: 30px;
        line-height: 39px;
    }

    .matter-workspace .matter-chat-card__intro {
        font-size: 14px;
        line-height: 25px;
    }

    .matter-workspace .matter-conversation-toggle__text strong {
        font-size: 21px;
        line-height: 31px;
    }

    .matter-workspace .matter-conversation-toggle__text small {
        font-size: 14px;
        line-height: 24px;
    }

    .learned-ai-modal .learned-ai-modal__dialog h2,
    .matter-docs-modal .matter-docs-modal__head h2 {
        font-size: 30px;
        line-height: 39px;
    }
}

/* Give the next-step value enough room on desktop. */
.matter-workspace .matter-dossier__spotlight {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .matter-workspace .matter-dossier__spotlight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .matter-workspace .matter-dossier__spotlight {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .matter-workspace .matter-dossier__spotlight {
        grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .matter-workspace .matter-dossier__spotlight-main strong {
        font-size: 22px;
        line-height: 30px;
    }
}

.matter-workspace .matter-dossier__spotlight-main strong {
    font-size: 22px;
    line-height: 30px;
}

/*--------------------------------------------------------------
# Single Matter Dossier Card
--------------------------------------------------------------*/
.matter-workspace .matter-dossier {
    padding: 0;
    overflow: hidden;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(var(--ews-black-rgb), .06);
}

.matter-workspace .matter-dossier__head {
    padding: 32px 32px 26px;
    background: var(--ews-white);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.matter-workspace .matter-dossier__spotlight {
    margin: 0;
    padding: 22px 32px;
    background: #fbfaf7;
    border: 0;
    border-top: 1px solid #ece7dc;
    border-radius: 0;
}

.matter-workspace .matter-dossier__body {
    display: block;
}

.matter-workspace .matter-dossier__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 28px 32px;
    border-top: 1px solid #ece7dc;
}

.matter-workspace .matter-dossier__row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matter-workspace .matter-dossier__row--split > .matter-section:first-child {
    padding-right: 48px;
}

.matter-workspace .matter-dossier__row--split > .matter-section + .matter-section {
    padding-left: 48px;
    border-left: 1px solid #ece7dc;
}

.matter-workspace .matter-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

@media (max-width: 991px) {
    .matter-workspace .matter-dossier__row--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .matter-workspace .matter-dossier__row--split > .matter-section:first-child {
        padding-right: 0;
    }

    .matter-workspace .matter-dossier__row--split > .matter-section + .matter-section {
        margin-top: 24px;
        padding-top: 24px;
        padding-left: 0;
        border-top: 1px solid #ece7dc;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .matter-workspace .matter-dossier__head {
        padding: 24px 22px 20px;
    }

    .matter-workspace .matter-dossier__spotlight {
        padding: 20px 22px;
    }

    .matter-workspace .matter-dossier__row {
        padding: 24px 22px;
    }
}

@media (max-width: 575px) {
    .matter-workspace .matter-dossier {
        border-radius: 10px;
    }

    .matter-workspace .matter-dossier__head {
        padding: 22px 20px 18px;
    }

    .matter-workspace .matter-dossier__spotlight {
        padding: 20px;
    }

    .matter-workspace .matter-dossier__row {
        padding: 22px 20px;
    }

    .matter-workspace .matter-dossier__row--split > .matter-section + .matter-section {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/*--------------------------------------------------------------
# Matter Briefing Dashboard
--------------------------------------------------------------*/
.matter-briefing {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}

.matter-brief {
    padding: 32px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(var(--ews-black-rgb), .09);
}

.matter-brief__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.matter-brief__head h2 {
    margin: 3px 0 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 34px;
    line-height: 44px;
    font-weight: 700;
}

.matter-brief__badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.matter-brief__summary {
    max-width: 980px;
    margin: 16px 0 0;
    color: var(--ews-gray);
    font-size: 16px;
    line-height: 29px;
}

.matter-brief__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0;
    border-top: 1px solid #ece7dc;
    border-bottom: 1px solid #ece7dc;
}

.matter-brief__stat {
    min-width: 0;
    padding: 18px 22px;
    border-left: 1px solid #ece7dc;
}

.matter-brief__stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.matter-brief__stat > span {
    display: block;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-brief__stat strong {
    display: block;
    margin-top: 4px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 18px;
    line-height: 27px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.matter-brief__stat small {
    display: block;
    margin-top: 2px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 20px;
}

.matter-brief__stat.is-urgent strong,
.matter-brief__stat.is-urgent small {
    color: #92400e;
}

.matter-brief__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.matter-brief__actions .matters-btn {
    gap: 8px;
}

.matter-brief__actions .matters-btn i {
    font-size: 10px;
}

.matter-briefing__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.matter-briefing__main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.matter-briefing__rail {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.matter-focus {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    background: #fbfaf7;
    border: 1px solid rgba(var(--ews-base-rgb), .42);
    border-left: 4px solid var(--ews-base);
    border-radius: 12px;
}

.matter-focus::after {
    position: absolute;
    top: -80px;
    right: -70px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(var(--ews-base-rgb), .2);
    border-radius: 50%;
    content: "";
}

.matter-focus__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.matter-focus__head .auth-card__eyebrow {
    margin-bottom: 0;
}

.matter-focus__deadline {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    padding: 5px 10px;
    color: #115e59;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 20px;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.matter-focus__deadline.is-urgent {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

.matter-focus__deadline i {
    font-size: 9px;
}

.matter-focus h2 {
    position: relative;
    z-index: 1;
    margin: 10px 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 28px;
    line-height: 37px;
    font-weight: 700;
}

.matter-focus > p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: var(--ews-gray);
    font-size: 15px;
    line-height: 26px;
}

.matter-focus__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
}

.matter-focus__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.matter-focus__meta i {
    color: var(--ews-base);
    font-size: 10px;
}

.matter-focus__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.matter-focus__note {
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 20px;
}

.matter-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: #8a6a32;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matter-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.matter-section-head h2 {
    margin: 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 26px;
    line-height: 36px;
    font-weight: 700;
}

.matter-section-head__note {
    max-width: 340px;
    margin: 0;
    color: var(--ews-gray);
    font-size: 13px;
    line-height: 22px;
    text-align: right;
}

.matter-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: var(--ews-black);
    background: transparent;
    border: 0;
    font-family: var(--ews-font);
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.matter-text-btn i {
    color: var(--ews-base);
    font-size: 9px;
    -webkit-transition: transform .2s ease;
    transition: transform .2s ease;
}

.matter-text-btn:hover {
    color: var(--ews-base);
}

.matter-text-btn:hover i {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

.matter-journey {
    padding: 26px 28px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(var(--ews-black-rgb), .04);
}

.matter-journey__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.matter-journey__steps::before {
    position: absolute;
    top: 6px;
    right: 12%;
    left: 12%;
    height: 1px;
    background: #e6e0d4;
    content: "";
}

.matter-journey__steps li {
    position: relative;
    padding: 24px 18px 0 0;
}

.matter-journey__steps li:last-child {
    padding-right: 0;
}

.matter-journey__dot {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 13px;
    height: 13px;
    background: #d8d2c5;
    border: 3px solid var(--ews-white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e6e0d4;
}

.matter-journey__steps li.is-done .matter-journey__dot {
    background: var(--ews-base);
    box-shadow: 0 0 0 1px rgba(var(--ews-base-rgb), .45);
}

.matter-journey__steps li.is-active .matter-journey__dot {
    background: var(--ews-black);
    box-shadow: 0 0 0 4px rgba(var(--ews-base-rgb), .16);
}

.matter-journey__steps li.is-upcoming .matter-journey__dot {
    background: #fff;
    box-shadow: 0 0 0 1px #cfc7b6;
}

.matter-journey__steps strong {
    display: block;
    color: var(--ews-black);
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
}

.matter-journey__steps li.is-active strong {
    color: #7a5f2f;
}

.matter-journey__steps span {
    display: block;
    margin-top: 2px;
    color: var(--ews-gray);
    font-size: 12px;
    line-height: 20px;
}

.matter-qa__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.matter-qa-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 250px;
    padding: 24px;
    background: var(--ews-white);
    border: 1px solid #e5dfd2;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(var(--ews-black-rgb), .03);
}

.matter-qa-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.matter-qa-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .13);
    border-radius: 50%;
    font-size: 13px;
}

.matter-qa-card__kicker {
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-qa-card h3 {
    margin: 0 0 8px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 22px;
    line-height: 31px;
    font-weight: 700;
}

.matter-qa-card > p {
    margin: 0 0 18px;
    color: var(--ews-gray);
    font-size: 15px;
    line-height: 26px;
}

.matter-qa-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #ece7dc;
}

.matter-qa-card__footer > span {
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 18px;
    font-weight: 600;
}

.matter-file {
    padding: 26px 28px;
    background: var(--ews-white);
    border: 1px solid var(--ews-bdr-color);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(var(--ews-black-rgb), .04);
}

.matter-file__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.matter-file-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    background: #fbfaf7;
    border: 1px solid #ece7dc;
    border-radius: 8px;
}

.matter-file-block__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.matter-file-block__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .13);
    border-radius: 50%;
    font-size: 13px;
}

.matter-file-block__kicker {
    display: block;
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.matter-file-block__head h3 {
    margin: 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

.matter-file-block .matter-doc-mini-list {
    margin-bottom: 0;
}

.matter-file-block__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 13px;
}

.matter-rail-card {
    padding: 22px;
    background: var(--ews-white);
    border: 1px solid #e5dfd2;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(var(--ews-black-rgb), .03);
}

.matter-rail-card h2 {
    margin: 0 0 14px;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 24px;
    line-height: 33px;
    font-weight: 700;
}

.matter-rail-card > p {
    margin: 0 0 14px;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 24px;
}

.matter-rail-list {
    margin: 0;
    padding: 0;
}

.matter-rail-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #ece7dc;
}

.matter-rail-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.matter-rail-list dt {
    color: var(--ews-gray);
    font-size: 9px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.matter-rail-list dd {
    margin: 0;
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.matter-rail-list dd small {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 17px;
    font-weight: 400;
}

.matter-checklist {
    display: grid;
    gap: 11px;
    margin: 0 0 16px;
}

.matter-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.matter-check input {
    position: relative;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--ews-white);
    border: 1px solid #cfc7b6;
    border-radius: 4px;
    cursor: pointer;
}

.matter-check input:checked {
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matter-check input:checked::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--ews-white);
    border-width: 0 2px 2px 0;
    content: "";
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.matter-check input:disabled {
    cursor: default;
}

.matter-check strong {
    display: block;
    color: var(--ews-black);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.matter-check small {
    display: block;
    margin-top: 1px;
    color: var(--ews-gray);
    font-size: 10px;
    line-height: 17px;
}

.matter-check.is-done strong {
    color: var(--ews-gray);
    text-decoration: line-through;
}

.matter-rail-card--ai {
    background: #27251f;
    border-color: rgba(var(--ews-base-rgb), .32);
    color: #f7f1e4;
}

.matter-rail-card--ai .matter-section-kicker {
    color: var(--ews-base);
}

.matter-rail-card--ai h2 {
    color: #f7f1e4;
}

.matter-rail-card--ai > p {
    color: rgba(247, 241, 228, .64);
}

.matter-conversation-toggle--rail {
    gap: 10px;
    margin-top: 16px;
    padding: 13px;
    color: #f7f1e4;
    background: rgba(var(--ews-white-rgb), .06);
    border-color: rgba(var(--ews-base-rgb), .28);
    box-shadow: none;
}

.matter-conversation-toggle--rail:hover {
    border-color: rgba(var(--ews-base-rgb), .6);
    box-shadow: none;
}

.matter-conversation-toggle--rail .matter-conversation-toggle__icon {
    width: 38px;
    height: 38px;
    background: rgba(var(--ews-base-rgb), .16);
    font-size: 14px;
}

.matter-conversation-toggle--rail .matter-conversation-toggle__text strong {
    color: #f7f1e4;
    font-size: 18px;
    line-height: 26px;
}

.matter-conversation-toggle--rail .matter-conversation-toggle__text small {
    color: rgba(247, 241, 228, .55);
    font-size: 11px;
    line-height: 18px;
}

.matter-conversation-toggle--rail > i {
    color: var(--ews-base);
    font-size: 10px;
}

/* Explain drawer */
.matter-explainer {
    position: fixed;
    inset: 0;
    z-index: 100010;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: visibility .3s ease, opacity .3s ease;
    transition: visibility .3s ease, opacity .3s ease;
}

.matter-explainer.is-open {
    visibility: visible;
    opacity: 1;
}

.matter-explainer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .62);
}

.matter-explainer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(480px, 92vw);
    overflow: hidden;
    background: var(--ews-white);
    border-left: 1px solid rgba(var(--ews-base-rgb), .35);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .22);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: transform .35s ease;
    transition: transform .35s ease;
}

.matter-explainer.is-open .matter-explainer__panel {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.matter-explainer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid #e7e1d5;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.matter-explainer__close:hover {
    color: var(--ews-white);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matter-explainer__head {
    flex: 0 0 auto;
    padding: 28px 64px 22px 32px;
    background: #fbfaf7;
    border-bottom: 1px solid #ece7dc;
}

.matter-explainer__head h2 {
    margin: 0;
    color: var(--ews-black);
    font-family: var(--ews-font-two);
    font-size: 30px;
    line-height: 39px;
    font-weight: 700;
}

.matter-explainer__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px 32px;
    -webkit-overflow-scrolling: touch;
}

.matter-explainer__lead {
    margin: 0 0 22px;
    padding-left: 14px;
    color: var(--ews-black);
    border-left: 3px solid var(--ews-base);
    font-family: var(--ews-font-two);
    font-size: 18px;
    line-height: 29px;
    font-weight: 700;
}

.matter-explainer__section {
    margin-top: 22px;
}

.matter-explainer__section h3 {
    margin: 0 0 6px;
    color: var(--ews-black);
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
    letter-spacing: .03em;
}

.matter-explainer__section p {
    margin: 0;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 24px;
}

.matter-explainer__actions {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.matter-explainer__actions li {
    position: relative;
    padding-left: 16px;
    color: var(--ews-gray);
    font-size: 14px;
    line-height: 24px;
}

.matter-explainer__actions li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--ews-base);
    border-radius: 50%;
    content: "";
}

.matter-explainer__note {
    margin: 24px 0 0;
    padding: 12px 14px;
    color: var(--ews-gray);
    background: #fbfaf7;
    border-left: 3px solid var(--ews-base);
    font-size: 12px;
    line-height: 20px;
}

.matter-explainer__note i {
    margin-right: 6px;
    color: var(--ews-base);
}

body.matter-explainer-open {
    overflow: hidden;
}

#matter-priority {
    scroll-margin-top: 110px;
}

@media (max-width: 1199px) {
    .matter-briefing__layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 991px) {
    .matter-briefing {
        margin-top: -38px;
    }

    .matter-briefing__layout {
        grid-template-columns: 1fr;
    }

    .matter-briefing__rail {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matter-brief__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matter-brief__stat:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid #ece7dc;
        border-left: 0;
    }

    .matter-brief__stat:nth-child(4) {
        border-top: 1px solid #ece7dc;
    }

    .matter-brief__stat:nth-child(1),
    .matter-brief__stat:nth-child(2) {
        border-bottom: 1px solid #ece7dc;
    }
}

@media (max-width: 767px) {
    .matter-briefing {
        margin-top: -28px;
    }

    .matter-brief {
        padding: 24px 22px;
    }

    .matter-brief__head {
        flex-direction: column;
    }

    .matter-brief__badges {
        justify-content: flex-start;
    }

    .matter-brief__head h2 {
        font-size: 30px;
        line-height: 39px;
    }

    .matter-brief__summary {
        font-size: 15px;
        line-height: 27px;
    }

    .matter-focus {
        padding: 24px 22px;
    }

    .matter-focus h2 {
        font-size: 25px;
        line-height: 34px;
    }

    .matter-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .matter-section-head__note {
        max-width: none;
        text-align: left;
    }

    .matter-journey,
    .matter-file {
        padding: 22px;
    }

    .matter-journey__steps {
        grid-template-columns: 1fr;
    }

    .matter-journey__steps::before {
        top: 6px;
        right: auto;
        bottom: 12px;
        left: 6px;
        width: 1px;
        height: auto;
    }

    .matter-journey__steps li {
        padding: 0 0 20px 28px;
    }

    .matter-journey__steps li:last-child {
        padding-bottom: 0;
    }

    .matter-journey__dot {
        top: 4px;
    }

    .matter-qa__grid,
    .matter-file__grid,
    .matter-briefing__rail {
        grid-template-columns: 1fr;
    }

    .matter-qa-card {
        min-height: 0;
    }

    .matter-qa-card h3 {
        font-size: 21px;
        line-height: 30px;
    }

    .matter-brief__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .matter-brief__actions .matters-btn {
        justify-content: center;
    }

    .matter-explainer__panel {
        top: auto;
        left: 0;
        width: 100%;
        max-height: 86vh;
        border-top: 1px solid rgba(var(--ews-base-rgb), .35);
        border-left: 0;
        border-radius: 16px 16px 0 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    .matter-explainer.is-open .matter-explainer__panel {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    .matter-explainer__head {
        padding: 24px 58px 18px 22px;
    }

    .matter-explainer__head h2 {
        font-size: 27px;
        line-height: 36px;
    }

    .matter-explainer__body {
        padding: 20px 22px 28px;
    }
}

@media (max-width: 575px) {
    .matter-brief__stats {
        grid-template-columns: 1fr;
    }

    .matter-brief__stat,
    .matter-brief__stat:first-child,
    .matter-brief__stat:nth-child(3) {
        padding: 14px 0;
        border-top: 1px solid #ece7dc;
        border-left: 0;
    }

    .matter-brief__stat:first-child {
        border-top: 0;
    }

    .matter-brief__stat:nth-child(2),
    .matter-brief__stat:nth-child(4) {
        border-left: 0;
    }

    .matter-focus__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .matter-focus__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .matter-qa-card {
        padding: 20px;
    }

    .matter-file-block {
        padding: 16px;
    }

    .matter-rail-card {
        padding: 20px;
    }
}

/* Matter briefing refinements */
.matter-workspace .matter-qa-card {
    min-height: 0;
}

.matter-workspace .matter-focus__deadline {
    color: #7a5f2f;
    background: rgba(var(--ews-base-rgb), .12);
    border-color: rgba(var(--ews-base-rgb), .38);
}

.matter-workspace .matter-focus__deadline.is-urgent {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

/* Keep the explain drawer above the site header without creating a parent stacking context. */
.matter-briefing {
    z-index: auto;
}

.matter-brief {
    position: relative;
    z-index: 1;
}

.matter-explainer__overlay {
    z-index: 0;
}

.matter-explainer__panel {
    z-index: 1;
}

/* Detail drawer and rail readability */
.matter-explainer__head h2 {
    font-size: 32px;
    line-height: 42px;
}

.matter-explainer__lead {
    font-size: 20px;
    line-height: 32px;
}

.matter-explainer__section h3 {
    font-size: 14px;
    line-height: 22px;
}

.matter-explainer__section p,
.matter-explainer__actions li {
    font-size: 15px;
    line-height: 26px;
}

.matter-explainer__note {
    font-size: 13px;
    line-height: 22px;
}

.matter-rail-list dt {
    font-size: 10px;
    line-height: 18px;
}

.matter-rail-list dd {
    font-size: 13px;
    line-height: 22px;
}

.matter-check strong {
    font-size: 13px;
    line-height: 21px;
}

.matter-check small {
    font-size: 11px;
    line-height: 18px;
}

/*--------------------------------------------------------------
# Fixed Matter Chat
--------------------------------------------------------------*/
.matter-chat-launcher {
    position: fixed;
    right: auto;
    bottom: 22px;
    left: 50%;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(720px, calc(100vw - 32px));
    padding: 14px 18px;
    color: #f7f1e4;
    background: #27251f;
    border: 1px solid rgba(var(--ews-base-rgb), .32);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    text-align: left;
    cursor: pointer;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.matter-chat-launcher:hover {
    border-color: rgba(var(--ews-base-rgb), .7);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
    -webkit-transform: translate(-50%, -2px);
    transform: translate(-50%, -2px);
}

.matter-chat-launcher[hidden] {
    display: none;
}

.matter-chat-launcher__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(var(--ews-base-rgb), .42);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .08);
}

.matter-chat-launcher__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matter-chat-launcher__text {
    flex: 1;
    min-width: 0;
}

.matter-chat-launcher__text strong {
    display: block;
    color: #f7f1e4;
    font-family: var(--ews-font-two);
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

.matter-chat-launcher__text small {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: rgba(247, 241, 228, .58);
    font-size: 12px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matter-chat-launcher__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--ews-base);
    background: rgba(var(--ews-base-rgb), .13);
    border-radius: 50%;
    font-size: 11px;
}

.matter-chat-dock {
    position: fixed;
    inset: 0;
    z-index: 100001;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: visibility .35s ease, opacity .35s ease;
    transition: visibility .35s ease, opacity .35s ease;
}

.matter-chat-dock.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.matter-chat-dock__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .28);
}

.matter-chat-dock__panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(900px, calc(100vw - 40px));
    height: min(75vh, 720px);
    overflow: hidden;
    background: var(--ews-white);
    border: 1px solid rgba(var(--ews-base-rgb), .34);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .26);
    -webkit-transform: translate(-50%, 100%);
    transform: translate(-50%, 100%);
    -webkit-transition: transform .35s ease;
    transition: transform .35s ease;
}

.matter-chat-dock.is-open .matter-chat-dock__panel {
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.matter-chat-dock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 17px 24px;
    color: #f7f1e4;
    background-color: #27251f;
    background-image: radial-gradient(circle at 100% 0, rgba(var(--ews-base-rgb), .16), transparent 40%);
    border-bottom: 1px solid rgba(var(--ews-base-rgb), .22);
}

.matter-chat-dock__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.matter-chat-dock__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(var(--ews-base-rgb), .38);
    border-radius: 50%;
}

.matter-chat-dock__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matter-chat-dock__kicker {
    display: block;
    color: var(--ews-base);
    font-size: 9px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.matter-chat-dock__head h2 {
    margin: 0;
    color: #f7f1e4;
    font-family: var(--ews-font-two);
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
}

.matter-chat-dock__head p {
    margin: 1px 0 0;
    overflow: hidden;
    color: rgba(247, 241, 228, .56);
    font-size: 11px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matter-chat-dock__head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.matter-chat-dock__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a7e8bd;
    font-size: 9px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.matter-chat-dock__status > span {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.matter-chat-dock__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #f7f1e4;
    background: rgba(var(--ews-white-rgb), .06);
    border: 1px solid rgba(var(--ews-base-rgb), .26);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
}

.matter-chat-dock__close:hover {
    color: var(--ews-black);
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matter-chat-dock__messages {
    display: grid;
    align-content: start;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    background: #fbfaf7;
    -webkit-overflow-scrolling: touch;
}

.matter-chat-dock__messages .matter-message {
    max-width: 84%;
}

.matter-chat-dock__messages .matter-message--user {
    max-width: 78%;
}

.matter-chat-dock__prompts {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 8px;
    padding: 0 24px 12px;
    background: #fbfaf7;
}

.matter-chat-prompt {
    padding: 8px 12px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid #dfd7c7;
    border-radius: 20px;
    font-family: var(--ews-font);
    font-size: 11px;
    line-height: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    -webkit-transition: border-color .2s ease, background .2s ease;
    transition: border-color .2s ease, background .2s ease;
}

.matter-chat-prompt:hover {
    background: rgba(var(--ews-base-rgb), .08);
    border-color: rgba(var(--ews-base-rgb), .55);
}

.matter-chat-dock__composer {
    flex: 0 0 auto;
    padding: 14px 24px 17px;
    background: var(--ews-white);
    border-top: 1px solid #ece7dc;
}

.matter-chat-dock__input-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.matter-chat-dock__attach,
.matter-chat-dock__send {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    cursor: pointer;
}

.matter-chat-dock__attach {
    width: 40px;
    height: 40px;
    color: var(--ews-gray);
    background: #fbfaf7;
    border: 1px solid #e5dfd2;
    font-size: 13px;
}

.matter-chat-dock__attach:hover {
    color: var(--ews-black);
    border-color: rgba(var(--ews-base-rgb), .55);
}

.matter-chat-dock__input-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    color: var(--ews-black);
    background: var(--ews-white);
    border: 1px solid #e5dfd2;
    border-radius: 24px;
    outline: none;
    font-family: var(--ews-font);
    font-size: 14px;
    line-height: 20px;
}

.matter-chat-dock__input-row input:focus {
    border-color: rgba(var(--ews-base-rgb), .7);
    box-shadow: 0 0 0 3px rgba(var(--ews-base-rgb), .11);
}

.matter-chat-dock__input-row input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.matter-chat-dock__send {
    width: 44px;
    height: 44px;
    color: #f7f1e4;
    background: #27251f;
    border: 1px solid #27251f;
    font-size: 12px;
}

.matter-chat-dock__send i {
    color: var(--ews-base);
}

.matter-chat-dock__send:hover {
    background: var(--ews-base);
    border-color: var(--ews-base);
}

.matter-chat-dock__send:hover i {
    color: var(--ews-black);
}

.matter-chat-dock__note {
    margin: 8px 0 0;
    color: var(--ews-gray);
    font-size: 11px;
    line-height: 18px;
}

@media (max-width: 767px) {
    .matter-chat-launcher {
        bottom: 12px;
        width: calc(100vw - 24px);
        gap: 10px;
        padding: 12px 14px;
    }

    .matter-chat-launcher__avatar {
        width: 38px;
        height: 38px;
    }

    .matter-chat-launcher__text strong {
        font-size: 16px;
        line-height: 24px;
    }

    .matter-chat-launcher__text small {
        font-size: 11px;
        line-height: 18px;
    }

    .matter-chat-launcher__arrow {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .matter-chat-dock__panel {
        width: 100%;
        height: 86vh;
        border-radius: 18px 18px 0 0;
    }

    .matter-chat-dock__head {
        padding: 15px 18px;
    }

    .matter-chat-dock__head h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .matter-chat-dock__head p {
        max-width: 210px;
    }

    .matter-chat-dock__messages {
        padding: 18px;
    }

    .matter-chat-dock__messages .matter-message,
    .matter-chat-dock__messages .matter-message--user {
        max-width: 94%;
    }

    .matter-chat-dock__prompts {
        padding: 0 18px 10px;
    }

    .matter-chat-dock__composer {
        padding: 12px 18px 15px;
    }

    .matter-chat-dock__attach {
        width: 38px;
        height: 38px;
    }

    .matter-chat-dock__input-row input,
    .matter-chat-dock__send {
        height: 42px;
    }
}

@media (max-width: 575px) {
    .matter-chat-dock__status {
        display: none;
    }

    .matter-chat-dock__head {
        gap: 10px;
    }

    .matter-chat-dock__head-actions {
        gap: 0;
    }

    .matter-chat-dock__avatar {
        width: 38px;
        height: 38px;
    }

    .matter-chat-dock__head p {
        max-width: 170px;
    }
}

/* Keep modals above the chat dock, and the explain drawer above everything. */
.matter-chat-launcher {
    z-index: 99990;
}

.matter-chat-dock {
    z-index: 99991;
}

/* Chat controls that do not depend on the icon font */
.matter-chat-launcher__arrow {
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.matter-chat-dock__close {
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

.matter-chat-dock__send {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.matter-chat-dock__send span {
    color: var(--ews-base);
    line-height: 1;
}

.matter-chat-dock__send:hover span {
    color: var(--ews-black);
}

.matter-chat-dock__attach svg {
    display: block;
}

.matter-chat-dock__messages .matter-message--user .matter-message__avatar {
    font-size: 13px;
    font-weight: 700;
}

/* Mobile chat dock: keep breathing room from the screen edges. */
@media (max-width: 767px) {
    .matter-chat-dock__panel {
        bottom: 12px;
        width: calc(100vw - 24px);
        height: 86vh;
        border: 1px solid rgba(var(--ews-base-rgb), .34);
        border-radius: 18px;
    }

    .matter-chat-dock__head {
        padding: 15px 20px;
    }

    .matter-chat-dock__messages {
        padding: 18px 20px;
    }

    .matter-chat-dock__prompts {
        padding: 0 20px 12px;
    }

    .matter-chat-dock__composer {
        padding: 12px 20px 16px;
    }
}

/* Prevent chat scrolling from chaining to the page behind it. */
.matter-chat-dock__messages {
    overscroll-behavior: contain;
}

body.matter-chat-dock-open {
    overflow: hidden;
    overscroll-behavior: none;
}
