.pxc-panel {
  display: grid;
  gap: 12px;
  color: #f7f1e6;
}

.pxc-panel[hidden] {
  display: none !important;
}

.pxc-heading,
.pxc-recommender,
.pxc-models,
.pxc-mode-strip,
.pxc-context-strip,
.pxc-chat-card {
  border: 1px solid rgba(214, 177, 94, 0.22);
  background: linear-gradient(
    180deg,
    rgba(29, 25, 18, 0.98),
    rgba(18, 16, 12, 0.98)
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pxc-heading {
  padding: 18px 20px;
  border-radius: 20px;
}

.pxc-eyebrow {
  color: #d9af58;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.pxc-heading h1 {
  margin: 5px 0 4px;
  color: #fff8e9;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.pxc-heading p,
.pxc-recommender p,
.pxc-recommendation p {
  margin: 0;
  color: #cfc7b8;
  line-height: 1.45;
}

.pxc-recommender {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.4fr) auto minmax(
      280px,
      0.9fr
    );
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
}

.pxc-recommender-intro {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pxc-brain {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(231, 184, 73, 0.38);
  border-radius: 50%;
  background: rgba(231, 184, 73, 0.1);
  color: #efc45f;
  font-size: 1.5rem;
}

.pxc-recommender h2,
.pxc-models h2 {
  margin: 0 0 5px;
  color: #fff7e8;
  font-size: 0.95rem;
}

.pxc-recommender-intro p {
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.pxc-task {
  display: grid;
  gap: 6px;
}

.pxc-task strong {
  color: #f3eadb;
  font-size: 0.78rem;
}

.pxc-task textarea,
.pxc-composer textarea {
  resize: none;
  border: 1px solid rgba(216, 189, 132, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #fff8eb;
  font: inherit;
}

.pxc-task textarea {
  min-height: 82px;
  padding: 12px;
  border-radius: 13px;
}

.pxc-task textarea:focus,
.pxc-composer textarea:focus {
  border-color: rgba(236, 187, 70, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 187, 70, 0.08);
}

.pxc-task small {
  justify-self: end;
  color: #898379;
  font-size: 0.7rem;
}

.pxc-analyze,
.pxc-primary,
.pxc-secondary,
.pxc-actions button,
.pxc-model,
.pxc-mode,
.pxc-send,
.pxc-icon {
  font: inherit;
  cursor: pointer;
}

.pxc-analyze,
.pxc-primary {
  border: 1px solid rgba(232, 185, 73, 0.58);
  background: linear-gradient(145deg, #edc45f, #d7a632);
  color: #211908;
  font-weight: 850;
}

.pxc-analyze {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
}

.pxc-secondary {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(224, 216, 196, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #f4ecdf;
  font-weight: 750;
}

.pxc-recommendation {
  padding: 12px 14px;
  border: 1px solid rgba(214, 177, 94, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.pxc-recommendation > strong {
  display: block;
  margin-bottom: 5px;
  color: #f0c35c;
  font-size: 0.78rem;
}

.pxc-recommendation p {
  font-size: 0.76rem;
}

.pxc-rec-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.pxc-rec-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.pxc-models {
  padding: 12px 14px;
  border-radius: 18px;
}

.pxc-model-row,
.pxc-mode-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pxc-model {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(221, 213, 194, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #eee7db;
  font-size: 0.77rem;
  font-weight: 750;
}

.pxc-model:hover,
.pxc-model:focus-visible,
.pxc-mode:hover,
.pxc-mode:focus-visible {
  border-color: rgba(230, 182, 66, 0.55);
  outline: none;
}

.pxc-model.is-active {
  border-color: #3189ff;
  background: #0c70e8;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(49, 137, 255, 0.12);
}

.pxc-chatgpt-wrap {
  position: relative;
}

.pxc-chatgpt-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 20;
  width: 255px;
  padding: 7px;
  border: 1px solid rgba(215, 178, 94, 0.3);
  border-radius: 13px;
  background: #1b1813;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.pxc-chatgpt-menu[hidden] {
  display: none;
}

.pxc-chatgpt-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #f8efe0;
  text-align: left;
  cursor: pointer;
}

.pxc-chatgpt-menu button:hover {
  background: rgba(237, 190, 75, 0.1);
}

.pxc-chatgpt-menu span {
  color: #999186;
  font-size: 0.7rem;
}

.pxc-mode-strip,
.pxc-context-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
}

.pxc-mode-strip > strong {
  flex: 0 0 auto;
  color: #b6ad9e;
  font-size: 0.74rem;
}

.pxc-mode {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(219, 207, 180, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #ddd5c9;
  font-size: 0.72rem;
}

.pxc-mode.is-active {
  border-color: rgba(230, 183, 70, 0.5);
  background: rgba(230, 183, 70, 0.13);
  color: #f4c65e;
}

.pxc-context-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pxc-context-strip > div {
  min-width: 0;
  padding: 3px 10px;
  border-left: 1px solid rgba(226, 215, 189, 0.12);
}

.pxc-context-strip > div:first-child {
  border-left: 0;
}

.pxc-context-strip span,
.pxc-context-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pxc-context-strip span {
  color: #8f887d;
  font-size: 0.66rem;
}

.pxc-context-strip strong {
  margin-top: 2px;
  color: #f0e9dd;
  font-size: 0.76rem;
}

.pxc-chat-card {
  padding: 12px;
  border-radius: 20px;
}

.pxc-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pxc-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(221, 211, 190, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #e9e1d4;
  font-size: 0.72rem;
}

.pxc-thread {
  display: grid;
  gap: 10px;
  min-height: 360px;
  max-height: 620px;
  overflow: auto;
  padding: 10px 6px 14px;
}

.pxc-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 78%;
}

.pxc-message.is-professor {
  justify-self: start;
}

.pxc-message.is-cleber {
  justify-self: end;
}

.pxc-message > div:not(.pxc-avatar) {
  min-width: 0;
}

.pxc-message strong {
  display: block;
  margin: 0 0 4px 6px;
  color: #f8efdf;
  font-size: 0.73rem;
}

.pxc-message p,
.pxc-message ol {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #f4ede2;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pxc-message ol {
  padding-left: 32px;
  border-top-left-radius: 5px;
}

.pxc-message.is-cleber p {
  border-color: rgba(219, 174, 66, 0.18);
  background: rgba(70, 57, 32, 0.62);
}

.pxc-message time {
  display: block;
  margin-top: 3px;
  color: #7d776d;
  font-size: 0.65rem;
}

.pxc-message.is-cleber time {
  text-align: right;
}

.pxc-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(229, 184, 74, 0.25);
  border-radius: 50%;
  background: rgba(229, 184, 74, 0.12);
  color: #f0c15c;
  font-size: 0.7rem;
  font-weight: 900;
}

.pxc-composer {
  display: grid;
  grid-template-columns: 38px 38px minmax(240px, 1fr) auto 46px;
  gap: 6px;
  align-items: center;
  min-height: 58px;
  padding: 7px;
  border: 1px solid rgba(221, 190, 119, 0.2);
  border-radius: 15px;
  background: rgba(7, 7, 6, 0.35);
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.pxc-composer.is-dragging {
  border-color: #e8b949;
  background: rgba(232, 185, 73, 0.08);
}

.pxc-composer textarea {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
}

.pxc-icon,
.pxc-send {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
}

.pxc-icon {
  border: 1px solid rgba(220, 208, 181, 0.16);
  background: transparent;
  color: #e7dfd2;
}

.pxc-send {
  width: 44px;
  border: 1px solid rgba(232, 185, 73, 0.55);
  background: linear-gradient(145deg, #f0c65d, #d9a532);
  color: #201807;
  font-size: 1rem;
}

.pxc-drop-hint {
  color: #857f75;
  font-size: 0.66rem;
  white-space: nowrap;
}

.pxc-feedback {
  margin: 7px 4px 0;
  color: #888177;
  font-size: 0.67rem;
}

@media (max-width: 1180px) {
  .pxc-recommender {
    grid-template-columns: 1fr 1.5fr;
  }

  .pxc-analyze {
    justify-self: start;
  }

  .pxc-context-strip {
    grid-template-columns: 1fr 1fr;
  }

  .pxc-composer {
    grid-template-columns: 38px 38px minmax(180px, 1fr) 46px;
  }

  .pxc-drop-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .pxc-recommender,
  .pxc-context-strip {
    grid-template-columns: 1fr;
  }

  .pxc-context-strip > div {
    border-left: 0;
    border-top: 1px solid rgba(226, 215, 189, 0.1);
    padding: 8px 2px;
  }

  .pxc-message {
    max-width: 94%;
  }

  .pxc-actions {
    justify-content: flex-start;
  }
}
