.ntcc-widget-shadow-host {
  display: contents;
}

.ntcc-widget-shadow-host.is-context-home-section-host {
  display: block;
  width: 100%;
  flex: 1 1 auto;
}

.ntcc-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ntcc-accent: #17120d;
  --ntcc-accent-strong: #000000;
  --ntcc-on-accent: #ffffff;
  --ntcc-bg: #f3f5f9;
  --ntcc-surface: rgba(255, 255, 255, 0.96);
  --ntcc-surface-soft: #f8fafc;
  --ntcc-border: rgba(15, 23, 42, 0.12);
  --ntcc-text: #1f2937;
  --ntcc-muted: #64748b;
  --ntcc-toggle-bg: linear-gradient(135deg, var(--ntcc-accent) 0%, var(--ntcc-accent-strong) 100%);
  --ntcc-toggle-border: rgba(255, 255, 255, 0.22);
  --ntcc-toggle-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  --ntcc-toggle-text: var(--ntcc-on-accent);
  --ntcc-toggle-eyebrow: rgba(255, 255, 255, 0.82);
  --ntcc-panel-shadow: 0 28px 72px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  --ntcc-header-bg: linear-gradient(135deg, var(--ntcc-accent) 0%, var(--ntcc-accent-strong) 100%);
  --ntcc-header-border: rgba(255, 255, 255, 0.18);
  --ntcc-header-text: var(--ntcc-on-accent);
  --ntcc-control-bg: rgba(255, 255, 255, 0.2);
  --ntcc-control-border: rgba(255, 255, 255, 0.35);
  --ntcc-control-text: var(--ntcc-on-accent);
  --ntcc-control-hover-bg: #ffffff;
  --ntcc-control-hover-border: #ffffff;
  --ntcc-control-hover-text: var(--ntcc-accent);
  --ntcc-avatar-bg: rgba(255, 255, 255, 0.18);
  --ntcc-avatar-border: rgba(255, 255, 255, 0.42);
  --ntcc-assistant-bubble-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --ntcc-user-bubble-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  --ntcc-input-bg: var(--ntcc-surface);
  --ntcc-input-border: rgba(255, 255, 255, 0.3);
  --ntcc-textarea-bg: var(--ntcc-surface-soft);
  --ntcc-textarea-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --ntcc-textarea-focus-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 3px rgba(224, 199, 175, 0.15);
  --ntcc-chip-bg: rgba(255, 255, 255, 0.22);
  --ntcc-chip-border: rgba(255, 255, 255, 0.58);
  --ntcc-chip-text: var(--ntcc-accent);
  --ntcc-chip-hover-bg: var(--ntcc-accent);
  --ntcc-chip-hover-border: var(--ntcc-accent);
  --ntcc-chip-hover-text: var(--ntcc-on-accent);
  --ntcc-zalo-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ntcc-widget.is-theme-modern {
  --ntcc-bg: linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.95) 100%);
  --ntcc-surface: rgba(var(--color-dark-rgb, 6, 11, 24), 0.84);
  --ntcc-surface-soft: rgba(var(--color-dark-rgb, 6, 11, 24), 0.66);
  --ntcc-border: rgba(var(--color-gold-rgb, 23, 18, 13), 0.12);
  --ntcc-text: #f8fafc;
  --ntcc-muted: rgba(248, 250, 252, 0.68);
  --ntcc-toggle-shadow: 0 24px 60px rgba(var(--color-dark-rgb, 6, 11, 24), 0.34);
  --ntcc-panel-shadow: 0 30px 74px rgba(var(--color-dark-rgb, 6, 11, 24), 0.26), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --ntcc-assistant-bubble-shadow: 0 12px 28px rgba(var(--color-dark-rgb, 6, 11, 24), 0.14);
  --ntcc-user-bubble-shadow: 0 12px 28px rgba(var(--color-dark-rgb, 6, 11, 24), 0.22);
  --ntcc-textarea-shadow: none;
}

.ntcc-widget.is-theme-minimal {
  --ntcc-bg: #f8fafc;
  --ntcc-surface: #ffffff;
  --ntcc-surface-soft: #ffffff;
  --ntcc-border: rgba(148, 163, 184, 0.24);
  --ntcc-text: #111827;
  --ntcc-muted: #6b7280;
  --ntcc-toggle-bg: #ffffff;
  --ntcc-toggle-border: rgba(148, 163, 184, 0.24);
  --ntcc-toggle-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  --ntcc-toggle-text: #111827;
  --ntcc-toggle-eyebrow: #6b7280;
  --ntcc-panel-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  --ntcc-header-bg: #ffffff;
  --ntcc-header-border: rgba(148, 163, 184, 0.24);
  --ntcc-header-text: #111827;
  --ntcc-control-bg: #ffffff;
  --ntcc-control-border: rgba(148, 163, 184, 0.24);
  --ntcc-control-text: #374151;
  --ntcc-control-hover-bg: var(--ntcc-accent);
  --ntcc-control-hover-border: var(--ntcc-accent);
  --ntcc-control-hover-text: var(--ntcc-on-accent);
  --ntcc-avatar-bg: #ffffff;
  --ntcc-avatar-border: rgba(148, 163, 184, 0.24);
  --ntcc-assistant-bubble-shadow: none;
  --ntcc-user-bubble-shadow: none;
  --ntcc-input-bg: #ffffff;
  --ntcc-input-border: rgba(148, 163, 184, 0.2);
  --ntcc-textarea-bg: #ffffff;
  --ntcc-textarea-shadow: none;
  --ntcc-textarea-focus-shadow: 0 0 0 3px rgba(23, 18, 13, 0.08);
  --ntcc-chip-bg: #ffffff;
  --ntcc-chip-border: rgba(148, 163, 184, 0.28);
  --ntcc-chip-text: #111827;
  --ntcc-chip-hover-bg: var(--ntcc-accent);
  --ntcc-chip-hover-border: var(--ntcc-accent);
  --ntcc-chip-hover-text: var(--ntcc-on-accent);
}

.ntcc-widget.is-theme-dark {
  --ntcc-bg: radial-gradient(circle at top left, rgba(44, 56, 74, 0.98), rgba(15, 23, 42, 0.98) 55%, rgba(2, 6, 23, 1));
  --ntcc-surface: rgba(30, 41, 59, 0.96);
  --ntcc-surface-soft: rgba(15, 23, 42, 0.92);
  --ntcc-border: rgba(148, 163, 184, 0.18);
  --ntcc-text: #e5eefc;
  --ntcc-muted: #94a3b8;
  --ntcc-toggle-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  --ntcc-toggle-border: rgba(148, 163, 184, 0.16);
  --ntcc-toggle-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  --ntcc-toggle-text: #f8fafc;
  --ntcc-toggle-eyebrow: rgba(226, 232, 240, 0.72);
  --ntcc-panel-shadow: 0 28px 72px rgba(2, 6, 23, 0.46);
  --ntcc-header-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  --ntcc-header-border: rgba(148, 163, 184, 0.14);
  --ntcc-header-text: #f8fafc;
  --ntcc-control-bg: rgba(255, 255, 255, 0.06);
  --ntcc-control-border: rgba(148, 163, 184, 0.18);
  --ntcc-control-text: #f8fafc;
  --ntcc-control-hover-bg: var(--ntcc-accent);
  --ntcc-control-hover-border: var(--ntcc-accent);
  --ntcc-control-hover-text: #ffffff;
  --ntcc-avatar-bg: rgba(255, 255, 255, 0.08);
  --ntcc-avatar-border: rgba(255, 255, 255, 0.14);
  --ntcc-assistant-bubble-shadow: none;
  --ntcc-user-bubble-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
  --ntcc-input-bg: rgba(15, 23, 42, 0.9);
  --ntcc-input-border: rgba(148, 163, 184, 0.14);
  --ntcc-textarea-bg: rgba(15, 23, 42, 0.82);
  --ntcc-textarea-shadow: none;
  --ntcc-textarea-focus-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  --ntcc-chip-bg: rgba(15, 23, 42, 0.82);
  --ntcc-chip-border: rgba(148, 163, 184, 0.2);
  --ntcc-chip-text: #f8fafc;
  --ntcc-chip-hover-bg: var(--ntcc-accent);
  --ntcc-chip-hover-border: var(--ntcc-accent);
  --ntcc-chip-hover-text: #ffffff;
  --ntcc-zalo-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

.ntcc-widget.is-left {
  right: auto;
  left: 20px;
}

.ntcc-widget.is-embedded {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
}

.ntcc-widget * {
  box-sizing: border-box;
}

.ntcc-widget button,
.ntcc-widget textarea,
.ntcc-widget input,
.ntcc-widget select {
  font: inherit;
}

.ntcc-widget button {
  appearance: none;
  -webkit-appearance: none;
}

.ntcc-widget svg {
  display: block;
}

.ntcc-widget__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 242px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--ntcc-toggle-border);
  border-radius: 999px;
  background: var(--ntcc-toggle-bg);
  box-shadow: var(--ntcc-toggle-shadow);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  color: var(--ntcc-toggle-text);
  backdrop-filter: blur(12px);
}

.ntcc-widget__toggle::after {
  content: "";
  position: absolute;
  inset: 1px auto auto 22px;
  width: 42%;
  height: 52%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ntcc-widget.is-theme-minimal .ntcc-widget__toggle::after {
  display: none;
}

.ntcc-widget__badge {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.ntcc-widget__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--ntcc-avatar-border);
  background: var(--ntcc-avatar-bg);
  color: var(--ntcc-toggle-text);
  flex-shrink: 0;
}

.ntcc-widget__avatar--small {
  width: 44px;
  height: 44px;
}

.ntcc-widget__avatar img,
.ntcc-widget__message-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ntcc-widget__avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ntcc-widget__pulse {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ntcc-toggle-text);
  border-radius: 50%;
  background: #81e79a;
}

.ntcc-widget__toggle-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.ntcc-widget__eyebrow {
  color: var(--ntcc-toggle-eyebrow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ntcc-widget__toggle-label {
  color: var(--ntcc-toggle-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.ntcc-widget__panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: min(408px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--ntcc-border);
  border-radius: var(--ntcc-radius, 20px);
  background: var(--ntcc-bg);
  box-shadow: var(--ntcc-panel-shadow);
  backdrop-filter: blur(16px);
}

.ntcc-widget__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ntcc-widget.is-theme-minimal .ntcc-widget__panel::before {
  display: none;
}

.ntcc-widget.is-embedded .ntcc-widget__toggle {
  display: none;
}

.ntcc-widget.is-embedded [data-ntcc-close] {
  display: none;
}

.ntcc-widget.is-embedded .ntcc-widget__panel {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-bottom: 0;
}

.ntcc-widget.is-left .ntcc-widget__panel {
  right: auto;
  left: 0;
}

.ntcc-widget__panel.is-maximized {
  width: min(508px, calc(100vw - 28px));
}

.ntcc-widget__panel.is-minimized .ntcc-widget__body,
.ntcc-widget__panel.is-minimized .ntcc-widget__input {
  display: none;
}

.ntcc-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ntcc-header-border);
  background: var(--ntcc-header-bg);
  color: var(--ntcc-header-text);
}

.ntcc-widget.is-theme-minimal .ntcc-widget__header {
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.16);
}

.ntcc-widget__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ntcc-widget__identity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ntcc-widget__identity strong {
  display: block;
  color: var(--ntcc-header-text);
  font-size: 16px;
  line-height: 1.35;
}

.ntcc-widget__identity-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--ntcc-header-text) 72%, transparent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ntcc-widget__identity-dot,
.ntcc-widget__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #81e79a;
  box-shadow: 0 0 0 4px rgba(129, 231, 154, 0.14);
  flex-shrink: 0;
}

.ntcc-widget__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ntcc-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--ntcc-header-text) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ntcc-header-text) 6%, transparent);
  color: color-mix(in srgb, var(--ntcc-header-text) 86%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ntcc-widget__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ntcc-control-border);
  border-radius: 50%;
  background: var(--ntcc-control-bg);
  color: var(--ntcc-control-text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all 0.22s ease;
}

.ntcc-widget__control:hover {
  transform: translateY(-1px);
  border-color: var(--ntcc-control-hover-border);
  background: var(--ntcc-control-hover-bg);
  color: var(--ntcc-control-hover-text);
}

.ntcc-widget__body {
  max-height: 430px;
  overflow: auto;
  padding: 16px 16px 14px;
  background: var(--ntcc-bg);
}

.ntcc-widget__panel.is-maximized .ntcc-widget__body {
  max-height: min(66vh, 620px);
}

.ntcc-widget__messages {
  display: grid;
  gap: 14px;
}

.ntcc-widget__message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.ntcc-widget__message--user {
  justify-content: flex-end;
}

.ntcc-widget__message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--ntcc-border);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ntcc-surface);
  color: var(--ntcc-text);
}

.ntcc-widget__bubble {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.ntcc-widget__message--assistant .ntcc-widget__bubble {
  border: 1px solid var(--ntcc-border);
  border-bottom-left-radius: 6px;
  background: var(--ntcc-surface);
  color: var(--ntcc-text);
  box-shadow: var(--ntcc-assistant-bubble-shadow);
}

.ntcc-widget__message--user .ntcc-widget__bubble {
  border-color: transparent;
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, var(--ntcc-accent) 0%, var(--ntcc-accent-strong) 100%);
  color: var(--ntcc-on-accent);
  box-shadow: var(--ntcc-user-bubble-shadow);
}

.ntcc-widget__message-meta {
  display: block;
  margin-top: 6px;
  color: var(--ntcc-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ntcc-widget__assist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ntcc-widget__assist[hidden] {
  display: none;
}

.ntcc-widget__assist-title {
  display: block;
  color: var(--ntcc-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ntcc-widget__assist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ntcc-widget__chip,
.ntcc-widget__zalo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.ntcc-widget__chip {
  border: 1px solid var(--ntcc-chip-border);
  background: var(--ntcc-chip-bg);
  color: var(--ntcc-chip-text);
}

.ntcc-widget__chip:hover {
  transform: translateY(-1px);
  border-color: var(--ntcc-chip-hover-border);
  background: var(--ntcc-chip-hover-bg);
  color: var(--ntcc-chip-hover-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ntcc-widget__zalo-link {
  width: fit-content;
  border: 1px solid var(--ntcc-accent);
  background: var(--ntcc-accent);
  color: var(--ntcc-on-accent);
  font-weight: 800;
}

.ntcc-widget__zalo-link:hover {
  transform: translateY(-1px);
  color: var(--ntcc-on-accent);
  box-shadow: var(--ntcc-zalo-shadow);
}

.ntcc-widget__input {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--ntcc-input-border);
  background: var(--ntcc-input-bg);
}

.ntcc-widget__composer {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
}

.ntcc-widget__composer textarea {
  width: 100%;
  min-height: 94px;
  padding: 13px 76px 13px 14px;
  border: 1px solid var(--ntcc-border);
  border-radius: 16px;
  resize: none;
  background: var(--ntcc-textarea-bg);
  color: var(--ntcc-text);
  font: inherit;
  line-height: 1.65;
  box-shadow: var(--ntcc-textarea-shadow);
  transition: all 0.22s ease;
}

.ntcc-widget__composer textarea:focus {
  outline: none;
  border-color: var(--ntcc-accent);
  box-shadow: var(--ntcc-textarea-focus-shadow);
}

.ntcc-widget__composer textarea::placeholder {
  color: var(--ntcc-muted);
}

.ntcc-widget__send {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ntcc-accent) 0%, var(--ntcc-accent-strong) 100%);
  color: var(--ntcc-on-accent);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.22s ease;
}

.ntcc-widget__send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  filter: brightness(1.05);
}

.ntcc-widget__send:active {
  transform: translateY(0) scale(0.985);
}

.ntcc-widget__send[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.ntcc-widget__send-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 0;
}

.ntcc-widget__send-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ntcc-on-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ntcc-widget__send-icon svg path:first-child {
  fill: var(--ntcc-on-accent);
  stroke: none;
}

.ntcc-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ntcc-widget__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ntcc-accent);
  animation: ntcc-widget-dot 1s infinite ease-in-out;
}

.ntcc-widget__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ntcc-widget__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ntcc-widget-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .ntcc-widget {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .ntcc-widget__toggle {
    width: 100%;
    min-width: 0;
  }

  .ntcc-widget__panel,
  .ntcc-widget.is-left .ntcc-widget__panel {
    right: 0;
    left: 0;
    width: auto;
    bottom: 84px;
  }

  .ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__panel,
  .ntcc-home-section .ntcc-widget.is-context-home-section.ntcc-widget.is-left .ntcc-widget__panel {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
  }

  .ntcc-widget__panel.is-maximized {
    right: 0;
    left: 0;
    width: auto;
  }

  .ntcc-widget__panel.is-maximized .ntcc-widget__body {
    max-height: calc(100vh - 310px);
  }

  .ntcc-widget__bubble {
    max-width: 86%;
  }
}

.ntcc-home-section {
  --ntcc-section-bg: #f4ebe2;
  --ntcc-section-surface: #fffaf6;
  --ntcc-section-text: #f8f4ef;
  --ntcc-section-surface-text: #111827;
  --ntcc-section-accent: #17120d;
  --ntcc-section-accent-strong: #050505;
  --ntcc-section-on-accent: #ffffff;
  --ntcc-section-border: rgba(201, 165, 132, 0.18);
  --ntcc-section-accent-soft: rgba(201, 165, 132, 0.1);
  background: transparent;
}

.ntcc-home-section__shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--ntcc-section-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, var(--ntcc-section-accent-soft), transparent 24%),
    linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 1) 100%);
  box-shadow: 0 26px 60px rgba(var(--color-dark-rgb, 6, 11, 24), 0.24);
}

.ntcc-home-section__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(201, 165, 132, 0.11), transparent 28%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 46%, transparent 100%);
  pointer-events: none;
}

.ntcc-home-section__content,
.ntcc-home-section__stage {
  position: relative;
  z-index: 1;
}

.ntcc-home-section__content {
  display: grid;
  max-width: none;
  gap: 8px;
  color: var(--ntcc-section-text);
}

.ntcc-home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ntcc-section-accent);
}

.ntcc-home-section__title {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.ntcc-home-section__description {
  max-width: 34ch;
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.ntcc-home-section__stage {
  align-self: stretch;
  width: 100%;
}

.ntcc-home-section .ntcc-widget.is-context-home-section {
  width: 100%;
  max-width: none;
  padding: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ntcc-home-section__widget-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ntcc-section-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, var(--ntcc-section-accent-soft), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ntcc-home-section__widget-shell > .ntcc-widget-shadow-host,
.ntcc-home-section__widget-shell > .ntcc-widget {
  width: 100%;
  flex: 1 1 auto;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__panel {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.88) 100%);
  box-shadow: none;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__header {
  justify-content: flex-start;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 100%);
  border-bottom-color: var(--ntcc-section-border);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__identity {
  gap: 10px;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__avatar--small {
  width: 40px;
  height: 40px;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__identity strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__identity-meta {
  color: rgba(248, 250, 252, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__body {
  min-height: 340px;
  max-height: 420px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(var(--color-gold-rgb, 23, 18, 13), 0.10), rgba(var(--color-dark-rgb, 6, 11, 24), 0.96) 30%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 100%);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__messages {
  gap: 16px;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__message-avatar {
  border-color: var(--ntcc-section-border);
  background: rgba(var(--color-dark-rgb, 6, 11, 24), 0.92);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__message--assistant .ntcc-widget__bubble {
  border-color: var(--ntcc-section-border);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(var(--color-dark-rgb, 6, 11, 24), 0.14);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__message--user .ntcc-widget__bubble {
  background: linear-gradient(135deg, var(--color-gold, #c89f78) 0%, var(--color-gold-3, #8e5a2f) 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(var(--color-dark-rgb, 6, 11, 24), 0.22);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__assist-title {
  color: rgba(248, 250, 252, 0.66);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__chip {
  border-color: var(--ntcc-section-border);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__chip:hover {
  border-color: var(--color-gold, #8e5a2f);
  background: var(--color-gold, #8e5a2f);
  color: #ffffff;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__input {
  padding: 12px 14px 14px;
  border-top-color: var(--ntcc-section-border);
  background: rgba(var(--color-dark-rgb, 6, 11, 24), 0.86);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__composer textarea {
  min-height: 72px;
  border-color: var(--ntcc-section-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  box-shadow: none;
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__composer textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--color-gold-rgb, 23, 18, 13), 0.16);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__composer textarea::placeholder {
  color: rgba(248, 250, 252, 0.52);
}

.ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__send {
  background: linear-gradient(135deg, var(--color-gold, #b98358) 0%, var(--color-gold-3, #7d4e28) 100%);
  box-shadow: 0 8px 18px rgba(var(--color-dark-rgb, 6, 11, 24), 0.22);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-home-section__shell {
  border-radius: 22px;
  border-color: var(--ntcc-section-border);
  background:
    radial-gradient(circle at top left, var(--ntcc-section-accent-soft), transparent 22%),
    linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.96) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 100%);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-home-section__eyebrow {
  color: var(--ntcc-section-accent);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-home-section__title {
  color: #ffffff;
}

.ntcc-home-section.is-section-theme-editorial .ntcc-home-section__description {
  color: rgba(248, 250, 252, 0.72);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-home-section__widget-shell {
  border-color: var(--ntcc-section-border);
  background: rgba(255, 255, 255, 0.03);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__panel {
  background: linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.88) 100%);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__header {
  background: linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 100%);
  border-bottom-color: var(--ntcc-section-border);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__identity strong,
.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__identity-meta,
.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__status {
  color: #f8fafc;
}

.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__status {
  border-color: var(--ntcc-section-border);
  background: rgba(var(--color-gold-rgb, 23, 18, 13), 0.08);
}

.ntcc-home-section.is-section-theme-editorial .ntcc-widget.is-context-home-section .ntcc-widget__body {
  background: radial-gradient(circle at top left, rgba(var(--color-gold-rgb, 23, 18, 13), 0.10), rgba(var(--color-dark-rgb, 6, 11, 24), 0.96) 30%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 100%);
}

.ntcc-home-section.is-section-theme-contrast {
  background: transparent;
}

.ntcc-home-section.is-section-theme-contrast .ntcc-home-section__shell {
  background:
    radial-gradient(circle at top right, rgba(var(--color-gold-rgb, 23, 18, 13), 0.18), transparent 28%),
    linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.99) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 1) 100%);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-home-section__widget-shell {
  background: rgba(255, 255, 255, 0.02);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__panel {
  border-color: var(--ntcc-section-border);
  background: linear-gradient(180deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.99) 100%);
  box-shadow: 0 28px 60px rgba(var(--color-dark-rgb, 6, 11, 24), 0.3);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__header {
  background: linear-gradient(135deg, rgba(var(--color-dark-rgb, 6, 11, 24), 0.98) 0%, rgba(var(--color-dark-rgb, 6, 11, 24), 0.92) 100%);
  border-bottom-color: var(--ntcc-section-border);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__body,
.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__input {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(6, 6, 6, 1) 100%);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__message-avatar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__message--assistant .ntcc-widget__bubble {
  border-color: rgba(201, 165, 132, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4ebe2;
  box-shadow: none;
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__message-meta,
.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__assist-title,
.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__composer textarea::placeholder {
  color: #a88e78;
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__chip {
  border-color: rgba(201, 165, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #f4ebe2;
}

.ntcc-home-section.is-section-theme-contrast .ntcc-widget.is-context-home-section .ntcc-widget__composer textarea {
  border-color: rgba(201, 165, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #f4ebe2;
}

@media (max-width: 760px) {
  .ntcc-home-section__shell {
    gap: 20px;
    padding: 22px;
    border-radius: 16px;
  }

  .ntcc-home-section__content {
    max-width: 100%;
  }

  .ntcc-home-section__title {
    max-width: none;
    font-size: 30px;
  }
}

@media (min-width: 761px) {
  .ntcc-home-section__title {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .ntcc-home-section__shell {
    padding: 18px;
  }

  .ntcc-home-section__description {
    font-size: 13px;
  }

  .ntcc-home-section__widget-shell {
    border-radius: 18px;
  }

  .ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__header,
  .ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__body,
  .ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__input {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ntcc-home-section .ntcc-widget.is-context-home-section .ntcc-widget__body {
    min-height: clamp(420px, 58vh, 560px);
    max-height: none;
  }
}
