html.beta-floating .beta-float-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #454545;
  border-radius: 9px;
  color: #f5f5f5;
  background: #202020;
  font: 650 12px/1 inherit;
}

html.beta-floating .beta-float-button:hover {
  border-color: #666;
  background: #2c2c2c;
}

html.beta-floating .beta-float-button::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6bd26;
  box-shadow: 0 0 0 3px rgb(199 243 107 / 12%);
  content: "";
}

html.beta-floating .beta-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #3b3b3b;
  border-radius: 999px;
  color: #a8a8a8;
  background: #151515;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.beta-float-placeholder {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #d6d6d6;
  background:
    radial-gradient(circle at 50% 42%, rgb(199 243 107 / 8%), transparent 28%),
    #000;
  text-align: center;
}

.beta-float-placeholder[hidden] {
  display: none;
}

.beta-float-placeholder > div {
  max-width: 390px;
}

.beta-float-placeholder .beta-orbit {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 1px solid #434343;
  border-top-color: #f6bd26;
  border-radius: 50%;
  animation: beta-spin 2.4s linear infinite;
}

.beta-float-placeholder h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 22px;
}

.beta-float-placeholder p {
  margin: 0 0 18px;
  color: #8f8f8f;
  line-height: 1.55;
}

.beta-float-placeholder button,
.beta-pip-bar button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #454545;
  border-radius: 8px;
  color: #f5f5f5;
  background: #242424;
  font: 650 12px/1 inherit;
}

.beta-float-placeholder button:hover,
.beta-pip-bar button:hover {
  background: #333;
}

body.codex-beta-pip {
  height: 100vh;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  overflow: hidden;
  color: #f5f5f5;
  background: #000;
}

body.codex-beta-pip .beta-pip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 13px;
  border-bottom: 1px solid #2f2f2f;
  background: #111;
}

body.codex-beta-pip .beta-pip-bar strong {
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.codex-beta-pip .beta-pip-bar span {
  color: #8e8e8e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

body.codex-beta-pip .conversation-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

body.codex-beta-pip .conversation-header {
  min-height: 58px;
  padding: 8px 13px;
}

body.codex-beta-pip .conversation-actions #openInspectorButton,
body.codex-beta-pip .conversation-actions #reviewButton,
body.codex-beta-pip .conversation-actions #goalButton {
  display: none;
}

body.codex-beta-pip .message-list {
  padding: 18px 13px;
}

body.codex-beta-pip .composer-wrap {
  width: calc(100% - 16px);
  max-width: none;
  padding: 8px 0 10px;
}

body.codex-beta-pip .composer {
  border-radius: 18px;
}

body.codex-beta-pip .composer-footer {
  flex-wrap: wrap;
}

body.codex-beta-pip .composer-controls {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  justify-content: flex-start;
  overflow-x: auto;
}

body.codex-beta-pip .composer-hint {
  display: none;
}

html.beta-floating-popup,
html.beta-floating-popup body,
html.beta-floating-popup .app-shell,
html.beta-floating-popup .workspace,
html.beta-floating-popup .main-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
}

html.beta-floating-popup .app-shell {
  display: block;
}

html.beta-floating-popup .topbar,
html.beta-floating-popup .left-panel,
html.beta-floating-popup .right-panel,
html.beta-floating-popup .boot-loading {
  display: none !important;
}

html.beta-floating-popup .workspace {
  display: block;
}

html.beta-floating-popup .main-panel {
  display: block;
}

html.beta-floating-popup .conversation-view {
  height: 100%;
}

html.beta-floating-popup .conversation-header {
  padding-right: 12px;
}

html.beta-floating-popup .conversation-actions #openInspectorButton {
  display: none;
}

@media (max-width: 760px) {
  html.beta-floating .beta-label {
    display: none;
  }

  html.beta-floating .beta-float-button {
    min-width: 38px;
    padding: 7px 9px;
    font-size: 0;
  }

  html.beta-floating .beta-float-button::after {
    color: #fff;
    content: "↗";
    font-size: 15px;
  }
}

@keyframes beta-spin {
  to { transform: rotate(360deg); }
}
