.side-panel {
  background: var(--Neutral-00);
  width: 40px; /* when closed */
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: all 0.2s ease-in;
  font-family: "Google Sans", system-ui, -apple-system, sans-serif;
  border-right: 1px solid var(--gray-600);
  color: var(--Neutral-90, #e1e2e3);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.side-panel .native-select {
  font-family: "Space Mono", monospace;
  background: var(--Neutral-15);
  color: var(--Neutral-90);
  width: 193px;
  height: 33px;
  border: none;
  border-radius: 4px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e1e2e3%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px auto;
}

.side-panel .native-select:hover {
  background-color: var(--Neutral-20);
}

.side-panel .native-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--Neutral-30);
}

.side-panel .native-select option {
  background: var(--Neutral-20);
  color: var(--Neutral-90);
  padding: 8px;
}

.side-panel .native-select option:hover {
  background: var(--Neutral-30);
}

.side-panel .hidden {
  display: none !important;
}

.side-panel.open .top h2 {
  left: 0%;
  display: block;
  opacity: 1;
}

.side-panel .top {
  display: flex;
  width: calc(100% - 45px);
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 12px 25px;
  border-bottom: 1px solid var(--Neutral-20);
}

.side-panel .top h2 {
  position: relative;
  color: var(--Neutral-90, #e1e2e3);
  font-family: "Google Sans", system-ui, -apple-system, sans-serif;
  font-size: 21px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  opacity: 0;
  display: none;
  left: -100%;
  transition: opacity 0.2s ease-in, left 0.2s ease-in, display 0.2s ease-in;
  transition-behavior: allow-discrete;
}

@starting-style {
  .side-panel .top h2 {
    left: 0%;
    opacity: 1;
  }
}

.side-panel .opener {
  height: 30px;
  transition: transform 0.2s ease-in;
  color: var(--Neutral-90, #e1e2e3);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.side-panel .opener:hover {
  color: var(--Neutral-60);
}

.side-panel:not(.open) .side-panel-container {
  opacity: 0;
  display: none;
  transition: all 0.2s ease-in allow-discrete;
  transition-delay: 0.1s;
}

.side-panel:not(.open) .indicators .streaming-indicator {
  width: 30px;
  opacity: 0;
}

.side-panel:not(.open) {
  background: var(--Neutral-5);
  border-right: none;
}

.side-panel:not(.open) .top {
  padding: 12px 12px;
  width: 100%;
  justify-content: center;
  border-bottom: none;
}

.side-panel:not(.open) .opener {
  transform: translate(0, 0);
  color: var(--Neutral-90, #e1e2e3);
  margin: 0 auto;
}

.side-panel:not(.open) .input-container {
  opacity: 0;
  display: none;
  transition: all 0.2s ease-in allow-discrete;
}

.side-panel .indicators {
  display: flex;
  padding: 24px 25px;
  justify-content: flex-end;
  gap: 21px;
}

.side-panel .indicators .streaming-indicator {
  user-select: none;
  border-radius: 4px;
  border: 1px solid var(--Neutral-20, #2a2f31);
  background: var(--Neutral-10, #1c1f21);
  display: flex;
  width: 136px;
  height: 30px;
  padding-left: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: width 0.2s ease-in;
}

.side-panel .indicators .streaming-indicator.connected {
  color: var(--Blue-500, #0d9c53);
}

.side-panel .side-panel-container {
  align-self: flex-end;
  width: 400px;
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.side-panel .input-container {
  height: 50px;
  flex-grow: 0;
  flex-shrink: 0;
  border-top: 1px solid var(--Neutral-20);
  padding: 14px 25px;
  overflow: hidden;
}

.side-panel .input-container.disabled {
  opacity: 0.5;
}

.side-panel .input-container.disabled .input-content {
  cursor: not-allowed;
  pointer-events: all;
}

.side-panel .input-container.disabled .input-area,
.side-panel .input-container.disabled .send-button {
  pointer-events: none;
}

.side-panel .input-container .input-content {
  position: relative;
  background: var(--Neutral-10);
  border: 1px solid var(--Neutral-15);
  height: 22px;
  border-radius: 10px;
  padding: 11px 18px;
  transition: all 0.2s ease-in;
}

.side-panel .input-container:not(.disabled) .input-content {
  background: var(--Neutral-15);
  border-color: var(--Neutral-20);
}

.side-panel .input-container .input-content .input-area {
  background: none;
  color: var(--Neutral-90);
  field-sizing: content;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-block;
  width: calc(100% - 72px);
  max-height: 20px;
  outline: none;
  flex: 1;
  word-break: break-word;
  overflow: auto;
  padding: 14px 18px;
  border: 0;
  resize: none;
  font-family: "Google Sans", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  transition: color 0.2s ease-in;
}

.side-panel .input-container.disabled .input-area {
  color: var(--Neutral-60);
}

.side-panel .input-container .input-content .send-button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translate(0, -50%);
  background: none;
  border: 0;
  color: var(--Neutral-20);
  cursor: pointer;
  transition: all 0.2s ease-in;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 20px;
}

.side-panel .input-container:not(.disabled) .input-content .send-button {
  color: var(--Neutral-60);
}

.side-panel .input-container:not(.disabled) .input-content .send-button:hover {
  color: var(--Neutral-90);
}

.side-panel .input-container .input-content .input-content-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 1;
  height: 100%;
  width: 100%;
  pointer-events: none;
  user-select: none;
  padding: 0px 18px;
  white-space: pre-wrap;
}

.side-panel.open {
  width: 400px;
  height: 100vh;
}

.side-panel-responses,
.side-panel-requests {
  flex-grow: 1;
  flex-shrink: 1;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  display: block;
  margin-left: 8px;
}
