.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

::selection {
    background: #ccfbf1;
    color: #134e4a;
}

input,
select,
textarea {
    transition: all .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

button,
a {
    transition: all .15s linear;
}

.nav-underline {
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.ai-msg-row {
    display: flex;
    margin-bottom: 10px;
}

.ai-msg-row.user {
    justify-content: flex-end;
}

.ai-msg-row.assistant {
    justify-content: flex-start;
}

.ai-msg-bubble {
    max-width: 85%;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.45;
}

.ai-msg-bubble.user {
    background: #0D9488;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-msg-bubble.assistant {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-bottom-left-radius: 4px;
}

.page-loader-overlay {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.ecg-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: ecg-draw 2s linear infinite;
}

@keyframes ecg-draw {
    0% {
        stroke-dashoffset: 300;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -300;
    }
}
