.stanloop-smart-replies {
    --sr-ink: #17231d;
    --sr-muted: #66736b;
    --sr-line: #dfe7e2;
    --sr-soft: #f5f8f6;
    --sr-green: #16834a;
    --sr-green-dark: #0f6739;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--sr-ink);
}

.stanloop-smart-replies *,
.stanloop-smart-replies *::before,
.stanloop-smart-replies *::after {
    box-sizing: border-box;
}

.stanloop-smart-replies__header,
.stanloop-smart-replies__section-heading,
.stanloop-smart-replies__card-top,
.stanloop-smart-replies__card-actions,
.stanloop-smart-replies__field-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.stanloop-smart-replies__header {
    padding: 6px 2px 22px;
    align-items: center;
}

.stanloop-smart-replies__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--sr-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stanloop-smart-replies h2,
.stanloop-smart-replies h3,
.stanloop-smart-replies h4,
.stanloop-smart-replies p {
    margin-top: 0;
}

.stanloop-smart-replies h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.stanloop-smart-replies__header p,
.stanloop-smart-replies__section-heading p {
    margin-bottom: 0;
    color: var(--sr-muted);
}

.stanloop-smart-replies__ai-status,
.stanloop-smart-replies__status,
.stanloop-smart-replies__keyword,
.stanloop-smart-replies__video-saved {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.stanloop-smart-replies__ai-status {
    flex: 0 0 auto;
    padding: 10px 13px;
    background: #eef8f2;
    color: var(--sr-green-dark);
}

.stanloop-smart-replies__ai-status.is-limited {
    background: #fff5de;
    color: #8a5b00;
}

.stanloop-smart-replies__phase-note,
.stanloop-smart-replies__notice {
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid var(--sr-line);
    border-radius: 14px;
    background: var(--sr-soft);
    color: #405047;
    line-height: 1.55;
}

.stanloop-smart-replies__notice--success {
    border-color: #b9e1c9;
    background: #effaf3;
    color: #14653a;
}

.stanloop-smart-replies__notice--error {
    border-color: #f0c2c2;
    background: #fff2f2;
    color: #8b2929;
}

.stanloop-smart-replies__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: start;
}

.stanloop-smart-replies__editor,
.stanloop-smart-replies__library {
    border: 1px solid var(--sr-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(27, 48, 37, .06);
}

.stanloop-smart-replies__editor {
    padding: 24px;
}

.stanloop-smart-replies__library {
    padding: 20px;
}

.stanloop-smart-replies__section-heading {
    margin-bottom: 20px;
}

.stanloop-smart-replies__section-heading h3 {
    margin-bottom: 5px;
    font-size: 21px;
    letter-spacing: -.02em;
}

.stanloop-smart-replies__section-heading > a,
.stanloop-smart-replies__card-actions a,
.stanloop-smart-replies__destination {
    color: var(--sr-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.stanloop-smart-replies__form {
    display: grid;
    gap: 17px;
}

.stanloop-smart-replies__form label:not(.stanloop-smart-replies__toggle) {
    display: grid;
    gap: 7px;
}

.stanloop-smart-replies__form label > span {
    font-size: 14px;
    font-weight: 800;
}

.stanloop-smart-replies__form small {
    color: var(--sr-muted);
    font-size: 12px;
    line-height: 1.45;
}

.stanloop-smart-replies__form input[type="text"],
.stanloop-smart-replies__form input[type="url"],
.stanloop-smart-replies__form textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid #ccd8d0;
    border-radius: 12px;
    background: #fff;
    color: var(--sr-ink);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.stanloop-smart-replies__form textarea {
    min-height: 130px;
    resize: vertical;
}

.stanloop-smart-replies__form input:focus,
.stanloop-smart-replies__form textarea:focus {
    border-color: var(--sr-green);
    box-shadow: 0 0 0 4px rgba(22, 131, 74, .11);
}

.stanloop-smart-replies__field-row > label {
    flex: 1 1 0;
}

.stanloop-smart-replies__toggle {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--sr-line);
    border-radius: 13px;
    background: var(--sr-soft);
    cursor: pointer;
}

.stanloop-smart-replies__toggle input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--sr-green);
}

.stanloop-smart-replies__toggle span {
    display: grid;
    gap: 3px;
}

.stanloop-smart-replies__save {
    min-height: 50px;
    padding: 13px 18px;
    border: 0;
    border-radius: 13px;
    background: var(--sr-green);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.stanloop-smart-replies__save:hover,
.stanloop-smart-replies__save:focus {
    background: var(--sr-green-dark);
}

.stanloop-smart-replies__cards {
    display: grid;
    gap: 13px;
}

.stanloop-smart-replies__card {
    padding: 16px;
    border: 1px solid var(--sr-line);
    border-radius: 15px;
    background: var(--sr-soft);
}

.stanloop-smart-replies__keyword {
    margin-bottom: 8px;
    padding: 7px 9px;
    background: #e6f5ec;
    color: var(--sr-green-dark);
    letter-spacing: .04em;
}

.stanloop-smart-replies__card h4 {
    margin-bottom: 0;
    font-size: 17px;
}

.stanloop-smart-replies__status {
    padding: 7px 9px;
}

.stanloop-smart-replies__status.is-active {
    background: #e6f5ec;
    color: var(--sr-green-dark);
}

.stanloop-smart-replies__status.is-paused {
    background: #ecefed;
    color: #68736d;
}

.stanloop-smart-replies__card > p {
    margin: 13px 0 11px;
    color: #4c5b53;
    line-height: 1.5;
}

.stanloop-smart-replies__destination {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stanloop-smart-replies__video-saved {
    margin-top: 12px;
    padding: 7px 9px;
    background: #edf2ff;
    color: #405a9a;
}

.stanloop-smart-replies__card-actions {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--sr-line);
    justify-content: flex-start;
}

.stanloop-smart-replies__card-actions .is-delete {
    color: #a23a3a;
}

.stanloop-smart-replies__empty {
    padding: 28px 18px;
    border: 1px dashed #cad7cf;
    border-radius: 15px;
    text-align: center;
    color: var(--sr-muted);
}

.stanloop-smart-replies__empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--sr-ink);
}

.stanloop-smart-replies__empty p {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .stanloop-smart-replies__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stanloop-smart-replies__header,
    .stanloop-smart-replies__field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .stanloop-smart-replies__editor,
    .stanloop-smart-replies__library {
        padding: 17px;
        border-radius: 16px;
    }

    .stanloop-smart-replies h2 {
        font-size: 31px;
    }
}
