.webhook-card {
    background: rgba(240, 249, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 16px;
    max-width: 760px;
}

.webhook-template-card {
    margin-top: 12px;
}

.webhook-template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.webhook-template-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.webhook-template-select {
    max-width: 220px;
}

.webhook-template-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 12px;
    align-items: start;
}

.webhook-template-textarea {
    min-height: 240px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.webhook-template-actions {
    margin-top: 10px;
}

.webhook-template-vars {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    padding: 12px;
}

.webhook-template-vars-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.webhook-template-vars-list {
    margin: 0;
    padding-left: 16px;
    color: rgba(30, 41, 59, 0.9);
    font-size: 12px;
    line-height: 1.6;
}

.markdown-preview {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(240, 249, 255, 0.88);
    padding: 12px;
    max-height: 60vh;
    overflow: auto;
    color: rgba(15, 23, 42, 0.92);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .webhook-template-grid {
        grid-template-columns: 1fr;
    }
    .webhook-template-select {
        max-width: none;
    }
}

.webhook-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#pane-webhook .field-label {
    color: #1e293b;
}

#pane-webhook .field-input {
    background: rgba(240, 249, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#pane-webhook .field-input:focus {
    border-color: #91caff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

#pane-webhook .toggle {
    color: rgba(30, 41, 59, 0.92);
}
