/* ============================================
   Lovable3s — Side Panel — Cyberpunk Neo-UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ql-bg: #14121f;
  --ql-bg-2: #0e0c17;
  --ql-surface: rgba(139,92,246,0.05);
  --ql-surface-2: rgba(139,92,246,0.09);
  --ql-border: rgba(255,255,255,0.07);
  --ql-border-2: rgba(139,92,246,0.18);
  --ql-text: #ede9fe;
  --ql-text-muted: rgba(237,233,254,0.50);
  --ql-text-dim: rgba(237,233,254,0.28);
  --ql-accent: #8b5cf6;
  --ql-accent-2: #7c3aed;
  --ql-accent-glow: 0 0 14px rgba(139,92,246,0.50);
  --ql-success: #10b981;
  --ql-warn: #f59e0b;
  --ql-radius: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--ql-bg-2); color: var(--ql-text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px; line-height: 1.4; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dotted background */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 18px 18px;
}

/* ===== HEADER ===== */
.sp-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(12,12,14,0.92)); backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--ql-border-2);
}
.sp-brand { display: flex; align-items: center; gap: 8px; justify-self: start; }
.sp-header-title {
  display: flex; align-items: center; gap: 6px; justify-self: center;
  padding: 3px 12px; border-radius: 99px;
  background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.18);
}
.sp-title-text { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--ql-text); }
.sp-brand-text {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ql-accent); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: var(--ql-accent-glow);
}
.sp-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800;
  letter-spacing: 0.18em; padding: 3px 7px; border-radius: 4px;
  color: var(--ql-accent); background: rgba(139,92,246,0.10); border: 1px solid rgba(139,92,246,0.25);
}
.sp-header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.sp-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--ql-text-dim); border-radius: 8px; cursor: pointer;
  transition: all 0.18s ease;
}
.sp-icon-btn:hover { color: var(--ql-text); background: var(--ql-surface); }
.sp-logout-btn:hover { color: var(--ql-accent); background: rgba(139,92,246,0.08); }
.sp-notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--ql-accent); color: #fff; font-size: 8px; font-weight: 800;
  min-width: 14px; height: 14px; border-radius: 99px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 3px;
  box-shadow: 0 0 6px rgba(139,92,246,0.6);
}

/* ===== BODY ===== */
.sp-body {
  position: relative; z-index: 1; padding: 14px 14px 80px;
  display: flex; flex-direction: column; gap: 12px;
  animation: sp-fade 0.25s ease;
}
@keyframes sp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== LICENSE GATE ===== */
.sp-license-gate {
  padding: 28px 18px; text-align: center;
  background: var(--ql-surface); border: 1px solid var(--ql-border); border-radius: var(--ql-radius);
}
.sp-lock-icon { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; min-height: 36px; }
.sp-lock-icon .sp-lock-default { font-size: 36px; line-height: 1; }
.sp-lock-icon img { display: block; }
.sp-gate-title { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.sp-gate-desc { font-size: 11px; color: var(--ql-text-muted); margin: 0 0 14px; }
.sp-input {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--ql-border-2); color: var(--ql-text);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; outline: none;
  transition: all 0.18s ease;
}
.sp-input:focus { border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.sp-btn-primary {
  width: 100%; margin-top: 10px; padding: 11px 14px; border: 0; cursor: pointer;
  background: var(--ql-accent); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 10px; box-shadow: 0 8px 22px -8px rgba(139,92,246,0.6);
  transition: all 0.18s ease;
}
.sp-btn-primary:hover { background: #a78bfa; transform: translateY(-1px); }
.sp-btn-primary:active { transform: scale(0.97); }

/* ===== PROFILE CARD (premium / cyber — espelha o floating) ===== */
.sp-profile-card {
  position: relative; overflow: hidden;
  padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(139,92,246,0.10), rgba(20,18,31,0.45));
  border: 1px solid rgba(139,92,246,0.30);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.05), 0 10px 30px -14px rgba(139,92,246,0.6);
}
.sp-profile-glow {
  position: absolute; top: -40%; right: -10%;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 70%);
  pointer-events: none; filter: blur(6px);
}
.sp-profile-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.sp-avatar {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(139,92,246,0.26), rgba(124,58,237,0.10));
  border: 1px solid rgba(139,92,246,0.45);
  box-shadow: 0 0 22px -4px rgba(139,92,246,0.7), inset 0 0 14px -8px rgba(196,181,253,0.8);
}
.sp-avatar svg { width: 22px; height: 22px; }
.sp-profile-info { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sp-profile-name {
  font-size: 15px; font-weight: 800; letter-spacing: 0.02em; color: var(--ql-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-profile-badge { flex: 0 0 auto; align-self: flex-start; }
.sp-status-badge, .sp-badge-pro, .sp-badge-test {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 9px; letter-spacing: 0.08em;
}
.sp-badge-crown { width: 12px; height: 12px; flex: 0 0 auto; }
.sp-badge-pro {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(139,92,246,0.20), rgba(124,58,237,0.08));
  border: 1px solid rgba(139,92,246,0.50);
  box-shadow: 0 0 16px -4px rgba(139,92,246,0.65), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.sp-badge-test {
  color: var(--ql-warn);
  background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.30);
}
.sp-sync-status {
  display: flex; align-items: center; gap: 6px; margin-top: 0;
  font-family: 'Poppins', sans-serif; font-size: 11px; color: var(--ql-text-muted);
  min-width: 0;
}
.sp-sync-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: inline-flex; align-items: center;
}
.sp-sync-text::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 99px;
  background: var(--ql-warn); margin-right: 7px; flex: 0 0 auto;
  box-shadow: 0 0 8px currentColor;
}
.sp-sync-ok, .sp-sync-ok .sp-sync-text { color: var(--ql-success); }
.sp-sync-ok .sp-sync-text::before { background: var(--ql-success); animation: sp-pulse 1.6s ease-in-out infinite; }
.sp-sync-waiting .sp-sync-text::before { animation: sp-pulse 1.6s ease-in-out infinite; }
@keyframes sp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.sp-license-key {
  display: flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0;
  font-family: 'Poppins', sans-serif; font-size: 10.5px; color: var(--ql-text-muted);
}
.sp-license-icon { flex: 0 0 auto; opacity: 0.8; }
.sp-license-key-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.3px; font-variant-numeric: tabular-nums;
}
.sp-license-copy {
  flex: 0 0 auto; margin-left: auto; padding: 1px 5px; cursor: pointer;
  background: rgba(139,92,246,0.10); border: 1px solid rgba(139,92,246,0.30);
  border-radius: 6px; color: var(--ql-accent,#8b5cf6); font-size: 11px; line-height: 1.4;
  transition: background 0.18s, border-color 0.18s;
}
.sp-license-copy:hover { background: rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.5); }
.sp-profile-divider {
  position: relative; z-index: 1;
  height: 1px; margin: 13px 0 11px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.40), transparent);
}
/* Responsivo — encolhe em painéis estreitos (≤340px) */
@media (max-width: 340px) {
  .sp-profile-card { padding: 12px; }
  .sp-profile-top { gap: 10px; }
  .sp-avatar { width: 38px; height: 38px; border-radius: 11px; }
  .sp-avatar svg { width: 19px; height: 19px; }
  .sp-profile-name { font-size: 13px; }
  .sp-status-badge, .sp-badge-pro, .sp-badge-test { padding: 4px 8px; font-size: 10px; }
}

/* ===== TABS ===== */
.sp-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,0.3); border-radius: 10px; border: 1px solid var(--ql-border); }
.sp-tab {
  flex: 1; padding: 8px 10px; border: 0; cursor: pointer; background: transparent;
  color: var(--ql-text-dim); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.18s ease;
}
.sp-tab:hover { color: var(--ql-text); }
.sp-tab-active { color: #fff; background: rgba(139,92,246,0.14); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3); }
.sp-tab-badge {
  background: var(--ql-accent); color: #fff; font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; padding: 0 5px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== COMPOSE CARD ===== */
.sp-compose {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--ql-surface); border: 1px solid var(--ql-border-2);
  border-radius: var(--ql-radius);
  box-shadow: 0 8px 24px -16px rgba(139,92,246,0.5);
}
.sp-compose-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sp-compose-field { position: relative; }

/* ===== TEXTAREA / PROMPT ===== */
.sp-textarea {
  width: 100%; min-height: 120px; padding: 12px 14px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--ql-border-2); border-radius: var(--ql-radius);
  color: var(--ql-text); font-family: inherit; font-size: 13px; resize: vertical; outline: none;
  transition: all 0.18s ease; box-sizing: border-box;
}
.sp-textarea::placeholder { color: var(--ql-text-dim); }
.sp-textarea:focus { border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); background: rgba(0,0,0,0.55); }

/* ===== ACTION BAR ===== */
.sp-action-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-action-left { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.sp-action-left .sp-toggle-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-toggle { position: relative; width: 30px; height: 16px; display: inline-block; cursor: pointer; }
.sp-toggle input { display: none; }
.sp-toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,0.10); border-radius: 99px;
  transition: background 0.2s ease;
}
.sp-toggle-slider::before {
  content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px;
  background: rgba(255,255,255,0.6); border-radius: 99px; transition: all 0.22s ease;
}
.sp-toggle input:checked + .sp-toggle-slider { background: rgba(139,92,246,0.5); }
.sp-toggle input:checked + .sp-toggle-slider::before { left: 16px; background: #fff; }
.sp-toggle-label { font-size: 10px; font-weight: 700; color: var(--ql-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.sp-tool-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--ql-text-muted);
  transition: all 0.18s ease;
}
.sp-tool-btn:hover { color: var(--ql-accent); background: rgba(139,92,246,0.08); }
/* Attach button sits inline in the action bar */
.sp-attach-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  background: var(--ql-surface); border: 1px solid var(--ql-border);
  color: var(--ql-accent);
  transition: all 0.18s ease;
}
.sp-attach-btn:hover { color: #fff; background: var(--ql-accent); border-color: var(--ql-accent); transform: translateY(-1px); }
.sp-tool-loading { animation: sp-spin 1s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-recording { color: var(--ql-accent) !important; animation: sp-pulse 1s ease-in-out infinite; }

.sp-send-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto;
  padding: 9px 18px; border: 0; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--ql-accent), var(--ql-accent-2)); color: #fff;
  font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; border-radius: 99px;
  box-shadow: 0 6px 18px -6px rgba(139,92,246,0.6);
  transition: all 0.18s ease;
}
.sp-send-btn svg { width: 14px; height: 14px; }
.sp-send-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sp-send-btn:active { transform: scale(0.96); }

/* ===== LOG ===== */
.sp-log { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 0 4px; min-height: 0; }
.sp-log-info { color: var(--ql-text-muted); }
.sp-log-success { color: var(--ql-success); }
.sp-log-error { color: var(--ql-accent); }

/* ===== APPROVE PLAN BUTTON (green, animated) ===== */
.sp-approve-plan-btn {
  display: none;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
  animation: sp-approve-pulse 2s infinite;
}
.sp-approve-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
.sp-approve-plan-btn:active {
  transform: translateY(0);
}
.sp-approve-plan-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  animation: none;
}
@keyframes sp-approve-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(34, 197, 94, 0.5); }
}

/* ===== SECONDARY ACTION BUTTONS (uniform pills) ===== */
.sp-watermark-btn, .sp-shield-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px; border-radius: 11px; cursor: pointer;
  background: var(--ql-surface); border: 1px solid var(--ql-border);
  color: var(--ql-text-muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.18s ease;
  margin-top: 14px !important;
}
.sp-watermark-btn:hover, .sp-shield-btn:hover {
  color: var(--ql-text); background: var(--ql-surface-2); border-color: rgba(139,92,246,0.25);
  transform: translateY(-1px);
}
.sp-shield-active { color: var(--ql-success) !important; border-color: rgba(16,185,129,0.35) !important; background: rgba(16,185,129,0.08) !important; }

/* ===== SHORTCUTS ===== */
.sp-shortcuts-title {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; color: var(--ql-text-dim); margin: 8px 2px;
}
.sp-shortcuts-grid {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 4px;
  scrollbar-width: thin;
}
.sp-shortcuts-grid::-webkit-scrollbar { height: 4px; }
.sp-chip {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px;
  flex: 0 0 auto; white-space: nowrap;
  padding: 7px 12px; border-radius: 99px; cursor: pointer;
  background: var(--ql-surface); border: 1px solid var(--ql-border);
  color: var(--ql-text-muted); font-size: 10px; font-weight: 600;
  transition: all 0.18s ease;
}
.sp-chip:hover { color: var(--ql-text); background: var(--ql-surface-2); border-color: rgba(139,92,246,0.3); transform: translateY(-1px); }

/* ===== AUTO-APPROVE CARD ===== */
.sp-auto-approve-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(16,185,129,0.04));
  border: 1px solid var(--ql-border-2);
}
.sp-aa-glow { position: absolute; inset: -50%; background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 60%); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.sp-aa-on .sp-aa-glow { opacity: 1; }
.sp-aa-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,0.12); color: var(--ql-accent); flex-shrink: 0;
}
.sp-aa-on .sp-aa-icon-wrap { background: rgba(16,185,129,0.15); color: var(--ql-success); }
.sp-aa-content { flex: 1; min-width: 0; }
.sp-aa-title-row { display: flex; align-items: center; gap: 6px; }
.sp-aa-title { font-size: 12px; font-weight: 800; }
.sp-aa-desc { display: block; font-size: 10px; color: var(--ql-text-muted); margin-top: 2px; }
.sp-aa-pill, .sp-aa-pill-mini {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--ql-text-muted);
}
.sp-aa-pill-mini-on, .sp-aa-on .sp-aa-pill { background: rgba(16,185,129,0.18); color: var(--ql-success); }
.sp-aa-switch { position: relative; width: 36px; height: 20px; cursor: pointer; flex-shrink: 0; }
.sp-aa-switch input { display: none; }
.sp-aa-track { position: absolute; inset: 0; background: rgba(255,255,255,0.10); border-radius: 99px; transition: background 0.2s; }
.sp-aa-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: all 0.22s; }
.sp-aa-switch input:checked + .sp-aa-track { background: var(--ql-success); }
.sp-aa-switch input:checked + .sp-aa-track .sp-aa-thumb { left: 18px; }

/* ===== ATTACHMENTS ===== */
.sp-attach-preview { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--ql-surface); border: 1px solid var(--ql-border); border-radius: 10px; }
.sp-attach-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,0.3); }
.sp-attach-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.sp-attach-icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(139,92,246,0.1); display: inline-flex; align-items: center; justify-content: center; }
.sp-attach-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-attach-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-attach-size { font-size: 9px; color: var(--ql-text-muted); font-family: 'JetBrains Mono', monospace; }
.sp-attach-remove { width: 22px; height: 22px; border: 0; background: transparent; color: var(--ql-text-dim); cursor: pointer; border-radius: 6px; }
.sp-attach-remove:hover { color: var(--ql-accent); background: rgba(139,92,246,0.08); }
.sp-attach-uploading { opacity: 0.5; }

/* ===== DRAG OVERLAY ===== */
.sp-drag-overlay { position: fixed; inset: 0; background: rgba(12,12,14,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; pointer-events: none; }
.sp-drag-overlay-inner { padding: 30px 40px; border: 2px dashed var(--ql-accent); border-radius: 16px; color: var(--ql-text); font-weight: 700; }

/* ===== NOTIFICATIONS PANEL ===== */
.sp-notif-panel {
  position: fixed; top: 56px; right: 8px; left: 8px; z-index: 60;
  background: rgba(12,12,14,0.97); backdrop-filter: blur(16px);
  border: 1px solid var(--ql-border-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  animation: sp-fade 0.2s ease;
}
.sp-notif-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--ql-border); font-weight: 700; font-size: 12px; }
.sp-notif-close { background: transparent; border: 0; color: var(--ql-text-muted); cursor: pointer; font-size: 14px; }
.sp-notif-list { max-height: 350px; overflow-y: auto; padding: 8px; }
.sp-notif-item { padding: 10px 12px; border-radius: 10px; background: var(--ql-surface); margin-bottom: 6px; }
.sp-notif-item-title { font-size: 12px; font-weight: 700; }
.sp-notif-item-msg { font-size: 11px; color: var(--ql-text-muted); margin-top: 2px; }
.sp-notif-item-date { font-size: 9px; color: var(--ql-text-dim); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.sp-notif-link { display: inline-block; font-size: 10px; color: var(--ql-accent); margin-top: 4px; text-decoration: none; }
.sp-notif-empty { text-align: center; color: var(--ql-text-muted); font-size: 11px; padding: 20px; }

/* ===== TRIAL COUNTDOWN ===== */
.sp-trial-countdown { margin-top: 8px; }
.sp-countdown-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ql-text-muted); font-family: 'JetBrains Mono', monospace; }
.sp-countdown-label { flex: 1; }
.sp-countdown-time { color: var(--ql-text); font-weight: 700; }
.sp-trial-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.sp-trial-bar-fill { height: 100%; background: linear-gradient(90deg, var(--ql-success), #34d399); transition: width 0.4s ease; }
.sp-bar-urgent { background: linear-gradient(90deg, var(--ql-warn), var(--ql-accent)) !important; }

/* ===== FOOTER ===== */
.sp-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; background: rgba(5,5,6,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--ql-border);
}
.sp-back-to-popup, .sp-support-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ql-text-dim); text-decoration: none;
  transition: color 0.18s ease;
}
.sp-back-to-popup:hover, .sp-support-link:hover { color: var(--ql-text); }
.sp-support-link svg { width: 12px; height: 12px; }
.sp-group-link { color: #25d366; }
.sp-group-link:hover { color: #25d366; filter: brightness(1.2); }
.sp-footer-badge { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ql-text-dim); padding: 3px 7px; border: 1px solid var(--ql-border); border-radius: 4px; }

/* ===== ALERT (top toast) ===== */
.sp-alert-overlay {
  position: fixed; top: 12px; left: 12px; right: 12px;
  z-index: 2147483646;
  pointer-events: none;
  animation: sp-alert-slide 0.25s ease-out;
}
@keyframes sp-alert-slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.sp-alert-box {
  background: linear-gradient(135deg, rgba(20,20,28,0.98), rgba(12,12,16,0.98));
  border: 1px solid rgba(139,92,246,0.45);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 36px -8px rgba(0,0,0,0.7), 0 0 24px -6px rgba(139,92,246,0.4);
  pointer-events: auto;
  text-align: left;
  max-width: none;
}
.sp-alert-icon { font-size: 22px; margin: 0; line-height: 1; flex-shrink: 0; }
.sp-alert-text-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-alert-title { font-size: 12px; font-weight: 800; margin: 0 0 2px; color: var(--ql-text); }
.sp-alert-message { font-size: 11px; color: var(--ql-text-muted); margin: 0; line-height: 1.35; }
.sp-alert-ok {
  width: 24px; height: 24px; padding: 0;
  background: transparent; color: var(--ql-text-muted);
  border: 0; border-radius: 6px; font-size: 14px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.sp-alert-ok:hover { background: rgba(255,255,255,0.06); color: var(--ql-text); }

/* ===== CHAT HISTORY ===== */
.sp-chat-container { display: flex; flex-direction: column; gap: 10px; }
.sp-chat-empty { text-align: center; padding: 40px 20px; }
.sp-chat-empty-icon { font-size: 36px; margin-bottom: 8px; }
.sp-chat-empty-title { font-size: 13px; font-weight: 700; }
.sp-chat-empty-desc { font-size: 11px; color: var(--ql-text-muted); margin-top: 4px; }
.sp-chat-messages { display: flex; flex-direction: column; gap: 8px; }
.sp-chat-date-divider { display: flex; align-items: center; justify-content: center; margin: 6px 0; }
.sp-chat-date-label { font-size: 9px; font-family: 'JetBrains Mono', monospace; color: var(--ql-text-dim); padding: 3px 9px; background: var(--ql-surface); border-radius: 99px; }
.sp-chat-bubble {
  position: relative; padding: 10px 12px 10px 16px; margin-left: 6px;
  background: var(--ql-surface); border: 1px solid var(--ql-border); border-left: 0;
  border-radius: 4px 14px 14px 14px; font-size: 11px;
}
.sp-chat-bubble::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, var(--ql-accent), var(--ql-accent-2));
}
.sp-chat-bubble:has(.sp-chat-status-err)::before { background: var(--ql-warn, #f59e0b); }
.sp-chat-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 9px; color: var(--ql-text-dim); font-family: 'JetBrains Mono', monospace; }
.sp-chat-status-ok { color: var(--ql-success); }
.sp-chat-status-err { color: var(--ql-accent); }
.sp-chat-time { margin-left: auto; }
.sp-chat-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--ql-border); }
.sp-chat-count { font-size: 10px; color: var(--ql-text-muted); }
.sp-chat-clear { background: transparent; border: 1px solid var(--ql-border); color: var(--ql-text-muted); padding: 5px 10px; border-radius: 7px; font-size: 10px; cursor: pointer; }
.sp-chat-clear:hover { color: var(--ql-accent); border-color: rgba(139,92,246,0.3); }

/* ===== MODO PLANO MODAL ===== */
.sp-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; animation: sp-fade 0.2s ease; }
.sp-modal { background: var(--ql-bg); border: 1px solid var(--ql-border-2); border-radius: 16px; max-width: 340px; width: 100%; padding: 22px; }
.sp-modal-icon { font-size: 32px; text-align: center; margin-bottom: 6px; }
.sp-modal-title { font-size: 15px; font-weight: 800; text-align: center; }
.sp-modal-body { font-size: 12px; color: var(--ql-text-muted); margin: 10px 0; }
.sp-modal-step { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ql-border); }
.sp-modal-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--ql-accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-modal-step-text { font-size: 11px; }
.sp-modal-check { color: var(--ql-success); }
.sp-modal-btn { width: 100%; padding: 10px; background: var(--ql-accent); color: #fff; border: 0; border-radius: 9px; font-weight: 700; cursor: pointer; margin-top: 10px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ql-border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ===== LIGHT THEME ===== */
.sp-light {
  --ql-bg: #fafafa; --ql-bg-2: #fff;
  --ql-surface: rgba(0,0,0,0.03); --ql-surface-2: rgba(0,0,0,0.05);
  --ql-border: rgba(0,0,0,0.06); --ql-border-2: rgba(0,0,0,0.10);
  --ql-text: #1a1a1c; --ql-text-muted: rgba(0,0,0,0.55); --ql-text-dim: rgba(0,0,0,0.35);
}

/* Enter-send collapsible */
.sp-enter-collapser { display:flex; flex-direction:column; align-items:center; margin-top:6px; }
.sp-enter-collapse-btn {
  width: 28px; height: 22px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--ql-border);
  color: var(--ql-text-muted); cursor: pointer; display:flex; align-items:center; justify-content:center;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.sp-enter-collapse-btn:hover { background: rgba(255,255,255,0.08); color: var(--ql-text); }
.sp-enter-collapse-btn.sp-open { transform: rotate(180deg); }
.sp-enter-panel {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:8px; padding:8px 12px; border:1px solid var(--ql-border); border-radius:10px;
  background: rgba(255,255,255,0.03); width: fit-content;
}

/* ===== Update Blocker (sidepanel) ===== */
.sp-update-blocker{position:fixed;inset:0;z-index:9999;background:rgba(8,10,18,0.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;overflow-y:auto}
/* Card de atualização — tema roxo da extensão (Lovable3s) */
.sp-upd-card{width:100%;max-width:380px;background:linear-gradient(160deg,rgba(139,92,246,0.12),rgba(14,14,24,0.96));border:1px solid rgba(139,92,246,0.45);border-radius:16px;padding:24px 20px;box-shadow:0 0 0 1px rgba(139,92,246,0.06),0 20px 60px -10px rgba(139,92,246,0.55);text-align:center;color:#ede9fe}
/* Logo da extensão (substitui o antigo ícone de brilho) */
.sp-upd-logo{display:flex;align-items:center;justify-content:center;margin:0 auto 12px;width:72px;height:72px;border-radius:18px;background:linear-gradient(135deg,rgba(139,92,246,0.26),rgba(124,58,237,0.10));border:1px solid rgba(139,92,246,0.45);box-shadow:0 0 26px -4px rgba(139,92,246,0.7),inset 0 0 18px -10px rgba(196,181,253,0.85)}
.sp-upd-logo img{width:46px;height:46px;object-fit:contain;display:block;filter:drop-shadow(0 0 8px rgba(139,92,246,0.55))}
.sp-upd-title{font-size:18px;font-weight:800;margin:0 0 6px;background:linear-gradient(135deg,#c4b5fd,#8b5cf6);-webkit-background-clip:text;background-clip:text;color:transparent}
.sp-upd-sub{font-size:12px;color:#a1a1aa;margin:0 0 14px;line-height:1.45}
.sp-upd-sub strong{color:#c4b5fd}
.sp-upd-changelog{font-size:11px;color:#cbd5e1;background:rgba(139,92,246,0.06);border:1px solid rgba(139,92,246,0.18);border-radius:8px;padding:8px 10px;margin-bottom:14px;text-align:left;white-space:pre-line;max-height:90px;overflow-y:auto}
.sp-upd-steps{display:flex;flex-direction:column;gap:9px;margin-bottom:16px;text-align:left}
.sp-upd-step{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#d4d4d8;line-height:1.4}
.sp-upd-step b{color:#fff}
.sp-upd-num{flex-shrink:0;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.sp-upd-btn{display:block;width:100%;padding:12px 16px;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;transition:transform 0.15s,box-shadow 0.15s;box-shadow:0 8px 20px -6px rgba(139,92,246,0.6)}
.sp-upd-btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px -6px rgba(139,92,246,0.8)}
.sp-upd-btn:disabled{opacity:0.5;cursor:not-allowed}
.sp-upd-dismiss{display:block;width:100%;padding:10px 16px;margin-top:8px;background:transparent;color:#a1a1aa;border:1px solid rgba(139,92,246,0.3);border-radius:10px;font-size:12px;font-weight:600;cursor:pointer;transition:background 0.15s,color 0.15s,border-color 0.15s}
.sp-upd-dismiss:hover{background:rgba(139,92,246,0.12);color:#fff;border-color:rgba(139,92,246,0.6)}
.sp-upd-foot{font-size:10px;color:#71717a;margin:12px 0 0}

/* ============ Auto-Aprovar — Modal de confirmação (preto/vermelho) ============ */
.ql-aa-confirm-overlay{
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: qlAaFadeIn .18s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ql-aa-confirm-overlay.ql-aa-confirm-closing{ animation: qlAaFadeOut .18s ease-in forwards; }
@keyframes qlAaFadeIn{ from{opacity:0} to{opacity:1} }
@keyframes qlAaFadeOut{ from{opacity:1} to{opacity:0} }
@keyframes qlAaPopIn{
  from{ opacity:0; transform: scale(.9) translateY(8px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}
.ql-aa-confirm-modal{
  position: relative;
  width: 100%; max-width: 380px;
  background: linear-gradient(160deg, #15090b 0%, #0a0405 100%);
  border: 1px solid rgba(139,92,246, 0.35);
  border-radius: 18px;
  padding: 26px 22px 22px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 40px rgba(139,92,246,0.18);
  color: #fff;
  text-align: center;
  animation: qlAaPopIn .22s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
.ql-aa-confirm-glow{
  position: absolute; top: -60px; left: 50%;
  width: 220px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.ql-aa-confirm-icon{
  position: relative;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #7f1d1d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.ql-aa-confirm-title{
  position: relative;
  margin: 0 0 10px;
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.ql-aa-confirm-text{
  position: relative;
  margin: 0 0 10px;
  font-size: 13px; line-height: 1.5;
  color: #d4d4d8;
}
.ql-aa-confirm-text strong{ color:#c4b5fd; font-weight:600; }
.ql-aa-confirm-sub{
  position: relative;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600;
  color: #fff;
}
.ql-aa-confirm-actions{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ql-aa-btn{
  appearance: none; border: 0; cursor: pointer;
  padding: 11px 14px; border-radius: 11px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ql-aa-btn:active{ transform: translateY(1px); }
.ql-aa-btn-cancel{
  background: #1f1f23;
  color: #e4e4e7;
  border: 1px solid rgba(255,255,255,0.08);
}
.ql-aa-btn-cancel:hover{ background:#2a2a2f; }
.ql-aa-btn-confirm{
  background: linear-gradient(135deg, #8b5cf6 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124,58,237,0.45);
}
.ql-aa-btn-confirm:hover{
  box-shadow: 0 8px 22px rgba(124,58,237,0.6);
  filter: brightness(1.05);
}

/* === Skill Picker (+) === */
.sp-skill-wrap { position: relative; display: inline-flex; }
.sp-skill-btn {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.35); color: #c7b8ff; border-radius: 8px;
  cursor: pointer; padding: 0; transition: all .15s ease;
}
.sp-skill-btn:hover { background: rgba(139,92,246,0.28); color: #fff; transform: translateY(-1px); }
.sp-skill-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 9999;
  min-width: 180px; padding: 6px;
  background: #1a1a22; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 2px;
}
.sp-skill-menu-title {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 6px 10px 4px;
}
.sp-skill-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px; border: 0; background: transparent;
  color: #e8e8ee; font-size: 12px; font-weight: 600; text-align: left;
  border-radius: 6px; cursor: pointer; transition: background .12s;
}
.sp-skill-item:hover { background: rgba(139,92,246,0.18); color: #fff; }
.sp-skill-ico { font-size: 14px; width: 16px; text-align: center; }

.sp-skill-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sp-skill-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.10));
  border: 1px solid rgba(139,92,246,0.45); color: #d8ccff;
  font-size: 11px; font-weight: 700;
}
.sp-skill-chip-ico { font-size: 13px; }
.sp-skill-chip-x {
  width: 18px; height: 18px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.08); color: #d8ccff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; padding: 0;
}
.sp-skill-chip-x:hover { background: rgba(255,80,80,0.4); color: #fff; }
.sp-skill-menu-empty { padding: 8px 10px; font-size: 11px; color: #9aa0b4; font-style: italic; }

/* ===== Skill Picker (sidepanel) ===== */
.sp-skill-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.sp-skill-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; padding: 0;
  background: var(--ql-surface);
  border: 1px solid var(--ql-border);
  border-radius: 9px; color: var(--ql-accent); cursor: pointer;
  transition: all .18s ease;
}
.sp-skill-btn:hover { background: var(--ql-accent); border-color: var(--ql-accent); color: #fff; transform: translateY(-1px); }
.sp-skill-menu {
  position: fixed !important; z-index: 2147483647 !important;
  min-width: 240px !important; max-width: 320px !important; min-height: 180px !important; max-height: 360px !important; overflow-y: auto !important; padding: 6px;
  background: #18181b; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.sp-skill-menu-title {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #71717a; padding: 8px 10px 4px;
}
.sp-skill-menu-empty { font-size: 11px; color: #71717a; padding: 8px 10px; }
.sp-skill-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: transparent; border: 0; border-radius: 8px;
  color: #e4e4e7; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sp-skill-item:hover { background: rgba(139,92,246,0.12); color: #fff; }
.sp-skill-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(139,92,246,0.12); color: #c4b5fd; flex: 0 0 auto;
}
.sp-skill-item:hover .sp-skill-ico { background: rgba(139,92,246,0.22); color: #ddd6fe; }

/* ============================================
   Seletor de idioma (i18n) — header
   ============================================ */
.ql-lang-wrap { position: relative; display: inline-flex; }
.ql-lang-btn { position: relative; font-size: 15px; line-height: 1; }
.ql-lang-btn svg { display: block; pointer-events: none; }
.ql-lang-btn .ql-lang-flag-badge {
  position: absolute; bottom: -2px; right: -3px;
  font-size: 9px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.ql-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 9999;
  min-width: 168px; padding: 6px;
  background: var(--ql-bg); border: 1px solid var(--ql-border-2);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.ql-lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: transparent; border: 0; border-radius: 8px;
  color: var(--ql-text); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ql-lang-option:hover { background: rgba(139,92,246,0.14); }
.ql-lang-option-active { background: rgba(139,92,246,0.20); color: #fff; }
.ql-lang-opt-flag { font-size: 16px; line-height: 1; }

/* Ajustes RTL (arabe) */
html[dir="rtl"] .sp-header-actions { justify-self: start; }
html[dir="rtl"] .ql-lang-menu { right: auto; left: 0; }
html[dir="rtl"] .ql-lang-option { text-align: right; }
html[dir="rtl"] .sp-modal-step,
html[dir="rtl"] .ql-modo-plano-step { flex-direction: row-reverse; }
.sp-skill-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-skill-chip-wrap { display: flex; margin-bottom: 6px; }
.sp-skill-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 8px; border-radius: 999px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.32);
  color: #c4b5fd; font-size: 11px; font-weight: 600;
}
.sp-skill-chip-ico { display: inline-flex; }
.sp-skill-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; margin-left: 2px;
  background: rgba(255,255,255,0.06); border: 0; border-radius: 999px;
  color: #c4b5fd; cursor: pointer; transition: background .15s ease;
}
.sp-skill-chip-x:hover { background: rgba(248,113,113,0.20); color: #c4b5fd; }

/* ===== RESPONSIVE (280px – 480px) ===== */
@media (max-width: 340px) {
  .sp-header { padding: 9px 9px; }
  .sp-header-title { padding: 3px 9px; }
  .sp-title-text { font-size: 12px; letter-spacing: 0.03em; }
  .sp-badge { display: none; }
  .sp-icon-btn { width: 26px; height: 26px; }
  .sp-action-bar { gap: 6px; }
  .sp-send-btn { width: 100%; justify-content: center; margin-left: 0; }
  .sp-textarea { min-height: 110px; }
}
@media (min-width: 440px) {
  .sp-textarea { min-height: 150px; }
  .sp-chip { padding: 8px 14px; }
}
