.reasoning-control { position: relative; flex: none; }
.composer-footer .reasoning-trigger {
  display: inline-flex;
  width: auto;
  height: 33px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 22px;
  background: #f3f4f7;
  box-shadow: none;
  color: #798197;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.composer-footer .reasoning-trigger:hover,
.composer-footer .reasoning-trigger[aria-expanded="true"] { background: #ebedfa; color: #434e7d; }
.reasoning-trigger strong { color: #343e70; font-size: 11px; }
.reasoning-popover {
  position: absolute;
  z-index: 30;
  right: -60px;
  bottom: calc(100% + 14px);
  width: 294px;
  padding: 16px 17px 14px;
  border: 1px solid #e9eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 17px 45px #20285726, 0 2px 9px #2028570a;
}
.reasoning-popover-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.reasoning-popover-head span { color: #7b8193 !important; font-size: 12px !important; }
.reasoning-popover-head strong { color: #6151e9; font-size: 17px; font-weight: 700; }
.reasoning-popover.ultra .reasoning-popover-head strong { color: #7546e8; }
.reasoning-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.composer-footer .reasoning-options button {
  display: grid;
  width: 100%;
  height: 46px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #e4e6f1;
  border-radius: 11px;
  background: #f7f8fc;
  box-shadow: none;
  color: #68738b;
  font-size: 13px;
  font-weight: 700;
}
.composer-footer .reasoning-options button:hover { border-color: #bfc1fb; background: #f0f1ff; color: #4740d9; }
.composer-footer .reasoning-options button.active,
.composer-footer .reasoning-options button[aria-pressed="true"] {
  border-color: #a7a5ff;
  background: #ecebff;
  color: #4740d9;
  box-shadow: inset 0 0 0 1px #a7a5ff;
}
@media (max-width: 760px) {
  .composer-footer .reasoning-trigger { height: 30px; padding: 5px 8px; }
}
@media (max-width: 420px) {
  .composer-footer .reasoning-trigger { font-size: 0; gap: 4px; }
  .reasoning-trigger strong { font-size: 11px; }
  .reasoning-popover { right: -68px; width: min(294px, calc(100vw - 28px)); }
}
