#nct-ai-widget-root {
  --nct-red: #a61920;
  --nct-gold: #f0c35a;
  --nct-ink: #221f1b;
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nct-ai-launcher {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--nct-red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.nct-ai-panel {
  display: none;
  width: min(390px, calc(100vw - 24px));
  height: min(610px, calc(100vh - 100px));
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.nct-ai-panel[data-open="true"] { display: grid; grid-template-rows: auto 1fr auto auto auto auto; }
.nct-ai-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--nct-ink); color: #fff; }
.nct-ai-title { margin: 0; font-size: 16px; }
.nct-ai-subtitle { margin-top: 2px; color: #e8d7a9; font-size: 11px; }
.nct-ai-close { border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.nct-ai-messages { overflow: auto; padding: 14px; }
.nct-ai-message { max-width: 86%; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; line-height: 1.35; white-space: pre-wrap; }
.nct-ai-message[data-role="assistant"] { background: #f2ead8; color: var(--nct-ink); }
.nct-ai-message[data-role="user"] { margin-left: auto; background: var(--nct-red); color: #fff; }
.nct-ai-actions { display: flex; gap: 8px; padding: 0 12px 10px; }
.nct-ai-voice,
.nct-ai-stop { min-height: 38px; border: 1px solid var(--nct-red); border-radius: 12px; padding: 0 13px; background: #fff; color: var(--nct-red); font-weight: 800; cursor: pointer; }
.nct-ai-stop { background: var(--nct-red); color: #fff; }
.nct-ai-voice:disabled { border-color: #b7afa2; color: #777067; cursor: not-allowed; opacity: .8; }
.nct-ai-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border-top: 1px solid #e4dccd; }
.nct-ai-input { min-width: 0; padding: 11px 12px; border: 1px solid #cfc6b7; border-radius: 12px; font: inherit; }
.nct-ai-send { border: 0; border-radius: 12px; padding: 0 15px; background: var(--nct-red); color: #fff; font-weight: 800; cursor: pointer; }
.nct-ai-status { padding: 0 12px 11px; color: #6e665b; font-size: 12px; }
.nct-ai-safety { padding: 0 12px 12px; color: #6e665b; font-size: 11px; }
.nct-ai-suggestions { margin: 8px 0 0; padding-left: 18px; }
.nct-ai-suggestions button { border: 0; padding: 3px 0; background: transparent; color: #7f151b; text-align: left; text-decoration: underline; cursor: pointer; }
.nct-ai-voice:focus-visible,
.nct-ai-stop:focus-visible,
.nct-ai-send:focus-visible,
.nct-ai-launcher:focus-visible,
.nct-ai-close:focus-visible,
.nct-ai-suggestions button:focus-visible { outline: 3px solid var(--nct-gold); outline-offset: 2px; }

@media (max-width: 520px) {
  #nct-ai-widget-root { right: 12px; bottom: 12px; }
  .nct-ai-panel { height: calc(100vh - 86px); }
}
