/* API Services → IPerfect VoIP Communication Embedded (js/home/voip-embed.js). */
.ve-card {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--r, 12px);
    background: var(--surface, #fff);
    padding: 18px;
    margin: 18px 0;
}
.ve-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ve-logo {
    flex: none; width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
}
.ve-title { margin: 0 0 4px !important; font-size: 16px !important; font-weight: 700 !important; color: var(--text, #111827); }
.ve-sub { margin: 0 !important; font-size: 13px !important; color: var(--text-2, #4b5563); }

.ve-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ve-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; min-width: 0; margin: 0 !important; }
.ve-field.ve-narrow { flex: 0 1 140px; }
.ve-field.ve-narrow:has(select) { flex-basis: 200px; }
.ve-field > span:first-child { font-size: 12px; font-weight: 600; color: var(--text-2, #4b5563); }
.ve-field input[type="text"],
.ve-field select,
.ve-at {
    width: 100%; height: 38px; padding: 0 10px;
    font-size: 13px; color: var(--text, #111827);
    background: var(--bg, #fff);
    border: 1px solid var(--border, #d1d5db);
    border-radius: var(--r-sm, 8px);
}
.ve-at { display: flex; align-items: center; gap: 4px; padding: 0 0 0 10px; }
.ve-at i { font-style: normal; color: var(--text-3, #9ca3af); }
.ve-at input[type="text"] { border: 0 !important; height: 36px; padding-left: 0; background: transparent; }
.ve-field input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--border, #d1d5db); border-radius: var(--r-sm, 8px); background: var(--bg, #fff); }
.ve-field input:focus, .ve-field select:focus, .ve-at:focus-within { outline: none; border-color: var(--accent, #2563eb); }
.ve-at input:focus { outline: none; }
.ve-actions { flex: 1 1 100%; }

.ve-msg { font-size: 12px; margin-top: 10px; min-height: 1em; }
.ve-msg.err  { color: var(--red-500, #ef4444); }
.ve-msg.ok   { color: var(--emerald-500, #10b981); }
.ve-msg.wait { color: var(--text-3, #6b7280); }

.ve-out { margin-top: 14px; }
.ve-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.ve-copy {
    border: 1px solid var(--accent, #2563eb); background: var(--accent, #2563eb); color: #fff;
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm, 8px); cursor: pointer;
}
.ve-copy:hover { background: var(--accent-h, #1d4ed8); }
.ve-code {
    width: 100%; box-sizing: border-box; resize: vertical;
    font-family: var(--mono, 'DM Mono', ui-monospace, monospace); font-size: 12px; line-height: 1.5;
    padding: 10px 12px; color: #e2e8f0; background: #0f172a;
    border: 1px solid #1e293b; border-radius: var(--r-sm, 8px);
}
.ve-steps { margin: 12px 0 8px; padding-left: 20px; font-size: 13px; color: var(--text-2, #4b5563); }
.ve-steps li { margin-bottom: 4px; }
.ve-fine { font-size: 12px !important; color: var(--text-3, #6b7280); margin: 0 !important; }

html[data-theme="dark"] .ve-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .ve-field input[type="text"],
html[data-theme="dark"] .ve-field select,
html[data-theme="dark"] .ve-field input[type="color"],
html[data-theme="dark"] .ve-at { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .ve-at input[type="text"] { background: transparent; }
