.ai-panel{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px;
  background:#fff;
}

.ai-panel__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.ai-panel__header h3{
  margin:0;
  font-size:18px;
}

.ai-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  opacity:.85;
}

.ai-section{ margin:14px 0; }
.ai-section h4{
  margin:0 0 10px 0;
  font-size:14px;
  opacity:.8;
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; }

.chip{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
  transition:transform .05s ease, background .2s ease, border-color .2s ease;
}

.chip:hover{ transform:translateY(-1px); }

.chip.is-active{
  border-color:rgba(0,0,0,.35);
  background:rgba(0,0,0,.06);
  font-weight:600;
}

.ai-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.ai-btn{
  border:none;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
}

.ai-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.ai-btn--ghost{
  background:transparent;
  border:1px solid rgba(0,0,0,.15);
}

.ai-btn:not(.ai-btn--ghost){
  background:#111;
  color:#fff;
}

.ai-debug{ margin-top:12px; }
.ai-debug pre{
  white-space:pre-wrap;
  word-break:break-word;
  margin:10px 0 0 0;
  padding:10px;
  border-radius:12px;
  background:rgba(0,0,0,.04);
  font-size:12px;
}

.ai-result{
  margin-top:18px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px;
  background:#fff;
}

.ai-result__status{ font-size:14px; opacity:.8; margin-bottom:12px; }
.ai-result__output img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  display:block;
}

/* Toggle switch */
.switch{ position:relative; display:inline-block; width:44px; height:24px; }
.switch input{ opacity:0; width:0; height:0; }
.slider{
  position:absolute; cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.15);
  transition:.2s; border-radius:999px;
}
.slider:before{
  position:absolute; content:"";
  height:18px; width:18px;
  left:3px; top:3px;
  background:white; transition:.2s;
  border-radius:50%;
}
.switch input:checked + .slider{ background:rgba(0,0,0,.6); }
.switch input:checked + .slider:before{ transform:translateX(20px); }